This commit is contained in:
zhutianqi
2021-07-02 17:54:53 +08:00
parent adacd33cb8
commit 91aa3554e5
+10 -2
View File
@@ -256,7 +256,7 @@ export default {
treeData3: [], treeData3: [],
defaultProps3: { defaultProps3: {
children: 'children', children: 'children',
label: 'name' label: 'menuName'
}, },
nodeList2: [], nodeList2: [],
modalflag: false, modalflag: false,
@@ -389,6 +389,9 @@ export default {
this.nodeList3 = [] this.nodeList3 = []
this.nodeList3.push(this.addForm.parentId) this.nodeList3.push(this.addForm.parentId)
} }
this.$watch('newForm', (newVal, oldVal) => {
console.log(newVal, oldVal);
})
this.addModel = true this.addModel = true
}, },
getTree3 () { getTree3 () {
@@ -493,7 +496,12 @@ export default {
this.$refs.tree.filter(val); this.$refs.tree.filter(val);
} }
}, },
mounted () { computed:{
newForm() {
return JSON.parse(JSON.stringify(this.addForm))
}
},
mounted () {
this.getTree() this.getTree()
this.getTree2() this.getTree2()
this.getTree3() this.getTree3()