@das-fed/utils 7.0.0-zhaohang.4 → 7.0.0-zhaohang.6
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 +88 -84
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +705 -683
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +39 -35
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +735 -713
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +39 -35
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +38 -34
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +643 -635
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +911 -925
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +39 -35
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +88 -84
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +45 -41
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +704 -686
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +705 -683
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +39 -35
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +39 -35
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +42 -38
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +39 -35
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +39 -35
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +41 -37
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +734 -712
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +39 -35
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +646 -638
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +703 -685
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +38 -34
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +704 -682
- package/create-api-service/index.js.gz +0 -0
- package/curring-http/index.js +392 -392
- package/curring-http/index.js.gz +0 -0
- package/package.json +4 -4
|
Binary file
|
|
@@ -1686,22 +1686,22 @@ R.getAdapter = cn.getAdapter;
|
|
|
1686
1686
|
R.HttpStatusCode = _t;
|
|
1687
1687
|
R.default = R;
|
|
1688
1688
|
const {
|
|
1689
|
-
Axios:
|
|
1690
|
-
AxiosError:
|
|
1691
|
-
CanceledError:
|
|
1692
|
-
isCancel:
|
|
1693
|
-
CancelToken:
|
|
1694
|
-
VERSION:
|
|
1695
|
-
all:
|
|
1696
|
-
Cancel:
|
|
1697
|
-
isAxiosError:
|
|
1698
|
-
spread:
|
|
1699
|
-
toFormData:
|
|
1700
|
-
AxiosHeaders:
|
|
1701
|
-
HttpStatusCode:
|
|
1702
|
-
formToJSON:
|
|
1703
|
-
getAdapter:
|
|
1704
|
-
mergeConfig:
|
|
1689
|
+
Axios: Gl,
|
|
1690
|
+
AxiosError: Jl,
|
|
1691
|
+
CanceledError: Vl,
|
|
1692
|
+
isCancel: Kl,
|
|
1693
|
+
CancelToken: Ql,
|
|
1694
|
+
VERSION: Xl,
|
|
1695
|
+
all: Zl,
|
|
1696
|
+
Cancel: Yl,
|
|
1697
|
+
isAxiosError: ec,
|
|
1698
|
+
spread: tc,
|
|
1699
|
+
toFormData: rc,
|
|
1700
|
+
AxiosHeaders: nc,
|
|
1701
|
+
HttpStatusCode: oc,
|
|
1702
|
+
formToJSON: ac,
|
|
1703
|
+
getAdapter: ic,
|
|
1704
|
+
mergeConfig: sc
|
|
1705
1705
|
} = R;
|
|
1706
1706
|
var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1707
1707
|
function Fa(t) {
|
|
@@ -3200,27 +3200,31 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3200
3200
|
if (Mn) return;
|
|
3201
3201
|
const t = "/login";
|
|
3202
3202
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3203
|
-
}, Mr = "SUC0000", _l = async (t) => {
|
|
3204
|
-
var i, s, u, l, c
|
|
3203
|
+
}, Mr = "SUC0000", _l = "AUM0020401", Nl = async (t) => {
|
|
3204
|
+
var a, i, s, u, l, c;
|
|
3205
3205
|
let e = t.data || {};
|
|
3206
3206
|
const n = (e == null ? void 0 : e.returnCode) || Mr;
|
|
3207
|
-
let r =
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
}
|
|
3207
|
+
let r = {};
|
|
3208
|
+
if (n !== Mr) {
|
|
3209
|
+
let p = e.errorMsg ?? "";
|
|
3210
|
+
return !(Gn("code") || "") && !Mn && n === _l ? (Un ? Jn({ ...Kn, redirect_uri: Vn }) : kn(), r = e) : (e instanceof Blob && (e = await new Promise((v) => {
|
|
3211
|
+
const y = new FileReader();
|
|
3212
|
+
y.readAsText(e, "utf-8"), y.onload = () => {
|
|
3213
|
+
try {
|
|
3214
|
+
v(JSON.parse(y.result || "{}"));
|
|
3215
|
+
} catch {
|
|
3216
|
+
v({ code: 400, msg: Ot("blob解析错误") });
|
|
3217
|
+
}
|
|
3218
|
+
};
|
|
3219
|
+
})), r = e), (a = t.config) != null && a.customErrorMessage && (p = (i = t.config) == null ? void 0 : i.customErrorMessage(p, n)), !((s = t.config) != null && s.ignoreErrorMessage) && p && ((l = (u = window.DasMessage) == null ? void 0 : u.error) == null || l.call(u, { message: p, showClose: !0 })), { data: r, code: n, msg: p };
|
|
3220
|
+
}
|
|
3221
|
+
return ((c = t.config) == null ? void 0 : c.responseType) === "blob" ? { data: t, code: n } : { data: t.data ?? t, code: n };
|
|
3222
|
+
}, Fl = async (t, e) => {
|
|
3219
3223
|
var o, a, i, s;
|
|
3220
3224
|
let n = ((o = t == null ? void 0 : t.response) == null ? void 0 : o.data) || {}, r = (a = t.response) == null ? void 0 : a.message;
|
|
3221
3225
|
if (!t.response)
|
|
3222
|
-
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), {
|
|
3223
|
-
},
|
|
3226
|
+
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), { data: n, code: t.code, msg: r, error: t };
|
|
3227
|
+
}, $l = (t, e) => {
|
|
3224
3228
|
const n = R.create();
|
|
3225
3229
|
return zn(n, async (r) => {
|
|
3226
3230
|
const o = kr();
|
|
@@ -3232,7 +3236,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3232
3236
|
}
|
|
3233
3237
|
Un ? l || (l = await Wn(r)) : (l || (l = eo()), l || kn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3234
3238
|
}
|
|
3235
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3239
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Nl), r.onError || (r.onError = Fl), (r.csrf ?? !1) && (r.headers["csrf-token"] = xl.get("csrf-token"));
|
|
3236
3240
|
const s = r.params || {};
|
|
3237
3241
|
if (s.project === void 0) {
|
|
3238
3242
|
let l = 0;
|
|
@@ -3245,7 +3249,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3245
3249
|
}
|
|
3246
3250
|
return r.params = s, r.headers.Timezone = Ut.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
|
|
3247
3251
|
});
|
|
3248
|
-
},
|
|
3252
|
+
}, Dl = "v1", lc = $l(`/api/custom-datasource/custom/${Dl}`);
|
|
3249
3253
|
export {
|
|
3250
|
-
|
|
3254
|
+
lc as daslink
|
|
3251
3255
|
};
|
|
Binary file
|
|
@@ -1686,22 +1686,22 @@ R.getAdapter = cn.getAdapter;
|
|
|
1686
1686
|
R.HttpStatusCode = _t;
|
|
1687
1687
|
R.default = R;
|
|
1688
1688
|
const {
|
|
1689
|
-
Axios:
|
|
1690
|
-
AxiosError:
|
|
1691
|
-
CanceledError:
|
|
1692
|
-
isCancel:
|
|
1693
|
-
CancelToken:
|
|
1694
|
-
VERSION:
|
|
1695
|
-
all:
|
|
1696
|
-
Cancel:
|
|
1697
|
-
isAxiosError:
|
|
1698
|
-
spread:
|
|
1699
|
-
toFormData:
|
|
1700
|
-
AxiosHeaders:
|
|
1701
|
-
HttpStatusCode:
|
|
1702
|
-
formToJSON:
|
|
1703
|
-
getAdapter:
|
|
1704
|
-
mergeConfig:
|
|
1689
|
+
Axios: Gl,
|
|
1690
|
+
AxiosError: Jl,
|
|
1691
|
+
CanceledError: Vl,
|
|
1692
|
+
isCancel: Kl,
|
|
1693
|
+
CancelToken: Ql,
|
|
1694
|
+
VERSION: Xl,
|
|
1695
|
+
all: Zl,
|
|
1696
|
+
Cancel: Yl,
|
|
1697
|
+
isAxiosError: ec,
|
|
1698
|
+
spread: tc,
|
|
1699
|
+
toFormData: rc,
|
|
1700
|
+
AxiosHeaders: nc,
|
|
1701
|
+
HttpStatusCode: oc,
|
|
1702
|
+
formToJSON: ac,
|
|
1703
|
+
getAdapter: ic,
|
|
1704
|
+
mergeConfig: sc
|
|
1705
1705
|
} = R;
|
|
1706
1706
|
var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1707
1707
|
function Fa(t) {
|
|
@@ -3200,27 +3200,31 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3200
3200
|
if (Mn) return;
|
|
3201
3201
|
const t = "/login";
|
|
3202
3202
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3203
|
-
}, Mr = "SUC0000", _l = async (t) => {
|
|
3204
|
-
var i, s, u, l, c
|
|
3203
|
+
}, Mr = "SUC0000", _l = "AUM0020401", Nl = async (t) => {
|
|
3204
|
+
var a, i, s, u, l, c;
|
|
3205
3205
|
let e = t.data || {};
|
|
3206
3206
|
const n = (e == null ? void 0 : e.returnCode) || Mr;
|
|
3207
|
-
let r =
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
}
|
|
3207
|
+
let r = {};
|
|
3208
|
+
if (n !== Mr) {
|
|
3209
|
+
let p = e.errorMsg ?? "";
|
|
3210
|
+
return !(Gn("code") || "") && !Mn && n === _l ? (Un ? Jn({ ...Kn, redirect_uri: Vn }) : kn(), r = e) : (e instanceof Blob && (e = await new Promise((v) => {
|
|
3211
|
+
const y = new FileReader();
|
|
3212
|
+
y.readAsText(e, "utf-8"), y.onload = () => {
|
|
3213
|
+
try {
|
|
3214
|
+
v(JSON.parse(y.result || "{}"));
|
|
3215
|
+
} catch {
|
|
3216
|
+
v({ code: 400, msg: Ot("blob解析错误") });
|
|
3217
|
+
}
|
|
3218
|
+
};
|
|
3219
|
+
})), r = e), (a = t.config) != null && a.customErrorMessage && (p = (i = t.config) == null ? void 0 : i.customErrorMessage(p, n)), !((s = t.config) != null && s.ignoreErrorMessage) && p && ((l = (u = window.DasMessage) == null ? void 0 : u.error) == null || l.call(u, { message: p, showClose: !0 })), { data: r, code: n, msg: p };
|
|
3220
|
+
}
|
|
3221
|
+
return ((c = t.config) == null ? void 0 : c.responseType) === "blob" ? { data: t, code: n } : { data: t.data ?? t, code: n };
|
|
3222
|
+
}, Fl = async (t, e) => {
|
|
3219
3223
|
var o, a, i, s;
|
|
3220
3224
|
let n = ((o = t == null ? void 0 : t.response) == null ? void 0 : o.data) || {}, r = (a = t.response) == null ? void 0 : a.message;
|
|
3221
3225
|
if (!t.response)
|
|
3222
|
-
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), {
|
|
3223
|
-
},
|
|
3226
|
+
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), { data: n, code: t.code, msg: r, error: t };
|
|
3227
|
+
}, $l = (t, e) => {
|
|
3224
3228
|
const n = R.create();
|
|
3225
3229
|
return zn(n, async (r) => {
|
|
3226
3230
|
const o = kr();
|
|
@@ -3232,7 +3236,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3232
3236
|
}
|
|
3233
3237
|
Un ? l || (l = await Wn(r)) : (l || (l = eo()), l || kn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3234
3238
|
}
|
|
3235
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3239
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Nl), r.onError || (r.onError = Fl), (r.csrf ?? !1) && (r.headers["csrf-token"] = xl.get("csrf-token"));
|
|
3236
3240
|
const s = r.params || {};
|
|
3237
3241
|
if (s.project === void 0) {
|
|
3238
3242
|
let l = 0;
|
|
@@ -3245,7 +3249,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3245
3249
|
}
|
|
3246
3250
|
return r.params = s, r.headers.Timezone = Ut.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
|
|
3247
3251
|
});
|
|
3248
|
-
},
|
|
3252
|
+
}, Dl = "v1", lc = $l(`/api/permission/${Dl}`);
|
|
3249
3253
|
export {
|
|
3250
|
-
|
|
3254
|
+
lc as permission
|
|
3251
3255
|
};
|
|
Binary file
|
|
@@ -1686,22 +1686,22 @@ R.getAdapter = fn.getAdapter;
|
|
|
1686
1686
|
R.HttpStatusCode = Ft;
|
|
1687
1687
|
R.default = R;
|
|
1688
1688
|
const {
|
|
1689
|
-
Axios:
|
|
1690
|
-
AxiosError:
|
|
1691
|
-
CanceledError:
|
|
1692
|
-
isCancel:
|
|
1693
|
-
CancelToken:
|
|
1694
|
-
VERSION:
|
|
1695
|
-
all:
|
|
1696
|
-
Cancel:
|
|
1697
|
-
isAxiosError:
|
|
1698
|
-
spread:
|
|
1699
|
-
toFormData:
|
|
1700
|
-
AxiosHeaders:
|
|
1701
|
-
HttpStatusCode:
|
|
1702
|
-
formToJSON:
|
|
1703
|
-
getAdapter:
|
|
1704
|
-
mergeConfig:
|
|
1689
|
+
Axios: Gc,
|
|
1690
|
+
AxiosError: Jc,
|
|
1691
|
+
CanceledError: Vc,
|
|
1692
|
+
isCancel: Kc,
|
|
1693
|
+
CancelToken: Qc,
|
|
1694
|
+
VERSION: Xc,
|
|
1695
|
+
all: Zc,
|
|
1696
|
+
Cancel: Yc,
|
|
1697
|
+
isAxiosError: el,
|
|
1698
|
+
spread: tl,
|
|
1699
|
+
toFormData: rl,
|
|
1700
|
+
AxiosHeaders: nl,
|
|
1701
|
+
HttpStatusCode: ol,
|
|
1702
|
+
formToJSON: al,
|
|
1703
|
+
getAdapter: il,
|
|
1704
|
+
mergeConfig: sl
|
|
1705
1705
|
} = R;
|
|
1706
1706
|
var pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1707
1707
|
function Da(t) {
|
|
@@ -3200,26 +3200,30 @@ const qn = Qt.noRedireLogin ?? !1, jn = () => {
|
|
|
3200
3200
|
if (qn) return;
|
|
3201
3201
|
const t = "/login";
|
|
3202
3202
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3203
|
-
}, qr = "SUC0000", Fc = async (t) => {
|
|
3204
|
-
var i, s, u, c, l
|
|
3203
|
+
}, qr = "SUC0000", Fc = "AUM0020401", $c = async (t) => {
|
|
3204
|
+
var a, i, s, u, c, l;
|
|
3205
3205
|
let e = t.data || {};
|
|
3206
3206
|
const n = (e == null ? void 0 : e.returnCode) || qr;
|
|
3207
|
-
let r =
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
}
|
|
3207
|
+
let r = {};
|
|
3208
|
+
if (n !== qr) {
|
|
3209
|
+
let p = e.errorMsg ?? "";
|
|
3210
|
+
return !(Vn("code") || "") && !qn && n === Fc ? (kn ? Kn({ ...Xn, redirect_uri: Qn }) : jn(), r = e) : (e instanceof Blob && (e = await new Promise((v) => {
|
|
3211
|
+
const y = new FileReader();
|
|
3212
|
+
y.readAsText(e, "utf-8"), y.onload = () => {
|
|
3213
|
+
try {
|
|
3214
|
+
v(JSON.parse(y.result || "{}"));
|
|
3215
|
+
} catch {
|
|
3216
|
+
v({ code: 400, msg: Pt("blob解析错误") });
|
|
3217
|
+
}
|
|
3218
|
+
};
|
|
3219
|
+
})), r = e), (a = t.config) != null && a.customErrorMessage && (p = (i = t.config) == null ? void 0 : i.customErrorMessage(p, n)), !((s = t.config) != null && s.ignoreErrorMessage) && p && ((c = (u = window.DasMessage) == null ? void 0 : u.error) == null || c.call(u, { message: p, showClose: !0 })), { data: r, code: n, msg: p };
|
|
3220
|
+
}
|
|
3221
|
+
return ((l = t.config) == null ? void 0 : l.responseType) === "blob" ? { data: t, code: n } : { data: t.data ?? t, code: n };
|
|
3222
|
+
}, Dc = async (t, e) => {
|
|
3219
3223
|
var o, a, i, s;
|
|
3220
3224
|
let n = ((o = t == null ? void 0 : t.response) == null ? void 0 : o.data) || {}, r = (a = t.response) == null ? void 0 : a.message;
|
|
3221
3225
|
if (!t.response)
|
|
3222
|
-
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Pt("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Pt("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), {
|
|
3226
|
+
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Pt("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Pt("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), { data: n, code: t.code, msg: r, error: t };
|
|
3223
3227
|
}, Z = (t, e) => {
|
|
3224
3228
|
const n = R.create();
|
|
3225
3229
|
return Gn(n, async (r) => {
|
|
@@ -3232,7 +3236,7 @@ const qn = Qt.noRedireLogin ?? !1, jn = () => {
|
|
|
3232
3236
|
}
|
|
3233
3237
|
kn ? c || (c = await Jn(r)) : (c || (c = ro()), c || jn()), c && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${c}`);
|
|
3234
3238
|
}
|
|
3235
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (c) => xc.stringify(c, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3239
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (c) => xc.stringify(c, { indices: !1 }) }), r.onSuccess || (r.onSuccess = $c), r.onError || (r.onError = Dc), (r.csrf ?? !1) && (r.headers["csrf-token"] = _c.get("csrf-token"));
|
|
3236
3240
|
const s = r.params || {};
|
|
3237
3241
|
if (s.project === void 0) {
|
|
3238
3242
|
let c = 0;
|
|
@@ -3245,15 +3249,15 @@ const qn = Qt.noRedireLogin ?? !1, jn = () => {
|
|
|
3245
3249
|
}
|
|
3246
3250
|
return r.params = s, r.headers.Timezone = kt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Wn.value, r;
|
|
3247
3251
|
});
|
|
3248
|
-
}, Y = "v1",
|
|
3252
|
+
}, Y = "v1", cl = Z(`/api/customer/customer/${Y}`), ll = Z(`/api/customer/company/${Y}`), ul = Z(`/api/customer/customer-grade/${Y}`), fl = Z(`/api/customer/customer-type/${Y}`), pl = {
|
|
3249
3253
|
list: Z(`/api/project/${Y}/list`),
|
|
3250
3254
|
app: Z(`/api/project/${Y}/app`),
|
|
3251
3255
|
people: Z(`/api/project/${Y}/people`)
|
|
3252
3256
|
};
|
|
3253
3257
|
export {
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3258
|
+
ll as company,
|
|
3259
|
+
cl as customer,
|
|
3260
|
+
ul as customerGrade,
|
|
3261
|
+
fl as customerType,
|
|
3262
|
+
pl as projectManage
|
|
3259
3263
|
};
|
|
Binary file
|
|
@@ -1686,22 +1686,22 @@ R.getAdapter = cn.getAdapter;
|
|
|
1686
1686
|
R.HttpStatusCode = _t;
|
|
1687
1687
|
R.default = R;
|
|
1688
1688
|
const {
|
|
1689
|
-
Axios:
|
|
1690
|
-
AxiosError:
|
|
1691
|
-
CanceledError:
|
|
1692
|
-
isCancel:
|
|
1693
|
-
CancelToken:
|
|
1694
|
-
VERSION:
|
|
1695
|
-
all:
|
|
1696
|
-
Cancel:
|
|
1697
|
-
isAxiosError:
|
|
1698
|
-
spread:
|
|
1699
|
-
toFormData:
|
|
1700
|
-
AxiosHeaders:
|
|
1701
|
-
HttpStatusCode:
|
|
1702
|
-
formToJSON:
|
|
1703
|
-
getAdapter:
|
|
1704
|
-
mergeConfig:
|
|
1689
|
+
Axios: Gl,
|
|
1690
|
+
AxiosError: Jl,
|
|
1691
|
+
CanceledError: Vl,
|
|
1692
|
+
isCancel: Kl,
|
|
1693
|
+
CancelToken: Ql,
|
|
1694
|
+
VERSION: Xl,
|
|
1695
|
+
all: Zl,
|
|
1696
|
+
Cancel: Yl,
|
|
1697
|
+
isAxiosError: ec,
|
|
1698
|
+
spread: tc,
|
|
1699
|
+
toFormData: rc,
|
|
1700
|
+
AxiosHeaders: nc,
|
|
1701
|
+
HttpStatusCode: oc,
|
|
1702
|
+
formToJSON: ac,
|
|
1703
|
+
getAdapter: ic,
|
|
1704
|
+
mergeConfig: sc
|
|
1705
1705
|
} = R;
|
|
1706
1706
|
var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1707
1707
|
function Fa(t) {
|
|
@@ -3200,27 +3200,31 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3200
3200
|
if (Mn) return;
|
|
3201
3201
|
const t = "/login";
|
|
3202
3202
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3203
|
-
}, Mr = "SUC0000", _l = async (t) => {
|
|
3204
|
-
var i, s, u, l, c
|
|
3203
|
+
}, Mr = "SUC0000", _l = "AUM0020401", Nl = async (t) => {
|
|
3204
|
+
var a, i, s, u, l, c;
|
|
3205
3205
|
let e = t.data || {};
|
|
3206
3206
|
const n = (e == null ? void 0 : e.returnCode) || Mr;
|
|
3207
|
-
let r =
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
}
|
|
3207
|
+
let r = {};
|
|
3208
|
+
if (n !== Mr) {
|
|
3209
|
+
let p = e.errorMsg ?? "";
|
|
3210
|
+
return !(Gn("code") || "") && !Mn && n === _l ? (Un ? Jn({ ...Kn, redirect_uri: Vn }) : kn(), r = e) : (e instanceof Blob && (e = await new Promise((v) => {
|
|
3211
|
+
const y = new FileReader();
|
|
3212
|
+
y.readAsText(e, "utf-8"), y.onload = () => {
|
|
3213
|
+
try {
|
|
3214
|
+
v(JSON.parse(y.result || "{}"));
|
|
3215
|
+
} catch {
|
|
3216
|
+
v({ code: 400, msg: Ot("blob解析错误") });
|
|
3217
|
+
}
|
|
3218
|
+
};
|
|
3219
|
+
})), r = e), (a = t.config) != null && a.customErrorMessage && (p = (i = t.config) == null ? void 0 : i.customErrorMessage(p, n)), !((s = t.config) != null && s.ignoreErrorMessage) && p && ((l = (u = window.DasMessage) == null ? void 0 : u.error) == null || l.call(u, { message: p, showClose: !0 })), { data: r, code: n, msg: p };
|
|
3220
|
+
}
|
|
3221
|
+
return ((c = t.config) == null ? void 0 : c.responseType) === "blob" ? { data: t, code: n } : { data: t.data ?? t, code: n };
|
|
3222
|
+
}, Fl = async (t, e) => {
|
|
3219
3223
|
var o, a, i, s;
|
|
3220
3224
|
let n = ((o = t == null ? void 0 : t.response) == null ? void 0 : o.data) || {}, r = (a = t.response) == null ? void 0 : a.message;
|
|
3221
3225
|
if (!t.response)
|
|
3222
|
-
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), {
|
|
3223
|
-
},
|
|
3226
|
+
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), { data: n, code: t.code, msg: r, error: t };
|
|
3227
|
+
}, $l = (t, e) => {
|
|
3224
3228
|
const n = R.create();
|
|
3225
3229
|
return zn(n, async (r) => {
|
|
3226
3230
|
const o = kr();
|
|
@@ -3232,7 +3236,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3232
3236
|
}
|
|
3233
3237
|
Un ? l || (l = await Wn(r)) : (l || (l = eo()), l || kn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3234
3238
|
}
|
|
3235
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3239
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Nl), r.onError || (r.onError = Fl), (r.csrf ?? !1) && (r.headers["csrf-token"] = xl.get("csrf-token"));
|
|
3236
3240
|
const s = r.params || {};
|
|
3237
3241
|
if (s.project === void 0) {
|
|
3238
3242
|
let l = 0;
|
|
@@ -3245,7 +3249,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3245
3249
|
}
|
|
3246
3250
|
return r.params = s, r.headers.Timezone = Ut.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
|
|
3247
3251
|
});
|
|
3248
|
-
},
|
|
3252
|
+
}, Dl = "v1", lc = $l(`/api/portal/user/${Dl}`);
|
|
3249
3253
|
export {
|
|
3250
|
-
|
|
3254
|
+
lc as portal
|
|
3251
3255
|
};
|
|
Binary file
|
|
@@ -1686,22 +1686,22 @@ R.getAdapter = cn.getAdapter;
|
|
|
1686
1686
|
R.HttpStatusCode = _t;
|
|
1687
1687
|
R.default = R;
|
|
1688
1688
|
const {
|
|
1689
|
-
Axios:
|
|
1690
|
-
AxiosError:
|
|
1691
|
-
CanceledError:
|
|
1692
|
-
isCancel:
|
|
1693
|
-
CancelToken:
|
|
1694
|
-
VERSION:
|
|
1695
|
-
all:
|
|
1696
|
-
Cancel:
|
|
1697
|
-
isAxiosError:
|
|
1698
|
-
spread:
|
|
1699
|
-
toFormData:
|
|
1700
|
-
AxiosHeaders:
|
|
1701
|
-
HttpStatusCode:
|
|
1702
|
-
formToJSON:
|
|
1703
|
-
getAdapter:
|
|
1704
|
-
mergeConfig:
|
|
1689
|
+
Axios: Gl,
|
|
1690
|
+
AxiosError: Jl,
|
|
1691
|
+
CanceledError: Vl,
|
|
1692
|
+
isCancel: Kl,
|
|
1693
|
+
CancelToken: Ql,
|
|
1694
|
+
VERSION: Xl,
|
|
1695
|
+
all: Zl,
|
|
1696
|
+
Cancel: Yl,
|
|
1697
|
+
isAxiosError: ec,
|
|
1698
|
+
spread: tc,
|
|
1699
|
+
toFormData: rc,
|
|
1700
|
+
AxiosHeaders: nc,
|
|
1701
|
+
HttpStatusCode: oc,
|
|
1702
|
+
formToJSON: ac,
|
|
1703
|
+
getAdapter: ic,
|
|
1704
|
+
mergeConfig: sc
|
|
1705
1705
|
} = R;
|
|
1706
1706
|
var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1707
1707
|
function Fa(t) {
|
|
@@ -3200,27 +3200,31 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3200
3200
|
if (Mn) return;
|
|
3201
3201
|
const t = "/login";
|
|
3202
3202
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3203
|
-
}, Mr = "SUC0000", _l = async (t) => {
|
|
3204
|
-
var i, s, u, l, c
|
|
3203
|
+
}, Mr = "SUC0000", _l = "AUM0020401", Nl = async (t) => {
|
|
3204
|
+
var a, i, s, u, l, c;
|
|
3205
3205
|
let e = t.data || {};
|
|
3206
3206
|
const n = (e == null ? void 0 : e.returnCode) || Mr;
|
|
3207
|
-
let r =
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
}
|
|
3207
|
+
let r = {};
|
|
3208
|
+
if (n !== Mr) {
|
|
3209
|
+
let p = e.errorMsg ?? "";
|
|
3210
|
+
return !(Gn("code") || "") && !Mn && n === _l ? (Un ? Jn({ ...Kn, redirect_uri: Vn }) : kn(), r = e) : (e instanceof Blob && (e = await new Promise((v) => {
|
|
3211
|
+
const y = new FileReader();
|
|
3212
|
+
y.readAsText(e, "utf-8"), y.onload = () => {
|
|
3213
|
+
try {
|
|
3214
|
+
v(JSON.parse(y.result || "{}"));
|
|
3215
|
+
} catch {
|
|
3216
|
+
v({ code: 400, msg: Ot("blob解析错误") });
|
|
3217
|
+
}
|
|
3218
|
+
};
|
|
3219
|
+
})), r = e), (a = t.config) != null && a.customErrorMessage && (p = (i = t.config) == null ? void 0 : i.customErrorMessage(p, n)), !((s = t.config) != null && s.ignoreErrorMessage) && p && ((l = (u = window.DasMessage) == null ? void 0 : u.error) == null || l.call(u, { message: p, showClose: !0 })), { data: r, code: n, msg: p };
|
|
3220
|
+
}
|
|
3221
|
+
return ((c = t.config) == null ? void 0 : c.responseType) === "blob" ? { data: t, code: n } : { data: t.data ?? t, code: n };
|
|
3222
|
+
}, Fl = async (t, e) => {
|
|
3219
3223
|
var o, a, i, s;
|
|
3220
3224
|
let n = ((o = t == null ? void 0 : t.response) == null ? void 0 : o.data) || {}, r = (a = t.response) == null ? void 0 : a.message;
|
|
3221
3225
|
if (!t.response)
|
|
3222
|
-
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), {
|
|
3223
|
-
},
|
|
3226
|
+
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), { data: n, code: t.code, msg: r, error: t };
|
|
3227
|
+
}, $l = (t, e) => {
|
|
3224
3228
|
const n = R.create();
|
|
3225
3229
|
return zn(n, async (r) => {
|
|
3226
3230
|
const o = kr();
|
|
@@ -3232,7 +3236,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3232
3236
|
}
|
|
3233
3237
|
Un ? l || (l = await Wn(r)) : (l || (l = eo()), l || kn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3234
3238
|
}
|
|
3235
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3239
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Nl), r.onError || (r.onError = Fl), (r.csrf ?? !1) && (r.headers["csrf-token"] = xl.get("csrf-token"));
|
|
3236
3240
|
const s = r.params || {};
|
|
3237
3241
|
if (s.project === void 0) {
|
|
3238
3242
|
let l = 0;
|
|
@@ -3245,7 +3249,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
|
|
|
3245
3249
|
}
|
|
3246
3250
|
return r.params = s, r.headers.Timezone = Ut.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
|
|
3247
3251
|
});
|
|
3248
|
-
},
|
|
3252
|
+
}, Dl = "v1", lc = $l(`/api/space-manage/space-tree/${Dl}`);
|
|
3249
3253
|
export {
|
|
3250
|
-
|
|
3254
|
+
lc as spaceManage
|
|
3251
3255
|
};
|
|
Binary file
|