保安服务企业管理项目备份
guoshilong
2024-01-11 e59097e62344f4a52a520caf01ddac69ae0aa118
src/views/system/userWx.vue
@@ -88,15 +88,15 @@
<!--              @click="handleImport"-->
<!--              >导入-->
<!--            </el-button>-->
<!--            <el-button-->
<!--              type="warning"-->
<!--              size="small"-->
<!--              plain-->
<!--              v-if="userInfo.role_name.includes('admin')"-->
<!--              icon="el-icon-download"-->
<!--              @click="handleExport"-->
<!--              >导出-->
<!--            </el-button>-->
            <el-button
              type="warning"
              size="small"
              plain
              v-if="userInfo.role_name.includes('admin')"
              icon="el-icon-download"
              @click="handleExport"
              >导出
            </el-button>
          </template>
          <template slot-scope="{ row }" slot="tenantName">
            <el-tag>{{ row.tenantName }}</el-tag>
@@ -1032,16 +1032,7 @@
      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
      }
      let deptId = "1734016112398020609"
      this.$confirm("是否导出用户数据?", "提示", {
        confirmButtonText: "确定",
@@ -1049,11 +1040,11 @@
        type: "warning"
      }).then(() => {
        window.open(
          `/api/blade-user/export-user?${
          `/api/userWx/export-user?${
            this.website.tokenHeader
          }=${getToken()}&account=${this.search.account}&realName=${
            this.search.realName
          }&deptId=${deptId}`
          }&deptId=${deptId}&cardid=${this.search.cardid}`
        );
      });
    },