|
@@ -73,7 +73,7 @@
|
|
|
class="zw-page-list-more"
|
|
class="zw-page-list-more"
|
|
|
>
|
|
>
|
|
|
<el-button type="text" @click="getMore()"
|
|
<el-button type="text" @click="getMore()"
|
|
|
- >更多<i class="el-icon-caret-bottom"></i
|
|
|
|
|
|
|
+ >更多<i class="el-icon-caret-bottom"></i
|
|
|
></el-button>
|
|
></el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -172,7 +172,6 @@
|
|
|
created() {},
|
|
created() {},
|
|
|
methods: {
|
|
methods: {
|
|
|
open(selectedList) {
|
|
open(selectedList) {
|
|
|
-
|
|
|
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
|
this.selectStafflist = selectedList;
|
|
this.selectStafflist = selectedList;
|
|
|
this.getInfo();
|
|
this.getInfo();
|
|
@@ -185,11 +184,18 @@
|
|
|
idField: 'id',
|
|
idField: 'id',
|
|
|
parentIdField: 'parentId'
|
|
parentIdField: 'parentId'
|
|
|
});
|
|
});
|
|
|
|
|
+ if (this.treeList.length) {
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.tree.setCurrentNode(this.treeList[0]);
|
|
|
|
|
+ this.handleNodeClick(this.treeList[0]);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//this.treeList = res.data;
|
|
//this.treeList = res.data;
|
|
|
},
|
|
},
|
|
|
//选择分类
|
|
//选择分类
|
|
|
handleNodeClick(data) {
|
|
handleNodeClick(data) {
|
|
|
- this.currentData = data
|
|
|
|
|
|
|
+ this.currentData = data;
|
|
|
this.staffList = [];
|
|
this.staffList = [];
|
|
|
|
|
|
|
|
this.form.groupId = data.id;
|
|
this.form.groupId = data.id;
|