|
|
|
@ -154,13 +154,25 @@
|
|
|
|
|
width="150"
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ componendDistrict("0" + scope.row.subdistrict) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="ecoTypeLarge"
|
|
|
|
|
label="经济类型"
|
|
|
|
|
prop="indusTypeClass"
|
|
|
|
|
label="行业类型"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>
|
|
|
|
|
{{
|
|
|
|
|
scope.row.indusTypeClass != "null"
|
|
|
|
|
? filterTable(optionstwo.category, scope.row.indusTypeClass)
|
|
|
|
|
: ""
|
|
|
|
|
}}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column
|
|
|
|
|
prop="indusTypeClass"
|
|
|
|
@ -175,23 +187,32 @@
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>
|
|
|
|
|
{{
|
|
|
|
|
filterTable(
|
|
|
|
|
optionstwo.major_hazard_level,
|
|
|
|
|
scope.row.majorHazardLevel
|
|
|
|
|
)
|
|
|
|
|
}}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>
|
|
|
|
|
{{
|
|
|
|
|
filterTable(
|
|
|
|
|
optionstwo.major_hazard_level,
|
|
|
|
|
scope.row.majorHazardLevel
|
|
|
|
|
)
|
|
|
|
|
}}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="entprColor"
|
|
|
|
|
prop="enterColorChart"
|
|
|
|
|
label="企业分色"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>
|
|
|
|
|
{{
|
|
|
|
|
scope.row.enterColorChart != "null"
|
|
|
|
|
? filterTable(optionstwo.entpr_color, scope.row.enterColorChart)
|
|
|
|
|
: ""
|
|
|
|
|
}}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="uscCode"
|
|
|
|
@ -219,7 +240,7 @@
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pagination">
|
|
|
|
|
<my-pagination :total="total" @pagesChange="pagesChange">
|
|
|
|
|
<my-pagination :total="total" @pagesChange="pagesChange" ref="mypagination">
|
|
|
|
|
<!-- <div>重点企业数:
|
|
|
|
|
<span :class=" count == unCount ? 'selectedNumber' : 'unselectedNumber'">{{ unCount }}</span>/
|
|
|
|
|
<span class="sum">{{ count }}</span>
|
|
|
|
@ -372,6 +393,23 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 匹配行政区划
|
|
|
|
|
componendDistrict(district){
|
|
|
|
|
let name
|
|
|
|
|
this.listOne.map((item)=>{
|
|
|
|
|
if(item.subdistrict == district) {
|
|
|
|
|
name = item.institutionName
|
|
|
|
|
} else {
|
|
|
|
|
item.children.map((itemTwo)=>{
|
|
|
|
|
if(itemTwo.subdistrict == district) {
|
|
|
|
|
name = item.institutionName + '-' + itemTwo.institutionName
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return name
|
|
|
|
|
},
|
|
|
|
|
// 匹配重大危险源等级
|
|
|
|
|
filterTable(a, b) {
|
|
|
|
|
let arr = [];
|
|
|
|
|
if (!b) return;
|
|
|
|
@ -390,6 +428,9 @@ export default {
|
|
|
|
|
// if (this.form.subdistrict) {
|
|
|
|
|
// this.subdistrict = this.trimTrailingZeros(this.form.subdistrict);
|
|
|
|
|
// }
|
|
|
|
|
this.pages.pageNum = 1;
|
|
|
|
|
this.pages.pageSize = 10;
|
|
|
|
|
this.$refs.mypagination.defaultPages();
|
|
|
|
|
let obj
|
|
|
|
|
// console.log(this.form.subdistrict)
|
|
|
|
|
// 如果是苏州市
|
|
|
|
@ -443,7 +484,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
this.pages.pageNum = 1;
|
|
|
|
|
this.pages.pageSize = 10;
|
|
|
|
|
this.getTable(this.pages);
|
|
|
|
|
this.$refs.mypagination.defaultPages();
|
|
|
|
|
let obj = {...this.pages,...this.form}
|
|
|
|
|
this.getTable(obj);
|
|
|
|
|
},
|
|
|
|
|
// 当前行的checkBox是否可以勾选
|
|
|
|
|
checkSelectable(row) {
|
|
|
|
@ -515,6 +558,7 @@ export default {
|
|
|
|
|
// this.unCount = 0;
|
|
|
|
|
this.pages.pageNum = 1;
|
|
|
|
|
this.pages.pageSize = 10;
|
|
|
|
|
this.$refs.mypagination.defaultPages();
|
|
|
|
|
this.selected = 0;
|
|
|
|
|
// this.unselected = 0;
|
|
|
|
|
// this.count = 0;
|
|
|
|
|