From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化

---
 src/views/publicSecurity/SchoolCheckManage.vue |   55 ++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 38 insertions(+), 17 deletions(-)

diff --git a/src/views/publicSecurity/SchoolCheckManage.vue b/src/views/publicSecurity/SchoolCheckManage.vue
index d9f07d5..253bea5 100644
--- a/src/views/publicSecurity/SchoolCheckManage.vue
+++ b/src/views/publicSecurity/SchoolCheckManage.vue
@@ -97,7 +97,7 @@
               整改后图片
             </div>
             <div class="yh-pic-list">
-              <div class="pic-item" v-for="pic in item.rectificationImageUrlsList">
+              <div class="pic-item" v-for="(pic, index) in item.rectificationImageUrlsList" :key='index'>
                 <el-image style="width: 100px; height: 100px" :src="pic" :fit="fit"></el-image>
               </div>
             </div>
@@ -254,26 +254,47 @@
               searchLabelWidth: 46,
               overHidden: true,
               align: 'center'
-            }, {
-              label: "所属街道",
-              prop: "streetName",
-              span: 24,
-              row: true,
-              searchSpan: 4,
-              search: true,
-              align: 'center'
             },
             {
+              label: "所属街道",
+              parent: false,
+              search: true,
+              searchSpan: 4,
+              prop: "streetName",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "name"
+              },
+              rules: [{
+                required: true,
+                message: "请选择所属街道",
+                trigger: "blur",
+              }, ],
+            },
+
+            {
+              parent: false,
               label: "所属社区",
               prop: "communityName",
-              span: 24,
-              row: true,
-              searchSpan: 4,
               search: true,
-              width: 160,
-              overHidden: true,
-              align: 'center'
+              searchSpan: 4,
+              width: 150,
+              type: "tree",
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
+              rules: [{
+                required: true,
+                message: "请选择所属社区",
+                trigger: "blur",
+              }, ],
             },
+
             {
               label: "所属网格",
               prop: "gridName",
@@ -758,7 +779,7 @@
             type: "warning",
           })
           .then(() => {
-            return remove(this.ids)
+            // return remove(this.ids)
           })
           .then(() => {
             this.onLoad(this.page)
@@ -808,7 +829,7 @@
         this.onLoad(this.page, this.query)
       },
       onLoad(page, params = {}) {
-        const {} = this.query
+        // const {} = this.query
         let values = {
           ...params,
         }

--
Gitblit v1.9.3