From 9a2526acbc26a34aac5972deba4799b3f3ba4ffb Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Tue, 08 Mar 2022 20:52:08 +0800
Subject: [PATCH] 工作地辖区

---
 src/views/system/user.vue |   59 +++++++++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 49 insertions(+), 10 deletions(-)

diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index 928da7a..3c4b79d 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -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,

--
Gitblit v1.9.3