From 83afaa6677d935255c46e374b2469c6caf55182b Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 19 Dec 2023 11:48:13 +0800
Subject: [PATCH] 审批功能

---
 src/views/system/user.vue |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index fe5c521..5544c44 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -208,6 +208,7 @@
 import { mapGetters } from "vuex";
 import website from "@/config/website";
 import { getToken } from "@/util/auth";
+import dept from "@/views/system/dept.vue";
 
 export default {
   data() {
@@ -1024,6 +1025,17 @@
       done();
     },
     handleExport() {
+      var deptId = ""
+
+      if (this.treeDeptId == ""){
+
+        if (this.userInfo.role_name.indexOf("administrator") ==-1){
+          deptId = this.userInfo.dept_id
+        }
+      }else{
+        deptId = this.treeDeptId.id
+      }
+
       this.$confirm("是否导出用户数据?", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -1034,7 +1046,7 @@
             this.website.tokenHeader
           }=${getToken()}&account=${this.search.account}&realName=${
             this.search.realName
-          }`
+          }&deptId=${deptId}`
         );
       });
     },

--
Gitblit v1.9.3