|
|
|
|
@ -428,6 +428,18 @@ export default {
|
|
|
|
|
webCode: this.value.at(-1),
|
|
|
|
|
// webJson: JSON.stringify(this.components),
|
|
|
|
|
webJsonString: JSON.stringify(this.components),
|
|
|
|
|
}).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '保存成功',
|
|
|
|
|
type: 'success'
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '保存失败',
|
|
|
|
|
type: 'error'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (this.type === '2') {
|
|
|
|
|
@ -435,6 +447,18 @@ export default {
|
|
|
|
|
webCode: this.value[0],
|
|
|
|
|
deviceId: this.value[2],
|
|
|
|
|
webJsonString: JSON.stringify(this.components),
|
|
|
|
|
}).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '保存成功',
|
|
|
|
|
type: 'success'
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '保存失败',
|
|
|
|
|
type: 'error'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|