标签维护 编辑回显

This commit is contained in:
yuekuo
2023-04-20 15:49:33 +08:00
parent 4f02e9d1c8
commit 02da02008b
2 changed files with 8 additions and 5 deletions
@@ -74,10 +74,11 @@ export default {
this.$api.report.labelList().then(res => {
console.log('666',res);
this.cascaderOptions=res.data
})
if (node && data) {
this.$api.report.labelNodeList(data).then(res=>{
let id =data.id
this.$api.report.labelNodeList(id).then(res=>{
this.form.nodeLabel=res.data
this.$forceUpdate()
})
this.form.label = data.label
this.form.orderNum = data.orderNum
@@ -90,6 +91,8 @@ export default {
this.form = {}
this.$forceUpdate()
}
})
},
cancel() {
this.dialogVisible = false