用户添加 公司搜索

This commit is contained in:
浅念
2025-09-09 13:56:43 +08:00
parent 8a0d4fc516
commit 459d306504
+16 -3
View File
@@ -6,6 +6,17 @@
<el-form-item label="关键字:" label-width="70px">
<el-input style="min-width: 120px" v-model="keyword" placeholder="请输入关键字" />
</el-form-item>
<!-- 公司 -->
<el-form-item label="公司:" label-width="50px">
<el-select v-model="company_id" style="min-width: 120px" placeholder="请选择" clearable>
<el-option
v-for="item in companyList"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="状态:" label-width="50px">
<el-select v-model="selectValue" style="min-width: 120px">
<el-option label="全部" value="" />
@@ -401,7 +412,8 @@
import { UserService } from '@/api/usersApi'
const { hasAuth } = useAuth()
const activeName = ref('1')
const selectValue = ref<string[]>([])
const selectValue = ref('1')
const company_id = ref('')
const keyword = ref<string>('')
const loading = ref(false)
const loadingkh = ref(false)
@@ -494,11 +506,12 @@
const tableData = ref<any[]>([])
const tableDatakh = ref<any[]>([])
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 = ''