From 63ad2c3598400370dd7da5534659fd7e768a0a4a Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Mon, 16 May 2022 17:29:46 +0800
Subject: [PATCH] 地址替换

---
 src/views/system/user.vue |   62 +++++++++++++++++++++++++-----
 1 files changed, 51 insertions(+), 11 deletions(-)

diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index ec2096a..3c4b79d 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -38,7 +38,7 @@
         >
           <template slot="menuLeft">
             <el-button
-              type="danger"
+
               size="small"
               plain
               icon="el-icon-delete"
@@ -294,6 +294,7 @@
       option: {
         height: "auto",
         calcHeight: 54,
+        labelWidth:120,
         tip: false,
         searchShow: true,
         searchMenuSpan: 4,
@@ -327,13 +328,30 @@
             display: false,
           },
           {
-            label: "所属辖区",
+            label: "居住地辖区",
             prop: "jurisdiction",
             search: true,
             overHidden: true,
             parent: false,
             type: "tree",
-            searchLabelWidth: 80,
+            searchLabelWidth: 90,
+            searchSpan: 4,
+            dicUrl: "/api/jurisdiction/lazy-tree",
+            props: {
+              label: "title",
+              value: "id"
+            },
+            checkStrictly: true,
+            display: false,
+          },
+          {
+            label: "工作地辖区",
+            prop: "workjurisdiction",
+            search: true,
+            overHidden: true,
+            parent: false,
+            type: "tree",
+            searchLabelWidth: 90,
             searchSpan: 4,
             dicUrl: "/api/jurisdiction/lazy-tree",
             props: {
@@ -349,13 +367,13 @@
             slot: true,
             display: false,
           },
-          {
-            label: "所属部门",
-            prop: "deptName",
-            slot: true,
-            display: false,
-            width: 260,
-          },
+          // {
+          //   label: "所属部门",
+          //   prop: "deptName",
+          //   slot: true,
+          //   display: false,
+          //   width: 260,
+          // },
           {
             label: "行政区",
             prop: "district",
@@ -465,8 +483,28 @@
                 ],
               },
               {
-                label: "所属辖区",
+                label: "居住地辖区",
                 prop: "jurisdiction",
+                overHidden: true,
+                parent: false,
+                type: "tree",
+                dicUrl: "/api/jurisdiction/lazy-tree",
+                props: {
+                  label: "title",
+                  value: "id"
+                },
+                checkStrictly: true,
+                rules: [
+                  {
+                    required: true,
+                    message: "请选择所属辖区",
+                    trigger: "click"
+                  }
+                ]
+              },
+              {
+                label: "工作地辖区",
+                prop: "workjurisdiction",
                 overHidden: true,
                 parent: false,
                 type: "tree",
@@ -641,6 +679,7 @@
                 },
                 checkStrictly: true,
                 slot: true,
+                parent: false,
                 rules: [
                   {
                     required: true,
@@ -942,6 +981,7 @@
           securitynumber: row.securitynumber,
           sex: row.sex,
           district: row.district,
+          stype: 1,
         },
       };
       securitySave(userMap).then(

--
Gitblit v1.9.3