From d16d10d94fddff86bdfd87113e7fd2cebe8b7cd7 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 24 Jan 2024 18:15:06 +0800
Subject: [PATCH] 居民监管样式调整

---
 src/views/place/index.vue |   35 ++++++++++-------------------------
 1 files changed, 10 insertions(+), 25 deletions(-)

diff --git a/src/views/place/index.vue b/src/views/place/index.vue
index ec18589..6116248 100644
--- a/src/views/place/index.vue
+++ b/src/views/place/index.vue
@@ -48,9 +48,7 @@
             </template>
         </avue-crud>
 
-        <el-dialog class="place-info-box" title="场所维护" append-to-body :visible.sync="roleBox" center @close="roleBoxClose">
-            <baseAllInfo></baseAllInfo>
-        </el-dialog>
+        <baseAllInfo ref="BaseAllInfo"></baseAllInfo>
 
         <el-dialog class="place-info-box audit-info-box" title="审核" append-to-body :visible.sync="auditBasePopup"
             width="30%">
@@ -93,9 +91,6 @@
         }
 
         return {
-            curRow: {},
-            roleBox: false,
-
             form: {},
             query: {},
             loading: true,
@@ -146,7 +141,7 @@
                         width: 156,
                         overHidden: true,
                         slot: true,
-                        label: "位置",
+                        label: "地址",
                         prop: "location",
                         type: 'map',
                         dataType: "string",
@@ -155,7 +150,7 @@
                         rules: [
                             {
                                 required: true,
-                                message: "请选择位置",
+                                message: "请选择地址",
                                 trigger: "blur",
                             },
                         ],
@@ -232,7 +227,7 @@
                             label: "name",
                             value: "id",
                         },
-                        cascader: ["gridId"],
+                        cascader: ["gridCode"],
                         rules: [
                             {
                                 required: true,
@@ -261,12 +256,12 @@
                     {
                         hide: true,
                         label: "所属网格",
-                        prop: "gridId",
+                        prop: "gridCode",
                         type: "tree",
                         cell: true,
                         props: {
                             label: "gridName",
-                            value: "id",
+                            value: "gridCode",
                         },
                         dicUrl:
                             "/api/blade-grid/grid/getGridList?communityCode={{neiCode}}",
@@ -284,7 +279,7 @@
                         span: 7,
                         label: "场所标签",
                         prop: "label",
-                        type: "cascader",
+                        type: "select",
                         dicUrl: "/api/blade-category/category/getCategory?level=2",
                         cascader: ["smallLabel"],
                         props: {
@@ -305,7 +300,7 @@
                         label: "",
                         labelWidth: 20,
                         prop: "smallLabel",
-                        type: "cascader",
+                        type: "select",
                         dicUrl: "/api/blade-category/category/getCategory?parentNo={{label}}",
                         props: {
                             label: "categoryName",
@@ -319,7 +314,7 @@
                         span: 12,
                         label: "标签颜色",
                         prop: "color",
-                        type: "cascader",
+                        type: "select",
                         dicData: [
                             {
                                 label: '绿',
@@ -337,11 +332,6 @@
                             value: "value"
                         },
                         hide: true,
-                        rules: [{
-                            required: true,
-                            message: "请输入场所标签",
-                            trigger: "blur",
-                        },],
                     },
 
                     {
@@ -553,13 +543,8 @@
             this.auditBasePopup = true
         },
 
-        roleBoxClose () {
-            this.curRow = {}
-        },
-
         ManageTenants (item) {
-            this.curRow = item
-            this.roleBox = true
+            this.$refs.BaseAllInfo.initOpen(item)
         },
 
         rowSave (row, done, loading) {

--
Gitblit v1.9.3