From 79d717cea03673b44df9d803861fffbcc59fc668 Mon Sep 17 00:00:00 2001
From: dhy1725534722 <1725534722@qq.com>
Date: Tue, 26 Sep 2023 16:55:30 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/yingji/enforcing.vue | 87 ++++-----
src/views/yingji/enterprise.vue | 318 +++++++++++++++++++++++++++-----
src/views/yingji/focusEnter.vue | 26 ++-
src/views/yingji/home.vue | 74 ++++++--
vue.config.js | 4 +-
5 files changed, 393 insertions(+), 116 deletions(-)
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 @@