回显修改
This commit is contained in:
@@ -457,6 +457,11 @@ export default {
|
||||
this.$refs.tree.filter(val);
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('updateList',()=>{
|
||||
this.getTreeLabel()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.getTreeLabel()
|
||||
|
||||
@@ -78,10 +78,11 @@ export default {
|
||||
if (node && data) {
|
||||
this.showAddOrUpdateLabel = true
|
||||
this.form.nodeLabel = node.parent.data.label
|
||||
this.form.name = data.label
|
||||
this.form.label = data.label
|
||||
this.form.orderNum = data.orderNum
|
||||
this.form.remark = data.remark
|
||||
this.form={...this.form}
|
||||
this.$refs.form.clearValidate('name')
|
||||
console.log('hhh',node,data);
|
||||
this.$forceUpdate()
|
||||
} else {
|
||||
this.form = {}
|
||||
@@ -99,7 +100,7 @@ export default {
|
||||
this.$api.report.labelAdd(this.form).then(res => {
|
||||
})
|
||||
this.dialogVisible = false
|
||||
|
||||
this.$bus.$emit('updataList')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user