diff --git a/src/views/yingji/enforcing.vue b/src/views/yingji/enforcing.vue
index 31fd816..54626fe 100644
--- a/src/views/yingji/enforcing.vue
+++ b/src/views/yingji/enforcing.vue
@@ -25,7 +25,7 @@
区划:
{
- console.log(res);
- this.compartment = res.data;
- this.filterComparment(this.compartment);
- //市级
if (this.dept.parentId == 0) {
- this.isNoneDivision = false;
- }
- //区级
- if (this.dept.parentId == 100) {
- this.props = {
- checkStrictly: true,
- value: "county", //匹配响应数据中的id
- label: "institutionName", //匹配响应数据中的name
- children: "children",
- };
- let arr1 = this.newQHList.filter((value) => {
- return value.institutionName == this.dept.deptName;
- });
- this.form.district.push(arr1[0].county);
- this.isNoneDivision = true;
- }
- //镇级
- if (this.dept.parentId == 101) {
- this.props = {
- checkStrictly: true,
- value: "subdistrict", //匹配响应数据中的id
- label: "institutionName", //匹配响应数据中的name
- children: "children",
- };
- let arr1 = this.newQHList.filter((value) => {
- return value.institutionName == this.dept.deptName;
+ res.data.forEach((value, index) => {
+ this.compartment.push({
+ value: value.county,
+ label: value.institutionName,
+ children: [],
+ });
+ if (value.children.length > 0) {
+ value.children.forEach((value1, index1) => {
+ this.compartment[index].children.push({
+ value: value1.subdistrict,
+ label: value1.institutionName,
+ });
+ });
+ }
});
- this.form.district.push(null, arr1[0].subdistrict);
- this.isNoneDivision = true;
}
});
},
- filterComparment(e) {
- e.forEach((value, index) => {
- this.newQHList.push(value);
- if (value.children.length >= 1) {
- this.filterComparment(value.children);
- } else {
- delete value.children;
- return;
- }
- });
- },
-
shutDownDetail() {
this.addShow = false;
},
@@ -416,8 +390,9 @@ export default {
);
},
searchList() {
- console.log(this.form.district);
- this.form.district = this.form.district[this.form.district.length - 1];
+ if (this.district) {
+ this.form.district = this.district[0]
+ }
this.searchBefore = { ...this.searchBefore, ...this.form };
this.getList();
},
diff --git a/src/views/yingji/enterprise.vue b/src/views/yingji/enterprise.vue
index 6df7bcd..c58dc14 100644
--- a/src/views/yingji/enterprise.vue
+++ b/src/views/yingji/enterprise.vue
@@ -5,10 +5,11 @@
@@ -110,6 +111,16 @@
width="180"
header-align="center"
>
+
+
+ {{
+ filterTable(
+ options.major_hazard_level,
+ scope.row.majorHazardLevel
+ )
+ }}
+
+
- {{ scope.row.indusTypeClass!='null' ? scope.row.indusTypeClass : "" }}
+ {{
+ scope.row.indusTypeClass != "null"
+ ? scope.row.indusTypeClass
+ : ""
+ }}
-
+
- {{ scope.row.enterColorChart!='null' ? scope.row.enterColorChart : "" }}
+ {{
+ scope.row.enterColorChart != "null"
+ ? scope.row.enterColorChart
+ : ""
+ }}
@@ -187,7 +206,7 @@