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: [],
defaultProps3: {
children: 'children',
label: 'name'
label: 'menuName'
},
nodeList2: [],
modalflag: false,
@@ -389,6 +389,9 @@ export default {
this.nodeList3 = []
this.nodeList3.push(this.addForm.parentId)
}
this.$watch('newForm', (newVal, oldVal) => {
console.log(newVal, oldVal);
})
this.addModel = true
},
getTree3 () {
@@ -493,7 +496,12 @@ export default {
this.$refs.tree.filter(val);
}
},
mounted () {
computed:{
newForm() {
return JSON.parse(JSON.stringify(this.addForm))
}
},
mounted () {
this.getTree()
this.getTree2()
this.getTree3()