@das-fed/utils 6.4.0-dev.53 → 6.4.0-dev.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/index.js +39 -39
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +49 -49
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +49 -49
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +49 -49
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +49 -49
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +49 -49
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +49 -49
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +39 -39
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +49 -49
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +39 -39
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +49 -49
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +49 -49
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +49 -49
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +49 -49
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +49 -49
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +54 -54
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +49 -49
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +49 -49
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +49 -49
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +49 -49
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +49 -49
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +49 -49
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +49 -49
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +49 -49
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +49 -49
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
package/api-services/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setI18nRule as zr, t as
|
|
1
|
+
import { setI18nRule as zr, t as C } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as zn } from "@das-fed/utils/curring-http";
|
|
3
3
|
import { getToken as qn, getQuery as Hn, login as Wn, getTokenParams as Kn, real_uri as Gn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import Ze from "dayjs";
|
|
@@ -2858,7 +2858,7 @@ var Tn = Ae, Oe = xi, is = ji, ss = De, Ue = Tn("%WeakMap%", !0), Me = Tn("%Map%
|
|
|
2858
2858
|
}
|
|
2859
2859
|
var d = i.join(r.delimiter), g = r.addQueryPrefix === !0 ? "?" : "";
|
|
2860
2860
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? g += "utf8=%26%2310003%3B&" : g += "utf8=%E2%9C%93&"), d.length > 0 ? g + d : "";
|
|
2861
|
-
}, we = $n, Ut = Object.prototype.hasOwnProperty, Us = Array.isArray,
|
|
2861
|
+
}, we = $n, Ut = Object.prototype.hasOwnProperty, Us = Array.isArray, N = {
|
|
2862
2862
|
allowDots: !1,
|
|
2863
2863
|
allowEmptyArrays: !1,
|
|
2864
2864
|
allowPrototypes: !1,
|
|
@@ -2895,10 +2895,10 @@ var Tn = Ae, Oe = xi, is = ji, ss = De, Ue = Tn("%WeakMap%", !0), Me = Tn("%Map%
|
|
|
2895
2895
|
for (u = 0; u < i.length; ++u)
|
|
2896
2896
|
if (u !== s) {
|
|
2897
2897
|
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, g, y;
|
|
2898
|
-
d === -1 ? (g = n.decoder(c,
|
|
2898
|
+
d === -1 ? (g = n.decoder(c, N.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (g = n.decoder(c.slice(0, d), N.decoder, l, "key"), y = we.maybeMap(
|
|
2899
2899
|
Dn(c.slice(d + 1), n),
|
|
2900
2900
|
function(m) {
|
|
2901
|
-
return n.decoder(m,
|
|
2901
|
+
return n.decoder(m, N.decoder, l, "value");
|
|
2902
2902
|
}
|
|
2903
2903
|
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = Ms(y)), c.indexOf("[]=") > -1 && (y = Us(y) ? [y] : y);
|
|
2904
2904
|
var h = Ut.call(r, g);
|
|
@@ -2940,7 +2940,7 @@ var Tn = Ae, Oe = xi, is = ji, ss = De, Ue = Tn("%WeakMap%", !0), Me = Tn("%Map%
|
|
|
2940
2940
|
}
|
|
2941
2941
|
}, Ws = function(e) {
|
|
2942
2942
|
if (!e)
|
|
2943
|
-
return
|
|
2943
|
+
return N;
|
|
2944
2944
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
2945
2945
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
2946
2946
|
if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
|
|
@@ -2949,32 +2949,32 @@ var Tn = Ae, Oe = xi, is = ji, ss = De, Ue = Tn("%WeakMap%", !0), Me = Tn("%Map%
|
|
|
2949
2949
|
throw new TypeError("Decoder has to be a function.");
|
|
2950
2950
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
2951
2951
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2952
|
-
var n = typeof e.charset > "u" ?
|
|
2952
|
+
var n = typeof e.charset > "u" ? N.charset : e.charset, r = typeof e.duplicates > "u" ? N.duplicates : e.duplicates;
|
|
2953
2953
|
if (r !== "combine" && r !== "first" && r !== "last")
|
|
2954
2954
|
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
2955
|
-
var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 :
|
|
2955
|
+
var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : N.allowDots : !!e.allowDots;
|
|
2956
2956
|
return {
|
|
2957
2957
|
allowDots: o,
|
|
2958
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
2959
|
-
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes :
|
|
2960
|
-
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse :
|
|
2961
|
-
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit :
|
|
2958
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : N.allowEmptyArrays,
|
|
2959
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : N.allowPrototypes,
|
|
2960
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : N.allowSparse,
|
|
2961
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : N.arrayLimit,
|
|
2962
2962
|
charset: n,
|
|
2963
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
2964
|
-
comma: typeof e.comma == "boolean" ? e.comma :
|
|
2965
|
-
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys :
|
|
2966
|
-
decoder: typeof e.decoder == "function" ? e.decoder :
|
|
2967
|
-
delimiter: typeof e.delimiter == "string" || we.isRegExp(e.delimiter) ? e.delimiter :
|
|
2963
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : N.charsetSentinel,
|
|
2964
|
+
comma: typeof e.comma == "boolean" ? e.comma : N.comma,
|
|
2965
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : N.decodeDotInKeys,
|
|
2966
|
+
decoder: typeof e.decoder == "function" ? e.decoder : N.decoder,
|
|
2967
|
+
delimiter: typeof e.delimiter == "string" || we.isRegExp(e.delimiter) ? e.delimiter : N.delimiter,
|
|
2968
2968
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
2969
|
-
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth :
|
|
2969
|
+
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : N.depth,
|
|
2970
2970
|
duplicates: r,
|
|
2971
2971
|
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
2972
|
-
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities :
|
|
2973
|
-
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit :
|
|
2972
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : N.interpretNumericEntities,
|
|
2973
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : N.parameterLimit,
|
|
2974
2974
|
parseArrays: e.parseArrays !== !1,
|
|
2975
|
-
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects :
|
|
2976
|
-
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth :
|
|
2977
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
2975
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : N.plainObjects,
|
|
2976
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : N.strictDepth,
|
|
2977
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : N.strictNullHandling
|
|
2978
2978
|
};
|
|
2979
2979
|
}, Ks = function(t, e) {
|
|
2980
2980
|
var n = Ws(e);
|
|
@@ -3084,7 +3084,7 @@ const In = Ke(), _n = In.sso ?? !0, Bn = In.noRedireLogin ?? !1, Ln = () => {
|
|
|
3084
3084
|
}, rl = async (t, e) => {
|
|
3085
3085
|
var u, l, c, p, d;
|
|
3086
3086
|
let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
|
|
3087
|
-
const a = { 400:
|
|
3087
|
+
const a = { 400: C("参数校验错误"), 404: C("接口地址未找到"), 500: C("服务器内部错误") };
|
|
3088
3088
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3089
3089
|
return !(Hn("code") || "") && !Bn && (n === 401 || (i == null ? void 0 : i.code) === 401) ? (_n ? Wn({ ...Kn, redirect_uri: Gn }) : Ln(), o = i) : (t.response ? (i instanceof Blob && (i = await new Promise((g) => {
|
|
3090
3090
|
const y = new FileReader();
|
|
@@ -3092,10 +3092,10 @@ const In = Ke(), _n = In.sso ?? !0, Bn = In.noRedireLogin ?? !1, Ln = () => {
|
|
|
3092
3092
|
try {
|
|
3093
3093
|
g(JSON.parse(y.result || "{}"));
|
|
3094
3094
|
} catch {
|
|
3095
|
-
g({ code: 400, msg:
|
|
3095
|
+
g({ code: 400, msg: C("blob解析错误") });
|
|
3096
3096
|
}
|
|
3097
3097
|
};
|
|
3098
|
-
})), i.code && (n = i.code, r = i.
|
|
3098
|
+
})), i.code && (n = i.code, r = C(i.status, ...i.data), o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = C("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = C("请求配置异常"), e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
|
|
3099
3099
|
}, b = (t, e) => {
|
|
3100
3100
|
const n = I.create();
|
|
3101
3101
|
return zn(n, async (r) => {
|
|
@@ -3170,7 +3170,7 @@ const ul = Yt.get("token"), fl = Yt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3170
3170
|
O(k);
|
|
3171
3171
|
}), P = async (E, O, $, T = !0, F = "", w = !1) => {
|
|
3172
3172
|
var tr, rr;
|
|
3173
|
-
d = F, g.value = "import", T && (r.value = "normal", n.value = 0, e.value =
|
|
3173
|
+
d = F, g.value = "import", T && (r.value = "normal", n.value = 0, e.value = C("导入进度"), t.value = !0, i.value = ""), y = O;
|
|
3174
3174
|
const k = await m();
|
|
3175
3175
|
if (!k.status) return;
|
|
3176
3176
|
let j = k.data, z = null, { autoContentType: ee, bucketName: te, importFileName: er } = $;
|
|
@@ -3202,7 +3202,7 @@ const ul = Yt.get("token"), fl = Yt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3202
3202
|
const ie = await ml(jn.data);
|
|
3203
3203
|
if ((ie == null ? void 0 : ie.statusCode) != 200) {
|
|
3204
3204
|
t.value = !1, (tr = window.DasMessage) == null || tr.error({
|
|
3205
|
-
message: (ie == null ? void 0 : ie.errorMsg) ||
|
|
3205
|
+
message: (ie == null ? void 0 : ie.errorMsg) || C("上传失败"),
|
|
3206
3206
|
grouping: !0,
|
|
3207
3207
|
repeatNum: 1
|
|
3208
3208
|
});
|
|
@@ -3214,17 +3214,17 @@ const ul = Yt.get("token"), fl = Yt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3214
3214
|
t.value = !1, r.value = "error";
|
|
3215
3215
|
return;
|
|
3216
3216
|
}
|
|
3217
|
-
e.value =
|
|
3217
|
+
e.value = C("导入进度"), t.value = !0, x(it.taskId, "import", "");
|
|
3218
3218
|
} else {
|
|
3219
3219
|
if (!it.status) return;
|
|
3220
3220
|
r.value = "success", (rr = window.DasMessage) == null || rr.success({
|
|
3221
|
-
message:
|
|
3221
|
+
message: C("导入成功"),
|
|
3222
3222
|
grouping: !0,
|
|
3223
3223
|
repeatNum: 1
|
|
3224
3224
|
});
|
|
3225
3225
|
}
|
|
3226
3226
|
}, v = async (E, O = "", $ = "") => {
|
|
3227
|
-
r.value = "normal", n.value = 0, e.value = $ ||
|
|
3227
|
+
r.value = "normal", n.value = 0, e.value = $ || C("导出进度"), t.value = !0;
|
|
3228
3228
|
const T = await (E == null ? void 0 : E());
|
|
3229
3229
|
if (!T.status) {
|
|
3230
3230
|
t.value = !1, r.value = "error";
|
|
@@ -3232,7 +3232,7 @@ const ul = Yt.get("token"), fl = Yt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3232
3232
|
}
|
|
3233
3233
|
x(T.taskId, "action", "");
|
|
3234
3234
|
}, D = async (E, O = "", $ = "", T = !0) => {
|
|
3235
|
-
g.value = "export", T && (r.value = "normal", n.value = 0, e.value =
|
|
3235
|
+
g.value = "export", T && (r.value = "normal", n.value = 0, e.value = C("导出进度"), t.value = !0);
|
|
3236
3236
|
const F = await (E == null ? void 0 : E());
|
|
3237
3237
|
if (!F.status) {
|
|
3238
3238
|
t.value = !1, r.value = "error";
|
|
@@ -3254,11 +3254,11 @@ const ul = Yt.get("token"), fl = Yt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3254
3254
|
return;
|
|
3255
3255
|
}
|
|
3256
3256
|
n.value = w.percentage;
|
|
3257
|
-
const k = O == "export" ?
|
|
3257
|
+
const k = O == "export" ? C("导出") : C("导入");
|
|
3258
3258
|
if (n.value == 100)
|
|
3259
3259
|
if (i.value = w, o.value = !1, L(), O == "export")
|
|
3260
|
-
w.status == 1 ? (r.value = "success", jr(`${Ke().baseURL}/oss${w.filePath}`, $, T), o.value = !1) : w.status == 2 && (l.value = w.message || `${k}${
|
|
3261
|
-
message: w.message || `${k}${
|
|
3260
|
+
w.status == 1 ? (r.value = "success", jr(`${Ke().baseURL}/oss${w.filePath}`, $, T), o.value = !1) : w.status == 2 && (l.value = w.message || `${k}${C("失败")}`, (j = window.DasMessage) == null || j.error({
|
|
3261
|
+
message: w.message || `${k}${C("失败")}`,
|
|
3262
3262
|
grouping: !0,
|
|
3263
3263
|
repeatNum: 1
|
|
3264
3264
|
}));
|
|
@@ -3267,7 +3267,7 @@ const ul = Yt.get("token"), fl = Yt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3267
3267
|
r.value = "error", c.value = !0;
|
|
3268
3268
|
let ee = await Zn(`/oss/${w == null ? void 0 : w.filePath}`);
|
|
3269
3269
|
const te = ((z = ee == null ? void 0 : ee.split("/")) == null ? void 0 : z.pop()) || "";
|
|
3270
|
-
s.value = d || te, u.value = y.sizeText, l.value =
|
|
3270
|
+
s.value = d || te, u.value = y.sizeText, l.value = C("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = `${Ke().baseURL}/oss/${w == null ? void 0 : w.filePath}`;
|
|
3271
3271
|
}
|
|
3272
3272
|
K(w.status, k, w.message);
|
|
3273
3273
|
} else O == "action" && (r.value = "success");
|
|
@@ -3278,15 +3278,15 @@ const ul = Yt.get("token"), fl = Yt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3278
3278
|
}, K = (E, O, $) => {
|
|
3279
3279
|
var T, F, w;
|
|
3280
3280
|
E == 1 ? (r.value = "success", (T = window.DasMessage) == null || T.success({
|
|
3281
|
-
message: `${O}${
|
|
3281
|
+
message: `${O}${C("成功")}`,
|
|
3282
3282
|
grouping: !0,
|
|
3283
3283
|
repeatNum: 1
|
|
3284
3284
|
}), s.value = "", u.value = "", l.value = "") : E == 2 ? (r.value = "error", (F = window.DasMessage) == null || F.error({
|
|
3285
|
-
message: $ || `${O}${
|
|
3285
|
+
message: $ || `${O}${C("失败")}`,
|
|
3286
3286
|
grouping: !0,
|
|
3287
3287
|
repeatNum: 1
|
|
3288
|
-
}), l.value = $ ||
|
|
3289
|
-
message: `${
|
|
3288
|
+
}), l.value = $ || C("部分数据校验不通过,请下载附件并修改,重新导入!")) : E == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
3289
|
+
message: `${C("部分")}${O}${C("失败")}`,
|
|
3290
3290
|
grouping: !0,
|
|
3291
3291
|
repeatNum: 1
|
|
3292
3292
|
}));
|
package/api-services/index.js.gz
CHANGED
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setI18nRule as bn, t as
|
|
1
|
+
import { setI18nRule as bn, t as V } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as wn } from "@das-fed/utils/curring-http";
|
|
3
3
|
import { getToken as Sn, getQuery as En, login as An, getTokenParams as On, real_uri as Rn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import Ot from "dayjs";
|
|
@@ -57,7 +57,7 @@ function Pr(t, e) {
|
|
|
57
57
|
return o;
|
|
58
58
|
return null;
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Tr = (t) => !we(t) && t !== X;
|
|
61
61
|
function ct() {
|
|
62
62
|
const { caseless: t } = Tr(this) && this || {}, e = {}, n = (r, o) => {
|
|
63
63
|
const a = t && Pr(e, o) || o;
|
|
@@ -174,14 +174,14 @@ const po = (t) => {
|
|
|
174
174
|
return r;
|
|
175
175
|
};
|
|
176
176
|
return n(t, 0);
|
|
177
|
-
}, yo = B("AsyncFunction"), ho = (t) => t && (je(t) || _(t)) && _(t.then) && _(t.catch), Cr = ((t, e) => t ? setImmediate : e ? ((n, r) => (
|
|
178
|
-
o ===
|
|
177
|
+
}, yo = B("AsyncFunction"), ho = (t) => t && (je(t) || _(t)) && _(t.then) && _(t.catch), Cr = ((t, e) => t ? setImmediate : e ? ((n, r) => (X.addEventListener("message", ({ source: o, data: a }) => {
|
|
178
|
+
o === X && a === n && r.length && r.shift()();
|
|
179
179
|
}, !1), (o) => {
|
|
180
|
-
r.push(o),
|
|
180
|
+
r.push(o), X.postMessage(n, "*");
|
|
181
181
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
182
182
|
typeof setImmediate == "function",
|
|
183
|
-
_(
|
|
184
|
-
), mo = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
183
|
+
_(X.postMessage)
|
|
184
|
+
), mo = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || Cr, f = {
|
|
185
185
|
isArray: ue,
|
|
186
186
|
isArrayBuffer: Or,
|
|
187
187
|
isBuffer: Dn,
|
|
@@ -230,7 +230,7 @@ const po = (t) => {
|
|
|
230
230
|
noop: lo,
|
|
231
231
|
toFiniteNumber: co,
|
|
232
232
|
findKey: Pr,
|
|
233
|
-
global:
|
|
233
|
+
global: X,
|
|
234
234
|
isContextDefined: Tr,
|
|
235
235
|
ALPHABET: Fr,
|
|
236
236
|
generateString: uo,
|
|
@@ -949,7 +949,7 @@ function kr(t, e) {
|
|
|
949
949
|
return t && !Ho(e) ? Wo(t, e) : e;
|
|
950
950
|
}
|
|
951
951
|
const Gt = (t) => t instanceof I ? { ...t } : t;
|
|
952
|
-
function
|
|
952
|
+
function te(t, e) {
|
|
953
953
|
e = e || {};
|
|
954
954
|
const n = {};
|
|
955
955
|
function r(l, c, p) {
|
|
@@ -1014,7 +1014,7 @@ function ee(t, e) {
|
|
|
1014
1014
|
}), n;
|
|
1015
1015
|
}
|
|
1016
1016
|
const qr = (t) => {
|
|
1017
|
-
const e =
|
|
1017
|
+
const e = te({}, t);
|
|
1018
1018
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = e;
|
|
1019
1019
|
e.headers = i = I.from(i), e.url = $r(kr(e.baseURL, e.url), t.params, t.paramsSerializer), s && i.set(
|
|
1020
1020
|
"Authorization",
|
|
@@ -1407,7 +1407,7 @@ const yt = {
|
|
|
1407
1407
|
assertOptions: oa,
|
|
1408
1408
|
validators: xt
|
|
1409
1409
|
}, W = yt.validators;
|
|
1410
|
-
class
|
|
1410
|
+
class Z {
|
|
1411
1411
|
constructor(e) {
|
|
1412
1412
|
this.defaults = e, this.interceptors = {
|
|
1413
1413
|
request: new jt(),
|
|
@@ -1440,7 +1440,7 @@ class X {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
_request(e, n) {
|
|
1443
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
1443
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = te(this.defaults, n);
|
|
1444
1444
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1445
1445
|
r !== void 0 && yt.assertOptions(r, {
|
|
1446
1446
|
silentJSONParsing: W.transitional(W.boolean),
|
|
@@ -1499,14 +1499,14 @@ class X {
|
|
|
1499
1499
|
return c;
|
|
1500
1500
|
}
|
|
1501
1501
|
getUri(e) {
|
|
1502
|
-
e =
|
|
1502
|
+
e = te(this.defaults, e);
|
|
1503
1503
|
const n = kr(e.baseURL, e.url);
|
|
1504
1504
|
return $r(n, e.params, e.paramsSerializer);
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
1507
|
f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1508
|
-
|
|
1509
|
-
return this.request(
|
|
1508
|
+
Z.prototype[e] = function(n, r) {
|
|
1509
|
+
return this.request(te(r || {}, {
|
|
1510
1510
|
method: e,
|
|
1511
1511
|
url: n,
|
|
1512
1512
|
data: (r || {}).data
|
|
@@ -1516,7 +1516,7 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1516
1516
|
f.forEach(["post", "put", "patch"], function(e) {
|
|
1517
1517
|
function n(r) {
|
|
1518
1518
|
return function(a, i, s) {
|
|
1519
|
-
return this.request(
|
|
1519
|
+
return this.request(te(s || {}, {
|
|
1520
1520
|
method: e,
|
|
1521
1521
|
headers: r ? {
|
|
1522
1522
|
"Content-Type": "multipart/form-data"
|
|
@@ -1526,7 +1526,7 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1526
1526
|
}));
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
|
-
|
|
1529
|
+
Z.prototype[e] = n(), Z.prototype[e + "Form"] = n(!0);
|
|
1530
1530
|
});
|
|
1531
1531
|
class Ft {
|
|
1532
1532
|
constructor(e) {
|
|
@@ -1678,13 +1678,13 @@ Object.entries(ht).forEach(([t, e]) => {
|
|
|
1678
1678
|
ht[e] = t;
|
|
1679
1679
|
});
|
|
1680
1680
|
function Gr(t) {
|
|
1681
|
-
const e = new
|
|
1682
|
-
return f.extend(n,
|
|
1683
|
-
return Gr(
|
|
1681
|
+
const e = new Z(t), n = Ar(Z.prototype.request, e);
|
|
1682
|
+
return f.extend(n, Z.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1683
|
+
return Gr(te(t, o));
|
|
1684
1684
|
}, n;
|
|
1685
1685
|
}
|
|
1686
1686
|
const R = Gr(Ee);
|
|
1687
|
-
R.Axios =
|
|
1687
|
+
R.Axios = Z;
|
|
1688
1688
|
R.CanceledError = fe;
|
|
1689
1689
|
R.CancelToken = Ft;
|
|
1690
1690
|
R.isCancel = Lr;
|
|
@@ -1697,7 +1697,7 @@ R.all = function(e) {
|
|
|
1697
1697
|
};
|
|
1698
1698
|
R.spread = aa;
|
|
1699
1699
|
R.isAxiosError = ia;
|
|
1700
|
-
R.mergeConfig =
|
|
1700
|
+
R.mergeConfig = te;
|
|
1701
1701
|
R.AxiosHeaders = I;
|
|
1702
1702
|
R.formToJSON = (t) => Ur(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1703
1703
|
R.getAdapter = Hr.getAdapter;
|
|
@@ -1799,28 +1799,28 @@ var ca = Error, ua = EvalError, fa = RangeError, pa = ReferenceError, Jr = Synta
|
|
|
1799
1799
|
return Kr('"use strict"; return (' + t + ").constructor;")();
|
|
1800
1800
|
} catch {
|
|
1801
1801
|
}
|
|
1802
|
-
},
|
|
1803
|
-
if (
|
|
1802
|
+
}, Y = Object.getOwnPropertyDescriptor;
|
|
1803
|
+
if (Y)
|
|
1804
1804
|
try {
|
|
1805
|
-
|
|
1805
|
+
Y({}, "");
|
|
1806
1806
|
} catch {
|
|
1807
|
-
|
|
1807
|
+
Y = null;
|
|
1808
1808
|
}
|
|
1809
1809
|
var Ye = function() {
|
|
1810
1810
|
throw new ie();
|
|
1811
|
-
}, Ba =
|
|
1811
|
+
}, Ba = Y ? function() {
|
|
1812
1812
|
try {
|
|
1813
1813
|
return arguments.callee, Ye;
|
|
1814
1814
|
} catch {
|
|
1815
1815
|
try {
|
|
1816
|
-
return
|
|
1816
|
+
return Y(arguments, "callee").get;
|
|
1817
1817
|
} catch {
|
|
1818
1818
|
return Ye;
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
}() : Ye, ne = ma(), Ua = va(), x = Object.getPrototypeOf || (Ua ? function(t) {
|
|
1822
1822
|
return t.__proto__;
|
|
1823
|
-
} : null), ae = {}, La = typeof Uint8Array > "u" || !x ? w : x(Uint8Array),
|
|
1823
|
+
} : null), ae = {}, La = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), ee = {
|
|
1824
1824
|
__proto__: null,
|
|
1825
1825
|
"%AggregateError%": typeof AggregateError > "u" ? w : AggregateError,
|
|
1826
1826
|
"%Array%": Array,
|
|
@@ -1895,7 +1895,7 @@ if (x)
|
|
|
1895
1895
|
null.error;
|
|
1896
1896
|
} catch (t) {
|
|
1897
1897
|
var Ma = x(x(t));
|
|
1898
|
-
|
|
1898
|
+
ee["%Error.prototype%"] = Ma;
|
|
1899
1899
|
}
|
|
1900
1900
|
var ka = function t(e) {
|
|
1901
1901
|
var n;
|
|
@@ -1912,7 +1912,7 @@ var ka = function t(e) {
|
|
|
1912
1912
|
var o = t("%AsyncGenerator%");
|
|
1913
1913
|
o && x && (n = x(o.prototype));
|
|
1914
1914
|
}
|
|
1915
|
-
return
|
|
1915
|
+
return ee[e] = n, n;
|
|
1916
1916
|
}, tr = {
|
|
1917
1917
|
__proto__: null,
|
|
1918
1918
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -1978,8 +1978,8 @@ var ka = function t(e) {
|
|
|
1978
1978
|
}), o;
|
|
1979
1979
|
}, Ja = function(e, n) {
|
|
1980
1980
|
var r = e, o;
|
|
1981
|
-
if (Be(tr, r) && (o = tr[r], r = "%" + o[0] + "%"), Be(
|
|
1982
|
-
var a =
|
|
1981
|
+
if (Be(tr, r) && (o = tr[r], r = "%" + o[0] + "%"), Be(ee, r)) {
|
|
1982
|
+
var a = ee[r];
|
|
1983
1983
|
if (a === ae && (a = ka(r)), typeof a > "u" && !n)
|
|
1984
1984
|
throw new ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1985
1985
|
return {
|
|
@@ -2002,20 +2002,20 @@ var ka = function t(e) {
|
|
|
2002
2002
|
var d = r[c], v = Ue(d, 0, 1), y = Ue(d, -1);
|
|
2003
2003
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2004
2004
|
throw new se("property names with quotes must have matching quotes");
|
|
2005
|
-
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Be(
|
|
2006
|
-
s =
|
|
2005
|
+
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Be(ee, i))
|
|
2006
|
+
s = ee[i];
|
|
2007
2007
|
else if (s != null) {
|
|
2008
2008
|
if (!(d in s)) {
|
|
2009
2009
|
if (!n)
|
|
2010
2010
|
throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2011
2011
|
return;
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
var m =
|
|
2013
|
+
if (Y && c + 1 >= r.length) {
|
|
2014
|
+
var m = Y(s, d);
|
|
2015
2015
|
p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
|
|
2016
2016
|
} else
|
|
2017
2017
|
p = Be(s, d), s = s[d];
|
|
2018
|
-
p && !u && (
|
|
2018
|
+
p && !u && (ee[i] = s);
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
return s;
|
|
@@ -2250,8 +2250,8 @@ var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = function t(e, n, r, o
|
|
|
2250
2250
|
if (typeof globalThis < "u" && e === globalThis || typeof Zt < "u" && e === Zt)
|
|
2251
2251
|
return "{ [object globalThis] }";
|
|
2252
2252
|
if (!bi(e) && !br(e)) {
|
|
2253
|
-
var N = Pe(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && F && Object(e) === e && F in e ? _t.call(K(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "",
|
|
2254
|
-
return N.length === 0 ?
|
|
2253
|
+
var N = Pe(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && F && Object(e) === e && F in e ? _t.call(K(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (j || U ? "[" + k.call(dr.call([], j || [], U || []), ": ") + "] " : "");
|
|
2254
|
+
return N.length === 0 ? re + "{}" : p ? re + "{" + St(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
2255
2255
|
}
|
|
2256
2256
|
return String(e);
|
|
2257
2257
|
};
|
|
@@ -2542,14 +2542,14 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2542
2542
|
},
|
|
2543
2543
|
RFC1738: at.RFC1738,
|
|
2544
2544
|
RFC3986: at.RFC3986
|
|
2545
|
-
}, Qi = Bt, it = Object.prototype.hasOwnProperty,
|
|
2545
|
+
}, Qi = Bt, it = Object.prototype.hasOwnProperty, Q = Array.isArray, L = function() {
|
|
2546
2546
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2547
2547
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2548
2548
|
return t;
|
|
2549
2549
|
}(), Xi = function(e) {
|
|
2550
2550
|
for (; e.length > 1; ) {
|
|
2551
2551
|
var n = e.pop(), r = n.obj[n.prop];
|
|
2552
|
-
if (
|
|
2552
|
+
if (Q(r)) {
|
|
2553
2553
|
for (var o = [], a = 0; a < r.length; ++a)
|
|
2554
2554
|
typeof r[a] < "u" && o.push(r[a]);
|
|
2555
2555
|
n.obj[n.prop] = o;
|
|
@@ -2563,7 +2563,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2563
2563
|
if (!n)
|
|
2564
2564
|
return e;
|
|
2565
2565
|
if (typeof n != "object") {
|
|
2566
|
-
if (
|
|
2566
|
+
if (Q(e))
|
|
2567
2567
|
e.push(n);
|
|
2568
2568
|
else if (e && typeof e == "object")
|
|
2569
2569
|
(r && (r.plainObjects || r.allowPrototypes) || !it.call(Object.prototype, n)) && (e[n] = !0);
|
|
@@ -2574,7 +2574,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2574
2574
|
if (!e || typeof e != "object")
|
|
2575
2575
|
return [e].concat(n);
|
|
2576
2576
|
var o = e;
|
|
2577
|
-
return
|
|
2577
|
+
return Q(e) && !Q(n) && (o = ln(e, r)), Q(e) && Q(n) ? (n.forEach(function(a, i) {
|
|
2578
2578
|
if (it.call(e, i)) {
|
|
2579
2579
|
var s = e[i];
|
|
2580
2580
|
s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
|
|
@@ -2643,7 +2643,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2643
2643
|
}, as = function(e, n) {
|
|
2644
2644
|
return [].concat(e, n);
|
|
2645
2645
|
}, is = function(e, n) {
|
|
2646
|
-
if (
|
|
2646
|
+
if (Q(e)) {
|
|
2647
2647
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
2648
2648
|
r.push(n(e[o]));
|
|
2649
2649
|
return r;
|
|
@@ -2732,7 +2732,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
|
|
|
2732
2732
|
var Re = Object.keys(g);
|
|
2733
2733
|
j = p ? Re.sort(p) : Re;
|
|
2734
2734
|
}
|
|
2735
|
-
var
|
|
2735
|
+
var re = u ? n.replace(/\./g, "%2E") : n, $ = o && M(g) && g.length === 1 ? re + "[]" : re;
|
|
2736
2736
|
if (a && M(g) && g.length === 0)
|
|
2737
2737
|
return $ + "[]";
|
|
2738
2738
|
for (var z = 0; z < j.length; ++z) {
|
|
@@ -3068,7 +3068,7 @@ const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
|
|
|
3068
3068
|
}, Ds = async (t, e) => {
|
|
3069
3069
|
var u, l, c, p, d;
|
|
3070
3070
|
let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
|
|
3071
|
-
const a = { 400:
|
|
3071
|
+
const a = { 400: V("参数校验错误"), 404: V("接口地址未找到"), 500: V("服务器内部错误") };
|
|
3072
3072
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3073
3073
|
return !(En("code") || "") && !mn && (n === 401 || (i == null ? void 0 : i.code) === 401) ? (hn ? An({ ...On, redirect_uri: Rn }) : gn(), o = i) : (t.response ? (i instanceof Blob && (i = await new Promise((v) => {
|
|
3074
3074
|
const y = new FileReader();
|
|
@@ -3076,10 +3076,10 @@ const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
|
|
|
3076
3076
|
try {
|
|
3077
3077
|
v(JSON.parse(y.result || "{}"));
|
|
3078
3078
|
} catch {
|
|
3079
|
-
v({ code: 400, msg:
|
|
3079
|
+
v({ code: 400, msg: V("blob解析错误") });
|
|
3080
3080
|
}
|
|
3081
3081
|
};
|
|
3082
|
-
})), i.code && (n = i.code, r = i.
|
|
3082
|
+
})), i.code && (n = i.code, r = V(i.status, ...i.data), o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("请求配置异常"), e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
|
|
3083
3083
|
}, Is = (t, e) => {
|
|
3084
3084
|
const n = R.create();
|
|
3085
3085
|
return wn(n, async (r) => {
|
|
Binary file
|