zrj
2024-06-07 b07a3a9dcb89f9785b7b001d2d26b167376d597e
src/views/system/user.vue
@@ -199,11 +199,11 @@
  grant,
  resetPassword,
  unlock,
} from "@/api/system/user";
import { exportBlob } from "@/api/common";
import { getDeptTree, getDeptLazyTree } from "@/api/system/dept";
import { getRoleTree } from "@/api/system/role";
import { getPostList } from "@/api/system/post";
} from "@/ssoapi/system/user";
import { exportBlob } from "@/ssoapi/common";
import { getDeptTree, getDeptLazyTree } from "@/ssoapi/system/dept";
import { getRoleTree } from "@/ssoapi/system/role";
import { getPostList } from "@/ssoapi/system/post";
import { mapGetters } from "vuex";
import website from "@/config/website";
import { getToken } from "@/util/auth";
@@ -334,7 +334,7 @@
            search: true,
            searchLabelWidth: 110,
            display: false,
            dicUrl: "/api/blade-system/client/tree",
            dicUrl: "/ssoapi/blade-system/client/tree",
            type: "select",
            props: {
              label: "clientName",
@@ -350,7 +350,7 @@
          // {
          //   label: "用户平台",
          //   type: "select",
          //   dicUrl: "/api/blade-system/dict/dictionary?code=user_type",
          //   dicUrl: "/ssoapi/blade-system/dict/dictionary?code=user_type",
          //   props: {
          //     label: "dictValue",
          //     value: "dictKey"
@@ -377,7 +377,7 @@
              //   label: "所属租户",
              //   prop: "tenantId",
              //   type: "tree",
              //   dicUrl: "/api/blade-system/tenant/select",
              //   dicUrl: "/ssoapi/blade-system/tenant/select",
              //   props: {
              //     label: "tenantName",
              //     value: "tenantId"
@@ -407,7 +407,7 @@
              {
                label: "客户端",
                prop: "clientIds",
                dicUrl: "/api/blade-system/client/tree",
                dicUrl: "/ssoapi/blade-system/client/tree",
                type: "select",
                props: {
                  label: "clientName",
@@ -424,7 +424,7 @@
              // {
              //   label: "用户平台",
              //   type: "select",
              //   dicUrl: "/api/blade-system/dict/dictionary?code=user_type",
              //   dicUrl: "/ssoapi/blade-system/dict/dictionary?code=user_type",
              //   props: {
              //     label: "dictValue",
              //     value: "dictKey"
@@ -664,7 +664,7 @@
          {
            label: "用户平台",
            type: "select",
            dicUrl: "/api/blade-system/dict/dictionary?code=user_type",
            dicUrl: "/ssoapi/blade-system/dict/dictionary?code=user_type",
            props: {
              label: "dictValue",
              value: "dictKey",
@@ -710,7 +710,7 @@
              res: "data",
            },
            tip: "请上传 .xls,.xlsx 标准格式文件",
            action: "/api/blade-system/user/import-user",
            action: "/ssoapi/blade-system/user/import-user",
          },
          {
            label: "数据覆盖",
@@ -757,7 +757,7 @@
    "excelForm.isCovered"() {
      if (this.excelForm.isCovered !== "") {
        const column = this.findObject(this.excelOption.column, "excelFile");
        column.action = `/api/blade-system/user/import-user?isCovered=${this.excelForm.isCovered}`;
        column.action = `/ssoapi/blade-system/user/import-user?isCovered=${this.excelForm.isCovered}`;
      }
    },
  },
@@ -1006,7 +1006,7 @@
      }).then(() => {
        NProgress.start();
        exportBlob(
          `/api/blade-system/user/export-user?${
          `/ssoapi/blade-system/user/export-user?${
            this.website.tokenHeader
          }=${getToken()}&account=${account}&realName=${realName}&deptId=${deptId}`
        ).then((res) => {
@@ -1017,7 +1017,7 @@
    },
    handleTemplate() {
      exportBlob(
        `/api/blade-system/user/export-template?${
        `/ssoapi/blade-system/user/export-template?${
          this.website.tokenHeader
        }=${getToken()}`
      ).then((res) => {