[update] 企标左侧体系树联调

This commit is contained in:
lideqin
2023-09-13 10:47:18 +08:00
parent 708e4146d6
commit aa3509b77a
2 changed files with 58 additions and 101 deletions
@@ -58,15 +58,16 @@ export default {
},
methods: {
add (nodeObj) {
console.log(nodeObj)
this.visible = true
this.form.resetFields()
this.model = Object.assign({}, nodeObj)
this.model.key = nodeObj.id
this.model.nodeCode = nodeObj.nodeCode
},
edit (nodeKey, nodeName) {
edit (record) {
this.visible = true
this.form.resetFields()
this.model.id = nodeKey
this.model.nodeName = nodeName
this.model = Object.assign({}, record)
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'nodeName'))
})