@das-fed/utils 6.4.0-test.7 → 6.4.0-test.8
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/i18n/index.d.ts +0 -5
- package/api-services/i18n/index.js +6 -7
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +157 -157
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/file/index.js +45 -44
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/index.js +75 -74
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.d.ts +1 -0
- package/api-services/modules/iot/index.js +51 -50
- package/api-services/modules/iot/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +16 -12
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/create-api-service/sso/index.js +6 -1
- package/create-api-service/sso/index.js.gz +0 -0
- package/esm-map.json +2 -1
- package/package.json +4 -4
package/api-services/index.js
CHANGED
|
@@ -12,23 +12,22 @@ import { ref as J } from "vue";
|
|
|
12
12
|
const eo = {
|
|
13
13
|
导入进度: { "zh-CN": "导入进度", en: "Import Progress", _appCode: "framework" },
|
|
14
14
|
上传失败: { "zh-CN": "上传失败", en: "Upload Failed", _appCode: "framework" },
|
|
15
|
-
导入成功: { "zh-CN": "导入成功", en: "Import
|
|
15
|
+
导入成功: { "zh-CN": "导入成功", en: "Import Successfully", _appCode: "framework" },
|
|
16
16
|
导出进度: { "zh-CN": "导出进度", en: "Export Progress", _appCode: "framework" },
|
|
17
17
|
导出: { "zh-CN": "导出", en: "Export", _appCode: "framework" },
|
|
18
18
|
导入: { "zh-CN": "导入", en: "Import", _appCode: "framework" },
|
|
19
19
|
失败: { "zh-CN": "失败", en: "Failed", _appCode: "framework" },
|
|
20
|
-
成功: { "zh-CN": "成功", en: "
|
|
21
|
-
部分: { "zh-CN": "部分", en: "Partial", _appCode: "framework" },
|
|
20
|
+
成功: { "zh-CN": "成功", en: "Successfully", _appCode: "framework" },
|
|
22
21
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
23
22
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
24
|
-
en: "Some data
|
|
23
|
+
en: "Some data failed to pass the verification. Please download the attachment, make modifications and import it again!",
|
|
25
24
|
_appCode: "framework"
|
|
26
25
|
},
|
|
27
|
-
"das-utils_export-success-tip": { "zh-CN": "$0成功", en: "$0
|
|
28
|
-
"das-utils_export-failure-tip": { "zh-CN": "$0失败", en: "$0
|
|
26
|
+
"das-utils_export-success-tip": { "zh-CN": "$0成功", en: "$0 Successfully", _appCode: "framework" },
|
|
27
|
+
"das-utils_export-failure-tip": { "zh-CN": "$0失败", en: "$0 Failed", _appCode: "framework" },
|
|
29
28
|
"das-utils_export-partially-failure-tip": {
|
|
30
29
|
"zh-CN": "部分$0失败",
|
|
31
|
-
en: "Partially $0
|
|
30
|
+
en: "Partially $0 Failed",
|
|
32
31
|
_appCode: "framework"
|
|
33
32
|
}
|
|
34
33
|
};
|
|
@@ -40,11 +39,11 @@ function Kr(t, e) {
|
|
|
40
39
|
const { toString: to } = Object.prototype, { getPrototypeOf: zt } = Object, tt = /* @__PURE__ */ ((t) => (e) => {
|
|
41
40
|
const n = to.call(e);
|
|
42
41
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
43
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
42
|
+
})(/* @__PURE__ */ Object.create(null)), X = (t) => (t = t.toLowerCase(), (e) => tt(e) === t), rt = (t) => (e) => typeof e === t, { isArray: Ae } = Array, _e = rt("undefined");
|
|
44
43
|
function ro(t) {
|
|
45
44
|
return t !== null && !_e(t) && t.constructor !== null && !_e(t.constructor) && K(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
46
45
|
}
|
|
47
|
-
const Gr =
|
|
46
|
+
const Gr = X("ArrayBuffer");
|
|
48
47
|
function no(t) {
|
|
49
48
|
let e;
|
|
50
49
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Gr(t.buffer), e;
|
|
@@ -54,11 +53,11 @@ const oo = rt("string"), K = rt("function"), Jr = rt("number"), nt = (t) => t !=
|
|
|
54
53
|
return !1;
|
|
55
54
|
const e = zt(t);
|
|
56
55
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
57
|
-
}, io =
|
|
56
|
+
}, io = X("Date"), so = X("File"), lo = X("Blob"), co = X("FileList"), uo = (t) => nt(t) && K(t.pipe), fo = (t) => {
|
|
58
57
|
let e;
|
|
59
58
|
return t && (typeof FormData == "function" && t instanceof FormData || K(t.append) && ((e = tt(t)) === "formdata" || // detect form-data instance
|
|
60
59
|
e === "object" && K(t.toString) && t.toString() === "[object FormData]"));
|
|
61
|
-
}, po =
|
|
60
|
+
}, po = X("URLSearchParams"), [yo, mo, ho, go] = ["ReadableStream", "Request", "Response", "Headers"].map(X), vo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
62
61
|
function Fe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
63
62
|
if (t === null || typeof t > "u")
|
|
64
63
|
return;
|
|
@@ -92,9 +91,9 @@ function xt() {
|
|
|
92
91
|
arguments[r] && Fe(arguments[r], n);
|
|
93
92
|
return e;
|
|
94
93
|
}
|
|
95
|
-
const
|
|
94
|
+
const bo = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (o, a) => {
|
|
96
95
|
n && K(o) ? t[a] = Kr(o, n) : t[a] = o;
|
|
97
|
-
}, { allOwnKeys: r }), t),
|
|
96
|
+
}, { allOwnKeys: r }), t), wo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), So = (t, e, n, r) => {
|
|
98
97
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
99
98
|
value: e.prototype
|
|
100
99
|
}), n && Object.assign(t.prototype, n);
|
|
@@ -134,12 +133,12 @@ const wo = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (o, a) => {
|
|
|
134
133
|
for (; (n = t.exec(e)) !== null; )
|
|
135
134
|
r.push(n);
|
|
136
135
|
return r;
|
|
137
|
-
}, To =
|
|
136
|
+
}, To = X("HTMLFormElement"), $o = (t) => t.toLowerCase().replace(
|
|
138
137
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
139
138
|
function(n, r, o) {
|
|
140
139
|
return r.toUpperCase() + o;
|
|
141
140
|
}
|
|
142
|
-
), ir = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Co =
|
|
141
|
+
), ir = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Co = X("RegExp"), Xr = (t, e) => {
|
|
143
142
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
144
143
|
Fe(n, (o, a) => {
|
|
145
144
|
let i;
|
|
@@ -199,7 +198,7 @@ const Bo = (t) => {
|
|
|
199
198
|
return r;
|
|
200
199
|
};
|
|
201
200
|
return n(t, 0);
|
|
202
|
-
}, Lo =
|
|
201
|
+
}, Lo = X("AsyncFunction"), Uo = (t) => t && (nt(t) || K(t)) && K(t.then) && K(t.catch), Zr = ((t, e) => t ? setImmediate : e ? ((n, r) => (ce.addEventListener("message", ({ source: o, data: a }) => {
|
|
203
202
|
o === ce && a === n && r.length && r.shift()();
|
|
204
203
|
}, !1), (o) => {
|
|
205
204
|
r.push(o), ce.postMessage(n, "*");
|
|
@@ -233,13 +232,13 @@ const Bo = (t) => {
|
|
|
233
232
|
isFileList: co,
|
|
234
233
|
forEach: Fe,
|
|
235
234
|
merge: xt,
|
|
236
|
-
extend:
|
|
235
|
+
extend: bo,
|
|
237
236
|
trim: vo,
|
|
238
|
-
stripBOM:
|
|
237
|
+
stripBOM: wo,
|
|
239
238
|
inherits: So,
|
|
240
239
|
toFlatObject: Eo,
|
|
241
240
|
kindOf: tt,
|
|
242
|
-
kindOfTest:
|
|
241
|
+
kindOfTest: X,
|
|
243
242
|
endsWith: Ao,
|
|
244
243
|
toArray: Oo,
|
|
245
244
|
forEachEntry: Po,
|
|
@@ -1139,7 +1138,7 @@ const fn = (t) => {
|
|
|
1139
1138
|
const { signal: u } = r;
|
|
1140
1139
|
return u.unsubscribe = () => f.asap(s), u;
|
|
1141
1140
|
}
|
|
1142
|
-
},
|
|
1141
|
+
}, ba = function* (t, e) {
|
|
1143
1142
|
let n = t.byteLength;
|
|
1144
1143
|
if (n < e) {
|
|
1145
1144
|
yield t;
|
|
@@ -1148,9 +1147,9 @@ const fn = (t) => {
|
|
|
1148
1147
|
let r = 0, o;
|
|
1149
1148
|
for (; r < n; )
|
|
1150
1149
|
o = r + e, yield t.slice(r, o), r = o;
|
|
1151
|
-
},
|
|
1150
|
+
}, wa = async function* (t, e) {
|
|
1152
1151
|
for await (const n of Sa(t))
|
|
1153
|
-
yield*
|
|
1152
|
+
yield* ba(n, e);
|
|
1154
1153
|
}, Sa = async function* (t) {
|
|
1155
1154
|
if (t[Symbol.asyncIterator]) {
|
|
1156
1155
|
yield* t;
|
|
@@ -1168,7 +1167,7 @@ const fn = (t) => {
|
|
|
1168
1167
|
await e.cancel();
|
|
1169
1168
|
}
|
|
1170
1169
|
}, mr = (t, e, n, r) => {
|
|
1171
|
-
const o =
|
|
1170
|
+
const o = wa(t, e);
|
|
1172
1171
|
let a = 0, i, s = (u) => {
|
|
1173
1172
|
i || (i = !0, r && r(u));
|
|
1174
1173
|
};
|
|
@@ -1397,7 +1396,7 @@ const mn = "1.7.7", Wt = {};
|
|
|
1397
1396
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1398
1397
|
};
|
|
1399
1398
|
});
|
|
1400
|
-
const
|
|
1399
|
+
const br = {};
|
|
1401
1400
|
Wt.transitional = function(e, n, r) {
|
|
1402
1401
|
function o(a, i) {
|
|
1403
1402
|
return "[Axios v" + mn + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
@@ -1408,7 +1407,7 @@ Wt.transitional = function(e, n, r) {
|
|
|
1408
1407
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1409
1408
|
S.ERR_DEPRECATED
|
|
1410
1409
|
);
|
|
1411
|
-
return n && !
|
|
1410
|
+
return n && !br[i] && (br[i] = !0), e ? e(a, i, s) : !0;
|
|
1412
1411
|
};
|
|
1413
1412
|
};
|
|
1414
1413
|
function Ta(t, e, n) {
|
|
@@ -1728,7 +1727,7 @@ D.formToJSON = (t) => sn(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
|
1728
1727
|
D.getAdapter = yn.getAdapter;
|
|
1729
1728
|
D.HttpStatusCode = Ft;
|
|
1730
1729
|
D.default = D;
|
|
1731
|
-
var
|
|
1730
|
+
var wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1732
1731
|
function Na(t) {
|
|
1733
1732
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1734
1733
|
}
|
|
@@ -1819,7 +1818,7 @@ var Fa = Error, Da = EvalError, Ia = RangeError, ka = ReferenceError, gn = Synta
|
|
|
1819
1818
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1820
1819
|
}
|
|
1821
1820
|
return o;
|
|
1822
|
-
}, Qa = Va, Gt = Function.prototype.bind || Qa, Xa = Function.prototype.call, Ya = Object.prototype.hasOwnProperty, Za = Gt, ei = Za.call(Xa, Ya), A, ti = Fa, ri = Da, ni = Ia, oi = ka,
|
|
1821
|
+
}, Qa = Va, Gt = Function.prototype.bind || Qa, Xa = Function.prototype.call, Ya = Object.prototype.hasOwnProperty, Za = Gt, ei = Za.call(Xa, Ya), A, ti = Fa, ri = Da, ni = Ia, oi = ka, we = gn, be = Ie, ai = Ba, vn = Function, mt = function(t) {
|
|
1823
1822
|
try {
|
|
1824
1823
|
return vn('"use strict"; return (' + t + ").constructor;")();
|
|
1825
1824
|
} catch {
|
|
@@ -1832,7 +1831,7 @@ if (fe)
|
|
|
1832
1831
|
fe = null;
|
|
1833
1832
|
}
|
|
1834
1833
|
var ht = function() {
|
|
1835
|
-
throw new
|
|
1834
|
+
throw new be();
|
|
1836
1835
|
}, ii = fe ? function() {
|
|
1837
1836
|
try {
|
|
1838
1837
|
return arguments.callee, ht;
|
|
@@ -1902,10 +1901,10 @@ var ht = function() {
|
|
|
1902
1901
|
"%String%": String,
|
|
1903
1902
|
"%StringIteratorPrototype%": he && k ? k(""[Symbol.iterator]()) : A,
|
|
1904
1903
|
"%Symbol%": he ? Symbol : A,
|
|
1905
|
-
"%SyntaxError%":
|
|
1904
|
+
"%SyntaxError%": we,
|
|
1906
1905
|
"%ThrowTypeError%": ii,
|
|
1907
1906
|
"%TypedArray%": li,
|
|
1908
|
-
"%TypeError%":
|
|
1907
|
+
"%TypeError%": be,
|
|
1909
1908
|
"%Uint8Array%": typeof Uint8Array > "u" ? A : Uint8Array,
|
|
1910
1909
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? A : Uint8ClampedArray,
|
|
1911
1910
|
"%Uint16Array%": typeof Uint16Array > "u" ? A : Uint16Array,
|
|
@@ -1994,9 +1993,9 @@ var ui = function t(e) {
|
|
|
1994
1993
|
}, ke = Gt, Qe = ei, fi = ke.call(Function.call, Array.prototype.concat), pi = ke.call(Function.apply, Array.prototype.splice), Or = ke.call(Function.call, String.prototype.replace), Xe = ke.call(Function.call, String.prototype.slice), di = ke.call(Function.call, RegExp.prototype.exec), yi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, mi = /\\(\\)?/g, hi = function(e) {
|
|
1995
1994
|
var n = Xe(e, 0, 1), r = Xe(e, -1);
|
|
1996
1995
|
if (n === "%" && r !== "%")
|
|
1997
|
-
throw new
|
|
1996
|
+
throw new we("invalid intrinsic syntax, expected closing `%`");
|
|
1998
1997
|
if (r === "%" && n !== "%")
|
|
1999
|
-
throw new
|
|
1998
|
+
throw new we("invalid intrinsic syntax, expected opening `%`");
|
|
2000
1999
|
var o = [];
|
|
2001
2000
|
return Or(e, yi, function(a, i, s, u) {
|
|
2002
2001
|
o[o.length] = s ? Or(u, mi, "$1") : i || a;
|
|
@@ -2006,33 +2005,33 @@ var ui = function t(e) {
|
|
|
2006
2005
|
if (Qe(Ar, r) && (o = Ar[r], r = "%" + o[0] + "%"), Qe(pe, r)) {
|
|
2007
2006
|
var a = pe[r];
|
|
2008
2007
|
if (a === ve && (a = ui(r)), typeof a > "u" && !n)
|
|
2009
|
-
throw new
|
|
2008
|
+
throw new be("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
2010
2009
|
return {
|
|
2011
2010
|
alias: o,
|
|
2012
2011
|
name: r,
|
|
2013
2012
|
value: a
|
|
2014
2013
|
};
|
|
2015
2014
|
}
|
|
2016
|
-
throw new
|
|
2015
|
+
throw new we("intrinsic " + e + " does not exist!");
|
|
2017
2016
|
}, Re = function(e, n) {
|
|
2018
2017
|
if (typeof e != "string" || e.length === 0)
|
|
2019
|
-
throw new
|
|
2018
|
+
throw new be("intrinsic name must be a non-empty string");
|
|
2020
2019
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
2021
|
-
throw new
|
|
2020
|
+
throw new be('"allowMissing" argument must be a boolean');
|
|
2022
2021
|
if (di(/^%?[^%]*%?$/, e) === null)
|
|
2023
|
-
throw new
|
|
2022
|
+
throw new we("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2024
2023
|
var r = hi(e), o = r.length > 0 ? r[0] : "", a = gi("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
|
|
2025
2024
|
l && (o = l[0], pi(r, fi([0, 1], l)));
|
|
2026
2025
|
for (var c = 1, p = !0; c < r.length; c += 1) {
|
|
2027
2026
|
var d = r[c], g = Xe(d, 0, 1), y = Xe(d, -1);
|
|
2028
2027
|
if ((g === '"' || g === "'" || g === "`" || y === '"' || y === "'" || y === "`") && g !== y)
|
|
2029
|
-
throw new
|
|
2028
|
+
throw new we("property names with quotes must have matching quotes");
|
|
2030
2029
|
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Qe(pe, i))
|
|
2031
2030
|
s = pe[i];
|
|
2032
2031
|
else if (s != null) {
|
|
2033
2032
|
if (!(d in s)) {
|
|
2034
2033
|
if (!n)
|
|
2035
|
-
throw new
|
|
2034
|
+
throw new be("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2036
2035
|
return;
|
|
2037
2036
|
}
|
|
2038
2037
|
if (fe && c + 1 >= r.length) {
|
|
@@ -2044,7 +2043,7 @@ var ui = function t(e) {
|
|
|
2044
2043
|
}
|
|
2045
2044
|
}
|
|
2046
2045
|
return s;
|
|
2047
|
-
},
|
|
2046
|
+
}, bn = { exports: {} }, gt, Rr;
|
|
2048
2047
|
function Jt() {
|
|
2049
2048
|
if (Rr) return gt;
|
|
2050
2049
|
Rr = 1;
|
|
@@ -2064,7 +2063,7 @@ if (We)
|
|
|
2064
2063
|
} catch {
|
|
2065
2064
|
We = null;
|
|
2066
2065
|
}
|
|
2067
|
-
var
|
|
2066
|
+
var wn = We, Pr = Jt(), bi = gn, ge = Ie, xr = wn, wi = function(e, n, r) {
|
|
2068
2067
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
2069
2068
|
throw new ge("`obj` must be an object or a function`");
|
|
2070
2069
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -2088,7 +2087,7 @@ var bn = We, Pr = Jt(), wi = gn, ge = Ie, xr = bn, bi = function(e, n, r) {
|
|
|
2088
2087
|
else if (s || !o && !a && !i)
|
|
2089
2088
|
e[n] = r;
|
|
2090
2089
|
else
|
|
2091
|
-
throw new
|
|
2090
|
+
throw new bi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2092
2091
|
}, Dt = Jt(), Sn = function() {
|
|
2093
2092
|
return !!Dt;
|
|
2094
2093
|
};
|
|
@@ -2101,7 +2100,7 @@ Sn.hasArrayLengthDefineBug = function() {
|
|
|
2101
2100
|
return !0;
|
|
2102
2101
|
}
|
|
2103
2102
|
};
|
|
2104
|
-
var Si = Sn, Ei = Re, Tr =
|
|
2103
|
+
var Si = Sn, Ei = Re, Tr = wi, Ai = Si(), $r = wn, Cr = Ie, Oi = Ei("%Math.floor%"), Ri = function(e, n) {
|
|
2105
2104
|
if (typeof e != "function")
|
|
2106
2105
|
throw new Cr("`fn` is not a function");
|
|
2107
2106
|
if (typeof n != "number" || n < 0 || n > 4294967295 || Oi(n) !== n)
|
|
@@ -2141,8 +2140,8 @@ var Si = Sn, Ei = Re, Tr = bi, Ai = Si(), $r = bn, Cr = Ie, Oi = Ei("%Math.floor
|
|
|
2141
2140
|
return s(e, a, arguments);
|
|
2142
2141
|
};
|
|
2143
2142
|
u ? u(t.exports, "apply", { value: c }) : t.exports.apply = c;
|
|
2144
|
-
})(
|
|
2145
|
-
var Pi =
|
|
2143
|
+
})(bn);
|
|
2144
|
+
var Pi = bn.exports, En = Re, An = Pi, xi = An(En("String.prototype.indexOf")), Ti = function(e, n) {
|
|
2146
2145
|
var r = En(e, !!n);
|
|
2147
2146
|
return typeof r == "function" && xi(e, ".prototype.") > -1 ? An(r) : r;
|
|
2148
2147
|
};
|
|
@@ -2150,7 +2149,7 @@ const $i = {}, Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2150
2149
|
__proto__: null,
|
|
2151
2150
|
default: $i
|
|
2152
2151
|
}, Symbol.toStringTag, { value: "Module" })), Ni = /* @__PURE__ */ _a(Ci);
|
|
2153
|
-
var Vt = typeof Map == "function" && Map.prototype, vt = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ye = Vt && vt && typeof vt.get == "function" ? vt.get : null, Nr = Vt && Map.prototype.forEach, Qt = typeof Set == "function" && Set.prototype,
|
|
2152
|
+
var Vt = typeof Map == "function" && Map.prototype, vt = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ye = Vt && vt && typeof vt.get == "function" ? vt.get : null, Nr = Vt && Map.prototype.forEach, Qt = typeof Set == "function" && Set.prototype, bt = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ze = Qt && bt && typeof bt.get == "function" ? bt.get : null, _r = Qt && Set.prototype.forEach, _i = typeof WeakMap == "function" && WeakMap.prototype, $e = _i ? WeakMap.prototype.has : null, Fi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Fi ? WeakSet.prototype.has : null, Di = typeof WeakRef == "function" && WeakRef.prototype, Fr = Di ? WeakRef.prototype.deref : null, Ii = Boolean.prototype.valueOf, ki = Object.prototype.toString, Bi = Function.prototype.toString, Li = String.prototype.match, Xt = String.prototype.slice, ae = String.prototype.replace, Ui = String.prototype.toUpperCase, Dr = String.prototype.toLowerCase, On = RegExp.prototype.test, Ir = Array.prototype.concat, te = Array.prototype.join, Mi = Array.prototype.slice, kr = Math.floor, It = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, wt = Object.getOwnPropertySymbols, kt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Se = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Se || !0) ? Symbol.toStringTag : null, Rn = Object.prototype.propertyIsEnumerable, Br = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2154
2153
|
return t.__proto__;
|
|
2155
2154
|
} : null);
|
|
2156
2155
|
function Lr(t, e) {
|
|
@@ -2206,8 +2205,8 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2206
2205
|
o = [];
|
|
2207
2206
|
else if (Tn(o, e) >= 0)
|
|
2208
2207
|
return "[Circular]";
|
|
2209
|
-
function d(x, _,
|
|
2210
|
-
if (_ && (o = Mi.call(o), o.push(_)),
|
|
2208
|
+
function d(x, _, b) {
|
|
2209
|
+
if (_ && (o = Mi.call(o), o.push(_)), b) {
|
|
2211
2210
|
var M = {
|
|
2212
2211
|
depth: a.depth
|
|
2213
2212
|
};
|
|
@@ -2217,7 +2216,7 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2217
2216
|
}
|
|
2218
2217
|
if (typeof e == "function" && !jr(e)) {
|
|
2219
2218
|
var g = Qi(e), y = Le(e, d);
|
|
2220
|
-
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " +
|
|
2219
|
+
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + te.call(y, ", ") + " }" : "");
|
|
2221
2220
|
}
|
|
2222
2221
|
if (xn(e)) {
|
|
2223
2222
|
var h = Se ? ae.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : kt.call(e);
|
|
@@ -2232,11 +2231,11 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2232
2231
|
if (e.length === 0)
|
|
2233
2232
|
return "[]";
|
|
2234
2233
|
var v = Le(e, d);
|
|
2235
|
-
return p && !os(v) ? "[" + Ut(v, p) + "]" : "[ " +
|
|
2234
|
+
return p && !os(v) ? "[" + Ut(v, p) + "]" : "[ " + te.call(v, ", ") + " ]";
|
|
2236
2235
|
}
|
|
2237
2236
|
if (Hi(e)) {
|
|
2238
2237
|
var F = Le(e, d);
|
|
2239
|
-
return !("cause" in Error.prototype) && "cause" in e && !Rn.call(e, "cause") ? "{ [" + String(e) + "] " +
|
|
2238
|
+
return !("cause" in Error.prototype) && "cause" in e && !Rn.call(e, "cause") ? "{ [" + String(e) + "] " + te.call(Ir.call("[cause]: " + d(e.cause), F), ", ") + " }" : F.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + te.call(F, ", ") + " }";
|
|
2240
2239
|
}
|
|
2241
2240
|
if (typeof e == "object" && i) {
|
|
2242
2241
|
if (Mr && typeof e[Mr] == "function" && Bt)
|
|
@@ -2272,11 +2271,11 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2272
2271
|
return Te(d(String(e)));
|
|
2273
2272
|
if (typeof window < "u" && e === window)
|
|
2274
2273
|
return "{ [object Window] }";
|
|
2275
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
2274
|
+
if (typeof globalThis < "u" && e === globalThis || typeof wr < "u" && e === wr)
|
|
2276
2275
|
return "{ [object globalThis] }";
|
|
2277
2276
|
if (!qi(e) && !jr(e)) {
|
|
2278
|
-
var L = Le(e, d), G = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object, V = e instanceof Object ? "" : "null prototype", E = !G && U && Object(e) === e && U in e ? Xt.call(ie(e), 8, -1) : V ? "Object" : "", O = G || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", $ = O + (E || V ? "[" +
|
|
2279
|
-
return L.length === 0 ? $ + "{}" : p ? $ + "{" + Ut(L, p) + "}" : $ + "{ " +
|
|
2277
|
+
var L = Le(e, d), G = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object, V = e instanceof Object ? "" : "null prototype", E = !G && U && Object(e) === e && U in e ? Xt.call(ie(e), 8, -1) : V ? "Object" : "", O = G || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", $ = O + (E || V ? "[" + te.call(Ir.call([], E || [], V || []), ": ") + "] " : "");
|
|
2278
|
+
return L.length === 0 ? $ + "{}" : p ? $ + "{" + Ut(L, p) + "}" : $ + "{ " + te.call(L, ", ") + " }";
|
|
2280
2279
|
}
|
|
2281
2280
|
return String(e);
|
|
2282
2281
|
};
|
|
@@ -2450,7 +2449,7 @@ function St(t) {
|
|
|
2450
2449
|
return t + " { ? }";
|
|
2451
2450
|
}
|
|
2452
2451
|
function zr(t, e, n, r) {
|
|
2453
|
-
var o = r ? Ut(n, r) :
|
|
2452
|
+
var o = r ? Ut(n, r) : te.call(n, ", ");
|
|
2454
2453
|
return t + " (" + e + ") {" + o + "}";
|
|
2455
2454
|
}
|
|
2456
2455
|
function os(t) {
|
|
@@ -2465,12 +2464,12 @@ function as(t, e) {
|
|
|
2465
2464
|
if (t.indent === " ")
|
|
2466
2465
|
n = " ";
|
|
2467
2466
|
else if (typeof t.indent == "number" && t.indent > 0)
|
|
2468
|
-
n =
|
|
2467
|
+
n = te.call(Array(t.indent + 1), " ");
|
|
2469
2468
|
else
|
|
2470
2469
|
return null;
|
|
2471
2470
|
return {
|
|
2472
2471
|
base: n,
|
|
2473
|
-
prev:
|
|
2472
|
+
prev: te.call(Array(e + 1), n)
|
|
2474
2473
|
};
|
|
2475
2474
|
}
|
|
2476
2475
|
function Ut(t, e) {
|
|
@@ -2478,7 +2477,7 @@ function Ut(t, e) {
|
|
|
2478
2477
|
return "";
|
|
2479
2478
|
var n = `
|
|
2480
2479
|
` + e.prev + e.base;
|
|
2481
|
-
return n +
|
|
2480
|
+
return n + te.call(t, "," + n) + `
|
|
2482
2481
|
` + e.prev;
|
|
2483
2482
|
}
|
|
2484
2483
|
function Le(t, e) {
|
|
@@ -2488,7 +2487,7 @@ function Le(t, e) {
|
|
|
2488
2487
|
for (var o = 0; o < t.length; o++)
|
|
2489
2488
|
r[o] = oe(t, o) ? e(t[o], t) : "";
|
|
2490
2489
|
}
|
|
2491
|
-
var a = typeof
|
|
2490
|
+
var a = typeof wt == "function" ? wt(t) : [], i;
|
|
2492
2491
|
if (Se) {
|
|
2493
2492
|
i = {};
|
|
2494
2493
|
for (var s = 0; s < a.length; s++)
|
|
@@ -2496,7 +2495,7 @@ function Le(t, e) {
|
|
|
2496
2495
|
}
|
|
2497
2496
|
for (var u in t)
|
|
2498
2497
|
oe(t, u) && (n && String(Number(u)) === u && u < t.length || Se && i["$" + u] instanceof Symbol || (On.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
|
|
2499
|
-
if (typeof
|
|
2498
|
+
if (typeof wt == "function")
|
|
2500
2499
|
for (var l = 0; l < a.length; l++)
|
|
2501
2500
|
Rn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2502
2501
|
return r;
|
|
@@ -2552,14 +2551,14 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2552
2551
|
}
|
|
2553
2552
|
};
|
|
2554
2553
|
return o;
|
|
2555
|
-
}, vs = String.prototype.replace,
|
|
2554
|
+
}, vs = String.prototype.replace, bs = /%20/g, Et = {
|
|
2556
2555
|
RFC1738: "RFC1738",
|
|
2557
2556
|
RFC3986: "RFC3986"
|
|
2558
2557
|
}, Zt = {
|
|
2559
2558
|
default: Et.RFC3986,
|
|
2560
2559
|
formatters: {
|
|
2561
2560
|
RFC1738: function(t) {
|
|
2562
|
-
return vs.call(t,
|
|
2561
|
+
return vs.call(t, bs, "+");
|
|
2563
2562
|
},
|
|
2564
2563
|
RFC3986: function(t) {
|
|
2565
2564
|
return String(t);
|
|
@@ -2567,7 +2566,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2567
2566
|
},
|
|
2568
2567
|
RFC1738: Et.RFC1738,
|
|
2569
2568
|
RFC3986: Et.RFC3986
|
|
2570
|
-
},
|
|
2569
|
+
}, ws = Zt, At = Object.prototype.hasOwnProperty, le = Array.isArray, Z = function() {
|
|
2571
2570
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2572
2571
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2573
2572
|
return t;
|
|
@@ -2633,23 +2632,23 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2633
2632
|
for (var s = "", u = 0; u < i.length; u += Ot) {
|
|
2634
2633
|
for (var l = i.length >= Ot ? i.slice(u, u + Ot) : i, c = [], p = 0; p < l.length; ++p) {
|
|
2635
2634
|
var d = l.charCodeAt(p);
|
|
2636
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a ===
|
|
2635
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === ws.RFC1738 && (d === 40 || d === 41)) {
|
|
2637
2636
|
c[c.length] = l.charAt(p);
|
|
2638
2637
|
continue;
|
|
2639
2638
|
}
|
|
2640
2639
|
if (d < 128) {
|
|
2641
|
-
c[c.length] =
|
|
2640
|
+
c[c.length] = Z[d];
|
|
2642
2641
|
continue;
|
|
2643
2642
|
}
|
|
2644
2643
|
if (d < 2048) {
|
|
2645
|
-
c[c.length] =
|
|
2644
|
+
c[c.length] = Z[192 | d >> 6] + Z[128 | d & 63];
|
|
2646
2645
|
continue;
|
|
2647
2646
|
}
|
|
2648
2647
|
if (d < 55296 || d >= 57344) {
|
|
2649
|
-
c[c.length] =
|
|
2648
|
+
c[c.length] = Z[224 | d >> 12] + Z[128 | d >> 6 & 63] + Z[128 | d & 63];
|
|
2650
2649
|
continue;
|
|
2651
2650
|
}
|
|
2652
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2651
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = Z[240 | d >> 18] + Z[128 | d >> 12 & 63] + Z[128 | d >> 6 & 63] + Z[128 | d & 63];
|
|
2653
2652
|
}
|
|
2654
2653
|
s += c.join("");
|
|
2655
2654
|
}
|
|
@@ -2696,8 +2695,8 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2696
2695
|
repeat: function(e) {
|
|
2697
2696
|
return e;
|
|
2698
2697
|
}
|
|
2699
|
-
},
|
|
2700
|
-
_s.apply(t,
|
|
2698
|
+
}, ee = Array.isArray, _s = Array.prototype.push, In = function(t, e) {
|
|
2699
|
+
_s.apply(t, ee(e) ? e : [e]);
|
|
2701
2700
|
}, Fs = Date.prototype.toISOString, qr = Ne.default, I = {
|
|
2702
2701
|
addQueryPrefix: !1,
|
|
2703
2702
|
allowDots: !1,
|
|
@@ -2731,7 +2730,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2731
2730
|
}
|
|
2732
2731
|
typeof F.get(Rt) > "u" && (T = 0);
|
|
2733
2732
|
}
|
|
2734
|
-
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" &&
|
|
2733
|
+
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && ee(v) && (v = Ke.maybeMap(v, function(q) {
|
|
2735
2734
|
return q instanceof Date ? g(q) : q;
|
|
2736
2735
|
})), v === null) {
|
|
2737
2736
|
if (i)
|
|
@@ -2749,21 +2748,21 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2749
2748
|
if (typeof v > "u")
|
|
2750
2749
|
return V;
|
|
2751
2750
|
var E;
|
|
2752
|
-
if (r === "comma" &&
|
|
2751
|
+
if (r === "comma" && ee(v))
|
|
2753
2752
|
m && l && (v = Ke.maybeMap(v, l)), E = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
2754
|
-
else if (
|
|
2753
|
+
else if (ee(c))
|
|
2755
2754
|
E = c;
|
|
2756
2755
|
else {
|
|
2757
2756
|
var O = Object.keys(v);
|
|
2758
2757
|
E = p ? O.sort(p) : O;
|
|
2759
2758
|
}
|
|
2760
|
-
var $ = u ? n.replace(/\./g, "%2E") : n, x = o &&
|
|
2761
|
-
if (a &&
|
|
2759
|
+
var $ = u ? n.replace(/\./g, "%2E") : n, x = o && ee(v) && v.length === 1 ? $ + "[]" : $;
|
|
2760
|
+
if (a && ee(v) && v.length === 0)
|
|
2762
2761
|
return x + "[]";
|
|
2763
2762
|
for (var _ = 0; _ < E.length; ++_) {
|
|
2764
|
-
var
|
|
2763
|
+
var b = E[_], M = typeof b == "object" && typeof b.value < "u" ? b.value : v[b];
|
|
2765
2764
|
if (!(s && M === null)) {
|
|
2766
|
-
var j = d && u ?
|
|
2765
|
+
var j = d && u ? b.replace(/\./g, "%2E") : b, z = ee(v) ? typeof r == "function" ? r(x, j) : x : x + (d ? "." + j : "[" + j + "]");
|
|
2767
2766
|
P.set(e, T);
|
|
2768
2767
|
var se = Fn();
|
|
2769
2768
|
se.set(Rt, P), In(V, t(
|
|
@@ -2775,7 +2774,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2775
2774
|
i,
|
|
2776
2775
|
s,
|
|
2777
2776
|
u,
|
|
2778
|
-
r === "comma" && m &&
|
|
2777
|
+
r === "comma" && m && ee(v) ? null : l,
|
|
2779
2778
|
c,
|
|
2780
2779
|
p,
|
|
2781
2780
|
d,
|
|
@@ -2808,7 +2807,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2808
2807
|
r = e.format;
|
|
2809
2808
|
}
|
|
2810
2809
|
var o = Ne.formatters[r], a = I.filter;
|
|
2811
|
-
(typeof e.filter == "function" ||
|
|
2810
|
+
(typeof e.filter == "function" || ee(e.filter)) && (a = e.filter);
|
|
2812
2811
|
var i;
|
|
2813
2812
|
if (e.arrayFormat in Dn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = I.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2814
2813
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
@@ -2836,7 +2835,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2836
2835
|
};
|
|
2837
2836
|
}, Bs = function(t, e) {
|
|
2838
2837
|
var n = t, r = ks(e), o, a;
|
|
2839
|
-
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) :
|
|
2838
|
+
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : ee(r.filter) && (a = r.filter, o = a);
|
|
2840
2839
|
var i = [];
|
|
2841
2840
|
if (typeof n != "object" || n === null)
|
|
2842
2841
|
return "";
|
|
@@ -3124,7 +3123,7 @@ const er = Ge(), Bn = er.sso ?? !0, tl = er.i18n ?? !0, Ln = er.noRedireLogin ??
|
|
|
3124
3123
|
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 }));
|
|
3125
3124
|
}
|
|
3126
3125
|
return { ...o, code: n, msg: r, error: t };
|
|
3127
|
-
},
|
|
3126
|
+
}, w = (t, e) => {
|
|
3128
3127
|
const n = D.create();
|
|
3129
3128
|
return qn(n, async (r) => {
|
|
3130
3129
|
const o = Ge();
|
|
@@ -3149,29 +3148,29 @@ const er = Ge(), Bn = er.sso ?? !0, tl = er.i18n ?? !0, Ln = er.noRedireLogin ??
|
|
|
3149
3148
|
}
|
|
3150
3149
|
return r.params = s, r.headers.Timezone = et.tz.guess(), r.headers["X-Origin"] = location.origin, (e == null ? void 0 : e(r)) || r;
|
|
3151
3150
|
});
|
|
3152
|
-
}, ol = "v1", Bl =
|
|
3153
|
-
energyType:
|
|
3154
|
-
energyObject:
|
|
3155
|
-
energyDimension:
|
|
3156
|
-
}, sl = "v1", Ml =
|
|
3157
|
-
classes:
|
|
3151
|
+
}, ol = "v1", Bl = w(`/api/app-manager/application/${ol}`), al = "v1", Ll = w(`/api/license/admin/${al}`), il = "v1", Pt = `/api/bems/data-manage/${il}`, Ul = {
|
|
3152
|
+
energyType: w(`${Pt}/energy-type`),
|
|
3153
|
+
energyObject: w(`${Pt}/energy-object`),
|
|
3154
|
+
energyDimension: w(`${Pt}/energy-dimension`)
|
|
3155
|
+
}, sl = "v1", Ml = w(`/api/supply/contract/${sl}`), ze = "v1", jl = {
|
|
3156
|
+
classes: w(`/api/duty-manage/classes/${ze}`),
|
|
3158
3157
|
// 班次管理
|
|
3159
|
-
group:
|
|
3158
|
+
group: w(`/api/duty-manage/group/${ze}`),
|
|
3160
3159
|
// 分组管理
|
|
3161
|
-
scheduling:
|
|
3160
|
+
scheduling: w(`/api/duty-manage/scheduling/${ze}`),
|
|
3162
3161
|
// 排班管理
|
|
3163
|
-
shift:
|
|
3162
|
+
shift: w(`/api/duty-manage/shift/${ze}`)
|
|
3164
3163
|
// 交接班管理
|
|
3165
|
-
}, ll = "v1", zl =
|
|
3166
|
-
thingmodel:
|
|
3167
|
-
deviceManage:
|
|
3168
|
-
product:
|
|
3169
|
-
productStorage:
|
|
3164
|
+
}, ll = "v1", zl = w(`/api/enterpriseright/permission/${ll}`), Q = "v1", ql = w(`/api/iot/${Q}`), Hl = {
|
|
3165
|
+
thingmodel: w(`/api/iot-device/thingmodel/${Q}`),
|
|
3166
|
+
deviceManage: w(`/api/iot-device/devicemanage/${Q}`),
|
|
3167
|
+
product: w(`/api/iot-device/product/${Q}`),
|
|
3168
|
+
productStorage: w(`/api/iot-device/product-storage/${Q}`)
|
|
3170
3169
|
}, Wl = {
|
|
3171
|
-
projectDevice:
|
|
3172
|
-
deviceRules:
|
|
3173
|
-
project:
|
|
3174
|
-
}, tr =
|
|
3170
|
+
projectDevice: w(`/api/device-relation/deviceproject/${Q}`),
|
|
3171
|
+
deviceRules: w(`/api/device-relation/devicerule/${Q}`),
|
|
3172
|
+
project: w(`/api/device-relation/project/${Q}`)
|
|
3173
|
+
}, tr = w(`/api/oss/minio/${Q}`), cl = w(`/api/progress/accessor/${Q}`), Kl = w(`/api/dms/analysis/${Q}`);
|
|
3175
3174
|
let ul = (t = 21) => {
|
|
3176
3175
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
3177
3176
|
for (; t--; ) {
|
|
@@ -3180,7 +3179,7 @@ let ul = (t = 21) => {
|
|
|
3180
3179
|
}
|
|
3181
3180
|
return e;
|
|
3182
3181
|
};
|
|
3183
|
-
const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), dl = tr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), yl = cl.get("progress"),
|
|
3182
|
+
const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), dl = tr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), yl = cl.get("progress"), Gl = () => {
|
|
3184
3183
|
let t = J(!1), e = J(""), n = J(0), r = J("normal"), o = J(!1), a, i = J(""), s = J(""), u = J(""), l = J(""), c = J(!1), p = J(""), d = "", g = J(""), y;
|
|
3185
3184
|
const h = () => {
|
|
3186
3185
|
s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
|
|
@@ -3189,21 +3188,21 @@ const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3189
3188
|
return E ? { stauts: !1 } : { status: !0, data: O };
|
|
3190
3189
|
}, R = (E) => new Promise((O, $) => {
|
|
3191
3190
|
const _ = [];
|
|
3192
|
-
let
|
|
3193
|
-
for (;
|
|
3194
|
-
const j = E.slice(
|
|
3195
|
-
_.push(j),
|
|
3191
|
+
let b = 0;
|
|
3192
|
+
for (; b < E.size; ) {
|
|
3193
|
+
const j = E.slice(b, b + 1048576);
|
|
3194
|
+
_.push(j), b += 1048576;
|
|
3196
3195
|
}
|
|
3197
3196
|
const M = new Blob(_, { type: E.type });
|
|
3198
3197
|
O(M);
|
|
3199
|
-
}), P = async (E, O, $, x = !0, _ = "",
|
|
3198
|
+
}), P = async (E, O, $, x = !0, _ = "", b = !1) => {
|
|
3200
3199
|
var nr, or;
|
|
3201
3200
|
d = _, g.value = "import", x && (r.value = "normal", n.value = 0, e.value = C("导入进度"), t.value = !0, i.value = ""), y = O;
|
|
3202
3201
|
const M = await m();
|
|
3203
3202
|
if (!M.status) return;
|
|
3204
3203
|
let j = M.data, z = null, { autoContentType: se, bucketName: q, importFileName: me } = $;
|
|
3205
|
-
const st =
|
|
3206
|
-
if (
|
|
3204
|
+
const st = b ? dl : pl;
|
|
3205
|
+
if (b) {
|
|
3207
3206
|
let re = [];
|
|
3208
3207
|
await O.forEach(async (Be) => {
|
|
3209
3208
|
let ct = await R(Be);
|
|
@@ -3227,16 +3226,16 @@ const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3227
3226
|
}
|
|
3228
3227
|
const [jn, zn] = await st(z).run();
|
|
3229
3228
|
if (jn) return t.value = !1;
|
|
3230
|
-
const
|
|
3231
|
-
if (!
|
|
3229
|
+
const Y = await hl(zn.data);
|
|
3230
|
+
if (!b && (Y == null ? void 0 : Y.statusCode) != 200 || b && (Y != null && Y.some((re) => (re == null ? void 0 : re.statusCode) != 200))) {
|
|
3232
3231
|
t.value = !1, (nr = window.DasMessage) == null || nr.error({
|
|
3233
|
-
message: (
|
|
3232
|
+
message: (Y == null ? void 0 : Y.errorMsg) || C("上传失败"),
|
|
3234
3233
|
grouping: !0,
|
|
3235
3234
|
repeatNum: 1
|
|
3236
3235
|
});
|
|
3237
3236
|
return;
|
|
3238
3237
|
}
|
|
3239
|
-
const lt = await (E == null ? void 0 : E(
|
|
3238
|
+
const lt = await (E == null ? void 0 : E(Y));
|
|
3240
3239
|
if (x) {
|
|
3241
3240
|
if (!lt.status) {
|
|
3242
3241
|
t.value = !1, r.value = "error";
|
|
@@ -3274,43 +3273,43 @@ const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3274
3273
|
clearTimeout(a), a = null, t.value = !1;
|
|
3275
3274
|
}, L = async (E, O = "export", $, x = "") => {
|
|
3276
3275
|
var j, z, se;
|
|
3277
|
-
const [_,
|
|
3276
|
+
const [_, b] = await yl("", {
|
|
3278
3277
|
url: `progress/${E}`
|
|
3279
3278
|
}).run();
|
|
3280
3279
|
if (_) {
|
|
3281
3280
|
o.value = !1;
|
|
3282
3281
|
return;
|
|
3283
3282
|
}
|
|
3284
|
-
n.value =
|
|
3283
|
+
n.value = b.percentage;
|
|
3285
3284
|
const M = O == "export" ? C("导出") : C("导入");
|
|
3286
3285
|
if (n.value == 100)
|
|
3287
|
-
if (i.value =
|
|
3288
|
-
if (
|
|
3286
|
+
if (i.value = b, o.value = !1, B(), O == "export")
|
|
3287
|
+
if (b.status == 1) {
|
|
3289
3288
|
r.value = "success";
|
|
3290
|
-
let q = await ar(`/oss/${
|
|
3289
|
+
let q = await ar(`/oss/${b == null ? void 0 : b.filePath}`);
|
|
3291
3290
|
const me = ((j = q == null ? void 0 : q.split("/")) == null ? void 0 : j.pop()) || "";
|
|
3292
3291
|
let st = $ || me;
|
|
3293
|
-
Hr(`${Ge().baseURL}/oss${
|
|
3294
|
-
} else
|
|
3295
|
-
message:
|
|
3292
|
+
Hr(`${Ge().baseURL}/oss${b.filePath}`, st, x), o.value = !1;
|
|
3293
|
+
} else b.status == 2 && (l.value = b.message || `${M}${C("失败")}`, (z = window.DasMessage) == null || z.error({
|
|
3294
|
+
message: b.message || `${M}${C("失败")}`,
|
|
3296
3295
|
grouping: !0,
|
|
3297
3296
|
repeatNum: 1
|
|
3298
3297
|
}));
|
|
3299
3298
|
else if (O == "import") {
|
|
3300
|
-
if (
|
|
3299
|
+
if (b.filePath) {
|
|
3301
3300
|
r.value = "error", c.value = !0;
|
|
3302
|
-
let q = await ar(`/oss/${
|
|
3301
|
+
let q = await ar(`/oss/${b == null ? void 0 : b.filePath}`);
|
|
3303
3302
|
const me = ((se = q == null ? void 0 : q.split("/")) == null ? void 0 : se.pop()) || "";
|
|
3304
|
-
s.value = d || me, u.value = y.sizeText, l.value = C("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = `${Ge().baseURL}/oss/${
|
|
3303
|
+
s.value = d || me, u.value = y.sizeText, l.value = C("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = `${Ge().baseURL}/oss/${b == null ? void 0 : b.filePath}`;
|
|
3305
3304
|
}
|
|
3306
|
-
G(
|
|
3305
|
+
G(b.status, M, b.message);
|
|
3307
3306
|
} else O == "action" && (r.value = "success");
|
|
3308
3307
|
else
|
|
3309
|
-
a &&
|
|
3308
|
+
a && b.status != 2 ? a = setTimeout(() => {
|
|
3310
3309
|
L(E, O, $, x);
|
|
3311
|
-
}, 50) : (i.value =
|
|
3310
|
+
}, 50) : (i.value = b, o.value = !1, G(b.status, M, b.message), B(), c.value = !0, l.value = (b == null ? void 0 : b.message) || "");
|
|
3312
3311
|
}, G = (E, O, $) => {
|
|
3313
|
-
var x, _,
|
|
3312
|
+
var x, _, b;
|
|
3314
3313
|
E == 1 ? (r.value = "success", (x = window.DasMessage) == null || x.success({
|
|
3315
3314
|
message: C("das-utils_export-success-tip", O),
|
|
3316
3315
|
grouping: !0,
|
|
@@ -3319,7 +3318,7 @@ const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3319
3318
|
message: $ || C("das-utils_export-failure-tip", O),
|
|
3320
3319
|
grouping: !0,
|
|
3321
3320
|
repeatNum: 1
|
|
3322
|
-
}), l.value = $ || C("部分数据校验不通过,请下载附件并修改,重新导入!")) : E == 3 && (r.value = "error", (
|
|
3321
|
+
}), l.value = $ || C("部分数据校验不通过,请下载附件并修改,重新导入!")) : E == 3 && (r.value = "error", (b = window.DasMessage) == null || b.error({
|
|
3323
3322
|
message: C("das-utils_export-partially-failure-tip", O),
|
|
3324
3323
|
grouping: !0,
|
|
3325
3324
|
repeatNum: 1
|
|
@@ -3397,48 +3396,49 @@ const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3397
3396
|
let a = "";
|
|
3398
3397
|
typeof r.result == "string" && (a = JSON.parse(r.result)), e(a);
|
|
3399
3398
|
}, r.readAsText(t);
|
|
3400
|
-
}), gl = "v2",
|
|
3401
|
-
list:
|
|
3402
|
-
app:
|
|
3403
|
-
people:
|
|
3404
|
-
}, Sl = "v1",
|
|
3399
|
+
}), gl = "v2", Jl = w(`/api/edge/${gl}`), Mn = "v1", Vl = w(`/api/justauth/oauth-server/${Mn}/visitor`), Ql = w(`/api/justauth/oauth-server/${Mn}`), vl = "v1", Xl = w(`/api/knowledge-base/knowledge/${vl}`), bl = "v1", Yl = w(`/api/custom-datasource/custom/${bl}`), wl = "v1", Zl = w(`/api/permission/${wl}`), de = "v1", ec = w(`/api/customer/customer/${de}`), tc = w(`/api/customer/company/${de}`), rc = w(`/api/customer/customer-grade/${de}`), nc = w(`/api/customer/customer-type/${de}`), oc = {
|
|
3400
|
+
list: w(`/api/project/${de}/list`),
|
|
3401
|
+
app: w(`/api/project/${de}/app`),
|
|
3402
|
+
people: w(`/api/project/${de}/people`)
|
|
3403
|
+
}, Sl = "v1", ac = w(`/api/portal/user/${Sl}`), El = "v1", ic = w(`/api/space-manage/space-tree/${El}`), it = "v1", sc = w(`/api/superadmin/portal/${it}`), lc = w(`/api/superadmin/permission/${it}`), cc = w(`/api/superadmin/resource/${it}`), uc = w(`/api/superadmin/license/${it}`), rr = "v1", fc = w(`/api/supply/supplier/${rr}`), pc = w(`/api/supplier/${rr}`), dc = w(`/api/supplier/${rr}/classification`), Al = "v1", yc = w(`/api/supply/brand/${Al}`), Ol = "v2", mc = w(`/api/tool/${Ol}`), Rl = "v1", hc = w(`/api/system-config/${Rl}`);
|
|
3405
3404
|
Wr(eo);
|
|
3406
3405
|
export {
|
|
3406
|
+
Kl as analyApi,
|
|
3407
3407
|
Bl as appManage,
|
|
3408
3408
|
Ll as authentication,
|
|
3409
3409
|
Ul as bemsModules,
|
|
3410
|
-
|
|
3410
|
+
tc as company,
|
|
3411
3411
|
Ml as contract,
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3412
|
+
w as createService,
|
|
3413
|
+
ec as customer,
|
|
3414
|
+
rc as customerGrade,
|
|
3415
|
+
nc as customerType,
|
|
3416
|
+
Yl as daslink,
|
|
3417
3417
|
Hr as downloadFile,
|
|
3418
3418
|
jl as dutyModules,
|
|
3419
|
-
|
|
3419
|
+
yc as enterpriseadminBrandModel,
|
|
3420
3420
|
zl as enterpriseright,
|
|
3421
|
-
|
|
3421
|
+
Jl as gatewayEdge,
|
|
3422
3422
|
ql as iot,
|
|
3423
3423
|
tr as iotMinio,
|
|
3424
3424
|
Hl as iotModules,
|
|
3425
3425
|
cl as iotProgress,
|
|
3426
3426
|
Wl as iotRelationModules,
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3427
|
+
Vl as justauth,
|
|
3428
|
+
Xl as knowledgeBase,
|
|
3429
|
+
Ql as oauthServer,
|
|
3430
|
+
Zl as permission,
|
|
3431
|
+
ac as portal,
|
|
3432
|
+
oc as projectManage,
|
|
3433
|
+
ic as spaceManage,
|
|
3434
|
+
uc as superadminLicense,
|
|
3435
|
+
lc as superadminPermission,
|
|
3436
|
+
sc as superadminPortal,
|
|
3437
|
+
cc as superadminResource,
|
|
3438
|
+
fc as supplier,
|
|
3439
|
+
dc as supplierClassification,
|
|
3440
|
+
pc as supplierManage,
|
|
3441
|
+
hc as systemConfiguration,
|
|
3442
|
+
mc as tool,
|
|
3443
|
+
Gl as useFile
|
|
3444
3444
|
};
|