@das-fed/upf-utils 6.4.0-dev.171 → 6.4.0-dev.173
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 +1225 -1174
- package/api-services/i18n/es5.js +6 -1
- package/api-services/index.js +928 -910
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +3951 -0
- package/api-services/modules/app-manage/index.js +786 -804
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +3951 -0
- package/api-services/modules/authentication/index.js +786 -804
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +3956 -0
- package/api-services/modules/contract/es5.js +3951 -0
- package/api-services/modules/duty-manage/es5.js +3960 -0
- package/api-services/modules/enterpriseright/es5.js +3951 -0
- package/api-services/modules/es5.js +113 -75
- package/api-services/modules/file/es5.js +4497 -0
- package/api-services/modules/gateway-edge/es5.js +3963 -0
- package/api-services/modules/iot/es5.js +3970 -0
- package/api-services/modules/iot/index.js +780 -798
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +3953 -0
- package/api-services/modules/justauth/index.js +787 -805
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +3951 -0
- package/api-services/modules/knowledge/index.js +786 -804
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +3963 -0
- package/api-services/modules/permission/es5.js +3963 -0
- package/api-services/modules/platformManage/es5.js +3963 -0
- package/api-services/modules/platformManage/index.js +776 -790
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +3951 -0
- package/api-services/modules/portal/index.js +786 -804
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +3963 -0
- 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 +3957 -0
- package/api-services/modules/supplier/es5.js +3967 -0
- package/api-services/modules/supplychain-manage/es5.js +3963 -0
- 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 +3951 -0
- package/api-services/modules/tool/es5.js +3963 -0
- package/api-services/src/create-service/es5.js +3949 -0
- 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 +30 -6
- 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 +41 -39
- package/create-api-service/i18n/es5.js +6 -1
- 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 +21 -0
- 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 +12 -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 +10 -0
- package/webSocket-service/es5.js +9 -7
- package/with-install/es5.js +3 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
var _lr$sso, _lr$i18n, _lr$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 ho = require('dayjs/plugin/utc');
|
|
43
|
+
var go = 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 an(t, e) {
|
|
49
51
|
return function () {
|
|
50
52
|
return t.apply(e, arguments);
|
|
@@ -3750,10 +3752,10 @@ var ec = {
|
|
|
3750
3752
|
_appCode: "framework"
|
|
3751
3753
|
}
|
|
3752
3754
|
};
|
|
3753
|
-
setI18nRule(ec);
|
|
3755
|
+
index.setI18nRule(ec);
|
|
3754
3756
|
rt.extend(ho);
|
|
3755
3757
|
rt.extend(go);
|
|
3756
|
-
var lr = getConfig(),
|
|
3758
|
+
var lr = config.getConfig(),
|
|
3757
3759
|
to = (_lr$sso = lr.sso) !== null && _lr$sso !== void 0 ? _lr$sso : true,
|
|
3758
3760
|
tc = (_lr$i18n = lr.i18n) !== null && _lr$i18n !== void 0 ? _lr$i18n : true,
|
|
3759
3761
|
ro = (_lr$noRedireLogin = lr.noRedireLogin) !== null && _lr$noRedireLogin !== void 0 ? _lr$noRedireLogin : false;
|
|
@@ -3782,29 +3784,29 @@ var rc = 1e3,
|
|
|
3782
3784
|
};
|
|
3783
3785
|
}(),
|
|
3784
3786
|
oc = /*#__PURE__*/function () {
|
|
3785
|
-
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t
|
|
3787
|
+
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t, e) {
|
|
3786
3788
|
var d, p, v, y, h, n, r, o, a, i, _ref23, _ref25, m, _ref24, E, u, l, c, _t10;
|
|
3787
3789
|
return _regenerator().w(function (_context1) {
|
|
3788
3790
|
while (1) switch (_context1.n) {
|
|
3789
3791
|
case 0:
|
|
3790
|
-
n = ((d = t
|
|
3792
|
+
n = ((d = t.response) == null ? undefined : d.status) || 500, r = (p = t.response) == null ? undefined : p.message, o = {};
|
|
3791
3793
|
a = {
|
|
3792
|
-
400: t("参数校验错误"),
|
|
3793
|
-
404: t("接口地址未找到"),
|
|
3794
|
-
500: t("服务器内部错误")
|
|
3794
|
+
400: index.t("参数校验错误"),
|
|
3795
|
+
404: index.t("接口地址未找到"),
|
|
3796
|
+
500: index.t("服务器内部错误")
|
|
3795
3797
|
};
|
|
3796
|
-
i = ((v = t
|
|
3797
|
-
if (!(!(getQuery("code") || "") && !ro && (n === 401 || (i == null ? undefined : i.code) === 401))) {
|
|
3798
|
+
i = ((v = t == null ? undefined : t.response) == null ? undefined : v.data) || {};
|
|
3799
|
+
if (!(!(sso.getQuery("code") || "") && !ro && (n === 401 || (i == null ? undefined : i.code) === 401))) {
|
|
3798
3800
|
_context1.n = 1;
|
|
3799
3801
|
break;
|
|
3800
3802
|
}
|
|
3801
|
-
to ? login(_objectSpread(_objectSpread({}, getTokenParams), {}, {
|
|
3802
|
-
redirect_uri: real_uri
|
|
3803
|
-
})) : no(), o = i, r = a[n || (i == null ? undefined : i.code)] || (i == null ? undefined : i.msg) || (t
|
|
3803
|
+
to ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
|
|
3804
|
+
redirect_uri: sso.real_uri
|
|
3805
|
+
})) : no(), o = i, r = a[n || (i == null ? undefined : i.code)] || (i == null ? undefined : i.msg) || (t == null ? undefined : t.message);
|
|
3804
3806
|
_context1.n = 6;
|
|
3805
3807
|
break;
|
|
3806
3808
|
case 1:
|
|
3807
|
-
if (!t
|
|
3809
|
+
if (!t.response) {
|
|
3808
3810
|
_context1.n = 5;
|
|
3809
3811
|
break;
|
|
3810
3812
|
}
|
|
@@ -3822,7 +3824,7 @@ var rc = 1e3,
|
|
|
3822
3824
|
} catch (_unused20) {
|
|
3823
3825
|
m({
|
|
3824
3826
|
code: 400,
|
|
3825
|
-
msg: t("blob解析错误")
|
|
3827
|
+
msg: index.t("blob解析错误")
|
|
3826
3828
|
});
|
|
3827
3829
|
}
|
|
3828
3830
|
};
|
|
@@ -3838,17 +3840,17 @@ var rc = 1e3,
|
|
|
3838
3840
|
m = (_ref23 = e == null ? undefined : e.i18n) !== null && _ref23 !== void 0 ? _ref23 : true;
|
|
3839
3841
|
if (tc && m) {
|
|
3840
3842
|
E = (_ref24 = i == null ? undefined : i.status) !== null && _ref24 !== void 0 ? _ref24 : "";
|
|
3841
|
-
r = !(i != null && i.data) || !i.data.length ? t(E) : t.apply(
|
|
3843
|
+
r = !(i != null && i.data) || !i.data.length ? index.t(E) : index.t.apply(index, [E].concat(_toConsumableArray(i.data)));
|
|
3842
3844
|
} else r = (_ref25 = i == null ? undefined : i.msg) !== null && _ref25 !== void 0 ? _ref25 : "";
|
|
3843
3845
|
o = i;
|
|
3844
3846
|
case 4:
|
|
3845
|
-
r || (r = a[t
|
|
3847
|
+
r || (r = a[t.response.status] || t.message);
|
|
3846
3848
|
_context1.n = 6;
|
|
3847
3849
|
break;
|
|
3848
3850
|
case 5:
|
|
3849
|
-
t
|
|
3851
|
+
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("请求配置异常");
|
|
3850
3852
|
case 6:
|
|
3851
|
-
e != null && e.customErrorMessage && (r = e == null ? undefined : e.customErrorMessage(r, t
|
|
3853
|
+
e != null && e.customErrorMessage && (r = e == null ? undefined : e.customErrorMessage(r, t));
|
|
3852
3854
|
u = Date.now(), l = r === rn, c = u - nn < rc;
|
|
3853
3855
|
return _context1.a(2, (!(e != null && e.ignoreErrorMessage) && r && (!l || !c) && ((h = (y = window.DasMessage) == null ? undefined : y.error) == null || h.call(y, {
|
|
3854
3856
|
message: r,
|
|
@@ -3856,7 +3858,7 @@ var rc = 1e3,
|
|
|
3856
3858
|
}), rn = r, nn = u), _objectSpread(_objectSpread({}, o), {}, {
|
|
3857
3859
|
code: n,
|
|
3858
3860
|
msg: r,
|
|
3859
|
-
error: t
|
|
3861
|
+
error: t
|
|
3860
3862
|
})));
|
|
3861
3863
|
}
|
|
3862
3864
|
}, _callee0);
|
|
@@ -3867,14 +3869,14 @@ var rc = 1e3,
|
|
|
3867
3869
|
}(),
|
|
3868
3870
|
b = function b(t, e) {
|
|
3869
3871
|
var n = F.create();
|
|
3870
|
-
return curringHttp(n, /*#__PURE__*/function () {
|
|
3872
|
+
return curringHttp.curringHttp(n, /*#__PURE__*/function () {
|
|
3871
3873
|
var _ref26 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(r) {
|
|
3872
3874
|
var _r$csrf;
|
|
3873
|
-
var o, l, c, _c, s,
|
|
3875
|
+
var o, l, c, _c, s, _commonInfo$getProjec, _l3, _c2, _commonInfo$getInstan, _l4, _t11;
|
|
3874
3876
|
return _regenerator().w(function (_context10) {
|
|
3875
3877
|
while (1) switch (_context10.n) {
|
|
3876
3878
|
case 0:
|
|
3877
|
-
o = getConfig();
|
|
3879
|
+
o = config.getConfig();
|
|
3878
3880
|
if (!(r.headers || (r.headers = {}), !(r != null && r["public"]))) {
|
|
3879
3881
|
_context10.n = 7;
|
|
3880
3882
|
break;
|
|
@@ -3894,21 +3896,21 @@ var rc = 1e3,
|
|
|
3894
3896
|
break;
|
|
3895
3897
|
}
|
|
3896
3898
|
_context10.n = 1;
|
|
3897
|
-
return getToken(r);
|
|
3899
|
+
return sso.getToken(r);
|
|
3898
3900
|
case 1:
|
|
3899
3901
|
l = _context10.v;
|
|
3900
3902
|
case 2:
|
|
3901
3903
|
_context10.n = 6;
|
|
3902
3904
|
break;
|
|
3903
3905
|
case 3:
|
|
3904
|
-
l || (l = getAccessToken());
|
|
3906
|
+
l || (l = tokenTools.getAccessToken());
|
|
3905
3907
|
_c = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3906
3908
|
if (!l) {
|
|
3907
3909
|
_context10.n = 5;
|
|
3908
3910
|
break;
|
|
3909
3911
|
}
|
|
3910
3912
|
_context10.n = 4;
|
|
3911
|
-
return getValidAccessToken(_c, function (p) {
|
|
3913
|
+
return checkToken.getValidAccessToken(_c, function (p) {
|
|
3912
3914
|
window.localStorage.setItem("tokenInfo", JSON.stringify(p));
|
|
3913
3915
|
});
|
|
3914
3916
|
case 4:
|
|
@@ -3931,13 +3933,13 @@ var rc = 1e3,
|
|
|
3931
3933
|
if (s.project === undefined) {
|
|
3932
3934
|
_l3 = 0;
|
|
3933
3935
|
_c2 = new URL(location.href).searchParams;
|
|
3934
|
-
_l3 = _c2.get("project") || _c2.get("projectId") || 0, _l3 || (_l3 = (
|
|
3936
|
+
_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);
|
|
3935
3937
|
}
|
|
3936
3938
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3937
|
-
|
|
3939
|
+
_commonInfo$getInstan = commonInfo.getInstanceInfo(), _l4 = _commonInfo$getInstan.instanceInfo;
|
|
3938
3940
|
_l4 != null && _l4.instanceId && (s.instance = _l4.instanceId);
|
|
3939
3941
|
}
|
|
3940
|
-
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, tn.set("uiCulture", currentLang.value), r));
|
|
3942
|
+
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, tn.set("uiCulture", index.currentLang.value), r));
|
|
3941
3943
|
}
|
|
3942
3944
|
}, _callee1);
|
|
3943
3945
|
}));
|
|
@@ -4007,20 +4009,20 @@ var pc = cr.get("token"),
|
|
|
4007
4009
|
}),
|
|
4008
4010
|
mc = uc.get("progress"),
|
|
4009
4011
|
Vc = function Vc() {
|
|
4010
|
-
var t
|
|
4011
|
-
e = ref(""),
|
|
4012
|
-
n = ref(0),
|
|
4013
|
-
r = ref("normal"),
|
|
4014
|
-
o = ref(false),
|
|
4012
|
+
var t = vue.ref(false),
|
|
4013
|
+
e = vue.ref(""),
|
|
4014
|
+
n = vue.ref(0),
|
|
4015
|
+
r = vue.ref("normal"),
|
|
4016
|
+
o = vue.ref(false),
|
|
4015
4017
|
a,
|
|
4016
|
-
i = ref(""),
|
|
4017
|
-
s = ref(""),
|
|
4018
|
-
u = ref(""),
|
|
4019
|
-
l = ref(""),
|
|
4020
|
-
c = ref(false),
|
|
4021
|
-
d = ref(""),
|
|
4018
|
+
i = vue.ref(""),
|
|
4019
|
+
s = vue.ref(""),
|
|
4020
|
+
u = vue.ref(""),
|
|
4021
|
+
l = vue.ref(""),
|
|
4022
|
+
c = vue.ref(false),
|
|
4023
|
+
d = vue.ref(""),
|
|
4022
4024
|
p = "",
|
|
4023
|
-
v = ref(""),
|
|
4025
|
+
v = vue.ref(""),
|
|
4024
4026
|
y;
|
|
4025
4027
|
var h = function h() {
|
|
4026
4028
|
s.value = "", u.value = "", l.value = "", c.value = false, d.value = "";
|
|
@@ -4094,7 +4096,7 @@ var pc = cr.get("token"),
|
|
|
4094
4096
|
T = _args13.length > 3 && _args13[3] !== undefined ? _args13[3] : true;
|
|
4095
4097
|
N = _args13.length > 4 && _args13[4] !== undefined ? _args13[4] : "";
|
|
4096
4098
|
w = _args13.length > 5 && _args13[5] !== undefined ? _args13[5] : false;
|
|
4097
|
-
p = N, v.value = "import", T && (r.value = "normal", n.value = 0, e.value = t("导入进度"), t
|
|
4099
|
+
p = N, v.value = "import", T && (r.value = "normal", n.value = 0, e.value = index.t("导入进度"), t.value = true, i.value = ""), y = A;
|
|
4098
4100
|
_context13.n = 1;
|
|
4099
4101
|
return m();
|
|
4100
4102
|
case 1:
|
|
@@ -4173,7 +4175,7 @@ var pc = cr.get("token"),
|
|
|
4173
4175
|
_context13.n = 8;
|
|
4174
4176
|
break;
|
|
4175
4177
|
}
|
|
4176
|
-
return _context13.a(2, t
|
|
4178
|
+
return _context13.a(2, t.value = false);
|
|
4177
4179
|
case 8:
|
|
4178
4180
|
_context13.n = 9;
|
|
4179
4181
|
return gc(so.data);
|
|
@@ -4185,8 +4187,8 @@ var pc = cr.get("token"),
|
|
|
4185
4187
|
_context13.n = 10;
|
|
4186
4188
|
break;
|
|
4187
4189
|
}
|
|
4188
|
-
t
|
|
4189
|
-
message: (Y == null ? undefined : Y.errorMsg) || t("上传失败"),
|
|
4190
|
+
t.value = false, (fr = window.DasMessage) == null || fr.error({
|
|
4191
|
+
message: (Y == null ? undefined : Y.errorMsg) || index.t("上传失败"),
|
|
4190
4192
|
grouping: true,
|
|
4191
4193
|
repeatNum: 1
|
|
4192
4194
|
});
|
|
@@ -4204,10 +4206,10 @@ var pc = cr.get("token"),
|
|
|
4204
4206
|
_context13.n = 12;
|
|
4205
4207
|
break;
|
|
4206
4208
|
}
|
|
4207
|
-
t
|
|
4209
|
+
t.value = false, r.value = "error";
|
|
4208
4210
|
return _context13.a(2);
|
|
4209
4211
|
case 12:
|
|
4210
|
-
e.value = t("导入进度"), t
|
|
4212
|
+
e.value = index.t("导入进度"), t.value = true, x(mt.taskId, "import", "");
|
|
4211
4213
|
_context13.n = 15;
|
|
4212
4214
|
break;
|
|
4213
4215
|
case 13:
|
|
@@ -4218,7 +4220,7 @@ var pc = cr.get("token"),
|
|
|
4218
4220
|
return _context13.a(2);
|
|
4219
4221
|
case 14:
|
|
4220
4222
|
r.value = "success", (pr = window.DasMessage) == null || pr.success({
|
|
4221
|
-
message: t("导入成功"),
|
|
4223
|
+
message: index.t("导入成功"),
|
|
4222
4224
|
grouping: true,
|
|
4223
4225
|
repeatNum: 1
|
|
4224
4226
|
});
|
|
@@ -4242,7 +4244,7 @@ var pc = cr.get("token"),
|
|
|
4242
4244
|
case 0:
|
|
4243
4245
|
A = _args14.length > 1 && _args14[1] !== undefined ? _args14[1] : "";
|
|
4244
4246
|
$ = _args14.length > 2 && _args14[2] !== undefined ? _args14[2] : "";
|
|
4245
|
-
r.value = "normal", n.value = 0, e.value = $ || t("导出进度"), t
|
|
4247
|
+
r.value = "normal", n.value = 0, e.value = $ || index.t("导出进度"), t.value = true;
|
|
4246
4248
|
_context14.n = 1;
|
|
4247
4249
|
return O == null ? undefined : O();
|
|
4248
4250
|
case 1:
|
|
@@ -4251,7 +4253,7 @@ var pc = cr.get("token"),
|
|
|
4251
4253
|
_context14.n = 2;
|
|
4252
4254
|
break;
|
|
4253
4255
|
}
|
|
4254
|
-
t
|
|
4256
|
+
t.value = false, r.value = "error";
|
|
4255
4257
|
return _context14.a(2);
|
|
4256
4258
|
case 2:
|
|
4257
4259
|
x(T.taskId, "action", "");
|
|
@@ -4277,7 +4279,7 @@ var pc = cr.get("token"),
|
|
|
4277
4279
|
A = _args15.length > 1 && _args15[1] !== undefined ? _args15[1] : "";
|
|
4278
4280
|
$ = _args15.length > 2 && _args15[2] !== undefined ? _args15[2] : "";
|
|
4279
4281
|
T = _args15.length > 3 && _args15[3] !== undefined ? _args15[3] : true;
|
|
4280
|
-
v.value = "export", T && (r.value = "normal", n.value = 0, e.value = t("导出进度"), t
|
|
4282
|
+
v.value = "export", T && (r.value = "normal", n.value = 0, e.value = index.t("导出进度"), t.value = true);
|
|
4281
4283
|
_context15.n = 1;
|
|
4282
4284
|
return O == null ? undefined : O();
|
|
4283
4285
|
case 1:
|
|
@@ -4286,7 +4288,7 @@ var pc = cr.get("token"),
|
|
|
4286
4288
|
_context15.n = 2;
|
|
4287
4289
|
break;
|
|
4288
4290
|
}
|
|
4289
|
-
t
|
|
4291
|
+
t.value = false, r.value = "error";
|
|
4290
4292
|
return _context15.a(2);
|
|
4291
4293
|
case 2:
|
|
4292
4294
|
rt().format("YYYYMMDDHHmmss") + "", x(N.taskId, "export", A || "", $);
|
|
@@ -4318,7 +4320,7 @@ var pc = cr.get("token"),
|
|
|
4318
4320
|
};
|
|
4319
4321
|
}(),
|
|
4320
4322
|
L = function L() {
|
|
4321
|
-
clearTimeout(a), a = null, t
|
|
4323
|
+
clearTimeout(a), a = null, t.value = false;
|
|
4322
4324
|
},
|
|
4323
4325
|
_U2 = /*#__PURE__*/function () {
|
|
4324
4326
|
var _ref33 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(O) {
|
|
@@ -4374,16 +4376,16 @@ var pc = cr.get("token"),
|
|
|
4374
4376
|
}
|
|
4375
4377
|
r.value = "success";
|
|
4376
4378
|
_context17.n = 3;
|
|
4377
|
-
return extractFilename("/oss/".concat(w == null ? undefined : w.filePath));
|
|
4379
|
+
return commonTools.extractFilename("/oss/".concat(w == null ? undefined : w.filePath));
|
|
4378
4380
|
case 3:
|
|
4379
4381
|
K = _context17.v;
|
|
4380
4382
|
X = ((H = K == null ? undefined : K.split("/")) == null ? undefined : H.pop()) || "";
|
|
4381
4383
|
Le = $ || X;
|
|
4382
|
-
on("".concat(getConfig().baseURL, "/oss").concat(w.filePath), Le, T), o.value = false;
|
|
4384
|
+
on("".concat(config.getConfig().baseURL, "/oss").concat(w.filePath), Le, T), o.value = false;
|
|
4383
4385
|
_context17.n = 5;
|
|
4384
4386
|
break;
|
|
4385
4387
|
case 4:
|
|
4386
|
-
w.status == 2 && (l.value = w.message || (A == "export" ? t("导出失败") : t("导入失败")), (B = window.DasMessage) == null || B.error({
|
|
4388
|
+
w.status == 2 && (l.value = w.message || (A == "export" ? index.t("导出失败") : index.t("导入失败")), (B = window.DasMessage) == null || B.error({
|
|
4387
4389
|
message: l.value,
|
|
4388
4390
|
grouping: true,
|
|
4389
4391
|
repeatNum: 1
|
|
@@ -4402,11 +4404,11 @@ var pc = cr.get("token"),
|
|
|
4402
4404
|
}
|
|
4403
4405
|
r.value = "error", c.value = true;
|
|
4404
4406
|
_context17.n = 7;
|
|
4405
|
-
return extractFilename("/oss/".concat(w == null ? undefined : w.filePath));
|
|
4407
|
+
return commonTools.extractFilename("/oss/".concat(w == null ? undefined : w.filePath));
|
|
4406
4408
|
case 7:
|
|
4407
4409
|
_K = _context17.v;
|
|
4408
4410
|
_X = ((j = _K == null ? undefined : _K.split("/")) == null ? undefined : j.pop()) || "";
|
|
4409
|
-
s.value = p || _X, u.value = y.sizeText, l.value = t("部分数据校验不通过,请下载附件并修改,重新导入!"), d.value = "".concat(getConfig().baseURL, "/oss/").concat(w == null ? undefined : w.filePath);
|
|
4411
|
+
s.value = p || _X, u.value = y.sizeText, l.value = index.t("部分数据校验不通过,请下载附件并修改,重新导入!"), d.value = "".concat(config.getConfig().baseURL, "/oss/").concat(w == null ? undefined : w.filePath);
|
|
4410
4412
|
case 8:
|
|
4411
4413
|
W(w.status, A, w.message);
|
|
4412
4414
|
_context17.n = 10;
|
|
@@ -4434,21 +4436,21 @@ var pc = cr.get("token"),
|
|
|
4434
4436
|
var $ = arguments.length > 2 ? arguments[2] : undefined;
|
|
4435
4437
|
var T, N, w;
|
|
4436
4438
|
O == 1 ? (r.value = "success", (T = window.DasMessage) == null || T.success({
|
|
4437
|
-
message: A == "export" ? t("导出成功") : t("导入成功"),
|
|
4439
|
+
message: A == "export" ? index.t("导出成功") : index.t("导入成功"),
|
|
4438
4440
|
grouping: true,
|
|
4439
4441
|
repeatNum: 1
|
|
4440
4442
|
}), s.value = "", u.value = "", l.value = "") : O == 2 ? (r.value = "error", (N = window.DasMessage) == null || N.error({
|
|
4441
|
-
message: $ || (A == "export" ? t("导出失败") : t("导入失败")),
|
|
4443
|
+
message: $ || (A == "export" ? index.t("导出失败") : index.t("导入失败")),
|
|
4442
4444
|
grouping: true,
|
|
4443
4445
|
repeatNum: 1
|
|
4444
|
-
}), l.value = $ || t("部分数据校验不通过,请下载附件并修改,重新导入!")) : O == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
4445
|
-
message: A == "export" ? t("部分导出失败") : t("部分导入失败"),
|
|
4446
|
+
}), l.value = $ || index.t("部分数据校验不通过,请下载附件并修改,重新导入!")) : O == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
4447
|
+
message: A == "export" ? index.t("部分导出失败") : index.t("部分导入失败"),
|
|
4446
4448
|
grouping: true,
|
|
4447
4449
|
repeatNum: 1
|
|
4448
4450
|
}));
|
|
4449
4451
|
};
|
|
4450
4452
|
return {
|
|
4451
|
-
showProgressDialog: t
|
|
4453
|
+
showProgressDialog: t,
|
|
4452
4454
|
progressTitle: e,
|
|
4453
4455
|
percent: n,
|
|
4454
4456
|
progressStatus: r,
|
|
@@ -4566,4 +4568,40 @@ var pc = cr.get("token"),
|
|
|
4566
4568
|
gu = b("/api/tool/".concat(Rc)),
|
|
4567
4569
|
Pc = "v1",
|
|
4568
4570
|
vu = b("/api/system-config/".concat(Pc));
|
|
4569
|
-
|
|
4571
|
+
exports.analyApi = Jc;
|
|
4572
|
+
exports.appManage = kc;
|
|
4573
|
+
exports.authentication = Bc;
|
|
4574
|
+
exports.bemsModules = jc;
|
|
4575
|
+
exports.company = nu;
|
|
4576
|
+
exports.contract = qc;
|
|
4577
|
+
exports.customer = ru;
|
|
4578
|
+
exports.customerGrade = ou;
|
|
4579
|
+
exports.customerType = au;
|
|
4580
|
+
exports.daslink = eu;
|
|
4581
|
+
exports.downloadFile = on;
|
|
4582
|
+
exports.dutyModules = zc;
|
|
4583
|
+
exports.enterpriseadminBrandModel = hu;
|
|
4584
|
+
exports.enterpriseright = Hc;
|
|
4585
|
+
exports.gatewayEdge = Qc;
|
|
4586
|
+
exports.iot = Wc;
|
|
4587
|
+
exports.iotMinio = cr;
|
|
4588
|
+
exports.iotModules = Kc;
|
|
4589
|
+
exports.iotProgress = uc;
|
|
4590
|
+
exports.iotRelationModules = Gc;
|
|
4591
|
+
exports.justauth = Xc;
|
|
4592
|
+
exports.knowledgeBase = Zc;
|
|
4593
|
+
exports.oauthServer = Yc;
|
|
4594
|
+
exports.permission = tu;
|
|
4595
|
+
exports.portal = su;
|
|
4596
|
+
exports.projectManage = iu;
|
|
4597
|
+
exports.spaceManage = lu;
|
|
4598
|
+
exports.superadminLicense = pu;
|
|
4599
|
+
exports.superadminPermission = uu;
|
|
4600
|
+
exports.superadminPortal = cu;
|
|
4601
|
+
exports.superadminResource = fu;
|
|
4602
|
+
exports.supplier = du;
|
|
4603
|
+
exports.supplierClassification = mu;
|
|
4604
|
+
exports.supplierManage = yu;
|
|
4605
|
+
exports.systemConfiguration = vu;
|
|
4606
|
+
exports.tool = gu;
|
|
4607
|
+
exports.useFile = Vc;
|