From c4e67a8942e514b65ab41bb19781d50576c15725 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 24 Sep 2021 19:56:52 +0800
Subject: [PATCH] 用户

---
 src/views/securityUnitChild/social.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/views/securityUnitChild/social.vue b/src/views/securityUnitChild/social.vue
index 6f846b5..d13c4a8 100644
--- a/src/views/securityUnitChild/social.vue
+++ b/src/views/securityUnitChild/social.vue
@@ -76,8 +76,12 @@
   props: ["deptid"],
   data() {
     var deptid = this.deptid;
+    if (this.deptid == undefined) {
+      // deptid = this.userInfo
+      // console.log(this.$store.getters.userInfo.dept_id);
+      deptid = this.$store.getters.userInfo.dept_id;
+    }
     return {
-      do: 0,
       form: { cardid: "" },
 
       query: {},
@@ -325,7 +329,7 @@
               res: "data",
             },
             tip: "请上传 .xls,.xlsx 标准格式文件",
-            action: "/api/social/import-user",
+            action: "/api/social/import-user?deptid=" + deptid,
           },
           // {
           //   label: "数据覆盖",
@@ -397,8 +401,7 @@
   },
   methods: {
     changes(val) {
-      this.do++;
-      if (this.do >= 2) {
+      if (val.value != "") {
         getuseList(val.value).then((res) => {
           // console.log(res);
           var d = res.data.data;

--
Gitblit v1.9.3