diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 849f0c7..7b340e5 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -40,15 +40,17 @@ const deptList = ref(); // 部门下拉数据源 const roleList = ref(); // 角色下拉数据源 watch(dateTimeRange, (newVal) => { - queryParams.startTime = newVal[0]; - queryParams.endTime = newVal[1]; + if (newVal) { + queryParams.startTime = newVal[0]; + queryParams.endTime = newVal[1]; + } }); // 弹窗对象 const dialog = reactive({ visible: false, type: "user-form", - width: 1200, + width: 800, title: "", }); @@ -105,6 +107,8 @@ function resetQuery() { dateTimeRange.value = ""; queryParams.pageNum = 1; queryParams.deptId = undefined; + queryParams.startTime = undefined; + queryParams.endTime = undefined; handleQuery(); } @@ -356,7 +360,7 @@ onMounted(() => { v-model="queryParams.status" placeholder="全部" clearable - style="width: 200px" + class="!w-[100px]" > @@ -365,6 +369,7 @@ onMounted(() => { { - +