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 = ''