保安服务企业管理项目备份
guoshilong
2023-12-19 83afaa6677d935255c46e374b2469c6caf55182b
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}`
        );
      });
    },