@partex/one-core 1.0.4 → 1.0.5
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/README.md +2 -0
- package/lib/components/common.d.ts +1 -0
- package/lib/components/header/index.vue.d.ts +1 -0
- package/lib/components/login/interface.d.ts +1 -0
- package/lib/components/login/store.d.ts +1 -0
- package/lib/one-core.cjs +1 -1
- package/lib/one-core.js +8 -6
- package/lib/one-core.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/one-core.js
CHANGED
|
@@ -1139,6 +1139,7 @@ const m = He({
|
|
|
1139
1139
|
iot_menu_authorization: [],
|
|
1140
1140
|
tdm_menu_authorization: [],
|
|
1141
1141
|
qms_menu_authorization: [],
|
|
1142
|
+
maintain_menu_authorization: [],
|
|
1142
1143
|
endTime: 0,
|
|
1143
1144
|
tenantStatus: 1,
|
|
1144
1145
|
renewalStatus: 0,
|
|
@@ -1154,7 +1155,7 @@ function Ho(e) {
|
|
|
1154
1155
|
const t = Z("token", !1);
|
|
1155
1156
|
m.industryCategory = e.industryCategory || "0", !o.includes("vpn") && Go && (e.industryCategory === "0" && o.includes("printing") && (window.location.href = `https://www.partexiot.cn/auth?auth=${t}`), e.industryCategory === "1" && !o.includes("printing") && (window.location.href = `https://printing.partexiot.cn/auth?auth=${t}`));
|
|
1156
1157
|
}
|
|
1157
|
-
if (m.commissioner = e.commissioner, m.factoryId = e.factoryId, m.tenantLoginCode = e.tenantLoginCode, m.userId = e.userId, m.email = e.email, m.name = e.name, m.realName = e.realName, m.tenantName = e.tenantName, m.phone = e.phone, m.info = e.info, m.kind = e.kind, m.oeeStatus = e.oeeStatus || 0, m.ncFlg = e.ncFlg || 0, m.systemType = e.systemType, m.platform_tdm = e.platform_tdm, m.platform_qms = e.platform_qms, m.platform_twin = e.platform_twin, m.platform_maintain = e.platform_maintain, m.platform_simple_tdm = e.platform_simple_tdm, m.authorizationGroupArray = e.authorizationGroupArray || [], m.authorizationMachineArray = e.authorizationMachineArray || [], m.iot_menu_authorization = e.iot_menu_authorization || [], m.tdm_menu_authorization = e.tdm_menu_authorization || [], m.qms_menu_authorization = e.qms_menu_authorization || [], m.endTime = e.endTime ?? 0, m.tenantStatus = e.tenantStatus ?? 1, m.renewalStatus = e.renewalStatus ?? 0, m.roleId = e.roleId || 0, m.kind === 1) {
|
|
1158
|
+
if (m.commissioner = e.commissioner, m.factoryId = e.factoryId, m.tenantLoginCode = e.tenantLoginCode, m.userId = e.userId, m.email = e.email, m.name = e.name, m.realName = e.realName, m.tenantName = e.tenantName, m.phone = e.phone, m.info = e.info, m.kind = e.kind, m.oeeStatus = e.oeeStatus || 0, m.ncFlg = e.ncFlg || 0, m.systemType = e.systemType, m.platform_tdm = e.platform_tdm, m.platform_qms = e.platform_qms, m.platform_twin = e.platform_twin, m.platform_maintain = e.platform_maintain, m.platform_simple_tdm = e.platform_simple_tdm, m.authorizationGroupArray = e.authorizationGroupArray || [], m.authorizationMachineArray = e.authorizationMachineArray || [], m.iot_menu_authorization = e.iot_menu_authorization || [], m.tdm_menu_authorization = e.tdm_menu_authorization || [], m.qms_menu_authorization = e.qms_menu_authorization || [], m.maintain_menu_authorization = e.maintain_menu_authorization || [], m.endTime = e.endTime ?? 0, m.tenantStatus = e.tenantStatus ?? 1, m.renewalStatus = e.renewalStatus ?? 0, m.roleId = e.roleId || 0, m.kind === 1) {
|
|
1158
1159
|
const t = e.info, s = String(e.info.type);
|
|
1159
1160
|
s === "0" && Y.replace(
|
|
1160
1161
|
`/dashboard/list?machGroupId=${t.id}&theme=${t.theme || "light"}`
|
|
@@ -1179,7 +1180,7 @@ function Qe() {
|
|
|
1179
1180
|
viewType: 1,
|
|
1180
1181
|
interval: 5,
|
|
1181
1182
|
theme: "light"
|
|
1182
|
-
}, m.kind = 0, m.systemType = 0, m.oeeStatus = 0, m.ncFlg = 0, m.password = "", m.enable = !0, m.platform_tdm = !1, m.platform_qms = !1, m.platform_twin = !1, m.platform_maintain = !1, m.platform_simple_tdm = !1, m.authorizationGroupArray = [], m.authorizationMachineArray = [], m.iot_menu_authorization = [], m.tdm_menu_authorization = [], m.qms_menu_authorization = [], m.endTime = 0, m.tenantStatus = 1, m.renewalStatus = 0, m.roleId = 1;
|
|
1183
|
+
}, m.kind = 0, m.systemType = 0, m.oeeStatus = 0, m.ncFlg = 0, m.password = "", m.enable = !0, m.platform_tdm = !1, m.platform_qms = !1, m.platform_twin = !1, m.platform_maintain = !1, m.platform_simple_tdm = !1, m.authorizationGroupArray = [], m.authorizationMachineArray = [], m.iot_menu_authorization = [], m.tdm_menu_authorization = [], m.qms_menu_authorization = [], m.maintain_menu_authorization = [], m.endTime = 0, m.tenantStatus = 1, m.renewalStatus = 0, m.roleId = 1;
|
|
1183
1184
|
}
|
|
1184
1185
|
async function Jo() {
|
|
1185
1186
|
await en().catch(() => null), Be("token"), Qe(), window.location.href = "/login";
|
|
@@ -1820,7 +1821,7 @@ const il = (e, o, t = "json") => Ce({
|
|
|
1820
1821
|
url: `${eo}${e}`,
|
|
1821
1822
|
method: "POST",
|
|
1822
1823
|
data: o
|
|
1823
|
-
}), Mi = (e) => !!(m.kind === -1 || m.kind === 99 || m.iot_menu_authorization.includes(e)), Di = (e) => m.platform_tdm ? m.kind === -1 || m.kind === 99 || e === "home" ? !0 : m.tdm_menu_authorization.includes(e) : !1, Ti = (e) => m.platform_qms ? m.kind === -1 || m.kind === 99 || e === "home" ? !0 : m.qms_menu_authorization.includes(e) : !1, Oi = (e) => m.platform_twin ? (m.kind === -1 || m.kind === 99 || e === "home", !0) : !1, ul = F({
|
|
1824
|
+
}), Mi = (e) => !!(m.kind === -1 || m.kind === 99 || m.iot_menu_authorization.includes(e)), Di = (e) => m.platform_tdm ? m.kind === -1 || m.kind === 99 || e === "home" ? !0 : m.tdm_menu_authorization.includes(e) : !1, Ti = (e) => m.platform_qms ? m.kind === -1 || m.kind === 99 || e === "home" ? !0 : m.qms_menu_authorization.includes(e) : !1, Oi = (e) => m.platform_twin ? (m.kind === -1 || m.kind === 99 || e === "home", !0) : !1, zi = (e) => !!(m.kind === -1 || m.kind === 99 || m.maintain_menu_authorization.includes(e)), ul = F({
|
|
1824
1825
|
name: "HeaderPop",
|
|
1825
1826
|
components: {
|
|
1826
1827
|
NSpace: le,
|
|
@@ -4804,7 +4805,7 @@ const ni = {
|
|
|
4804
4805
|
langUS: ri,
|
|
4805
4806
|
scaleStore: et,
|
|
4806
4807
|
userStore: m
|
|
4807
|
-
}, Symbol.toStringTag, { value: "Module" })), si = "1.0.
|
|
4808
|
+
}, Symbol.toStringTag, { value: "Module" })), si = "1.0.5";
|
|
4808
4809
|
let tt;
|
|
4809
4810
|
async function nt() {
|
|
4810
4811
|
const e = await fetch(
|
|
@@ -4850,7 +4851,7 @@ const di = ci({
|
|
|
4850
4851
|
components: Object.keys(To).map(
|
|
4851
4852
|
(e) => To[e]
|
|
4852
4853
|
)
|
|
4853
|
-
}),
|
|
4854
|
+
}), Ai = di.install;
|
|
4854
4855
|
export {
|
|
4855
4856
|
xo as FILE,
|
|
4856
4857
|
il as GET,
|
|
@@ -4892,6 +4893,7 @@ export {
|
|
|
4892
4893
|
yi as fnCancelFetch,
|
|
4893
4894
|
Oi as fnCheckDashRole,
|
|
4894
4895
|
Mi as fnCheckIoTRole,
|
|
4896
|
+
zi as fnCheckMaintainRole,
|
|
4895
4897
|
Ti as fnCheckQMSRole,
|
|
4896
4898
|
Di as fnCheckTDMRole,
|
|
4897
4899
|
Qe as fnClearUser,
|
|
@@ -4921,7 +4923,7 @@ export {
|
|
|
4921
4923
|
Si as fnThrottle,
|
|
4922
4924
|
Jo as fnUserLogout,
|
|
4923
4925
|
V as headerStore,
|
|
4924
|
-
|
|
4926
|
+
Ai as install,
|
|
4925
4927
|
li as langCN,
|
|
4926
4928
|
ri as langUS,
|
|
4927
4929
|
_i as lightTheme,
|