|
|
@@ -4,7 +4,7 @@
|
|
|
<div><h2>部门所属</h2></div>
|
|
|
<div>
|
|
|
<!-- <a-tree :tree-data="treeData" /> -->
|
|
|
- <tree @getList="getVerification"></tree>
|
|
|
+ <tree @getList="chooseTree"></tree>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="back-line-main">
|
|
|
@@ -254,6 +254,7 @@ export default {
|
|
|
{ title: "Tree Node", key: "2", isLeaf: true },
|
|
|
],
|
|
|
BigOrder: {},
|
|
|
+ deptId: undefined,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -262,6 +263,10 @@ export default {
|
|
|
// }, 1000);
|
|
|
},
|
|
|
methods: {
|
|
|
+ chooseTree(val) {
|
|
|
+ this.deptId = val;
|
|
|
+ this.getVerification();
|
|
|
+ },
|
|
|
getList() {
|
|
|
this.pagination.current = 1;
|
|
|
this.pagination.defaultPageSize = 10;
|
|
|
@@ -298,6 +303,7 @@ export default {
|
|
|
pageNum: this.pagination.current,
|
|
|
pageSize: this.pagination.defaultPageSize,
|
|
|
...this.formState,
|
|
|
+ deptId: this.deptId,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
@@ -315,6 +321,7 @@ export default {
|
|
|
// pageNum: this.pagination.current,
|
|
|
// pageSize: this.pagination.defaultPageSize,
|
|
|
...this.formState,
|
|
|
+ deptId: this.deptId,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|