@partex/one-core 2.0.84 → 2.0.86
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 +2 -2
- package/lib/one-core.js +53 -45
- package/lib/one-core.umd.cjs +2 -2
- package/package.json +1 -1
package/lib/one-core.js
CHANGED
|
@@ -1000,7 +1000,7 @@ const TY = () => {
|
|
|
1000
1000
|
url: `${kd}${e}`,
|
|
1001
1001
|
method: "POST",
|
|
1002
1002
|
data: t
|
|
1003
|
-
}), V_ = "2.0.
|
|
1003
|
+
}), V_ = "2.0.86";
|
|
1004
1004
|
function fD() {
|
|
1005
1005
|
const e = Wt("platformListOwned", !1);
|
|
1006
1006
|
if (e) {
|
|
@@ -28150,40 +28150,44 @@ const HG = /* @__PURE__ */ ne(BG, [["render", GG]]), c_ = (e) => {
|
|
|
28150
28150
|
return t.password = al(t.password), Nt("api/user/v2/login", t);
|
|
28151
28151
|
}, UG = () => new Promise(async (e, t) => {
|
|
28152
28152
|
Nt("api/auth/user/getCurrentUserInfo", {}, "json", 1e4).then((r) => {
|
|
28153
|
-
|
|
28154
|
-
|
|
28155
|
-
|
|
28156
|
-
|
|
28157
|
-
|
|
28158
|
-
|
|
28159
|
-
|
|
28160
|
-
|
|
28161
|
-
|
|
28162
|
-
|
|
28163
|
-
|
|
28164
|
-
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
|
|
28168
|
-
|
|
28169
|
-
|
|
28170
|
-
|
|
28171
|
-
|
|
28153
|
+
try {
|
|
28154
|
+
const n = ["046459"];
|
|
28155
|
+
r.commissioner = !1, n.includes(String(r.tenantLoginCode)) && (r.commissioner = !0);
|
|
28156
|
+
const a = r.ownedProducts ? JSON.parse(r.ownedProducts) : [];
|
|
28157
|
+
let i = re.platformMainUrl || re.platformUrl;
|
|
28158
|
+
re.platformMainUrl === "auto" && (r.industryCategory === "0" ? i = "https://www.partexiot.cn/iot/home/all" : r.industryCategory === "1" && (i = "https://printing.partexiot.cn/prt/home/all"));
|
|
28159
|
+
const o = [
|
|
28160
|
+
{
|
|
28161
|
+
label: () => Dn.global.t("Platform.iot"),
|
|
28162
|
+
key: i
|
|
28163
|
+
}
|
|
28164
|
+
];
|
|
28165
|
+
switch (Object.keys(re.owned).forEach((s) => {
|
|
28166
|
+
const l = a.includes(Number(s));
|
|
28167
|
+
if (r[re.owned[s]] = l, l) {
|
|
28168
|
+
const u = re.owned[s].split("_")[1], c = re.platformList[u];
|
|
28169
|
+
c && o.push({
|
|
28170
|
+
label: () => Dn.global.t(c.platformName),
|
|
28171
|
+
key: c.platformUrl
|
|
28172
|
+
});
|
|
28173
|
+
}
|
|
28174
|
+
}), hD(o), r.systemType) {
|
|
28175
|
+
case "Premium":
|
|
28176
|
+
r.systemType = 1;
|
|
28177
|
+
break;
|
|
28178
|
+
case "Flagship":
|
|
28179
|
+
r.systemType = 2;
|
|
28180
|
+
break;
|
|
28181
|
+
default:
|
|
28182
|
+
r.systemType = 0;
|
|
28183
|
+
break;
|
|
28172
28184
|
}
|
|
28173
|
-
|
|
28174
|
-
|
|
28175
|
-
|
|
28176
|
-
break;
|
|
28177
|
-
case "Flagship":
|
|
28178
|
-
r.systemType = 2;
|
|
28179
|
-
break;
|
|
28180
|
-
default:
|
|
28181
|
-
r.systemType = 0;
|
|
28182
|
-
break;
|
|
28185
|
+
r.info = JSON.parse(r.info), e(r);
|
|
28186
|
+
} catch (n) {
|
|
28187
|
+
console.log(n);
|
|
28183
28188
|
}
|
|
28184
|
-
r.info = JSON.parse(r.info), e(r);
|
|
28185
28189
|
}).catch((r) => {
|
|
28186
|
-
t();
|
|
28190
|
+
t(r);
|
|
28187
28191
|
});
|
|
28188
28192
|
}), WG = () => Nt("api/auth/user/logout"), YG = () => Nt("api/manager/message/markReadAll"), qG = () => Nt("api/auth/user/updateTenantRenewalStatus"), jG = (e) => Nt("api/manager/job/remove", e), XG = (e) => Nt("api/manager/job/retry", {
|
|
28189
28193
|
jobId: e
|
|
@@ -28267,18 +28271,22 @@ function QG(e) {
|
|
|
28267
28271
|
EC = e;
|
|
28268
28272
|
}
|
|
28269
28273
|
function IC(e) {
|
|
28270
|
-
|
|
28271
|
-
|
|
28272
|
-
|
|
28273
|
-
|
|
28274
|
-
|
|
28275
|
-
|
|
28276
|
-
|
|
28277
|
-
|
|
28278
|
-
|
|
28279
|
-
|
|
28280
|
-
|
|
28281
|
-
|
|
28274
|
+
try {
|
|
28275
|
+
const t = window.location.host;
|
|
28276
|
+
if (t.includes("partexiot.cn")) {
|
|
28277
|
+
const r = Wt("token", !1);
|
|
28278
|
+
G.industryCategory = e.industryCategory || "0", !t.includes("vpn") && EC && (e.industryCategory === "0" && t.includes("printing") && (window.location.href = `https://www.partexiot.cn/auth?auth=${r}`), e.industryCategory === "1" && !t.includes("printing") && (window.location.href = `https://printing.partexiot.cn/auth?auth=${r}`));
|
|
28279
|
+
}
|
|
28280
|
+
if (G.commissioner = e.commissioner, G.factoryId = e.factoryId, G.tenantLoginCode = e.tenantLoginCode, G.userId = e.userId, G.email = e.email, G.name = e.name, G.realName = e.realName, G.tenantName = e.tenantName, G.phone = e.phone, G.info = e.info, G.kind = e.kind, G.oeeStatus = e.oeeStatus || 0, G.ncFlg = e.ncFlg || 0, G.systemType = e.systemType, G.platform_tdm = e.platform_tdm, G.platform_qms = e.platform_qms, G.platform_twin = e.platform_twin, G.platform_maintain = e.platform_maintain, G.platform_order = e.platform_order, G.platform_simple_tdm = e.platform_simple_tdm, G.authorizationGroupArray = e.authorizationGroupArray || [], G.authorizationMachineArray = e.authorizationMachineArray || [], G.iot_menu_authorization = e.iot_menu_authorization || [], G.tdm_menu_authorization = e.tdm_menu_authorization || [], G.qms_menu_authorization = e.qms_menu_authorization || [], G.maintain_menu_authorization = e.maintain_menu_authorization || [], G.order_menu_authorization = e.order_menu_authorization || [], G.endTime = e.endTime ?? 0, G.tenantStatus = e.tenantStatus ?? 1, G.renewalStatus = e.renewalStatus ?? 0, G.roleId = e.roleId || 0, G.kind === 1) {
|
|
28281
|
+
const r = e.info, n = String(e.info.type);
|
|
28282
|
+
n === "0" && Vr.replace(
|
|
28283
|
+
`/dashboard/list?machGroupId=${r.id}&theme=${r.theme || "light"}`
|
|
28284
|
+
), n === "1" && Vr.replace(
|
|
28285
|
+
`/dashboard/single?machId=${r.id}&type=${r.viewType ?? 1}&theme=${r.theme || "light"}`
|
|
28286
|
+
), n === "2" && Vr.push(`/dashboard/carousel?theme=${r.theme || "light"}`), n === "3" && Vr.push(`/dashboard/carouselist?theme=${r.theme || "light"}`), n === "4" && Vr.push(`/dashboard/performance?schemeId=${r.id}&theme=${r.theme || "light"}`);
|
|
28287
|
+
}
|
|
28288
|
+
} catch (t) {
|
|
28289
|
+
console.log(t);
|
|
28282
28290
|
}
|
|
28283
28291
|
}
|
|
28284
28292
|
function cp() {
|
|
@@ -28896,7 +28904,7 @@ const sH = /* @__PURE__ */ ne(aH, [["render", oH]]), lH = Ie({
|
|
|
28896
28904
|
default: () => T.icon && T.icon()
|
|
28897
28905
|
}
|
|
28898
28906
|
) : !1, m = (T) => {
|
|
28899
|
-
e.qiankun ? window.location.href = `${e.mainUrl || "https://www.partexiot.cn"}${T}` : n.replace(T);
|
|
28907
|
+
console.log(u.value), console.log(T), e.qiankun ? window.location.href = `${e.mainUrl || "https://www.partexiot.cn"}${T}` : n.replace(T);
|
|
28900
28908
|
}, _ = () => {
|
|
28901
28909
|
o.value = !1;
|
|
28902
28910
|
}, y = () => {
|