@partex/one-core 1.1.13 → 1.1.14
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/lib/one-core.cjs +1 -1
- package/lib/one-core.js +93 -95
- package/lib/one-core.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/one-core.js
CHANGED
|
@@ -107,7 +107,7 @@ ke.interceptors.response.use(
|
|
|
107
107
|
switch (e.response.status) {
|
|
108
108
|
case 401:
|
|
109
109
|
case 403:
|
|
110
|
-
|
|
110
|
+
Ve("token"), window.location.href = "/login";
|
|
111
111
|
break;
|
|
112
112
|
default:
|
|
113
113
|
return Ee.destroyAll(), Ee.error({
|
|
@@ -121,7 +121,7 @@ ke.interceptors.response.use(
|
|
|
121
121
|
);
|
|
122
122
|
const Oi = () => {
|
|
123
123
|
xe.cancel(), xe = Xe.CancelToken.source();
|
|
124
|
-
},
|
|
124
|
+
}, V = We({
|
|
125
125
|
needUpdate: !1,
|
|
126
126
|
download: !1,
|
|
127
127
|
theme: !1,
|
|
@@ -132,29 +132,29 @@ const Oi = () => {
|
|
|
132
132
|
platformMainUrl: ""
|
|
133
133
|
});
|
|
134
134
|
function Ze(e) {
|
|
135
|
-
|
|
135
|
+
V.download = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function Vt(e) {
|
|
138
|
+
V.lang = e;
|
|
139
139
|
}
|
|
140
140
|
function Oe(e) {
|
|
141
|
-
ae("lang", e, 0),
|
|
141
|
+
ae("lang", e, 0), V.lang = e;
|
|
142
142
|
const o = document.body;
|
|
143
143
|
o.dataset.lang = e;
|
|
144
144
|
}
|
|
145
145
|
function ot(e) {
|
|
146
|
-
|
|
146
|
+
V.theme = e;
|
|
147
147
|
const o = document.body, n = document.querySelector("meta[name=theme-color]");
|
|
148
148
|
n && (e ? (n.setAttribute("content", "#2b2b2d"), o.dataset.theme = "dark") : (n.setAttribute("content", "#ffffff"), o.dataset.theme = ""));
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
150
|
+
function jt(e) {
|
|
151
|
+
V.platformName = e.platformName, V.platformType = e.platformType, V.platformUrl = e.platformUrl, V.platformMainUrl = (e == null ? void 0 : e.platformMainUrl) || "";
|
|
152
152
|
}
|
|
153
153
|
function Ut(e) {
|
|
154
|
-
|
|
154
|
+
V.platformName = e;
|
|
155
155
|
}
|
|
156
156
|
function qt(e) {
|
|
157
|
-
|
|
157
|
+
V.needUpdate = e;
|
|
158
158
|
}
|
|
159
159
|
const Et = () => K("api/auth/user/logout"), Ft = () => K("api/manager/message/markReadAll"), Gt = () => K("api/auth/user/updateTenantRenewalStatus"), Ht = (e) => K("api/manager/job/remove", e), Jt = (e) => K("api/manager/job/retry", {
|
|
160
160
|
jobId: e
|
|
@@ -292,7 +292,7 @@ function eo() {
|
|
|
292
292
|
}, f.kind = 0, f.systemType = 0, f.oeeStatus = 0, f.ncFlg = 0, f.password = "", f.enable = !0, f.platform_tdm = !1, f.platform_qms = !1, f.platform_twin = !1, f.platform_maintain = !1, f.platform_simple_tdm = !1, f.authorizationGroupArray = [], f.authorizationMachineArray = [], f.iot_menu_authorization = [], f.tdm_menu_authorization = [], f.qms_menu_authorization = [], f.maintain_menu_authorization = [], f.endTime = 0, f.tenantStatus = 1, f.renewalStatus = 0, f.roleId = 1;
|
|
293
293
|
}
|
|
294
294
|
async function at() {
|
|
295
|
-
await Et().catch(() => null),
|
|
295
|
+
await Et().catch(() => null), Ve("token"), eo(), window.location.href = "/login";
|
|
296
296
|
}
|
|
297
297
|
const R = (e, o) => {
|
|
298
298
|
const n = e.__vccOpts || e;
|
|
@@ -398,16 +398,16 @@ const Rn = /* @__PURE__ */ R(Mn, [["render", An]]), Bn = {}, Ln = {
|
|
|
398
398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
399
399
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
400
400
|
viewBox: "0 0 24 24"
|
|
401
|
-
},
|
|
401
|
+
}, Vn = /* @__PURE__ */ d("g", { fill: "none" }, [
|
|
402
402
|
/* @__PURE__ */ d("path", {
|
|
403
403
|
d: "M12 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 3a2 2 0 1 1 0 4a2 2 0 0 1 0-4z",
|
|
404
404
|
fill: "currentColor"
|
|
405
405
|
})
|
|
406
|
-
], -1),
|
|
407
|
-
|
|
406
|
+
], -1), jn = [
|
|
407
|
+
Vn
|
|
408
408
|
];
|
|
409
409
|
function Un(e, o) {
|
|
410
|
-
return b(), O("svg", Ln,
|
|
410
|
+
return b(), O("svg", Ln, jn);
|
|
411
411
|
}
|
|
412
412
|
const qn = /* @__PURE__ */ R(Bn, [["render", Un]]), En = {}, Fn = {
|
|
413
413
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -542,7 +542,7 @@ const ze = /* @__PURE__ */ R(Ta, [["render", Oa]]), Da = {}, za = {
|
|
|
542
542
|
function Ba(e, o) {
|
|
543
543
|
return b(), O("svg", za, Ra);
|
|
544
544
|
}
|
|
545
|
-
const La = /* @__PURE__ */ R(Da, [["render", Ba]]),
|
|
545
|
+
const La = /* @__PURE__ */ R(Da, [["render", Ba]]), Va = {}, ja = {
|
|
546
546
|
xmlns: "http://www.w3.org/2000/svg",
|
|
547
547
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
548
548
|
viewBox: "0 0 24 24"
|
|
@@ -555,9 +555,9 @@ const La = /* @__PURE__ */ R(Da, [["render", Ba]]), ja = {}, Va = {
|
|
|
555
555
|
Ua
|
|
556
556
|
];
|
|
557
557
|
function Ea(e, o) {
|
|
558
|
-
return b(), O("svg",
|
|
558
|
+
return b(), O("svg", ja, qa);
|
|
559
559
|
}
|
|
560
|
-
const Fa = /* @__PURE__ */ R(
|
|
560
|
+
const Fa = /* @__PURE__ */ R(Va, [["render", Ea]]), to = window.localStorage;
|
|
561
561
|
function Fe(e, o) {
|
|
562
562
|
to.setItem(e, JSON.stringify(o));
|
|
563
563
|
}
|
|
@@ -686,7 +686,7 @@ function ae(e, o, n = 3e4) {
|
|
|
686
686
|
function ee(e, o) {
|
|
687
687
|
return no.get(e, o);
|
|
688
688
|
}
|
|
689
|
-
const
|
|
689
|
+
const Ve = (e) => {
|
|
690
690
|
no.delete(e);
|
|
691
691
|
}, xa = (e = 0) => {
|
|
692
692
|
const o = document.documentElement;
|
|
@@ -817,15 +817,15 @@ const le = (e, o = "yyyy-MM-dd") => {
|
|
|
817
817
|
"span",
|
|
818
818
|
{},
|
|
819
819
|
{
|
|
820
|
-
default: () =>
|
|
820
|
+
default: () => V.lang === "zh-CN" ? "删除后无法恢复,是否确认删除?" : "Are you sure you want to delete ?"
|
|
821
821
|
}
|
|
822
822
|
),
|
|
823
823
|
trigger: () => ye(
|
|
824
824
|
ve(ma, "error", void 0, o, n),
|
|
825
|
-
|
|
825
|
+
V.lang === "zh-CN" ? "删除" : "Delete"
|
|
826
826
|
)
|
|
827
827
|
}
|
|
828
|
-
),
|
|
828
|
+
), je = (e) => {
|
|
829
829
|
const o = [];
|
|
830
830
|
return e.forEach((n) => {
|
|
831
831
|
n.type === "detail" && o.push(
|
|
@@ -837,7 +837,7 @@ const le = (e, o = "yyyy-MM-dd") => {
|
|
|
837
837
|
n.disabled,
|
|
838
838
|
n.loading
|
|
839
839
|
),
|
|
840
|
-
|
|
840
|
+
V.lang === "zh-CN" ? "详情" : "Detail"
|
|
841
841
|
)
|
|
842
842
|
), n.type === "edit" && o.push(
|
|
843
843
|
ye(
|
|
@@ -848,7 +848,7 @@ const le = (e, o = "yyyy-MM-dd") => {
|
|
|
848
848
|
n.disabled,
|
|
849
849
|
n.loading
|
|
850
850
|
),
|
|
851
|
-
|
|
851
|
+
V.lang === "zh-CN" ? "编辑" : "Edit"
|
|
852
852
|
)
|
|
853
853
|
), n.type === "delete" && o.push(Ka(n.onClick, n.disabled, n.loading)), n.type === "custom" && o.push(
|
|
854
854
|
ye(
|
|
@@ -929,7 +929,7 @@ const le = (e, o = "yyyy-MM-dd") => {
|
|
|
929
929
|
function Li(e, o) {
|
|
930
930
|
e.requestFullscreen ? (o && (e.onfullscreenchange = o), e.requestFullscreen()) : e.mozRequestFullScreen ? (o && (e.onmozfullscreenchange = o), e.mozRequestFullScreen()) : e.webkitRequestFullscreen ? (o && (e.onwebkitfullscreenchange = o), e.webkitRequestFullscreen()) : e.msRequestFullscreen && (o && (e.onmsfullscreenchange = o), e.msRequestFullscreen());
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function Vi(e, o = 0) {
|
|
933
933
|
const n = ["", "k", "m", "b", "t"], s = Math.floor(Math.log10(Math.abs(e)) / 3), r = Math.max(0, Math.min(s, n.length - 1)), u = n[r];
|
|
934
934
|
return u ? (e / Math.pow(10, r * 3)).toFixed(o) + u : (e / Math.pow(10, r * 3)).toFixed(0);
|
|
935
935
|
}
|
|
@@ -951,7 +951,7 @@ const Qa = (e, o, n = "json") => ke({
|
|
|
951
951
|
url: `${ao}${e}`,
|
|
952
952
|
method: "POST",
|
|
953
953
|
data: o
|
|
954
|
-
}),
|
|
954
|
+
}), ji = (e) => !!(f.kind === -1 || f.kind === 99 || f.iot_menu_authorization.includes(e)), Ui = (e) => f.platform_tdm ? f.kind === -1 || f.kind === 99 || e === "home" ? !0 : f.tdm_menu_authorization.includes(e) : !1, qi = (e) => f.platform_qms ? f.kind === -1 || f.kind === 99 || e === "home" ? !0 : f.qms_menu_authorization.includes(e) : !1, Ei = (e) => f.platform_twin ? (f.kind === -1 || f.kind === 99 || e === "home", !0) : !1, Fi = (e) => !!(f.kind === -1 || f.kind === 99 || f.maintain_menu_authorization.includes(e)), Xa = J({
|
|
955
955
|
name: "OcTimePickRange",
|
|
956
956
|
components: {
|
|
957
957
|
NInputGroup: Qe,
|
|
@@ -1349,7 +1349,7 @@ function sl(e, o, n, s, r, u) {
|
|
|
1349
1349
|
return [
|
|
1350
1350
|
a(C, {
|
|
1351
1351
|
value: e.searchData[S],
|
|
1352
|
-
"onUpdate:value": (
|
|
1352
|
+
"onUpdate:value": (j) => e.searchData[S] = j,
|
|
1353
1353
|
options: t.options,
|
|
1354
1354
|
"show-checkmark": !1,
|
|
1355
1355
|
style: vt(
|
|
@@ -1359,11 +1359,11 @@ function sl(e, o, n, s, r, u) {
|
|
|
1359
1359
|
width: t.width
|
|
1360
1360
|
} : {}
|
|
1361
1361
|
),
|
|
1362
|
-
"on-update:value": (
|
|
1363
|
-
e.searchData[t.input.key] = "", t.inputTemp = t.input.options[
|
|
1364
|
-
|
|
1362
|
+
"on-update:value": (j) => {
|
|
1363
|
+
e.searchData[t.input.key] = "", t.inputTemp = t.input.options[j], t.updateValue ? t.updateValue(
|
|
1364
|
+
j,
|
|
1365
1365
|
JSON.parse(JSON.stringify(e.searchData))
|
|
1366
|
-
) : e.searchData[S] =
|
|
1366
|
+
) : e.searchData[S] = j;
|
|
1367
1367
|
},
|
|
1368
1368
|
class: "oc-group-select",
|
|
1369
1369
|
placeholder: " "
|
|
@@ -1371,15 +1371,15 @@ function sl(e, o, n, s, r, u) {
|
|
|
1371
1371
|
((X = t.inputTemp) == null ? void 0 : X.type) === "input" ? (b(), B(m, {
|
|
1372
1372
|
key: 0,
|
|
1373
1373
|
value: e.searchData[t.input.key],
|
|
1374
|
-
"onUpdate:value": (
|
|
1374
|
+
"onUpdate:value": (j) => e.searchData[t.input.key] = j,
|
|
1375
1375
|
disabled: (k = t.inputTemp) == null ? void 0 : k.disabled,
|
|
1376
1376
|
placeholder: typeof ((ne = t.inputTemp) == null ? void 0 : ne.placeholder) == "string" ? (se = t.inputTemp) == null ? void 0 : se.placeholder : ((fe = t.inputTemp) == null ? void 0 : fe.placeholder) && ((me = t.inputTemp) == null ? void 0 : me.placeholder()),
|
|
1377
|
-
"on-update:value": (
|
|
1377
|
+
"on-update:value": (j) => {
|
|
1378
1378
|
var Y;
|
|
1379
1379
|
(Y = t.inputTemp) != null && Y.updateValue ? t.inputTemp.updateValue(
|
|
1380
|
-
|
|
1380
|
+
j,
|
|
1381
1381
|
JSON.parse(JSON.stringify(e.searchData))
|
|
1382
|
-
) : e.searchData[t.input.key] =
|
|
1382
|
+
) : e.searchData[t.input.key] = j;
|
|
1383
1383
|
},
|
|
1384
1384
|
clearable: t.inputTemp.clearable ?? !0,
|
|
1385
1385
|
style: { flex: "1" }
|
|
@@ -1387,7 +1387,7 @@ function sl(e, o, n, s, r, u) {
|
|
|
1387
1387
|
((z = t.inputTemp) == null ? void 0 : z.type) === "number" ? (b(), B(y, {
|
|
1388
1388
|
key: 1,
|
|
1389
1389
|
value: e.searchData[t.input.key],
|
|
1390
|
-
"onUpdate:value": (
|
|
1390
|
+
"onUpdate:value": (j) => e.searchData[t.input.key] = j,
|
|
1391
1391
|
disabled: (T = t.inputTemp) == null ? void 0 : T.disabled,
|
|
1392
1392
|
placeholder: typeof ((q = t.inputTemp) == null ? void 0 : q.placeholder) == "string" ? (Q = t.inputTemp) == null ? void 0 : Q.placeholder : ((W = t.inputTemp) == null ? void 0 : W.placeholder) && ((N = t.inputTemp) == null ? void 0 : N.placeholder()),
|
|
1393
1393
|
min: (x = t.inputTemp) == null ? void 0 : x.min,
|
|
@@ -1396,12 +1396,12 @@ function sl(e, o, n, s, r, u) {
|
|
|
1396
1396
|
"show-button": ((fo = t.inputTemp) == null ? void 0 : fo.showButton) || !0,
|
|
1397
1397
|
"update-value-on-input": !1,
|
|
1398
1398
|
validator: (mo = t.inputTemp) == null ? void 0 : mo.validator,
|
|
1399
|
-
"on-update:value": (
|
|
1399
|
+
"on-update:value": (j) => {
|
|
1400
1400
|
var Y;
|
|
1401
1401
|
(Y = t.inputTemp) != null && Y.updateValue ? t.inputTemp.updateValue(
|
|
1402
|
-
|
|
1402
|
+
j,
|
|
1403
1403
|
JSON.parse(JSON.stringify(e.searchData))
|
|
1404
|
-
) : e.searchData[t.input.key] =
|
|
1404
|
+
) : e.searchData[t.input.key] = j;
|
|
1405
1405
|
},
|
|
1406
1406
|
clearable: t.inputTemp.clearable ?? !0,
|
|
1407
1407
|
style: { flex: "1" }
|
|
@@ -1409,9 +1409,9 @@ function sl(e, o, n, s, r, u) {
|
|
|
1409
1409
|
(ho = t.inputTemp) != null && ho.suffix ? {
|
|
1410
1410
|
name: "suffix",
|
|
1411
1411
|
fn: l(() => {
|
|
1412
|
-
var
|
|
1412
|
+
var j;
|
|
1413
1413
|
return [
|
|
1414
|
-
L(A((
|
|
1414
|
+
L(A((j = t.inputTemp) == null ? void 0 : j.suffix), 1)
|
|
1415
1415
|
];
|
|
1416
1416
|
}),
|
|
1417
1417
|
key: "0"
|
|
@@ -1420,7 +1420,7 @@ function sl(e, o, n, s, r, u) {
|
|
|
1420
1420
|
((go = t.inputTemp) == null ? void 0 : go.type) === "datePicker" ? (b(), B(_, {
|
|
1421
1421
|
key: 2,
|
|
1422
1422
|
value: e.searchData[t.input.key],
|
|
1423
|
-
"onUpdate:value": (
|
|
1423
|
+
"onUpdate:value": (j) => e.searchData[t.input.key] = j,
|
|
1424
1424
|
disabled: (wo = t.inputTemp) == null ? void 0 : wo.disabled,
|
|
1425
1425
|
placeholder: typeof ((vo = t.inputTemp) == null ? void 0 : vo.placeholder) == "string" ? (yo = t.inputTemp) == null ? void 0 : yo.placeholder : ((bo = t.inputTemp) == null ? void 0 : bo.placeholder) && ((_o = t.inputTemp) == null ? void 0 : _o.placeholder()),
|
|
1426
1426
|
type: t.inputTemp.dateType,
|
|
@@ -1428,12 +1428,12 @@ function sl(e, o, n, s, r, u) {
|
|
|
1428
1428
|
"is-date-disabled": (Co = t.inputTemp) == null ? void 0 : Co.isDateDisabled,
|
|
1429
1429
|
shortcuts: ($o = t.inputTemp) == null ? void 0 : $o.shortcuts,
|
|
1430
1430
|
"update-value-on-close": t.inputTemp.dateType !== "year",
|
|
1431
|
-
"on-update:value": (
|
|
1431
|
+
"on-update:value": (j) => {
|
|
1432
1432
|
var Y;
|
|
1433
1433
|
(Y = t.inputTemp) != null && Y.updateValue ? t.inputTemp.updateValue(
|
|
1434
|
-
|
|
1434
|
+
j,
|
|
1435
1435
|
JSON.parse(JSON.stringify(e.searchData))
|
|
1436
|
-
) : e.searchData[t.input.key] =
|
|
1436
|
+
) : e.searchData[t.input.key] = j;
|
|
1437
1437
|
},
|
|
1438
1438
|
clearable: t.inputTemp.clearable ?? !0,
|
|
1439
1439
|
"close-on-select": "",
|
|
@@ -1442,18 +1442,18 @@ function sl(e, o, n, s, r, u) {
|
|
|
1442
1442
|
((ko = t.inputTemp) == null ? void 0 : ko.type) === "select" ? (b(), B(C, {
|
|
1443
1443
|
key: 3,
|
|
1444
1444
|
value: e.searchData[t.input.key],
|
|
1445
|
-
"onUpdate:value": (
|
|
1445
|
+
"onUpdate:value": (j) => e.searchData[t.input.key] = j,
|
|
1446
1446
|
"show-checkmark": !1,
|
|
1447
1447
|
disabled: (So = t.inputTemp) == null ? void 0 : So.disabled,
|
|
1448
1448
|
placeholder: typeof ((To = t.inputTemp) == null ? void 0 : To.placeholder) == "string" ? (Po = t.inputTemp) == null ? void 0 : Po.placeholder : ((Io = t.inputTemp) == null ? void 0 : Io.placeholder) && ((Mo = t.inputTemp) == null ? void 0 : Mo.placeholder()),
|
|
1449
1449
|
options: t.inputTemp.options,
|
|
1450
1450
|
multiple: t.inputTemp.multiple,
|
|
1451
|
-
"on-update:value": (
|
|
1451
|
+
"on-update:value": (j) => {
|
|
1452
1452
|
var Y;
|
|
1453
1453
|
(Y = t.inputTemp) != null && Y.updateValue ? t.inputTemp.updateValue(
|
|
1454
|
-
|
|
1454
|
+
j,
|
|
1455
1455
|
JSON.parse(JSON.stringify(e.searchData))
|
|
1456
|
-
) : e.searchData[t.input.key] =
|
|
1456
|
+
) : e.searchData[t.input.key] = j;
|
|
1457
1457
|
},
|
|
1458
1458
|
clearable: t.inputTemp.clearable ?? !0,
|
|
1459
1459
|
"max-tag-count": "responsive",
|
|
@@ -1576,16 +1576,14 @@ const il = /* @__PURE__ */ R(tl, [["render", sl]]), ul = J({
|
|
|
1576
1576
|
};
|
|
1577
1577
|
return s({ setValues: g, setData: I }), ce(() => {
|
|
1578
1578
|
setTimeout(() => {
|
|
1579
|
-
let w;
|
|
1579
|
+
let w = Object.assign({}, e.value);
|
|
1580
1580
|
if (e.cache) {
|
|
1581
1581
|
const { cursor: _, routerId: P } = r.query;
|
|
1582
1582
|
if (_ && P) {
|
|
1583
1583
|
const D = r.path, G = Lo(P), E = Lo(_);
|
|
1584
|
-
G === D
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
} else
|
|
1588
|
-
w = Object.assign({}, e.value);
|
|
1584
|
+
G === D && (w = Object.assign({}, E));
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1589
1587
|
i.value.setValues(JSON.parse(JSON.stringify(w))), i.value.dataFactory(e.data), e.autoSubmit && C();
|
|
1590
1588
|
}, 100), window.addEventListener("resize", h);
|
|
1591
1589
|
}), be(() => {
|
|
@@ -1982,7 +1980,7 @@ const bl = /* @__PURE__ */ R(ul, [["render", yl]]), _l = J({
|
|
|
1982
1980
|
icon: oo,
|
|
1983
1981
|
color: "success",
|
|
1984
1982
|
text: e("Common.importer.btnDownload")
|
|
1985
|
-
}),
|
|
1983
|
+
}), je(I);
|
|
1986
1984
|
}
|
|
1987
1985
|
}
|
|
1988
1986
|
]), m = (g) => {
|
|
@@ -2005,7 +2003,7 @@ const bl = /* @__PURE__ */ R(ul, [["render", yl]]), _l = J({
|
|
|
2005
2003
|
Ze(g), o.value = g;
|
|
2006
2004
|
};
|
|
2007
2005
|
return $(), ie(
|
|
2008
|
-
() =>
|
|
2006
|
+
() => V.download,
|
|
2009
2007
|
(g) => {
|
|
2010
2008
|
o.value = g, g && $();
|
|
2011
2009
|
}
|
|
@@ -2180,7 +2178,7 @@ const $l = /* @__PURE__ */ R(_l, [["render", Cl]]), kl = J({
|
|
|
2180
2178
|
fixed: "right",
|
|
2181
2179
|
width: 90,
|
|
2182
2180
|
render(g) {
|
|
2183
|
-
return g.status === 0 ?
|
|
2181
|
+
return g.status === 0 ? je([
|
|
2184
2182
|
{
|
|
2185
2183
|
type: "custom",
|
|
2186
2184
|
color: "primary",
|
|
@@ -2448,8 +2446,8 @@ const Pl = /* @__PURE__ */ R(kl, [["render", Tl]]), Il = J({
|
|
|
2448
2446
|
}, Z = () => {
|
|
2449
2447
|
m.value = !1;
|
|
2450
2448
|
}, X = () => {
|
|
2451
|
-
let N =
|
|
2452
|
-
|
|
2449
|
+
let N = V.platformMainUrl || V.platformUrl;
|
|
2450
|
+
V.platformMainUrl === "auto" && (f.industryCategory === "0" ? N = "https://www.partexiot.cn" : f.industryCategory === "1" && (N = "https://printing.partexiot.cn"));
|
|
2453
2451
|
const x = [
|
|
2454
2452
|
{
|
|
2455
2453
|
label: o("Platform.iot"),
|
|
@@ -2628,7 +2626,7 @@ const Pl = /* @__PURE__ */ R(kl, [["render", Tl]]), Il = J({
|
|
|
2628
2626
|
});
|
|
2629
2627
|
}
|
|
2630
2628
|
}, me = () => {
|
|
2631
|
-
s.push(
|
|
2629
|
+
s.push(V.platformUrl);
|
|
2632
2630
|
}, z = () => {
|
|
2633
2631
|
I.value = I.value === "zh-CN" ? "en-US" : "zh-CN", Oe(I.value);
|
|
2634
2632
|
}, T = () => {
|
|
@@ -2648,7 +2646,7 @@ const Pl = /* @__PURE__ */ R(kl, [["render", Tl]]), Il = J({
|
|
|
2648
2646
|
}), be(() => {
|
|
2649
2647
|
window.removeEventListener("resize", Q);
|
|
2650
2648
|
}), ie(
|
|
2651
|
-
() =>
|
|
2649
|
+
() => V.lang,
|
|
2652
2650
|
() => {
|
|
2653
2651
|
T();
|
|
2654
2652
|
}
|
|
@@ -2658,7 +2656,7 @@ const Pl = /* @__PURE__ */ R(kl, [["render", Tl]]), Il = J({
|
|
|
2658
2656
|
P(N), W();
|
|
2659
2657
|
}
|
|
2660
2658
|
), ie(
|
|
2661
|
-
() =>
|
|
2659
|
+
() => V.needUpdate,
|
|
2662
2660
|
(N) => {
|
|
2663
2661
|
if (N) {
|
|
2664
2662
|
y.value = setInterval(() => {
|
|
@@ -2710,7 +2708,7 @@ const Pl = /* @__PURE__ */ R(kl, [["render", Tl]]), Il = J({
|
|
|
2710
2708
|
}
|
|
2711
2709
|
), {
|
|
2712
2710
|
userStore: f,
|
|
2713
|
-
headerStore:
|
|
2711
|
+
headerStore: V,
|
|
2714
2712
|
theme: c,
|
|
2715
2713
|
activeMenu: i,
|
|
2716
2714
|
lang: I,
|
|
@@ -2929,12 +2927,12 @@ const Al = /* @__PURE__ */ R(Il, [["render", zl]]), Rl = J({
|
|
|
2929
2927
|
default: ""
|
|
2930
2928
|
}
|
|
2931
2929
|
}
|
|
2932
|
-
}), Bl = { class: "footer" }, Ll = /* @__PURE__ */ d("span", { style: { "font-family": "Arial, Helvetica, sans-serif" } }, "©", -1),
|
|
2930
|
+
}), Bl = { class: "footer" }, Ll = /* @__PURE__ */ d("span", { style: { "font-family": "Arial, Helvetica, sans-serif" } }, "©", -1), Vl = /* @__PURE__ */ d("a", {
|
|
2933
2931
|
href: "https://beian.miit.gov.cn/",
|
|
2934
2932
|
target: "_blank",
|
|
2935
2933
|
class: "footer-record"
|
|
2936
2934
|
}, " 沪ICP备 18025935号-3 ", -1);
|
|
2937
|
-
function
|
|
2935
|
+
function jl(e, o, n, s, r, u) {
|
|
2938
2936
|
return b(), O("footer", Bl, [
|
|
2939
2937
|
L(" Copyright "),
|
|
2940
2938
|
Ll,
|
|
@@ -2942,10 +2940,10 @@ function Vl(e, o, n, s, r, u) {
|
|
|
2942
2940
|
e.version ? (b(), O(ue, { key: 0 }, [
|
|
2943
2941
|
L("v" + A(e.version) + " ", 1)
|
|
2944
2942
|
], 64)) : U("", !0),
|
|
2945
|
-
|
|
2943
|
+
Vl
|
|
2946
2944
|
]);
|
|
2947
2945
|
}
|
|
2948
|
-
const Ul = /* @__PURE__ */ R(Rl, [["render",
|
|
2946
|
+
const Ul = /* @__PURE__ */ R(Rl, [["render", jl]]), ql = J({
|
|
2949
2947
|
name: "OcBack",
|
|
2950
2948
|
components: {
|
|
2951
2949
|
IconChevronLeft: wn,
|
|
@@ -3105,7 +3103,7 @@ const Fl = /* @__PURE__ */ R(ql, [["render", El]]), rt = (e) => {
|
|
|
3105
3103
|
fixed: "right",
|
|
3106
3104
|
width: 120,
|
|
3107
3105
|
render(w) {
|
|
3108
|
-
return
|
|
3106
|
+
return je([
|
|
3109
3107
|
{
|
|
3110
3108
|
type: "custom",
|
|
3111
3109
|
disabled: w.jobStatus === 0,
|
|
@@ -3376,7 +3374,7 @@ const Kl = /* @__PURE__ */ R(Jl, [["render", Wl]]), Ql = J({
|
|
|
3376
3374
|
n.success({
|
|
3377
3375
|
content: () => e("Notice.success"),
|
|
3378
3376
|
duration: 3e3
|
|
3379
|
-
}), T.kind !== 1 && s.replace(
|
|
3377
|
+
}), T.kind !== 1 && s.replace(V.platformUrl);
|
|
3380
3378
|
}).catch(() => {
|
|
3381
3379
|
n.error({
|
|
3382
3380
|
content: () => e("Notice.error"),
|
|
@@ -3514,7 +3512,7 @@ const Kl = /* @__PURE__ */ R(Jl, [["render", Wl]]), Ql = J({
|
|
|
3514
3512
|
]
|
|
3515
3513
|
}
|
|
3516
3514
|
);
|
|
3517
|
-
return eo(),
|
|
3515
|
+
return eo(), Ve("token"), D(), G(), Oe(o.value), {
|
|
3518
3516
|
tabs: r,
|
|
3519
3517
|
pwdRef: c,
|
|
3520
3518
|
pwdPhoneRef: m,
|
|
@@ -4267,7 +4265,7 @@ const Br = J({
|
|
|
4267
4265
|
fixed: "right",
|
|
4268
4266
|
width: 120,
|
|
4269
4267
|
render(m) {
|
|
4270
|
-
return
|
|
4268
|
+
return je([
|
|
4271
4269
|
{
|
|
4272
4270
|
type: "custom",
|
|
4273
4271
|
onClick: () => {
|
|
@@ -4316,8 +4314,8 @@ const Br = J({
|
|
|
4316
4314
|
isRangeDateDisabled: c
|
|
4317
4315
|
};
|
|
4318
4316
|
}
|
|
4319
|
-
}), Lr = { class: "com-card" },
|
|
4320
|
-
function
|
|
4317
|
+
}), Lr = { class: "com-card" }, Vr = /* @__PURE__ */ d("br", null, null, -1);
|
|
4318
|
+
function jr(e, o, n, s, r, u) {
|
|
4321
4319
|
const i = p("NInputGroupLabel"), c = p("NDatePicker"), m = p("NInputGroup"), y = p("NSpace"), C = p("n-data-table");
|
|
4322
4320
|
return b(), O("div", Lr, [
|
|
4323
4321
|
a(y, { justify: "end" }, {
|
|
@@ -4343,7 +4341,7 @@ function Vr(e, o, n, s, r, u) {
|
|
|
4343
4341
|
]),
|
|
4344
4342
|
_: 1
|
|
4345
4343
|
}),
|
|
4346
|
-
|
|
4344
|
+
Vr,
|
|
4347
4345
|
a(C, {
|
|
4348
4346
|
columns: e.columns,
|
|
4349
4347
|
data: e.columnData,
|
|
@@ -4353,7 +4351,7 @@ function Vr(e, o, n, s, r, u) {
|
|
|
4353
4351
|
}, null, 8, ["columns", "data", "loading"])
|
|
4354
4352
|
]);
|
|
4355
4353
|
}
|
|
4356
|
-
const Ur = /* @__PURE__ */ R(Br, [["render",
|
|
4354
|
+
const Ur = /* @__PURE__ */ R(Br, [["render", jr]]), qr = J({
|
|
4357
4355
|
name: "OcSkeleton",
|
|
4358
4356
|
components: {
|
|
4359
4357
|
NGrid: Ne,
|
|
@@ -4408,11 +4406,11 @@ const Gr = /* @__PURE__ */ R(qr, [["render", Fr]]), Hr = J({
|
|
|
4408
4406
|
},
|
|
4409
4407
|
setup() {
|
|
4410
4408
|
const e = () => {
|
|
4411
|
-
oe.push(
|
|
4409
|
+
oe.push(V.platformUrl);
|
|
4412
4410
|
}, o = v();
|
|
4413
4411
|
return ce(() => {
|
|
4414
4412
|
o.value = setInterval(() => {
|
|
4415
|
-
oe.push(
|
|
4413
|
+
oe.push(V.platformUrl);
|
|
4416
4414
|
}, 3e3);
|
|
4417
4415
|
}), be(() => {
|
|
4418
4416
|
clearInterval(o.value);
|
|
@@ -4448,11 +4446,11 @@ const Xr = /* @__PURE__ */ R(Hr, [["render", Qr], ["__scopeId", "data-v-4387c328
|
|
|
4448
4446
|
},
|
|
4449
4447
|
setup() {
|
|
4450
4448
|
const e = () => {
|
|
4451
|
-
oe.push(
|
|
4449
|
+
oe.push(V.platformUrl);
|
|
4452
4450
|
}, o = v();
|
|
4453
4451
|
return ce(() => {
|
|
4454
4452
|
o.value = setInterval(() => {
|
|
4455
|
-
oe.push(
|
|
4453
|
+
oe.push(V.platformUrl);
|
|
4456
4454
|
}, 3e3);
|
|
4457
4455
|
}), be(() => {
|
|
4458
4456
|
clearInterval(o.value);
|
|
@@ -4489,7 +4487,7 @@ const ls = /* @__PURE__ */ R(Zr, [["render", as], ["__scopeId", "data-v-d1bdd42b
|
|
|
4489
4487
|
name: "OcAuth",
|
|
4490
4488
|
setup() {
|
|
4491
4489
|
const e = Ke(), o = _e(), { auth: n } = e.query;
|
|
4492
|
-
n ? ae("token", n, 0) :
|
|
4490
|
+
n ? ae("token", n, 0) : Ve("token"), o.replace(V.platformUrl);
|
|
4493
4491
|
}
|
|
4494
4492
|
}), ss = {
|
|
4495
4493
|
class: "com-card flex-center",
|
|
@@ -4521,7 +4519,7 @@ var $s = Cs, ks = $s, Ss = /^\s+/;
|
|
|
4521
4519
|
function Ts(e) {
|
|
4522
4520
|
return e && e.slice(0, ks(e) + 1).replace(Ss, "");
|
|
4523
4521
|
}
|
|
4524
|
-
var Ps = Ts, Is = ut, Ms = Is.Symbol, ct = Ms,
|
|
4522
|
+
var Ps = Ts, Is = ut, Ms = Is.Symbol, ct = Ms, Vo = ct, dt = Object.prototype, Os = dt.hasOwnProperty, Ds = dt.toString, we = Vo ? Vo.toStringTag : void 0;
|
|
4525
4523
|
function zs(e) {
|
|
4526
4524
|
var o = Os.call(e, we), n = e[we];
|
|
4527
4525
|
try {
|
|
@@ -4536,9 +4534,9 @@ var As = zs, Rs = Object.prototype, Bs = Rs.toString;
|
|
|
4536
4534
|
function Ls(e) {
|
|
4537
4535
|
return Bs.call(e);
|
|
4538
4536
|
}
|
|
4539
|
-
var
|
|
4537
|
+
var Vs = Ls, jo = ct, js = As, Us = Vs, qs = "[object Null]", Es = "[object Undefined]", Uo = jo ? jo.toStringTag : void 0;
|
|
4540
4538
|
function Fs(e) {
|
|
4541
|
-
return e == null ? e === void 0 ? Es : qs : Uo && Uo in Object(e) ?
|
|
4539
|
+
return e == null ? e === void 0 ? Es : qs : Uo && Uo in Object(e) ? js(e) : Us(e);
|
|
4542
4540
|
}
|
|
4543
4541
|
var Gs = Fs;
|
|
4544
4542
|
function Hs(e) {
|
|
@@ -4843,16 +4841,16 @@ const hi = {
|
|
|
4843
4841
|
fnListenerScale: mi,
|
|
4844
4842
|
fnSetLang: Oe,
|
|
4845
4843
|
fnSetNormalWidthAndHeight: fi,
|
|
4846
|
-
fnSetPlatform:
|
|
4844
|
+
fnSetPlatform: jt,
|
|
4847
4845
|
fnSetTheme: ot,
|
|
4848
4846
|
fnSetUser: nt,
|
|
4849
4847
|
fnUserLogout: at,
|
|
4850
|
-
headerStore:
|
|
4848
|
+
headerStore: V,
|
|
4851
4849
|
langCN: wi,
|
|
4852
4850
|
langUS: vi,
|
|
4853
4851
|
scaleStore: pt,
|
|
4854
4852
|
userStore: f
|
|
4855
|
-
}, Symbol.toStringTag, { value: "Module" })), yi = "1.1.
|
|
4853
|
+
}, Symbol.toStringTag, { value: "Module" })), yi = "1.1.14";
|
|
4856
4854
|
let mt;
|
|
4857
4855
|
async function ht() {
|
|
4858
4856
|
const e = await fetch(
|
|
@@ -4886,7 +4884,7 @@ function Ni({ components: e = [] } = {}) {
|
|
|
4886
4884
|
});
|
|
4887
4885
|
}), u)) {
|
|
4888
4886
|
const { versionMonitor: i = !0, enableRedirect: c = !0, local: m = "zh-CN" } = u;
|
|
4889
|
-
Zt(c),
|
|
4887
|
+
Zt(c), Vt(m), i && _i();
|
|
4890
4888
|
}
|
|
4891
4889
|
}
|
|
4892
4890
|
return {
|
|
@@ -4939,19 +4937,19 @@ export {
|
|
|
4939
4937
|
Ci as default,
|
|
4940
4938
|
Oi as fnCancelFetch,
|
|
4941
4939
|
Ei as fnCheckDashRole,
|
|
4942
|
-
|
|
4940
|
+
ji as fnCheckIoTRole,
|
|
4943
4941
|
Fi as fnCheckMaintainRole,
|
|
4944
4942
|
qi as fnCheckQMSRole,
|
|
4945
4943
|
Ui as fnCheckTDMRole,
|
|
4946
4944
|
eo as fnClearUser,
|
|
4947
4945
|
ft as fnComputedScale,
|
|
4948
4946
|
Lo as fnDecodeCursor,
|
|
4949
|
-
|
|
4947
|
+
Ve as fnDelStorage,
|
|
4950
4948
|
Wa as fnDeleteLoad,
|
|
4951
4949
|
Wt as fnDownload,
|
|
4952
4950
|
Te as fnEncodeCursor,
|
|
4953
4951
|
le as fnFormatTime,
|
|
4954
|
-
|
|
4952
|
+
Vi as fnFormatUnits,
|
|
4955
4953
|
Li as fnFullScreen,
|
|
4956
4954
|
ee as fnGetStorage,
|
|
4957
4955
|
Ye as fnGetUser,
|
|
@@ -4959,17 +4957,17 @@ export {
|
|
|
4959
4957
|
mi as fnListenerScale,
|
|
4960
4958
|
lo as fnPageModel2Naive,
|
|
4961
4959
|
ro as fnPageNaive2Model,
|
|
4962
|
-
|
|
4960
|
+
je as fnRenderAction,
|
|
4963
4961
|
xa as fnScrollTop,
|
|
4964
4962
|
Oe as fnSetLang,
|
|
4965
4963
|
fi as fnSetNormalWidthAndHeight,
|
|
4966
|
-
|
|
4964
|
+
jt as fnSetPlatform,
|
|
4967
4965
|
ae as fnSetStorage,
|
|
4968
4966
|
ot as fnSetTheme,
|
|
4969
4967
|
nt as fnSetUser,
|
|
4970
4968
|
Bi as fnThrottle,
|
|
4971
4969
|
at as fnUserLogout,
|
|
4972
|
-
|
|
4970
|
+
V as headerStore,
|
|
4973
4971
|
Gi as install,
|
|
4974
4972
|
wi as langCN,
|
|
4975
4973
|
vi as langUS,
|