From c28a721940990abe70318eef514163067abae042 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Mon, 31 Jul 2023 17:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/UserManage.vue | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/pages/UserManage.vue b/src/pages/UserManage.vue index 63e02f8..1a38770 100644 --- a/src/pages/UserManage.vue +++ b/src/pages/UserManage.vue @@ -16,14 +16,12 @@ @request="onRequest" > @@ -123,7 +121,7 @@ const operateDisabled = ref(false); const tableRef = ref(); const rows = reactive([]); const filter = reactive({ - roleId: '选择角色', + name: '', }); const loading = ref(false); const pagination = ref({ @@ -141,7 +139,7 @@ async function onRequest(props: any) { loading.value = true; try { let response = await pageQuery({ - roleId: (userRoleSearch as any)[filter.roleId], + name: filter.name, current: page, size: rowsPerPage, }); @@ -165,7 +163,6 @@ const userRole = ref(''); const userId = ref(0); const options = ['管理员', '调度员', '管理员/调度员']; -const optionsSearch = ['所有角色', '管理员', '调度员']; const userRoleAll = { 管理员: [7], @@ -173,11 +170,6 @@ const userRoleAll = { '管理员/调度员': [7, 8], }; -enum userRoleSearch { - '管理员' = 7, - '调度员' = 8, -} - //编辑用户 function edieUserData(row: any) { userName.value = row.name;