|
|
|
@ -582,7 +582,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
/* 获取列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
let qwe = this.checkdefault;
|
|
|
|
|
let line = this.checkdefault;
|
|
|
|
|
this.loading = true;
|
|
|
|
|
filterList(this.filterQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
@ -591,11 +591,11 @@ export default {
|
|
|
|
|
this.list = this.handleTree(depList, "code", "pcode");
|
|
|
|
|
//默认选中第一行列表
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
console.log(qwe);
|
|
|
|
|
if (qwe === null) {
|
|
|
|
|
console.log(line);
|
|
|
|
|
if (line === null) {
|
|
|
|
|
this.$refs.deptTableRef.setCurrentRow(depList[0]);
|
|
|
|
|
} else {
|
|
|
|
|
this.$refs.deptTableRef.setCurrentRow(qwe);
|
|
|
|
|
this.$refs.deptTableRef.setCurrentRow(line);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|