|
|
@@ -395,7 +395,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
- // this.getDeptTree();
|
|
|
+ this.getDeptTree();
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
@@ -488,20 +488,20 @@ export default {
|
|
|
},
|
|
|
|
|
|
/** 查询部门下拉树结构 */
|
|
|
- // getDeptTree() {
|
|
|
- // // deptTreeSelect().then(response => {
|
|
|
- // // this.deptOptions = response.data;
|
|
|
- // // this.defaultKeys.push(response.data[0].id);
|
|
|
- // // this.queryParams.orgId = response.data[0].id;
|
|
|
- // // this.handleQuery();
|
|
|
- // // });
|
|
|
- // businessTreeSelect().then((response) => {
|
|
|
- // this.deptOptions = response.data;
|
|
|
- // this.defaultKeys.push(response.data[0].id);
|
|
|
- // this.queryParams.orgId = response.data[0].id;
|
|
|
- // this.handleQuery();
|
|
|
- // });
|
|
|
- // },
|
|
|
+ getDeptTree() {
|
|
|
+ // deptTreeSelect().then(response => {
|
|
|
+ // this.deptOptions = response.data;
|
|
|
+ // this.defaultKeys.push(response.data[0].id);
|
|
|
+ // this.queryParams.orgId = response.data[0].id;
|
|
|
+ // this.handleQuery();
|
|
|
+ // });
|
|
|
+ businessTreeSelect().then((response) => {
|
|
|
+ this.deptOptions = response.data;
|
|
|
+ this.defaultKeys.push(response.data[0].id);
|
|
|
+ this.queryParams.orgId = response.data[0].id;
|
|
|
+ this.handleQuery();
|
|
|
+ });
|
|
|
+ },
|
|
|
tenantIdnormalizer(node, instanceId) {
|
|
|
if (node.children && !node.children.length) {
|
|
|
delete node.children;
|