bed7e993 by weimo934

feat(Home):登记调用之后刷新左侧目录树

1 parent ac889566
......@@ -66,6 +66,11 @@ export default {
LineTree,
Create,
},
provide(){
return{
getRightTree: this.getRightTree
}
},
data() {
return {
navigationList: [],
......@@ -180,7 +185,7 @@ export default {
"$store.state.zrzbsm": function(bsm) {
this.getRightTreeByZrzbsm(this.$store.state.zrzbsm);
},
"$store.state.treeData":function (val) {
console.log(val,'val');
this.pd = val;
......
......@@ -217,6 +217,7 @@
Qlr,
Qlxz,
},
inject:['getRightTree'],
data () {
return {
......@@ -298,6 +299,7 @@
registerCall(data).then(res=>{
if (res.success) {
this.$message.success("登记成功")
this.getRightTree(this.$store.state.zdbsm)
}
})
},
......
......@@ -367,6 +367,7 @@ import {
} from "../../../api/zd";
export default {
inject:['getRightTree'],
name: "",
components: {
Qlr,
......@@ -476,6 +477,7 @@ export default {
registerCall(data).then(res=>{
if (res.success) {
this.$message.success("登记成功")
this.getRightTree(this.$store.state.zdbsm)
}
})
},
......
......@@ -299,6 +299,7 @@ export default {
hbj,
HCxlz,
},
inject:['getRightTree'],
props: {},
data() {
return {
......@@ -413,6 +414,7 @@ export default {
registerCall(data).then(res=>{
if (res.success) {
this.$message.success("登记成功")
this.getRightTree(this.$store.state.zdbsm)
}
})
},
......
......@@ -283,7 +283,7 @@
Qlr,
Qlxz,
},
inject:['reload'],
inject:['reload','getRightTree'],
data () {
return {
......@@ -404,6 +404,7 @@
registerCall(data).then(res=>{
if (res.success) {
this.$message.success("登记成功")
this.getRightTree(this.$store.state.zdbsm)
}
})
},
......