From 79d9fc857559982b00b68b2d709807bdc4cd286f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 11 Apr 2022 10:58:17 +0800
Subject: [PATCH] minio 地址修改

---
 src/views/dispatchChild/data.js |  167 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 154 insertions(+), 13 deletions(-)

diff --git a/src/views/dispatchChild/data.js b/src/views/dispatchChild/data.js
index 8630d5b..9bcc932 100644
--- a/src/views/dispatchChild/data.js
+++ b/src/views/dispatchChild/data.js
@@ -20,7 +20,7 @@
         }
     },
     {
-        label: "派遣单位名称",
+        label: "派遣企业名称",
         prop: "name",
         span: 11,
         labelWidth: 130,
@@ -50,6 +50,30 @@
     //     // addDisplay: false,
     //     // 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: "联系人",
@@ -97,14 +121,131 @@
     //     // editDisplay: false,
     //     // addDisplay: false
     // },
+    // {
+    //     label: "保安公司",
+    //     prop: "deptId",
+    //     labelWidth: 120,
+    //     searchLabelWidth: 120,
+    //     searchSpan: 4,
+    //     dicUrl:
+    //         "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+    //     props: {
+    //         label: "title",
+    //         value: "id",
+    //     },
+    //     search: true,
+    //     overHidden: true,
+    //     type: "select",
+    //     rules: [
+    //         {
+    //             required: true,
+    //             message: "请输入保安公司",
+    //             trigger: "blur",
+    //         },
+    //     ],
+    // },
     {
-        label: "保安人名称",
-        prop: "name",
+        label: "保安公司",
+        prop: "deptId",
         search: true,
-        searchSpan: 5,
-        searchLabelWidth: 120
-        // overHidden: true
-    }, {
+        labelWidth: 120,
+        type: "select",
+        searchSpan: 4,
+        cascaderItem: ["userIds"],
+        props: {
+            label: "title",
+            value: "id",
+        },
+        width: 180,
+        dicUrl: `/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697`,
+        rules: [
+            {
+                required: true,
+                message: "请输入保安公司",
+                trigger: "blur",
+            },
+        ],
+    },
+
+    {
+        label: "派遣单位",
+        prop: "dispatcherCompany",
+        addDisplay: false,
+        editDisplay: false,
+    },
+    {
+        label: "派遣单位",
+        prop: "dispatcherUnitId",
+        labelWidth: 120,
+        searchLabelWidth: 120,
+        dicUrl: "/api/dispatcherUnit/page-tree",
+        props: {
+            label: "name",
+            value: "id",
+        },
+        hide: true,
+        searchSpan: 4,
+        search: true,
+        overHidden: true,
+        type: "tree",
+        rules: [
+            {
+                required: true,
+                message: "请输入派遣单位",
+                trigger: "blur",
+            },
+        ],
+    },
+
+    {
+        label: "保安员",
+        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",
+            },
+        ],
+    },
+
+    // {
+    //     label: "保安员",
+    //     prop: "name",
+    //     type: "select",
+    //     width: 70,
+    //     labelWidth: 120,
+    //     searchSpan: 3,
+    //     search: true,
+    //     hide: 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: "cardid",
         // search: true,
@@ -122,17 +263,17 @@
         label: "派遣时间",
         prop: "dispatchertime",
         type: "date",
-        format: "yyyy-MM-dd hh:mm:ss",
-        valueFormat: "timestamp",
+        format: "yyyy-MM-dd",
+        valueFormat: "yyyy-MM-dd",
         search: true,
-        searchSpan: 5,
+        searchSpan: 4,
         // overHidden: true
     }, {
         label: "结束时间",
-        prop: "dispatchertime",
+        prop: "endTime",
         type: "date",
-        format: "yyyy-MM-dd hh:mm:ss",
-        valueFormat: "timestamp",
+        format: "yyyy-MM-dd",
+        valueFormat: "yyyy-MM-dd",
         // search: true,
         // searchSpan: 5,
         // overHidden: true

--
Gitblit v1.9.3