添加组件

master
suixy 2 months ago
parent 608c8f44d6
commit 0dca917d8c

@ -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'
});
}
})
}

@ -771,6 +771,19 @@ export default {
webCode: this.value.at(-1),
// webJson: JSON.stringify(this.components),
webJsonString: JSON.stringify(this.components),
}).then(res => {
console.log(1312312)
if (res.code == 200) {
this.$message({
message: '保存成功',
type: 'success'
});
} else {
this.$message({
message: '保存失败',
type: 'error'
});
}
})
},
pageChange(e) {

@ -75,6 +75,18 @@ export default {
updateHwWeb({
webCode: 7,
webJsonString: JSON.stringify(this.pageData),
}).then(res => {
if (res.code == 200) {
this.$message({
message: '保存成功',
type: 'success'
});
} else {
this.$message({
message: '保存失败',
type: 'error'
});
}
})
}
}

@ -41,7 +41,7 @@
</div>
<!-- 图片 -->
<div class="img-wrap">
<div class="img-wrap" style="height: calc(30vw - 31px - 40px - 26px - 3.2vw - 42px - 8px)">
<UploadEl :data="ii"/>
</div>
</el-card>

Loading…
Cancel
Save