From 2c461eb9efb980d55dfd7407ee70088fc90a4a7a Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Tue, 08 Feb 2022 14:24:31 +0800
Subject: [PATCH] 保安员详情修改

---
 src/views/dispatch/dispatch.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/dispatch/dispatch.vue b/src/views/dispatch/dispatch.vue
index b6364ff..25e3d52 100644
--- a/src/views/dispatch/dispatch.vue
+++ b/src/views/dispatch/dispatch.vue
@@ -108,13 +108,10 @@
   adddata,
   update,
   remove,
-  getdata1,
-  adddata1,
-  update1,
-  remove1,
 } from "@/api/dispatch/dispatch";
 import { mapGetters } from "vuex";
 import { mapState } from "vuex";
+import { getToken } from "@/util/auth";
 export default {
   data() {
     var phones = (rule, value, callback) => {
@@ -244,7 +241,7 @@
             label: "派遣单位类型",
             prop: "district",
             type: "select",
-            search: true,
+            search: false,
             dicUrl: "/api/blade-system/dict-biz/dictionary?code=dispatcherUnitType",
             props: {
               label: "dictValue",
@@ -731,6 +728,9 @@
           if (this.data[k].num == -1) {
             this.data[k].num = null;
           }
+          if (this.data[k].district == -1) {
+            this.data[k].district = null;
+          }
         }
         window.localStorage.setItem("paqiandataS", JSON.stringify(this.data));
         this.loading = false;
@@ -738,7 +738,10 @@
     },
 
     handleTemplate() {
-      window.open(`/api/dispatcherUnit/export-template`);
+      window.open(`/api/dispatcherUnit/export-template?${
+            this.website.tokenHeader
+          }=${getToken()}&`
+        );
     },
     handleImport() {
       this.excelBox = true;

--
Gitblit v1.9.3