用户添加 公司搜索
This commit is contained in:
@@ -6,6 +6,17 @@
|
|||||||
<el-form-item label="关键字:" label-width="70px">
|
<el-form-item label="关键字:" label-width="70px">
|
||||||
<el-input style="min-width: 120px" v-model="keyword" placeholder="请输入关键字" />
|
<el-input style="min-width: 120px" v-model="keyword" placeholder="请输入关键字" />
|
||||||
</el-form-item>
|
</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-form-item label="状态:" label-width="50px">
|
||||||
<el-select v-model="selectValue" style="min-width: 120px">
|
<el-select v-model="selectValue" style="min-width: 120px">
|
||||||
<el-option label="全部" value="" />
|
<el-option label="全部" value="" />
|
||||||
@@ -401,7 +412,8 @@
|
|||||||
import { UserService } from '@/api/usersApi'
|
import { UserService } from '@/api/usersApi'
|
||||||
const { hasAuth } = useAuth()
|
const { hasAuth } = useAuth()
|
||||||
const activeName = ref('1')
|
const activeName = ref('1')
|
||||||
const selectValue = ref<string[]>([])
|
const selectValue = ref('1')
|
||||||
|
const company_id = ref('')
|
||||||
const keyword = ref<string>('')
|
const keyword = ref<string>('')
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const loadingkh = ref(false)
|
const loadingkh = ref(false)
|
||||||
@@ -494,11 +506,12 @@
|
|||||||
const tableData = ref<any[]>([])
|
const tableData = ref<any[]>([])
|
||||||
const tableDatakh = ref<any[]>([])
|
const tableDatakh = ref<any[]>([])
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
getCompanyList()
|
||||||
getuserList()
|
getuserList()
|
||||||
gettableList()
|
gettableList()
|
||||||
})
|
})
|
||||||
// tabs 切换联动
|
// tabs 切换联动
|
||||||
watch([selectValue, keyword], () => {
|
watch([selectValue, keyword, company_id], () => {
|
||||||
pagination.currentPage = 1
|
pagination.currentPage = 1
|
||||||
gettableList()
|
gettableList()
|
||||||
})
|
})
|
||||||
@@ -513,6 +526,7 @@
|
|||||||
if (selectValue.value) {
|
if (selectValue.value) {
|
||||||
params.status = selectValue.value
|
params.status = selectValue.value
|
||||||
}
|
}
|
||||||
|
params.company_id = company_id.value
|
||||||
if (keyword.value) {
|
if (keyword.value) {
|
||||||
params.keyword = keyword.value
|
params.keyword = keyword.value
|
||||||
}
|
}
|
||||||
@@ -846,7 +860,6 @@
|
|||||||
}
|
}
|
||||||
//离职客户分配
|
//离职客户分配
|
||||||
const leaveUserfn = () => {
|
const leaveUserfn = () => {
|
||||||
getCompanyList()
|
|
||||||
getCompanyUserList()
|
getCompanyUserList()
|
||||||
leaveUserDialogVisible.value = true
|
leaveUserDialogVisible.value = true
|
||||||
leaveUserForm.corp_id = ''
|
leaveUserForm.corp_id = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user