修复用户:增加重置时部门树空值保护并优化栅格布局

This commit is contained in:
wangzhibiao committed 2026-09-20 11:34:07 +08:00
1 parent dea668459d
commit f5b6339cf1
1 file changed
+7 -3
+7 -3
View File
@@ -28,7 +28,7 @@
</div>
</el-col>-->
<!--用户数据-->
<el-col :span="20" :xs="24">
<el-col :span="24">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="用户名称" prop="userName">
<el-input
@@ -455,7 +455,9 @@ export default {
watch: {
// 根据名称筛选部门树
deptName(val) {
this.$refs.tree.filter(val);
if (this.$refs.tree) {
this.$refs.tree.filter(val);
}
}
},
created() {
@@ -536,7 +538,9 @@ export default {
this.dateRange = [];
this.resetForm("queryForm");
this.queryParams.deptId = undefined;
this.$refs.tree.setCurrentKey(null);
if (this.$refs.tree) {
this.$refs.tree.setCurrentKey(null);
}
this.handleQuery();
},
// 多选框选中数据