|
|
|
@ -52,6 +52,7 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
ref="list"
|
|
|
|
|
:data="list"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
highlight-current-row
|
|
|
|
@ -576,10 +577,6 @@ export default {
|
|
|
|
|
let depList = response.data.list || [];
|
|
|
|
|
this.deptOptions = this.handleTree(depList, "code", "pcode");
|
|
|
|
|
});
|
|
|
|
|
console.log(row.id);
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// this.$refs.deptTableRef.setCurrentRow(this.list[row.pid]);
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
/* 获取列表 */
|
|
|
|
|
getList() {
|
|
|
|
@ -588,12 +585,7 @@ export default {
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
let depList = response.data.list || [];
|
|
|
|
|
// console.log("deplist", depList);
|
|
|
|
|
this.list = this.handleTree(depList, "code", "pcode");
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.deptTableRef.setCurrentRow(this.list[0]);
|
|
|
|
|
});
|
|
|
|
|
console.log(this.list);
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -601,7 +593,6 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
cancelDialog() {
|
|
|
|
|
tQuer;
|
|
|
|
|
this.formVisible = false;
|
|
|
|
|
// 刷新表单
|
|
|
|
|
this.$refs["dataForm"].resetFields();
|
|
|
|
|