From 5686f3690a7501edf250dd9167bf44f2f5f01a3b Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 13 Sep 2021 09:11:26 +0800
Subject: [PATCH] 去除打印,派遣修改

---
 src/views/securityAnalysis/child/dispatch.vue |   49 +++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 43 insertions(+), 6 deletions(-)

diff --git a/src/views/securityAnalysis/child/dispatch.vue b/src/views/securityAnalysis/child/dispatch.vue
index 5f37d1a..727d05c 100644
--- a/src/views/securityAnalysis/child/dispatch.vue
+++ b/src/views/securityAnalysis/child/dispatch.vue
@@ -75,15 +75,13 @@
             // span: 12,
             labelWidth: 118,
           },
-
           {
             label: "保安公司",
-            prop: "deptId",
+            prop: "deptName",
             type: "tree",
             overHidden: true,
             dicUrl:
-              "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
-              jurisdiction,
+              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
             props: {
               label: "title",
               value: "id",
@@ -110,6 +108,41 @@
             // hide: true,
             // span: 11,
           },
+          //备用  不删 ↑针对没有depid的公司名字转换
+          // {
+          //   label: "保安公司",
+          //   prop: "deptId",
+          //   type: "tree",
+          //   overHidden: true,
+          //   dicUrl:
+          //     "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
+          //     jurisdiction,
+          //   props: {
+          //     label: "title",
+          //     value: "id",
+          //   },
+          //   // hide: true,
+          //   // hide: !website.tenantMode,
+          //   // addDisplay: website.tenantMode,
+          //   // editDisplay: website.tenantMode,
+          //   // viewDisplay: website.tenantMode,
+          //   rules: [
+          //     {
+          //       required: true,
+          //       message: "请选择保安公司",
+          //       trigger: "click",
+          //     },
+          //   ],
+          //   labelWidth: 118,
+          //   width: 230,
+          //   searchLabelWidth: 80,
+          //   search: true,
+          //   searchSpan: 4,
+          //   // editDisplay: false,
+          //   // addDisplay: false,
+          //   // hide: true,
+          //   // span: 11,
+          // },
           {
             label: "保安服务类型",
             prop: "serveType",
@@ -274,7 +307,7 @@
       if (this.card.jurisdiction == 1123598813738675201) {
         this.card.jurisdiction = "";
       }
-      console.log(this.query1);
+      // console.log(this.query1);
       const releaseTimeRange = this.query1.releaseTimeRange;
       if (releaseTimeRange) {
         params = {
@@ -307,6 +340,10 @@
       this.getPractitionersPageInfo(this.page1, this.query1);
     },
     searchChange(params, done) {
+      if (params.deptName) {
+        params.deptId = params.deptName;
+      }
+      delete params.deptName;
       this.query1 = params;
       this.page1.currentPage = 1;
       this.refreshChange();
@@ -316,7 +353,7 @@
       this.query1 = {};
       this.page1.currentPage = 1;
       this.refreshChange();
-      console.log(212);
+      // console.log(212);
     },
   },
 };

--
Gitblit v1.9.3