经营主体 企业类型筛选 认证状态筛选
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
@change="page.current=1,getTableData()"/>
|
||||
<template #content>
|
||||
<ai-search-bar>
|
||||
<template #left>
|
||||
<ai-select v-model="select.enterpriseType" @change="typeChange" placeholder="企业类型" :selectList="$dict.getDict('enterpriseType')"></ai-select>
|
||||
<ai-select v-model="select.enterpriseStatus" @change="statusChange" placeholder="认证状态" :selectList="$dict.getDict('userEnterpriseStatus')"></ai-select>
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input size="small" placeholder="搜索企业名称、法人姓名、登录账号" v-model="search.enterpriseName" clearable
|
||||
@change="page.current=1,getTableData()"/>
|
||||
@@ -40,23 +44,24 @@ export default {
|
||||
return {
|
||||
search: {name: ""},
|
||||
page: {current: 1, size: 10, total: 0},
|
||||
select: {enterpriseType: '', enterpriseStatus: ''},
|
||||
tableData: [],
|
||||
colConfigs: [
|
||||
{label: "企业名称", prop: "enterpriseName"},
|
||||
{label: "企业类型", prop: "enterpriseType", dict: "enterpriseType"},
|
||||
{label: "所属地区", prop: "areaName"},
|
||||
{label: "所属区划", prop: "areaName"},
|
||||
{label: "法人姓名", prop: "legalPersonName"},
|
||||
{label: "联系方式", prop: "phone"},
|
||||
{label: "创建时间", prop: "createTime"},
|
||||
{label: "登录账号", prop: "loginAccount"},
|
||||
{slot: "options"}
|
||||
{slot: "options"},
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
this.instance.post("/appportaluserenterprise/list", null, {
|
||||
params: {...this.page, ...this.search, status: 1}
|
||||
params: {...this.page, ...this.search, status: 1,...this.select}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.tableData = res.data?.records
|
||||
@@ -66,9 +71,18 @@ export default {
|
||||
},
|
||||
showDetail(id) {
|
||||
this.$router.push({query: {id}})
|
||||
},
|
||||
typeChange(v) {
|
||||
this.select.enterpriseType = v
|
||||
this.getTableData()
|
||||
},
|
||||
statusChange(v) {
|
||||
this.select.enterpriseStatus = v
|
||||
this.getTableData()
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.dict.load('userEnterpriseStatus')
|
||||
this.getTableData()
|
||||
this.search.areaId = this.user.info.areaId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user