|
|
|
@ -57,7 +57,7 @@
|
|
|
|
|
<div class="select-span">经济类型:</div>
|
|
|
|
|
<el-select v-model="form.economicsType" placeholder="请选择">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in listTwo"
|
|
|
|
|
v-for="item in optionstwo.economic_categories"
|
|
|
|
|
:key="item.dictValue"
|
|
|
|
|
:label="item.dictLabel"
|
|
|
|
|
:value="item.dictValue"
|
|
|
|
@ -69,7 +69,7 @@
|
|
|
|
|
<div class="select-span">行业类型:</div>
|
|
|
|
|
<el-select v-model="form.indusTypeClass" placeholder="请选择">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="(item,index) in listThree"
|
|
|
|
|
v-for="(item,index) in optionstwo.category"
|
|
|
|
|
:key="index"
|
|
|
|
|
:label="item.dictLabel"
|
|
|
|
|
:value="item.dictValue"
|
|
|
|
@ -88,7 +88,7 @@
|
|
|
|
|
<div class="select-span">重大危险源等级:</div>
|
|
|
|
|
<el-select v-model="form.majorHazardLevel" placeholder="请选择">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in listFour"
|
|
|
|
|
v-for="item in optionstwo.major_hazard_level"
|
|
|
|
|
:key="item.dictValue"
|
|
|
|
|
:label="item.dictLabel"
|
|
|
|
|
:value="item.dictValue"
|
|
|
|
@ -100,7 +100,7 @@
|
|
|
|
|
<div class="select-span">企业分色:</div>
|
|
|
|
|
<el-select v-model="form.entprColor" placeholder="请选择">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in listFive"
|
|
|
|
|
v-for="item in optionstwo.entpr_color"
|
|
|
|
|
:key="item.dictValue"
|
|
|
|
|
:label="item.dictLabel"
|
|
|
|
|
:value="item.dictValue"
|
|
|
|
@ -175,6 +175,16 @@
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
header-align="center"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>
|
|
|
|
|
{{
|
|
|
|
|
filterTable(
|
|
|
|
|
optionstwo.major_hazard_level,
|
|
|
|
|
scope.row.majorHazardLevel
|
|
|
|
|
)
|
|
|
|
|
}}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="entprColor"
|
|
|
|
@ -284,11 +294,12 @@ export default {
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
tableData: [],
|
|
|
|
|
listOne: [],
|
|
|
|
|
listTwo: [],
|
|
|
|
|
listThree: [],
|
|
|
|
|
listFour: [],
|
|
|
|
|
listFive: [],
|
|
|
|
|
// listTwo: [],
|
|
|
|
|
// listThree: [],
|
|
|
|
|
// listFour: [],
|
|
|
|
|
// listFive: [],
|
|
|
|
|
options:[],
|
|
|
|
|
optionstwo:[],
|
|
|
|
|
props: {
|
|
|
|
|
value: "county",
|
|
|
|
|
label: "institutionName",
|
|
|
|
@ -361,6 +372,19 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
filterTable(a, b) {
|
|
|
|
|
let arr = [];
|
|
|
|
|
if (!b) return;
|
|
|
|
|
if (a == this.optionstwo.major_hazard_level) {
|
|
|
|
|
arr = a.filter((value) => {
|
|
|
|
|
return "0" + value.dictValue == b;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
arr = a.filter((value) => {
|
|
|
|
|
return value.dictValue == b;
|
|
|
|
|
});
|
|
|
|
|
return arr[0].dictLabel;
|
|
|
|
|
},
|
|
|
|
|
// 搜索
|
|
|
|
|
filtrate() {
|
|
|
|
|
// if (this.form.subdistrict) {
|
|
|
|
@ -437,14 +461,16 @@ export default {
|
|
|
|
|
let count = 0;
|
|
|
|
|
let data = await this.$api.yingji.bPlanEnterpriseList();
|
|
|
|
|
this.selectList = data.data;
|
|
|
|
|
console.log(data)
|
|
|
|
|
// console.log(data)
|
|
|
|
|
data.data.map((item) => {
|
|
|
|
|
item["uscCode"] = item.enterpriseId;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.multipleTable.toggleRowSelection(item, false);
|
|
|
|
|
});
|
|
|
|
|
if (item.isPoint == '1') {
|
|
|
|
|
count += 1;
|
|
|
|
|
if (item.isPoint == 1 && this.dept.ancestors.split(',').length == 3) {
|
|
|
|
|
if(item.district == this.form.subdistrict){
|
|
|
|
|
count += 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// console.log(count,'count')
|
|
|
|
@ -578,6 +604,8 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.dept.ancestors.split(',').length == 3) {
|
|
|
|
|
// console.log(this.unselected,'this.unselected')
|
|
|
|
|
// console.log(keyCount,'keyCount')
|
|
|
|
|
if (this.count == this.unselected + keyCount) {
|
|
|
|
|
this.nextStep = true;
|
|
|
|
|
this.nextText = "发布计划";
|
|
|
|
@ -615,7 +643,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
if (this.isamend) {
|
|
|
|
|
obj = { ...obj, id: this.amendId };
|
|
|
|
|
data = await this.$api.yingji.bPlanManage("put", obj);
|
|
|
|
|
data = await this.$api.yingji.bPlanEnterprise("put", obj);
|
|
|
|
|
if (data.code == 200) {
|
|
|
|
|
downloadLoadingInstance.close();
|
|
|
|
|
this.$message({
|
|
|
|
@ -690,18 +718,20 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
async mounted() {
|
|
|
|
|
let listTwo = await this.$api.yingji.dictdata({
|
|
|
|
|
list: "economic_categories",
|
|
|
|
|
}); // 经济类型大类
|
|
|
|
|
let listThree = await this.$api.yingji.dictdata({ list: "category" }); // 行业类型
|
|
|
|
|
let listFour = await this.$api.yingji.dictdata({
|
|
|
|
|
list: "major_hazard_level",
|
|
|
|
|
}); // 重大危险源等级
|
|
|
|
|
let listFive = await this.$api.yingji.dictdata({ list: "entpr_color" }); // 企业分色
|
|
|
|
|
this.listTwo = listTwo.data.economic_categories;
|
|
|
|
|
this.listThree = listThree.data.category;
|
|
|
|
|
this.listFour = listFour.data.major_hazard_level;
|
|
|
|
|
this.listFive = listFive.data.entpr_color;
|
|
|
|
|
// let listTwo = await this.$api.yingji.dictdata({
|
|
|
|
|
// list: "economic_categories",
|
|
|
|
|
// }); // 经济类型大类
|
|
|
|
|
// let listThree = await this.$api.yingji.dictdata({ list: "category" }); // 行业类型
|
|
|
|
|
// let listFour = await this.$api.yingji.dictdata({
|
|
|
|
|
// list: "major_hazard_level",
|
|
|
|
|
// }); // 重大危险源等级
|
|
|
|
|
// let listFive = await this.$api.yingji.dictdata({ list: "entpr_color" }); // 企业分色
|
|
|
|
|
let dictdata = await this.$api.yingji.dictdata({ list: "economic_categories,category,major_hazard_level,entpr_color",})
|
|
|
|
|
this.optionstwo = dictdata.data;
|
|
|
|
|
// this.listTwo = listTwo.data.economic_categories;
|
|
|
|
|
// this.listThree = listThree.data.category;
|
|
|
|
|
// this.listFour = listFour.data.major_hazard_level;
|
|
|
|
|
// this.listFive = listFive.data.entpr_color;
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|