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