From 459d306504f497f69cefdcd31774ba012bb7a315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Tue, 9 Sep 2025 13:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=B7=BB=E5=8A=A0=20?= =?UTF-8?q?=E5=85=AC=E5=8F=B8=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/admin/user/index.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/admin/user/index.vue b/src/views/admin/user/index.vue index 9350ca1..ec5a5fc 100644 --- a/src/views/admin/user/index.vue +++ b/src/views/admin/user/index.vue @@ -6,6 +6,17 @@ + + + + + + @@ -401,7 +412,8 @@ import { UserService } from '@/api/usersApi' const { hasAuth } = useAuth() const activeName = ref('1') - const selectValue = ref([]) + const selectValue = ref('1') + const company_id = ref('') const keyword = ref('') const loading = ref(false) const loadingkh = ref(false) @@ -494,11 +506,12 @@ const tableData = ref([]) const tableDatakh = ref([]) onMounted(() => { + getCompanyList() getuserList() gettableList() }) // tabs 切换联动 - watch([selectValue, keyword], () => { + watch([selectValue, keyword, company_id], () => { pagination.currentPage = 1 gettableList() }) @@ -513,6 +526,7 @@ if (selectValue.value) { params.status = selectValue.value } + params.company_id = company_id.value if (keyword.value) { params.keyword = keyword.value } @@ -846,7 +860,6 @@ } //离职客户分配 const leaveUserfn = () => { - getCompanyList() getCompanyUserList() leaveUserDialogVisible.value = true leaveUserForm.corp_id = ''