|
|
|
@ -1,16 +1,15 @@
|
|
|
|
|
<template> |
|
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
|
v-model="visible" |
|
|
|
|
title="筛选企业" |
|
|
|
|
width="1200px" |
|
|
|
|
style="padding: 40px; " |
|
|
|
|
style="padding: 40px" |
|
|
|
|
top="5vh" |
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
append-to-body |
|
|
|
|
> |
|
|
|
|
<template #header > |
|
|
|
|
<span style="font-size: 20px; font-weight: bold;">筛选企业</span> |
|
|
|
|
<template #header> |
|
|
|
|
<span style="font-size: 20px; font-weight: bold">筛选企业</span> |
|
|
|
|
</template> |
|
|
|
|
<div class="enterprise-container"> |
|
|
|
|
<!-- 搜索区域 --> |
|
|
|
@ -24,19 +23,28 @@
|
|
|
|
|
> |
|
|
|
|
<div class="form-container"> |
|
|
|
|
<el-form-item label="" prop="region" class="form-item"> |
|
|
|
|
<el-select v-model="enterprise.queryParams.region" placeholder="请选择所属区域" clearable> |
|
|
|
|
<el-select |
|
|
|
|
v-model="enterprise.queryParams.region" |
|
|
|
|
placeholder="请选择所属区域" |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="dict in getStrDictOptions(DICT_TYPE.ENTERPRISES_AREA)" |
|
|
|
|
:key="dict.value" |
|
|
|
|
:label="dict.label" |
|
|
|
|
:value="dict.value" |
|
|
|
|
|
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="" prop="hy" class="form-item"> |
|
|
|
|
<el-select v-model="enterprise.queryParams.hy" placeholder="请选择行业" clearable filterable multiple> |
|
|
|
|
<el-select |
|
|
|
|
v-model="enterprise.queryParams.hy" |
|
|
|
|
placeholder="请选择行业" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
multiple |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="dict in hyList" |
|
|
|
|
:key="dict.id" |
|
|
|
@ -47,25 +55,33 @@
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="" prop="userId" class="form-item"> |
|
|
|
|
<el-select v-model="enterprise.queryParams.userId" placeholder="请选择执法人员" filterable clearable> |
|
|
|
|
<el-select |
|
|
|
|
v-model="enterprise.queryParams.userId" |
|
|
|
|
placeholder="请选择执法人员" |
|
|
|
|
filterable |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="dict in userList" |
|
|
|
|
:key="dict.id" |
|
|
|
|
:label="dict.deptName +'_'+ dict.realName" |
|
|
|
|
:label="dict.deptName + '_' + dict.realName" |
|
|
|
|
:value="dict.id" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="" prop="enterprisesName" class="form-item"> |
|
|
|
|
<el-input v-model="enterprise.queryParams.enterprisesName" placeholder="请输入企业名称" /> |
|
|
|
|
<el-input |
|
|
|
|
v-model="enterprise.queryParams.enterprisesName" |
|
|
|
|
placeholder="请输入企业名称" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item class="form-item"> |
|
|
|
|
<el-button @click="handleQuery" type="primary" plain> |
|
|
|
|
<Icon icon="ep:search" class="mr-5px" /> 搜索 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button @click="resetQuery" class="mr-10px" type="primary" plain> |
|
|
|
|
<el-button @click="resetQuery" class="mr-10px" type="primary" plain> |
|
|
|
|
<Icon icon="ep:refresh" class="mr-5px" /> 重置 |
|
|
|
|
</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
@ -80,8 +96,8 @@
|
|
|
|
|
@select="handleSelectionChange" |
|
|
|
|
@select-all="selectAll" |
|
|
|
|
style="width: 100%; border: 1px solid #ebeef5" |
|
|
|
|
:cell-style="{ borderBottom: '1px solid #EBEEF5', textAlign: 'left'}" |
|
|
|
|
height="400px" |
|
|
|
|
:cell-style="{ borderBottom: '1px solid #EBEEF5', textAlign: 'left' }" |
|
|
|
|
height="400px" |
|
|
|
|
size="large" |
|
|
|
|
row-key="id" |
|
|
|
|
:header-cell-style="{ |
|
|
|
@ -112,11 +128,11 @@
|
|
|
|
|
}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
<el-table-column property="inviterName" label="执法人员" > |
|
|
|
|
|
|
|
|
|
<el-table-column property="inviterName" label="执法人员"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
{{scope.row.inviterName}} | {{scope.row.inviterNameDept}} |
|
|
|
|
</template> |
|
|
|
|
{{ scope.row.inviterName }} | {{ scope.row.inviterNameDept }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
@ -131,7 +147,7 @@
|
|
|
|
|
size="small" |
|
|
|
|
v-model:current-page="enterprise.queryParams.pageNo" |
|
|
|
|
@update:current-page="getEnterPriseList" |
|
|
|
|
v-model:page-size="enterprise.queryParams.pageSize" |
|
|
|
|
v-model:page-size="enterprise.queryParams.pageSize" |
|
|
|
|
@pagination="getEnterPriseList" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
@ -199,12 +215,10 @@ const confirmSelect = () => {
|
|
|
|
|
async function getEnterPriseList() { |
|
|
|
|
loading.value = true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (enterprise.value.queryParams.hy ) { |
|
|
|
|
if (enterprise.value.queryParams.hy) { |
|
|
|
|
enterprise.value.queryParams.tagList = enterprise.value.queryParams.hy |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
const data = await EnterprisesApi.getEnterpriseByUserId(enterprise.value.queryParams) |
|
|
|
|
enterprise.value.list = data.list |
|
|
|
@ -213,7 +227,6 @@ async function getEnterPriseList() {
|
|
|
|
|
} finally { |
|
|
|
|
loading.value = false |
|
|
|
|
enterprise.value.queryParams.tagList = [] |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 打开弹窗时的初始化 |
|
|
|
@ -221,7 +234,6 @@ const open = async () => {
|
|
|
|
|
// TODO: 初始化数据,例如获取列表等 |
|
|
|
|
visible.value = true |
|
|
|
|
getEnterPriseList() |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 搜索按钮操作 */ |
|
|
|
@ -241,32 +253,27 @@ const resetQuery = () => {
|
|
|
|
|
const hyList: any = ref([]) |
|
|
|
|
|
|
|
|
|
//执法人员列表 |
|
|
|
|
const userList:any = ref() |
|
|
|
|
const userList: any = ref() |
|
|
|
|
|
|
|
|
|
async function init() { |
|
|
|
|
try { |
|
|
|
|
const codeList = 'hy' |
|
|
|
|
const data = await TagLibraryApi.tagLibraryList(codeList) |
|
|
|
|
hyList.value = data[0].children |
|
|
|
|
|
|
|
|
|
} finally { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const userData = await getSimpleUserZGList() |
|
|
|
|
|
|
|
|
|
userList.value = userData |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
init() |
|
|
|
|
}) |
|
|
|
|
defineExpose({ open }) |
|
|
|
|
</script> |
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
|
|
|
|
|
::v-deep(.el-dialog) { |
|
|
|
|
padding: 40px; |
|
|
|
|
} |
|
|
|
@ -275,7 +282,7 @@ defineExpose({ open })
|
|
|
|
|
font-weight: bold !important; |
|
|
|
|
font-size: 20px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.enterprise-container { |
|
|
|
|
// ... 样式保持不变 ... |
|
|
|
|
.search-form { |
|
|
|
|