@das-fed/upf-utils 6.4.0-dev.175 → 6.4.0-dev.176
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/es5.js +114 -75
- package/api-services/i18n/es5.js +6 -1
- package/api-services/modules/app-manage/es5.js +1008 -994
- package/api-services/modules/app-manage/index.js +804 -786
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +41 -39
- package/api-services/modules/bems/es5.js +1012 -1022
- package/api-services/modules/bems/index.js +800 -818
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +41 -39
- package/api-services/modules/duty-manage/es5.js +1008 -1018
- package/api-services/modules/duty-manage/index.js +799 -817
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +41 -39
- package/api-services/modules/es5.js +113 -75
- package/api-services/modules/file/es5.js +1159 -1144
- package/api-services/modules/file/index.js +900 -882
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +41 -39
- package/api-services/modules/iot/es5.js +46 -39
- package/api-services/modules/justauth/es5.js +999 -1005
- package/api-services/modules/justauth/index.js +789 -803
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +832 -827
- package/api-services/modules/knowledge/index.js +621 -617
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +41 -39
- package/api-services/modules/permission/es5.js +996 -1006
- package/api-services/modules/permission/index.js +786 -804
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +988 -994
- package/api-services/modules/platformManage/index.js +777 -795
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1008 -994
- package/api-services/modules/portal/index.js +804 -786
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1008 -994
- package/api-services/modules/space-manage/index.js +804 -786
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +44 -39
- package/api-services/modules/supplier/es5.js +43 -39
- package/api-services/modules/supplychain-manage/es5.js +1008 -994
- package/api-services/modules/supplychain-manage/index.js +804 -786
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +996 -1006
- package/api-services/modules/systemConfiguration/index.js +786 -804
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +41 -39
- package/api-services/src/create-service/es5.js +41 -39
- package/atob/es5.js +4 -1
- package/common-info/es5.js +31 -13
- package/common-info/getIframeUrl/es5.js +5 -3
- package/common-info/getInfoFromUrl/es5.js +5 -2
- package/common-info/set-personal-info/es5.js +9 -7
- package/common-tools/arr-tools/es5.js +4 -1
- package/common-tools/calc-text-width/es5.js +3 -1
- package/common-tools/date-format/es5.js +3 -1
- package/common-tools/es5.js +128 -14
- package/common-tools/extract-file-name/es5.js +5 -3
- package/common-tools/get-file-extension/es5.js +3 -1
- package/common-tools/get-url-params/es5.js +9 -1
- package/common-tools/handle-data/es5.js +71 -46
- package/common-tools/handle-data/index.js +37 -36
- package/common-tools/handle-data/index.js.gz +0 -0
- package/common-tools/nest-tree-format/es5.js +6 -1
- package/common-tools/obj-tools/es5.js +3 -1
- package/common-tools/platform-tools/es5.js +8 -3
- package/common-tools/queue-promise/es5.js +3 -1
- package/common-tools/setHtmlMinWH/es5.js +3 -1
- package/common-tools/update-browser-title/es5.js +5 -3
- package/common-tools/update-fav-icon/es5.js +10 -7
- package/config/es5.js +3 -1
- package/create-api-service/check-token/es5.js +6 -4
- package/create-api-service/es5.js +994 -1004
- package/create-api-service/i18n/es5.js +6 -1
- package/create-api-service/index.js +785 -803
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.js +5 -3
- package/create-api-service/sso/es5.js +50 -42
- package/curring-http/es5.js +9 -7
- package/dimple-canvas/es5.js +15 -1
- package/directive/auth/es5.js +15 -13
- package/directive/clickOutside/es5.js +6 -4
- package/directive/es5.js +23 -3
- package/directive/hoverInside/es5.js +6 -4
- package/directive/utils/es5.js +3 -1
- package/dom-check-in/es5.js +3 -1
- package/dom-watcher/es5.js +3 -1
- package/hooks/popup-manager/use-zindex/es5.js +3 -1
- package/hooks/use-get-auth/es5.js +15 -13
- package/load-js/es5.js +8 -6
- package/nextTiken/es5.js +14 -8
- package/oss/es5.js +8 -5
- package/package.json +4 -4
- package/pinyin-first-character/es5.js +3 -1
- package/process-engine-info/es5.js +6 -1
- package/pure-image-src/es5.js +3 -1
- package/size-watcher/es5.js +8 -5
- package/style/es5.js +15 -6
- package/token-tools/es5.js +6 -1
- package/use-low-code/es5.js +11 -9
- package/vue/es5.js +9 -1
- package/vue/hooks/use-model-value/es5.js +6 -4
- package/webSocket-service/es5.js +9 -7
- package/with-install/es5.js +3 -1
|
Binary file
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
var _Gt$sso, _Gt$i18n, _Gt$noRedireLogin;
|
|
2
4
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
3
5
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
@@ -33,16 +35,16 @@ function _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) {
|
|
|
33
35
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
34
36
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
35
37
|
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, "return": function _return(r) { var n = this.s["return"]; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, "throw": function _throw(r) { var n = this.s["return"]; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
var index = require('@das-fed/upf-web/packages/i18n/index');
|
|
39
|
+
var curringHttp = require('@das-fed/upf-utils/curring-http/es5');
|
|
40
|
+
var sso = require('@das-fed/upf-utils/create-api-service/sso/es5');
|
|
41
|
+
var It = require('dayjs');
|
|
42
|
+
var Gn = require('dayjs/plugin/utc');
|
|
43
|
+
var Jn = require('dayjs/plugin/timezone');
|
|
44
|
+
var commonInfo = require('@das-fed/upf-utils/common-info/es5');
|
|
45
|
+
var tokenTools = require('@das-fed/upf-utils/token-tools/es5');
|
|
46
|
+
var config = require('@das-fed/upf-utils/config/es5');
|
|
47
|
+
var checkToken = require('@das-fed/upf-utils/create-api-service/check-token/es5');
|
|
46
48
|
function Mr(t, e) {
|
|
47
49
|
return function () {
|
|
48
50
|
return t.apply(e, arguments);
|
|
@@ -3748,10 +3750,10 @@ var Nl = {
|
|
|
3748
3750
|
_appCode: "framework"
|
|
3749
3751
|
}
|
|
3750
3752
|
};
|
|
3751
|
-
setI18nRule(Nl);
|
|
3753
|
+
index.setI18nRule(Nl);
|
|
3752
3754
|
It.extend(Gn);
|
|
3753
3755
|
It.extend(Jn);
|
|
3754
|
-
var Gt = getConfig(),
|
|
3756
|
+
var Gt = config.getConfig(),
|
|
3755
3757
|
In = (_Gt$sso = Gt.sso) !== null && _Gt$sso !== void 0 ? _Gt$sso : true,
|
|
3756
3758
|
Fl = (_Gt$i18n = Gt.i18n) !== null && _Gt$i18n !== void 0 ? _Gt$i18n : true,
|
|
3757
3759
|
Bn = (_Gt$noRedireLogin = Gt.noRedireLogin) !== null && _Gt$noRedireLogin !== void 0 ? _Gt$noRedireLogin : false;
|
|
@@ -3780,29 +3782,29 @@ var Dl = 1e3,
|
|
|
3780
3782
|
};
|
|
3781
3783
|
}(),
|
|
3782
3784
|
Il = /*#__PURE__*/function () {
|
|
3783
|
-
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t
|
|
3785
|
+
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t, e) {
|
|
3784
3786
|
var d, p, v, y, m, n, r, o, a, i, _ref23, _ref25, h, _ref24, b, u, l, c, _t10;
|
|
3785
3787
|
return _regenerator().w(function (_context1) {
|
|
3786
3788
|
while (1) switch (_context1.n) {
|
|
3787
3789
|
case 0:
|
|
3788
|
-
n = ((d = t
|
|
3790
|
+
n = ((d = t.response) == null ? undefined : d.status) || 500, r = (p = t.response) == null ? undefined : p.message, o = {};
|
|
3789
3791
|
a = {
|
|
3790
|
-
400: t("参数校验错误"),
|
|
3791
|
-
404: t("接口地址未找到"),
|
|
3792
|
-
500: t("服务器内部错误")
|
|
3792
|
+
400: index.t("参数校验错误"),
|
|
3793
|
+
404: index.t("接口地址未找到"),
|
|
3794
|
+
500: index.t("服务器内部错误")
|
|
3793
3795
|
};
|
|
3794
|
-
i = ((v = t
|
|
3795
|
-
if (!(!(getQuery("code") || "") && !Bn && (n === 401 || (i == null ? undefined : i.code) === 401))) {
|
|
3796
|
+
i = ((v = t == null ? undefined : t.response) == null ? undefined : v.data) || {};
|
|
3797
|
+
if (!(!(sso.getQuery("code") || "") && !Bn && (n === 401 || (i == null ? undefined : i.code) === 401))) {
|
|
3796
3798
|
_context1.n = 1;
|
|
3797
3799
|
break;
|
|
3798
3800
|
}
|
|
3799
|
-
In ? login(_objectSpread(_objectSpread({}, getTokenParams), {}, {
|
|
3800
|
-
redirect_uri: real_uri
|
|
3801
|
-
})) : Un(), o = i, r = a[n || (i == null ? undefined : i.code)] || (i == null ? undefined : i.msg) || (t
|
|
3801
|
+
In ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
|
|
3802
|
+
redirect_uri: sso.real_uri
|
|
3803
|
+
})) : Un(), o = i, r = a[n || (i == null ? undefined : i.code)] || (i == null ? undefined : i.msg) || (t == null ? undefined : t.message);
|
|
3802
3804
|
_context1.n = 6;
|
|
3803
3805
|
break;
|
|
3804
3806
|
case 1:
|
|
3805
|
-
if (!t
|
|
3807
|
+
if (!t.response) {
|
|
3806
3808
|
_context1.n = 5;
|
|
3807
3809
|
break;
|
|
3808
3810
|
}
|
|
@@ -3820,7 +3822,7 @@ var Dl = 1e3,
|
|
|
3820
3822
|
} catch (_unused20) {
|
|
3821
3823
|
h({
|
|
3822
3824
|
code: 400,
|
|
3823
|
-
msg: t("blob解析错误")
|
|
3825
|
+
msg: index.t("blob解析错误")
|
|
3824
3826
|
});
|
|
3825
3827
|
}
|
|
3826
3828
|
};
|
|
@@ -3836,17 +3838,17 @@ var Dl = 1e3,
|
|
|
3836
3838
|
h = (_ref23 = e == null ? undefined : e.i18n) !== null && _ref23 !== void 0 ? _ref23 : true;
|
|
3837
3839
|
if (Fl && h) {
|
|
3838
3840
|
b = (_ref24 = i == null ? undefined : i.status) !== null && _ref24 !== void 0 ? _ref24 : "";
|
|
3839
|
-
r = !(i != null && i.data) || !i.data.length ? t(b) : t.apply(
|
|
3841
|
+
r = !(i != null && i.data) || !i.data.length ? index.t(b) : index.t.apply(index, [b].concat(_toConsumableArray(i.data)));
|
|
3840
3842
|
} else r = (_ref25 = i == null ? undefined : i.msg) !== null && _ref25 !== void 0 ? _ref25 : "";
|
|
3841
3843
|
o = i;
|
|
3842
3844
|
case 4:
|
|
3843
|
-
r || (r = a[t
|
|
3845
|
+
r || (r = a[t.response.status] || t.message);
|
|
3844
3846
|
_context1.n = 6;
|
|
3845
3847
|
break;
|
|
3846
3848
|
case 5:
|
|
3847
|
-
t
|
|
3849
|
+
t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = index.t("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = index.t("请求配置异常");
|
|
3848
3850
|
case 6:
|
|
3849
|
-
e != null && e.customErrorMessage && (r = e == null ? undefined : e.customErrorMessage(r, t
|
|
3851
|
+
e != null && e.customErrorMessage && (r = e == null ? undefined : e.customErrorMessage(r, t));
|
|
3850
3852
|
u = Date.now(), l = r === Br, c = u - Ur < Dl;
|
|
3851
3853
|
return _context1.a(2, (!(e != null && e.ignoreErrorMessage) && r && (!l || !c) && ((m = (y = window.DasMessage) == null ? undefined : y.error) == null || m.call(y, {
|
|
3852
3854
|
message: r,
|
|
@@ -3854,7 +3856,7 @@ var Dl = 1e3,
|
|
|
3854
3856
|
}), Br = r, Ur = u), _objectSpread(_objectSpread({}, o), {}, {
|
|
3855
3857
|
code: n,
|
|
3856
3858
|
msg: r,
|
|
3857
|
-
error: t
|
|
3859
|
+
error: t
|
|
3858
3860
|
})));
|
|
3859
3861
|
}
|
|
3860
3862
|
}, _callee0);
|
|
@@ -3865,14 +3867,14 @@ var Dl = 1e3,
|
|
|
3865
3867
|
}(),
|
|
3866
3868
|
Bl = function Bl(t, e) {
|
|
3867
3869
|
var n = R.create();
|
|
3868
|
-
return curringHttp(n, /*#__PURE__*/function () {
|
|
3870
|
+
return curringHttp.curringHttp(n, /*#__PURE__*/function () {
|
|
3869
3871
|
var _ref26 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(r) {
|
|
3870
3872
|
var _r$csrf;
|
|
3871
|
-
var o, l, c, _c, s,
|
|
3873
|
+
var o, l, c, _c, s, _commonInfo$getProjec, _l3, _c2, _commonInfo$getInstan, _l4, _t11;
|
|
3872
3874
|
return _regenerator().w(function (_context10) {
|
|
3873
3875
|
while (1) switch (_context10.n) {
|
|
3874
3876
|
case 0:
|
|
3875
|
-
o = getConfig();
|
|
3877
|
+
o = config.getConfig();
|
|
3876
3878
|
if (!(r.headers || (r.headers = {}), !(r != null && r["public"]))) {
|
|
3877
3879
|
_context10.n = 7;
|
|
3878
3880
|
break;
|
|
@@ -3892,21 +3894,21 @@ var Dl = 1e3,
|
|
|
3892
3894
|
break;
|
|
3893
3895
|
}
|
|
3894
3896
|
_context10.n = 1;
|
|
3895
|
-
return getToken(r);
|
|
3897
|
+
return sso.getToken(r);
|
|
3896
3898
|
case 1:
|
|
3897
3899
|
l = _context10.v;
|
|
3898
3900
|
case 2:
|
|
3899
3901
|
_context10.n = 6;
|
|
3900
3902
|
break;
|
|
3901
3903
|
case 3:
|
|
3902
|
-
l || (l = getAccessToken());
|
|
3904
|
+
l || (l = tokenTools.getAccessToken());
|
|
3903
3905
|
_c = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3904
3906
|
if (!l) {
|
|
3905
3907
|
_context10.n = 5;
|
|
3906
3908
|
break;
|
|
3907
3909
|
}
|
|
3908
3910
|
_context10.n = 4;
|
|
3909
|
-
return getValidAccessToken(_c, function (p) {
|
|
3911
|
+
return checkToken.getValidAccessToken(_c, function (p) {
|
|
3910
3912
|
window.localStorage.setItem("tokenInfo", JSON.stringify(p));
|
|
3911
3913
|
});
|
|
3912
3914
|
case 4:
|
|
@@ -3929,13 +3931,13 @@ var Dl = 1e3,
|
|
|
3929
3931
|
if (s.project === undefined) {
|
|
3930
3932
|
_l3 = 0;
|
|
3931
3933
|
_c2 = new URL(location.href).searchParams;
|
|
3932
|
-
_l3 = _c2.get("project") || _c2.get("projectId") || 0, _l3 || (_l3 = (
|
|
3934
|
+
_l3 = _c2.get("project") || _c2.get("projectId") || 0, _l3 || (_l3 = (_commonInfo$getProjec = commonInfo.getProjectInfo().id) !== null && _commonInfo$getProjec !== void 0 ? _commonInfo$getProjec : 0), (_l3 || _l3 === 0) && (s.project = _l3);
|
|
3933
3935
|
}
|
|
3934
3936
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3935
|
-
|
|
3937
|
+
_commonInfo$getInstan = commonInfo.getInstanceInfo(), _l4 = _commonInfo$getInstan.instanceInfo;
|
|
3936
3938
|
_l4 != null && _l4.instanceId && (s.instance = _l4.instanceId);
|
|
3937
3939
|
}
|
|
3938
|
-
return _context10.a(2, (r.params = s, r.headers.Timezone = It.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = currentLang.value, Ir.set("uiCulture", currentLang.value), r));
|
|
3940
|
+
return _context10.a(2, (r.params = s, r.headers.Timezone = It.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = index.currentLang.value, Ir.set("uiCulture", index.currentLang.value), r));
|
|
3939
3941
|
}
|
|
3940
3942
|
}, _callee1);
|
|
3941
3943
|
}));
|
|
@@ -3946,4 +3948,4 @@ var Dl = 1e3,
|
|
|
3946
3948
|
},
|
|
3947
3949
|
Ul = "v1",
|
|
3948
3950
|
Vl = Bl("/api/enterpriseright/permission/".concat(Ul));
|
|
3949
|
-
|
|
3951
|
+
exports.enterpriseright = Vl;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
var _fr$sso, _fr$i18n, _fr$noRedireLogin;
|
|
2
4
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
3
5
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
@@ -33,18 +35,18 @@ function _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) {
|
|
|
33
35
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
34
36
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
35
37
|
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, "return": function _return(r) { var n = this.s["return"]; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, "throw": function _throw(r) { var n = this.s["return"]; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
var index = require('@das-fed/upf-web/packages/i18n/index');
|
|
39
|
+
var curringHttp = require('@das-fed/upf-utils/curring-http/es5');
|
|
40
|
+
var sso = require('@das-fed/upf-utils/create-api-service/sso/es5');
|
|
41
|
+
var rt = require('dayjs');
|
|
42
|
+
var So = require('dayjs/plugin/utc');
|
|
43
|
+
var Eo = require('dayjs/plugin/timezone');
|
|
44
|
+
var commonInfo = require('@das-fed/upf-utils/common-info/es5');
|
|
45
|
+
var tokenTools = require('@das-fed/upf-utils/token-tools/es5');
|
|
46
|
+
var config = require('@das-fed/upf-utils/config/es5');
|
|
47
|
+
var checkToken = require('@das-fed/upf-utils/create-api-service/check-token/es5');
|
|
48
|
+
var commonTools = require('@das-fed/upf-utils/common-tools/es5');
|
|
49
|
+
var vue = require('vue');
|
|
48
50
|
function fn(t, e) {
|
|
49
51
|
return function () {
|
|
50
52
|
return t.apply(e, arguments);
|
|
@@ -3762,10 +3764,10 @@ var Yl = {
|
|
|
3762
3764
|
_appCode: "framework"
|
|
3763
3765
|
}
|
|
3764
3766
|
};
|
|
3765
|
-
setI18nRule(Yl);
|
|
3767
|
+
index.setI18nRule(Yl);
|
|
3766
3768
|
rt.extend(So);
|
|
3767
3769
|
rt.extend(Eo);
|
|
3768
|
-
var fr = getConfig(),
|
|
3770
|
+
var fr = config.getConfig(),
|
|
3769
3771
|
io = (_fr$sso = fr.sso) !== null && _fr$sso !== void 0 ? _fr$sso : true,
|
|
3770
3772
|
Zl = (_fr$i18n = fr.i18n) !== null && _fr$i18n !== void 0 ? _fr$i18n : true,
|
|
3771
3773
|
so = (_fr$noRedireLogin = fr.noRedireLogin) !== null && _fr$noRedireLogin !== void 0 ? _fr$noRedireLogin : false;
|
|
@@ -3794,29 +3796,29 @@ var ec = 1e3,
|
|
|
3794
3796
|
};
|
|
3795
3797
|
}(),
|
|
3796
3798
|
rc = /*#__PURE__*/function () {
|
|
3797
|
-
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t
|
|
3799
|
+
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t, e) {
|
|
3798
3800
|
var p, d, g, y, h, n, r, o, a, i, _ref23, _ref25, m, _ref24, S, u, l, c, _t10;
|
|
3799
3801
|
return _regenerator().w(function (_context1) {
|
|
3800
3802
|
while (1) switch (_context1.n) {
|
|
3801
3803
|
case 0:
|
|
3802
|
-
n = ((p = t
|
|
3804
|
+
n = ((p = t.response) == null ? undefined : p.status) || 500, r = (d = t.response) == null ? undefined : d.message, o = {};
|
|
3803
3805
|
a = {
|
|
3804
|
-
400: t("参数校验错误"),
|
|
3805
|
-
404: t("接口地址未找到"),
|
|
3806
|
-
500: t("服务器内部错误")
|
|
3806
|
+
400: index.t("参数校验错误"),
|
|
3807
|
+
404: index.t("接口地址未找到"),
|
|
3808
|
+
500: index.t("服务器内部错误")
|
|
3807
3809
|
};
|
|
3808
|
-
i = ((g = t
|
|
3809
|
-
if (!(!(getQuery("code") || "") && !so && (n === 401 || (i == null ? undefined : i.code) === 401))) {
|
|
3810
|
+
i = ((g = t == null ? undefined : t.response) == null ? undefined : g.data) || {};
|
|
3811
|
+
if (!(!(sso.getQuery("code") || "") && !so && (n === 401 || (i == null ? undefined : i.code) === 401))) {
|
|
3810
3812
|
_context1.n = 1;
|
|
3811
3813
|
break;
|
|
3812
3814
|
}
|
|
3813
|
-
io ? login(_objectSpread(_objectSpread({}, getTokenParams), {}, {
|
|
3814
|
-
redirect_uri: real_uri
|
|
3815
|
-
})) : lo(), o = i, r = a[n || (i == null ? undefined : i.code)] || (i == null ? undefined : i.msg) || (t
|
|
3815
|
+
io ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
|
|
3816
|
+
redirect_uri: sso.real_uri
|
|
3817
|
+
})) : lo(), o = i, r = a[n || (i == null ? undefined : i.code)] || (i == null ? undefined : i.msg) || (t == null ? undefined : t.message);
|
|
3816
3818
|
_context1.n = 6;
|
|
3817
3819
|
break;
|
|
3818
3820
|
case 1:
|
|
3819
|
-
if (!t
|
|
3821
|
+
if (!t.response) {
|
|
3820
3822
|
_context1.n = 5;
|
|
3821
3823
|
break;
|
|
3822
3824
|
}
|
|
@@ -3834,7 +3836,7 @@ var ec = 1e3,
|
|
|
3834
3836
|
} catch (_unused20) {
|
|
3835
3837
|
m({
|
|
3836
3838
|
code: 400,
|
|
3837
|
-
msg: t("blob解析错误")
|
|
3839
|
+
msg: index.t("blob解析错误")
|
|
3838
3840
|
});
|
|
3839
3841
|
}
|
|
3840
3842
|
};
|
|
@@ -3850,17 +3852,17 @@ var ec = 1e3,
|
|
|
3850
3852
|
m = (_ref23 = e == null ? undefined : e.i18n) !== null && _ref23 !== void 0 ? _ref23 : true;
|
|
3851
3853
|
if (Zl && m) {
|
|
3852
3854
|
S = (_ref24 = i == null ? undefined : i.status) !== null && _ref24 !== void 0 ? _ref24 : "";
|
|
3853
|
-
r = !(i != null && i.data) || !i.data.length ? t(S) : t.apply(
|
|
3855
|
+
r = !(i != null && i.data) || !i.data.length ? index.t(S) : index.t.apply(index, [S].concat(_toConsumableArray(i.data)));
|
|
3854
3856
|
} else r = (_ref25 = i == null ? undefined : i.msg) !== null && _ref25 !== void 0 ? _ref25 : "";
|
|
3855
3857
|
o = i;
|
|
3856
3858
|
case 4:
|
|
3857
|
-
r || (r = a[t
|
|
3859
|
+
r || (r = a[t.response.status] || t.message);
|
|
3858
3860
|
_context1.n = 6;
|
|
3859
3861
|
break;
|
|
3860
3862
|
case 5:
|
|
3861
|
-
t
|
|
3863
|
+
t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = index.t("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = index.t("请求配置异常");
|
|
3862
3864
|
case 6:
|
|
3863
|
-
e != null && e.customErrorMessage && (r = e == null ? undefined : e.customErrorMessage(r, t
|
|
3865
|
+
e != null && e.customErrorMessage && (r = e == null ? undefined : e.customErrorMessage(r, t));
|
|
3864
3866
|
u = Date.now(), l = r === ln, c = u - cn < ec;
|
|
3865
3867
|
return _context1.a(2, (!(e != null && e.ignoreErrorMessage) && r && (!l || !c) && ((h = (y = window.DasMessage) == null ? undefined : y.error) == null || h.call(y, {
|
|
3866
3868
|
message: r,
|
|
@@ -3868,7 +3870,7 @@ var ec = 1e3,
|
|
|
3868
3870
|
}), ln = r, cn = u), _objectSpread(_objectSpread({}, o), {}, {
|
|
3869
3871
|
code: n,
|
|
3870
3872
|
msg: r,
|
|
3871
|
-
error: t
|
|
3873
|
+
error: t
|
|
3872
3874
|
})));
|
|
3873
3875
|
}
|
|
3874
3876
|
}, _callee0);
|
|
@@ -3879,14 +3881,14 @@ var ec = 1e3,
|
|
|
3879
3881
|
}(),
|
|
3880
3882
|
b = function b(t, e) {
|
|
3881
3883
|
var n = D.create();
|
|
3882
|
-
return curringHttp(n, /*#__PURE__*/function () {
|
|
3884
|
+
return curringHttp.curringHttp(n, /*#__PURE__*/function () {
|
|
3883
3885
|
var _ref26 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(r) {
|
|
3884
3886
|
var _r$csrf;
|
|
3885
|
-
var o, l, c, _c, s,
|
|
3887
|
+
var o, l, c, _c, s, _commonInfo$getProjec, _l3, _c2, _commonInfo$getInstan, _l4, _t11;
|
|
3886
3888
|
return _regenerator().w(function (_context10) {
|
|
3887
3889
|
while (1) switch (_context10.n) {
|
|
3888
3890
|
case 0:
|
|
3889
|
-
o = getConfig();
|
|
3891
|
+
o = config.getConfig();
|
|
3890
3892
|
if (!(r.headers || (r.headers = {}), !(r != null && r["public"]))) {
|
|
3891
3893
|
_context10.n = 7;
|
|
3892
3894
|
break;
|
|
@@ -3906,21 +3908,21 @@ var ec = 1e3,
|
|
|
3906
3908
|
break;
|
|
3907
3909
|
}
|
|
3908
3910
|
_context10.n = 1;
|
|
3909
|
-
return getToken(r);
|
|
3911
|
+
return sso.getToken(r);
|
|
3910
3912
|
case 1:
|
|
3911
3913
|
l = _context10.v;
|
|
3912
3914
|
case 2:
|
|
3913
3915
|
_context10.n = 6;
|
|
3914
3916
|
break;
|
|
3915
3917
|
case 3:
|
|
3916
|
-
l || (l = getAccessToken());
|
|
3918
|
+
l || (l = tokenTools.getAccessToken());
|
|
3917
3919
|
_c = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3918
3920
|
if (!l) {
|
|
3919
3921
|
_context10.n = 5;
|
|
3920
3922
|
break;
|
|
3921
3923
|
}
|
|
3922
3924
|
_context10.n = 4;
|
|
3923
|
-
return getValidAccessToken(_c, function (d) {
|
|
3925
|
+
return checkToken.getValidAccessToken(_c, function (d) {
|
|
3924
3926
|
window.localStorage.setItem("tokenInfo", JSON.stringify(d));
|
|
3925
3927
|
});
|
|
3926
3928
|
case 4:
|
|
@@ -3943,13 +3945,13 @@ var ec = 1e3,
|
|
|
3943
3945
|
if (s.project === undefined) {
|
|
3944
3946
|
_l3 = 0;
|
|
3945
3947
|
_c2 = new URL(location.href).searchParams;
|
|
3946
|
-
_l3 = _c2.get("project") || _c2.get("projectId") || 0, _l3 || (_l3 = (
|
|
3948
|
+
_l3 = _c2.get("project") || _c2.get("projectId") || 0, _l3 || (_l3 = (_commonInfo$getProjec = commonInfo.getProjectInfo().id) !== null && _commonInfo$getProjec !== void 0 ? _commonInfo$getProjec : 0), (_l3 || _l3 === 0) && (s.project = _l3);
|
|
3947
3949
|
}
|
|
3948
3950
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3949
|
-
|
|
3951
|
+
_commonInfo$getInstan = commonInfo.getInstanceInfo(), _l4 = _commonInfo$getInstan.instanceInfo;
|
|
3950
3952
|
_l4 != null && _l4.instanceId && (s.instance = _l4.instanceId);
|
|
3951
3953
|
}
|
|
3952
|
-
return _context10.a(2, (r.params = s, r.headers.Timezone = rt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = currentLang.value, sn.set("uiCulture", currentLang.value), r));
|
|
3954
|
+
return _context10.a(2, (r.params = s, r.headers.Timezone = rt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = index.currentLang.value, sn.set("uiCulture", index.currentLang.value), r));
|
|
3953
3955
|
}
|
|
3954
3956
|
}, _callee1);
|
|
3955
3957
|
}));
|
|
@@ -4019,20 +4021,20 @@ var uc = pr.get("token"),
|
|
|
4019
4021
|
}),
|
|
4020
4022
|
dc = lc.get("progress"),
|
|
4021
4023
|
Gc = function Gc() {
|
|
4022
|
-
var t
|
|
4023
|
-
e = ref(""),
|
|
4024
|
-
n = ref(0),
|
|
4025
|
-
r = ref("normal"),
|
|
4026
|
-
o = ref(false),
|
|
4024
|
+
var t = vue.ref(false),
|
|
4025
|
+
e = vue.ref(""),
|
|
4026
|
+
n = vue.ref(0),
|
|
4027
|
+
r = vue.ref("normal"),
|
|
4028
|
+
o = vue.ref(false),
|
|
4027
4029
|
a,
|
|
4028
|
-
i = ref(""),
|
|
4029
|
-
s = ref(""),
|
|
4030
|
-
u = ref(""),
|
|
4031
|
-
l = ref(""),
|
|
4032
|
-
c = ref(false),
|
|
4033
|
-
p = ref(""),
|
|
4030
|
+
i = vue.ref(""),
|
|
4031
|
+
s = vue.ref(""),
|
|
4032
|
+
u = vue.ref(""),
|
|
4033
|
+
l = vue.ref(""),
|
|
4034
|
+
c = vue.ref(false),
|
|
4035
|
+
p = vue.ref(""),
|
|
4034
4036
|
d = "",
|
|
4035
|
-
g = ref(""),
|
|
4037
|
+
g = vue.ref(""),
|
|
4036
4038
|
y;
|
|
4037
4039
|
var h = function h() {
|
|
4038
4040
|
s.value = "", u.value = "", l.value = "", c.value = false, p.value = "";
|
|
@@ -4106,7 +4108,7 @@ var uc = pr.get("token"),
|
|
|
4106
4108
|
T = _args13.length > 3 && _args13[3] !== undefined ? _args13[3] : true;
|
|
4107
4109
|
N = _args13.length > 4 && _args13[4] !== undefined ? _args13[4] : "";
|
|
4108
4110
|
w = _args13.length > 5 && _args13[5] !== undefined ? _args13[5] : false;
|
|
4109
|
-
d = N, g.value = "import", T && (r.value = "normal", n.value = 0, e.value = t("导入进度"), t
|
|
4111
|
+
d = N, g.value = "import", T && (r.value = "normal", n.value = 0, e.value = index.t("导入进度"), t.value = true, i.value = ""), y = A;
|
|
4110
4112
|
_context13.n = 1;
|
|
4111
4113
|
return m();
|
|
4112
4114
|
case 1:
|
|
@@ -4185,7 +4187,7 @@ var uc = pr.get("token"),
|
|
|
4185
4187
|
_context13.n = 8;
|
|
4186
4188
|
break;
|
|
4187
4189
|
}
|
|
4188
|
-
return _context13.a(2, t
|
|
4190
|
+
return _context13.a(2, t.value = false);
|
|
4189
4191
|
case 8:
|
|
4190
4192
|
_context13.n = 9;
|
|
4191
4193
|
return mc(po.data);
|
|
@@ -4197,8 +4199,8 @@ var uc = pr.get("token"),
|
|
|
4197
4199
|
_context13.n = 10;
|
|
4198
4200
|
break;
|
|
4199
4201
|
}
|
|
4200
|
-
t
|
|
4201
|
-
message: (Y == null ? undefined : Y.errorMsg) || t("上传失败"),
|
|
4202
|
+
t.value = false, (yr = window.DasMessage) == null || yr.error({
|
|
4203
|
+
message: (Y == null ? undefined : Y.errorMsg) || index.t("上传失败"),
|
|
4202
4204
|
grouping: true,
|
|
4203
4205
|
repeatNum: 1
|
|
4204
4206
|
});
|
|
@@ -4216,10 +4218,10 @@ var uc = pr.get("token"),
|
|
|
4216
4218
|
_context13.n = 12;
|
|
4217
4219
|
break;
|
|
4218
4220
|
}
|
|
4219
|
-
t
|
|
4221
|
+
t.value = false, r.value = "error";
|
|
4220
4222
|
return _context13.a(2);
|
|
4221
4223
|
case 12:
|
|
4222
|
-
e.value = t("导入进度"), t
|
|
4224
|
+
e.value = index.t("导入进度"), t.value = true, x(mt.taskId, "import", "");
|
|
4223
4225
|
_context13.n = 15;
|
|
4224
4226
|
break;
|
|
4225
4227
|
case 13:
|
|
@@ -4230,7 +4232,7 @@ var uc = pr.get("token"),
|
|
|
4230
4232
|
return _context13.a(2);
|
|
4231
4233
|
case 14:
|
|
4232
4234
|
r.value = "success", (mr = window.DasMessage) == null || mr.success({
|
|
4233
|
-
message: t("导入成功"),
|
|
4235
|
+
message: index.t("导入成功"),
|
|
4234
4236
|
grouping: true,
|
|
4235
4237
|
repeatNum: 1
|
|
4236
4238
|
});
|
|
@@ -4254,7 +4256,7 @@ var uc = pr.get("token"),
|
|
|
4254
4256
|
case 0:
|
|
4255
4257
|
A = _args14.length > 1 && _args14[1] !== undefined ? _args14[1] : "";
|
|
4256
4258
|
$ = _args14.length > 2 && _args14[2] !== undefined ? _args14[2] : "";
|
|
4257
|
-
r.value = "normal", n.value = 0, e.value = $ || t("导出进度"), t
|
|
4259
|
+
r.value = "normal", n.value = 0, e.value = $ || index.t("导出进度"), t.value = true;
|
|
4258
4260
|
_context14.n = 1;
|
|
4259
4261
|
return O == null ? undefined : O();
|
|
4260
4262
|
case 1:
|
|
@@ -4263,7 +4265,7 @@ var uc = pr.get("token"),
|
|
|
4263
4265
|
_context14.n = 2;
|
|
4264
4266
|
break;
|
|
4265
4267
|
}
|
|
4266
|
-
t
|
|
4268
|
+
t.value = false, r.value = "error";
|
|
4267
4269
|
return _context14.a(2);
|
|
4268
4270
|
case 2:
|
|
4269
4271
|
x(T.taskId, "action", "");
|
|
@@ -4289,7 +4291,7 @@ var uc = pr.get("token"),
|
|
|
4289
4291
|
A = _args15.length > 1 && _args15[1] !== undefined ? _args15[1] : "";
|
|
4290
4292
|
$ = _args15.length > 2 && _args15[2] !== undefined ? _args15[2] : "";
|
|
4291
4293
|
T = _args15.length > 3 && _args15[3] !== undefined ? _args15[3] : true;
|
|
4292
|
-
g.value = "export", T && (r.value = "normal", n.value = 0, e.value = t("导出进度"), t
|
|
4294
|
+
g.value = "export", T && (r.value = "normal", n.value = 0, e.value = index.t("导出进度"), t.value = true);
|
|
4293
4295
|
_context15.n = 1;
|
|
4294
4296
|
return O == null ? undefined : O();
|
|
4295
4297
|
case 1:
|
|
@@ -4298,7 +4300,7 @@ var uc = pr.get("token"),
|
|
|
4298
4300
|
_context15.n = 2;
|
|
4299
4301
|
break;
|
|
4300
4302
|
}
|
|
4301
|
-
t
|
|
4303
|
+
t.value = false, r.value = "error";
|
|
4302
4304
|
return _context15.a(2);
|
|
4303
4305
|
case 2:
|
|
4304
4306
|
rt().format("YYYYMMDDHHmmss") + "", x(N.taskId, "export", A || "", $);
|
|
@@ -4330,7 +4332,7 @@ var uc = pr.get("token"),
|
|
|
4330
4332
|
};
|
|
4331
4333
|
}(),
|
|
4332
4334
|
L = function L() {
|
|
4333
|
-
clearTimeout(a), a = null, t
|
|
4335
|
+
clearTimeout(a), a = null, t.value = false;
|
|
4334
4336
|
},
|
|
4335
4337
|
_U2 = /*#__PURE__*/function () {
|
|
4336
4338
|
var _ref33 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(O) {
|
|
@@ -4386,16 +4388,16 @@ var uc = pr.get("token"),
|
|
|
4386
4388
|
}
|
|
4387
4389
|
r.value = "success";
|
|
4388
4390
|
_context17.n = 3;
|
|
4389
|
-
return extractFilename("/oss/".concat(w == null ? undefined : w.filePath));
|
|
4391
|
+
return commonTools.extractFilename("/oss/".concat(w == null ? undefined : w.filePath));
|
|
4390
4392
|
case 3:
|
|
4391
4393
|
K = _context17.v;
|
|
4392
4394
|
X = ((H = K == null ? undefined : K.split("/")) == null ? undefined : H.pop()) || "";
|
|
4393
4395
|
Le = $ || X;
|
|
4394
|
-
un("".concat(getConfig().baseURL, "/oss").concat(w.filePath), Le, T), o.value = false;
|
|
4396
|
+
un("".concat(config.getConfig().baseURL, "/oss").concat(w.filePath), Le, T), o.value = false;
|
|
4395
4397
|
_context17.n = 5;
|
|
4396
4398
|
break;
|
|
4397
4399
|
case 4:
|
|
4398
|
-
w.status == 2 && (l.value = w.message || (A == "export" ? t("导出失败") : t("导入失败")), (k = window.DasMessage) == null || k.error({
|
|
4400
|
+
w.status == 2 && (l.value = w.message || (A == "export" ? index.t("导出失败") : index.t("导入失败")), (k = window.DasMessage) == null || k.error({
|
|
4399
4401
|
message: l.value,
|
|
4400
4402
|
grouping: true,
|
|
4401
4403
|
repeatNum: 1
|
|
@@ -4414,11 +4416,11 @@ var uc = pr.get("token"),
|
|
|
4414
4416
|
}
|
|
4415
4417
|
r.value = "error", c.value = true;
|
|
4416
4418
|
_context17.n = 7;
|
|
4417
|
-
return extractFilename("/oss/".concat(w == null ? undefined : w.filePath));
|
|
4419
|
+
return commonTools.extractFilename("/oss/".concat(w == null ? undefined : w.filePath));
|
|
4418
4420
|
case 7:
|
|
4419
4421
|
_K = _context17.v;
|
|
4420
4422
|
_X = ((j = _K == null ? undefined : _K.split("/")) == null ? undefined : j.pop()) || "";
|
|
4421
|
-
s.value = d || _X, u.value = y.sizeText, l.value = t("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = "".concat(getConfig().baseURL, "/oss/").concat(w == null ? undefined : w.filePath);
|
|
4423
|
+
s.value = d || _X, u.value = y.sizeText, l.value = index.t("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = "".concat(config.getConfig().baseURL, "/oss/").concat(w == null ? undefined : w.filePath);
|
|
4422
4424
|
case 8:
|
|
4423
4425
|
W(w.status, A, w.message);
|
|
4424
4426
|
_context17.n = 10;
|
|
@@ -4446,21 +4448,21 @@ var uc = pr.get("token"),
|
|
|
4446
4448
|
var $ = arguments.length > 2 ? arguments[2] : undefined;
|
|
4447
4449
|
var T, N, w;
|
|
4448
4450
|
O == 1 ? (r.value = "success", (T = window.DasMessage) == null || T.success({
|
|
4449
|
-
message: A == "export" ? t("导出成功") : t("导入成功"),
|
|
4451
|
+
message: A == "export" ? index.t("导出成功") : index.t("导入成功"),
|
|
4450
4452
|
grouping: true,
|
|
4451
4453
|
repeatNum: 1
|
|
4452
4454
|
}), s.value = "", u.value = "", l.value = "") : O == 2 ? (r.value = "error", (N = window.DasMessage) == null || N.error({
|
|
4453
|
-
message: $ || (A == "export" ? t("导出失败") : t("导入失败")),
|
|
4455
|
+
message: $ || (A == "export" ? index.t("导出失败") : index.t("导入失败")),
|
|
4454
4456
|
grouping: true,
|
|
4455
4457
|
repeatNum: 1
|
|
4456
|
-
}), l.value = $ || t("部分数据校验不通过,请下载附件并修改,重新导入!")) : O == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
4457
|
-
message: A == "export" ? t("部分导出失败") : t("部分导入失败"),
|
|
4458
|
+
}), l.value = $ || index.t("部分数据校验不通过,请下载附件并修改,重新导入!")) : O == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
4459
|
+
message: A == "export" ? index.t("部分导出失败") : index.t("部分导入失败"),
|
|
4458
4460
|
grouping: true,
|
|
4459
4461
|
repeatNum: 1
|
|
4460
4462
|
}));
|
|
4461
4463
|
};
|
|
4462
4464
|
return {
|
|
4463
|
-
showProgressDialog: t
|
|
4465
|
+
showProgressDialog: t,
|
|
4464
4466
|
progressTitle: e,
|
|
4465
4467
|
percent: n,
|
|
4466
4468
|
progressStatus: r,
|
|
@@ -4578,4 +4580,40 @@ var uc = pr.get("token"),
|
|
|
4578
4580
|
mu = b("/api/tool/".concat(Oc)),
|
|
4579
4581
|
Ac = "v1",
|
|
4580
4582
|
hu = b("/api/system-config/".concat(Ac));
|
|
4581
|
-
|
|
4583
|
+
exports.analyApi = Kc;
|
|
4584
|
+
exports.appManage = Lc;
|
|
4585
|
+
exports.authentication = Uc;
|
|
4586
|
+
exports.bemsModules = Bc;
|
|
4587
|
+
exports.company = tu;
|
|
4588
|
+
exports.contract = kc;
|
|
4589
|
+
exports.customer = eu;
|
|
4590
|
+
exports.customerGrade = ru;
|
|
4591
|
+
exports.customerType = nu;
|
|
4592
|
+
exports.daslink = Yc;
|
|
4593
|
+
exports.downloadFile = un;
|
|
4594
|
+
exports.dutyModules = jc;
|
|
4595
|
+
exports.enterpriseadminBrandModel = yu;
|
|
4596
|
+
exports.enterpriseright = qc;
|
|
4597
|
+
exports.gatewayEdge = Jc;
|
|
4598
|
+
exports.iot = zc;
|
|
4599
|
+
exports.iotMinio = pr;
|
|
4600
|
+
exports.iotModules = Hc;
|
|
4601
|
+
exports.iotProgress = lc;
|
|
4602
|
+
exports.iotRelationModules = Wc;
|
|
4603
|
+
exports.justauth = Vc;
|
|
4604
|
+
exports.knowledgeBase = Xc;
|
|
4605
|
+
exports.oauthServer = Qc;
|
|
4606
|
+
exports.permission = Zc;
|
|
4607
|
+
exports.portal = au;
|
|
4608
|
+
exports.projectManage = ou;
|
|
4609
|
+
exports.spaceManage = iu;
|
|
4610
|
+
exports.superadminLicense = uu;
|
|
4611
|
+
exports.superadminPermission = lu;
|
|
4612
|
+
exports.superadminPortal = su;
|
|
4613
|
+
exports.superadminResource = cu;
|
|
4614
|
+
exports.supplier = fu;
|
|
4615
|
+
exports.supplierClassification = du;
|
|
4616
|
+
exports.supplierManage = pu;
|
|
4617
|
+
exports.systemConfiguration = hu;
|
|
4618
|
+
exports.tool = mu;
|
|
4619
|
+
exports.useFile = Gc;
|