[update] 企标左侧体系树联调
This commit is contained in:
@@ -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'))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user