标签丢失

ywj_dev
CTP 2 years ago
parent 33904345ac
commit 05f6ea29d3

@ -3,15 +3,10 @@
<!-- 部门信息相关--> <!-- 部门信息相关-->
<el-card> <el-card>
<el-form <el-form
:inline="true" :inline="true"
:model="filterQuery" :model="filterQuery"
class="query-form" class="query-form"
size="mini" size="mini"
> >
<el-row> <el-row>
<el-form-item class="query-form-item" label="部门名称:"> <el-form-item class="query-form-item" label="部门名称:">
@ -23,13 +18,9 @@
</el-form-item> </el-form-item>
<el-form-item class="query-form-item" label="状态:"> <el-form-item class="query-form-item" label="状态:">
<el-select <el-select
v-model="filterQuery.status" v-model="filterQuery.status"
placeholder="请选择状态:" placeholder="请选择状态:"
clearable clearable
> >
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="禁用" :value="0"></el-option> <el-option label="禁用" :value="0"></el-option>
@ -39,8 +30,8 @@
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset" <el-button type="primary" icon="el-icon-refresh" @click="onReset"
>重置 >重置</el-button
>
<el-button type="primary" @click="onSubmit" icon="el-icon-search" <el-button type="primary" @click="onSubmit" icon="el-icon-search"
>查询 >查询
</el-button> </el-button>
@ -53,7 +44,7 @@
type="primary" type="primary"
icon="el-icon-sort" icon="el-icon-sort"
@click="toggleExpandAll" @click="toggleExpandAll"
>展开/折叠 >展开/折叠
</el-button> </el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
@ -586,9 +577,9 @@ export default {
this.deptOptions = this.handleTree(depList, "code", "pcode"); this.deptOptions = this.handleTree(depList, "code", "pcode");
}); });
console.log(row.id); console.log(row.id);
// this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs.deptTableRef.setCurrentRow(this.list[row.pid]); // this.$refs.deptTableRef.setCurrentRow(this.list[row.pid]);
// }); // });
}, },
/* 获取列表 */ /* 获取列表 */
getList() { getList() {
@ -600,9 +591,9 @@ export default {
// console.log("deplist", depList); // console.log("deplist", depList);
this.list = this.handleTree(depList, "code", "pcode"); this.list = this.handleTree(depList, "code", "pcode");
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.deptTableRef.setCurrentRow(this.list[0]); this.$refs.deptTableRef.setCurrentRow(this.list[0]);
}); });
console.log(this.list); console.log(this.list);
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;

Loading…
Cancel
Save