From fb591d893e7cdeb3efea4678cf99bf14baf6733e Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 03 Sep 2021 17:30:57 +0800
Subject: [PATCH] 营业执照 许可证  可删除  解决单位信息  社保信息的bug

---
 src/views/securityGuard/data.js |  118 ++++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 77 insertions(+), 41 deletions(-)

diff --git a/src/views/securityGuard/data.js b/src/views/securityGuard/data.js
index e3ac2a2..cd92483 100644
--- a/src/views/securityGuard/data.js
+++ b/src/views/securityGuard/data.js
@@ -83,7 +83,7 @@
         prop: "jurisdiction",
         // multiple: true,
         type: "tree",
-        dicUrl: "/api/jurisdiction/lazy-tree?parentId=0",
+        dicUrl: "/api/jurisdiction/lazy-tree",
         props: {
             label: "title",
             value: "id",
@@ -401,47 +401,66 @@
 
 //表现
 export var trackRecordColumn = [{
-    label: "id",
-    prop: "id",
-    hide: true,
-    editDisplay: false,
-    addDisplay: false
-}, {
-    label: '工作态度',
-    prop: "workingattitude",
-    formslot: true,
-}, {
-    label: '工作成效',
-    prop: "achievements",
-    formslot: true,
-}, {
-    label: '表现',
-    prop: "score",
-    type: "select",
-    dicUrl: "/api/blade-system/dict-biz/dictionary?code=scoreType",
-    props: {
-        label: "dictValue",
-        value: "dictKey"
+        label: "id",
+        prop: "id",
+        hide: true,
+        editDisplay: false,
+        addDisplay: false
+    }, {
+        label: '工作态度',
+        prop: "workingattitude",
+        formslot: true,
+    }, {
+        label: '工作成效',
+        prop: "achievements",
+        formslot: true,
+    }, {
+        label: '表现',
+        prop: "score",
+        type: "select",
+        // dicUrl: "/api/blade-system/dict-biz/dictionary?code=scoreType",
+        // props: {
+        //     label: "dictValue",
+        //     value: "dictKey"
+        // },
+        dicData: [{
+                label: "优秀",
+                value: 0
+            },
+            {
+                label: "良好",
+                value: 1
+            },
+            {
+                label: "一般",
+                value: 2
+            },
+            {
+                label: "差",
+                value: 3
+            },
+        ],
+        dataType: "number",
+        slot: true,
+        rules: [{
+            required: true,
+            message: "请选择表现",
+            trigger: "blur"
+        }]
+    }, {
+        label: '时间',
+        type: 'date',
+        format: "yyyy-MM-dd",
+        valueFormat: "yyyy-MM-dd",
+        prop: "time",
+        formslot: true,
     },
-    dataType: "number",
-    slot: true,
-    rules: [{
-        required: true,
-        message: "请选择表现",
-        trigger: "blur"
-    }]
-}, {
-    label: '时间',
-    type: 'date',
-    format: "yyyy-MM-dd",
-    valueFormat: "yyyy-MM-dd",
-    prop: "time",
-    formslot: true,
-}, {
-    label: '服务公司',
-    prop: "departmentName",
-    formslot: true,
-}]
+    // {
+    //     label: '服务公司',
+    //     prop: "departmentName",
+    //     formslot: true,
+    // }
+]
 
 
 export var securityFormPageColumn = [{
@@ -464,12 +483,29 @@
             label: "title",
             value: "id",
         },
+        // hide: true,
         slot: true,
         searchSpan: 5,
         display: false,
         search: true,
         minWidth: 260
     },
+    // {
+    //     label: "所属保安公司",
+    //     searchLabelWidth: "110",
+    //     prop: "deptName",
+    //     // type: "tree",
+    //     // dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+    //     // props: {
+    //     //     label: "title",
+    //     //     value: "id",
+    //     // },
+    //     // slot: true,
+    //     // searchSpan: 5,
+    //     display: false,
+    //     // search: true,
+    //     minWidth: 260
+    // },
     {
         label: "性别",
         prop: "sex",

--
Gitblit v1.9.3