吕天方 1 year ago
commit 104447a6d1

@ -75,7 +75,7 @@
</el-select> </el-select>
</div> </div>
<div class="input-input" style="margin-left: 10px;"> <div class="input-input" style="margin-left: 10px">
<div class="select-span">统一社会信用代码:</div> <div class="select-span">统一社会信用代码:</div>
<el-input <el-input
v-model="form.uscCode" v-model="form.uscCode"
@ -129,7 +129,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
{{ {{
filterTable( filterTable1(
dict.type.major_hazard_level, dict.type.major_hazard_level,
scope.row.majorHazardLevel scope.row.majorHazardLevel
) )
@ -147,8 +147,8 @@
<div> <div>
{{ {{
scope.row.indusTypeClass != "null" scope.row.indusTypeClass != "null"
? filterTable(dict.type.category, scope.row.indusTypeClass) ? filterTable1(dict.type.category, scope.row.indusTypeClass)
: "" : "/"
}} }}
</div> </div>
</template> </template>
@ -616,9 +616,22 @@ export default {
quhuadizhi(district) { quhuadizhi(district) {
this.option = district; this.option = district;
}, },
filterTable(a, b) { filterTable1(datas, value) {
if (!b) return; if (!value) {
return this.selectDictLabel(a, b); return "/";
}
var actions = [];
datas.forEach((value1, index1) => {
actions.push(value1.raw);
});
let newarr = actions.filter((value2) => {
return value2.dictValue == value;
});
if (newarr.length > 0) {
return newarr[0].dictLabel;
} else {
return "/";
}
}, },
shutDownDetail() { shutDownDetail() {
this.addShow = false; this.addShow = false;
@ -638,28 +651,28 @@ export default {
this.listDes.forEach((value1, index1) => { this.listDes.forEach((value1, index1) => {
// //
if (value1.eng == "majorHazardLevel") { if (value1.eng == "majorHazardLevel") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.major_hazard_level, this.dict.type.major_hazard_level,
value1.value value1.value
); );
} }
// //
if (value1.eng == "ecoTypeLarge") { if (value1.eng == "ecoTypeLarge") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.economic_categories, this.dict.type.economic_categories,
value1.value value1.value
); );
} }
// //
if (value1.eng == "ecoTypeSmall") { if (value1.eng == "ecoTypeSmall") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.economic_subcategory, this.dict.type.economic_subcategory,
value1.value value1.value
); );
} }
// //
if (value1.eng == "specialGovernance") { if (value1.eng == "specialGovernance") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.special_governance, this.dict.type.special_governance,
value1.value value1.value
); );
@ -667,21 +680,21 @@ export default {
// //
// //
if (value1.eng == "operatingStatus") { if (value1.eng == "operatingStatus") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.enterprise_status, this.dict.type.enterprise_status,
value1.value value1.value
); );
} }
// //
if (value1.eng == "standLevel") { if (value1.eng == "standLevel") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.standardization_level, this.dict.type.standardization_level,
value1.value value1.value
); );
} }
// //
if (value1.eng == "safetySupervisionLevel") { if (value1.eng == "safetySupervisionLevel") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.safety_level, this.dict.type.safety_level,
value1.value value1.value
); );
@ -691,21 +704,21 @@ export default {
// //
// //
if (value1.eng == "entprColor") { if (value1.eng == "entprColor") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.entpr_color, this.dict.type.entpr_color,
value1.value value1.value
); );
} }
// //
if (value1.eng == "indusTypeClass") { if (value1.eng == "indusTypeClass") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.category, this.dict.type.category,
value1.value value1.value
); );
} }
// //
if (value1.eng == "isPoint") { if (value1.eng == "isPoint") {
this.listDes[index1].value = this.filterTable( this.listDes[index1].value = this.filterTable1(
this.dict.type.is_point, this.dict.type.is_point,
value1.value value1.value
); );

Loading…
Cancel
Save