保安服务企业管理项目备份
guoshilong
2024-01-11 e59097e62344f4a52a520caf01ddac69ae0aa118
小程序导出,添加制证时间
2 files modified
36 ■■■■■ changed files
src/views/accreditationRecords/accreditationRecordsPaper.vue 3 ●●●● patch | view | raw | blame | history
src/views/system/userWx.vue 33 ●●●●● patch | view | raw | blame | history
src/views/accreditationRecords/accreditationRecordsPaper.vue
@@ -1231,7 +1231,8 @@
          securityNumber: this.questionBankSearch.securityNumber,
          startTime: this.questionBankSearch.startTime,
          endTime: this.questionBankSearch.endTime,
          isAvatar: this.questionBankSearch.isAvatar
          isAvatar: this.questionBankSearch.isAvatar,
          userPaperTime:this.questionBankSearch.userPaperTime
        };
        //导出
        if (this.userInfo.role_name == "保安公司管理员") {
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}`
        );
      });
    },