|
|
|
@ -54,9 +54,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
xzList() {
|
|
|
|
|
xzTree().then((res) => {
|
|
|
|
|
// xzTree().then((res) => {
|
|
|
|
|
if (this.dept.parentId == 0 || this.dept.leader == "admin") {
|
|
|
|
|
res.data.forEach((value, index) => {
|
|
|
|
|
let treeData = JSON.parse(localStorage.getItem("TREE_DATA"))
|
|
|
|
|
treeData.forEach((value, index) => {
|
|
|
|
|
this.compartment.push({
|
|
|
|
|
value: value.subdistrict,
|
|
|
|
|
label: value.institutionName,
|
|
|
|
@ -73,7 +74,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.$emit("quhuadizhi", this.compartment);
|
|
|
|
|
});
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
getData(e) {
|
|
|
|
|
if (!this.none) {
|
|
|
|
|