|
|
@ -1,16 +1,16 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<el-form :inline="true" label-width="80px" :model="queryForm"> |
|
|
|
<el-form :inline="true" label-width="80px" :model="queryParams"> |
|
|
|
<el-form-item label="企业名称"> |
|
|
|
<el-input |
|
|
|
class="name-inp-search" |
|
|
|
placeholder="请输入企业名称" |
|
|
|
v-model="queryForm.enterpriseName" |
|
|
|
v-model="queryParams.data.enterpriseName" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所在区域"> |
|
|
|
<el-select |
|
|
|
v-model="queryForm.adcd" |
|
|
|
v-model="queryParams.data.adcd" |
|
|
|
clearable |
|
|
|
placeholder="请选择所有区域" |
|
|
|
> |
|
|
@ -25,7 +25,7 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="企业类型"> |
|
|
|
<el-select |
|
|
|
v-model="queryForm.qualificationCategory" |
|
|
|
v-model="queryParams.data.enterpriseType" |
|
|
|
clearable |
|
|
|
placeholder="请选择企业类型" |
|
|
|
> |
|
|
@ -58,7 +58,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="qualificationCategory" |
|
|
|
prop="enterpriseType" |
|
|
|
label="企业类型" |
|
|
|
width="180" |
|
|
|
align="center" |
|
|
@ -68,7 +68,7 @@ |
|
|
|
v-for="(cateTtem, index) in categoryList" |
|
|
|
:key="(cateTtem, index)" |
|
|
|
> |
|
|
|
<div v-if="cateTtem.dictValue == scope.row.qualificationCategory"> |
|
|
|
<div v-if="cateTtem.dictValue == scope.row.enterpriseType"> |
|
|
|
{{ cateTtem.dictLabel }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -82,7 +82,7 @@ |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="qualificationCategory" |
|
|
|
prop="enterpriseType" |
|
|
|
label="资质类别" |
|
|
|
width="180" |
|
|
|
align="center" |
|
|
@ -92,7 +92,7 @@ |
|
|
|
v-for="(cateTtem, index) in categoryList" |
|
|
|
:key="(cateTtem, index)" |
|
|
|
> |
|
|
|
<div v-if="cateTtem.dictValue == scope.row.qualificationCategory"> |
|
|
|
<div v-if="cateTtem.dictValue == scope.row.enterpriseType"> |
|
|
|
{{ cateTtem.dictLabel.split("资质")[0] }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -106,15 +106,15 @@ |
|
|
|
</el-table> |
|
|
|
<pagination |
|
|
|
:total="total" |
|
|
|
:page.sync="queryForm.pageNum" |
|
|
|
:limit.sync="queryForm.pageSize" |
|
|
|
:page.sync="queryParams.pageNum" |
|
|
|
:limit.sync="queryParams.pageSize" |
|
|
|
:pageSizes="pageSizes" |
|
|
|
@pagination="getResult" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { getDisclosure } from "@/api/home"; |
|
|
|
import { getDisclosure, listEnterpriseInfo } from "@/api/home"; |
|
|
|
import { getGuangDong } from "@/api/creditStatistics"; |
|
|
|
export default { |
|
|
|
data() { |
|
|
@ -137,7 +137,25 @@ export default { |
|
|
|
}, |
|
|
|
tableData: [], |
|
|
|
areaList: [], |
|
|
|
categoryList: [] |
|
|
|
categoryList: [], |
|
|
|
// 查询参数 |
|
|
|
queryParams: { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
ids: null, |
|
|
|
data: { |
|
|
|
enterpriseName: null, |
|
|
|
adcd: null, |
|
|
|
enterpriseType: null |
|
|
|
}, |
|
|
|
// 排序方式 |
|
|
|
params: { |
|
|
|
// 按哪个字段排序 |
|
|
|
orderBy: "create_time", |
|
|
|
// desc降序,升序asc |
|
|
|
sort: "desc" |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
@ -157,12 +175,12 @@ export default { |
|
|
|
getResult() { |
|
|
|
this.loading = true; |
|
|
|
|
|
|
|
getDisclosure({ ...this.queryForm }).then(res => { |
|
|
|
listEnterpriseInfo({ ...this.queryParams }).then(res => { |
|
|
|
this.loading = false; |
|
|
|
this.tableData = []; |
|
|
|
this.tableData = res.data.data.records; |
|
|
|
this.tableData = res.data.records; |
|
|
|
console.log(6666, this.tableData); |
|
|
|
this.total = res.data.data.total; |
|
|
|
this.total = res.data.total; |
|
|
|
}); |
|
|
|
}, |
|
|
|
getArea() { |
|
|
@ -185,13 +203,31 @@ export default { |
|
|
|
return adcdText; |
|
|
|
}, |
|
|
|
resetForm() { |
|
|
|
this.queryForm = { |
|
|
|
groupId: "2", |
|
|
|
qualificationCategory: "", |
|
|
|
enterpriseName: "", |
|
|
|
adcd: "", |
|
|
|
// this.queryForm = { |
|
|
|
// groupId: "2", |
|
|
|
// qualificationCategory: "", |
|
|
|
// enterpriseName: "", |
|
|
|
// adcd: "", |
|
|
|
// pageNum: 1, |
|
|
|
// pageSize: 10 |
|
|
|
// }; |
|
|
|
// 查询参数 |
|
|
|
this.queryParams = { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10 |
|
|
|
pageSize: 10, |
|
|
|
ids: null, |
|
|
|
data: { |
|
|
|
enterpriseName: null, |
|
|
|
adcd: null, |
|
|
|
enterpriseType: null |
|
|
|
}, |
|
|
|
// 排序方式 |
|
|
|
params: { |
|
|
|
// 按哪个字段排序 |
|
|
|
orderBy: "create_time", |
|
|
|
// desc降序,升序asc |
|
|
|
sort: "desc" |
|
|
|
} |
|
|
|
}; |
|
|
|
this.getResult(); |
|
|
|
}, |
|
|
@ -199,7 +235,8 @@ export default { |
|
|
|
this.$router.push({ |
|
|
|
path: "/enterpriseInDetail", |
|
|
|
query: { |
|
|
|
enterpriseId: row.enterpriseId |
|
|
|
// enterpriseId: row.enterpriseId |
|
|
|
enterpriseId: row.id |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|