From 79dce3741b13a1241f393ea2e6605869488bff0e Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 24 Aug 2021 17:18:55 +0800
Subject: [PATCH] 保安公司管理单独权限  设置公司详情单页

---
 src/views/dispatchChild/data.js |   76 +++++++++++++++++++++++---------------
 1 files changed, 46 insertions(+), 30 deletions(-)

diff --git a/src/views/dispatchChild/data.js b/src/views/dispatchChild/data.js
index 853acde..a40c7ef 100644
--- a/src/views/dispatchChild/data.js
+++ b/src/views/dispatchChild/data.js
@@ -51,30 +51,30 @@
     //     // hide: true,
     //     disabled: true,
     // },
-    {
-        label: "保安员",
-        prop: "name",
-        type: "tree",
-        // width: 70,
-        labelWidth: 120,
-        searchSpan: 3,
-        multiple: true,
-        search: true,
-        // cell: true,
-        // hide: true,
-        props: {
-            label: "realName",
-            value: "id",
-        },
-        dicUrl: `/api/blade-user/page-security-units?deptId={{key}}`,
-        rules: [
-            {
-                required: true,
-                message: "请选择保安",
-                trigger: "blur",
-            },
-        ],
-    },
+    // {
+    //     label: "保安员",
+    //     prop: "name",
+    //     type: "tree",
+    //     // width: 70,
+    //     labelWidth: 120,
+    //     searchSpan: 3,
+    //     multiple: true,
+    //     search: true,
+    //     // cell: true,
+    //     // hide: true,
+    //     props: {
+    //         label: "realName",
+    //         value: "id",
+    //     },
+    //     dicUrl: `/api/blade-user/page-security-units?deptId={{key}}`,
+    //     rules: [
+    //         {
+    //             required: true,
+    //             message: "请选择保安",
+    //             trigger: "blur",
+    //         },
+    //     ],
+    // },
     {
         label: "联系人",
         prop: "linkman",
@@ -151,7 +151,7 @@
         labelWidth: 120,
         type: "select",
         searchSpan: 4,
-        cascaderItem: ["name"],
+        cascaderItem: ["userIds"],
         props: {
             label: "title",
             value: "id",
@@ -166,6 +166,7 @@
             },
         ],
     },
+
     {
         label: "派遣单位",
         prop: "dispatcherCompany",
@@ -198,11 +199,26 @@
 
     {
         label: "保安员",
-        prop: "name",
-        addDisplay: false,
-        editDisplay: false,
-        // .
-        // overHidden: true
+        prop: "userIds",
+        type: "select",
+        width: 70,
+        labelWidth: 120,
+        searchSpan: 3,
+        search: true,
+        // cell: true,
+        // hide: true,
+        props: {
+            label: "realName",
+            value: "id",
+        },
+        dicUrl: `/api/blade-user/page-security-units?deptId={{key}}`,
+        rules: [
+            {
+                required: true,
+                message: "请选择保安",
+                trigger: "blur",
+            },
+        ],
     },
 
     // {

--
Gitblit v1.9.3