|
@@ -20,6 +20,7 @@
|
|
|
v-model="radio"
|
|
v-model="radio"
|
|
|
style="margin-left: 10px"
|
|
style="margin-left: 10px"
|
|
|
size="small"
|
|
size="small"
|
|
|
|
|
+ @change="treeChange"
|
|
|
>
|
|
>
|
|
|
<a-radio-button value="a"> 机构 </a-radio-button>
|
|
<a-radio-button value="a"> 机构 </a-radio-button>
|
|
|
<a-radio-button value="b"> 人员 </a-radio-button>
|
|
<a-radio-button value="b"> 人员 </a-radio-button>
|
|
@@ -32,6 +33,7 @@
|
|
|
:type="radio"
|
|
:type="radio"
|
|
|
@showTab="showTab"
|
|
@showTab="showTab"
|
|
|
:managementSource="2"
|
|
:managementSource="2"
|
|
|
|
|
+ ref="treeManage"
|
|
|
></tree>
|
|
></tree>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -313,27 +315,48 @@ export default {
|
|
|
],
|
|
],
|
|
|
amount: {},
|
|
amount: {},
|
|
|
radio: "a",
|
|
radio: "a",
|
|
|
- disabled: false,
|
|
|
|
|
treeType: 1,
|
|
treeType: 1,
|
|
|
|
|
+ userId: "",
|
|
|
|
|
+ agencyId: "",
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ created() {},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
// this.getVerification();
|
|
// this.getVerification();
|
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
|
// }, 1000);
|
|
// }, 1000);
|
|
|
|
|
+ // this.$refs.treeManage.getUserTree();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- timeChange(val) {
|
|
|
|
|
- // console.log(val);
|
|
|
|
|
- this.formState = { ...val };
|
|
|
|
|
|
|
+ showTab(val) {
|
|
|
|
|
+ if (this.radio == "a") {
|
|
|
|
|
+ this.treeType = 1;
|
|
|
|
|
+ this.formState.treeUserId = val.agencyId;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.treeType = 2;
|
|
|
|
|
+ this.formState.treeUserId = val.userId;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.agencyId = val.agencyId;
|
|
|
|
|
+
|
|
|
|
|
+ this.userId = val.userId;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
- showTab(val) {
|
|
|
|
|
- // console.log(val);
|
|
|
|
|
- if (val == 1) {
|
|
|
|
|
- this.disabled = true;
|
|
|
|
|
|
|
+ treeChange() {
|
|
|
|
|
+ if (this.radio == "a") {
|
|
|
|
|
+ this.treeType = 1;
|
|
|
|
|
+ this.formState.treeUserId = this.agencyId;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.treeType = 2;
|
|
|
|
|
+ this.formState.treeUserId = this.userId;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ },
|
|
|
|
|
+ timeChange(val) {
|
|
|
|
|
+ this.formState = { ...val };
|
|
|
|
|
+
|
|
|
|
|
+ // this.getList();
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
chooseUser(val) {
|
|
chooseUser(val) {
|
|
|
this.formState.treeUserId = val.id;
|
|
this.formState.treeUserId = val.id;
|
|
|
if (val.type == "a") {
|
|
if (val.type == "a") {
|
|
@@ -341,7 +364,7 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.treeType = 2;
|
|
this.treeType = 2;
|
|
|
}
|
|
}
|
|
|
- this.getVerification();
|
|
|
|
|
|
|
+ this.getList();
|
|
|
},
|
|
},
|
|
|
getList() {
|
|
getList() {
|
|
|
this.pagination.current = 1;
|
|
this.pagination.current = 1;
|