@okiss/oms 0.0.104 → 0.0.105
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/dist/index.es.js +51 -26
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1277,16 +1277,28 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
|
|
|
1277
1277
|
schemaApi: { default: "" }
|
|
1278
1278
|
},
|
|
1279
1279
|
setup(t) {
|
|
1280
|
-
let n = t, i = q(), c = G(), l = K(), u = U(), d = T(!0), f = T(!1), p = T({}), m = T(""), h = T({}), _ = T([]), y = T(!1), x = r(() => l.env), S = r(() => c);
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1280
|
+
let n = t, i = q(), c = G(), l = K(), u = U(), d = T(!0), f = T(!1), p = T({}), m = T(""), h = T({}), _ = T([]), y = T(!1), b = T(0), x = r(() => l.env), S = r(() => c);
|
|
1281
|
+
function w() {
|
|
1282
|
+
d.value = !0, f.value = !1, p.value = {}, m.value = "", h.value = {}, _.value = [], y.value = !1;
|
|
1283
|
+
}
|
|
1284
|
+
function E() {
|
|
1285
|
+
let e = ++b.value;
|
|
1286
|
+
w();
|
|
1287
|
+
let t = u.path.split("/").filter((e) => e), r = t.length > 1 ? t.slice(0, t.length - 1).join("/") : t[0], a = "/schema" + u.meta.path, o = { params: u.params };
|
|
1288
|
+
(window?.App?.config?.globalProperties?.$http).get(n.schemaApi || a, o).then(({ data: t }) => {
|
|
1289
|
+
e === b.value && (d.value = !1, N(t) && (t.notice !== void 0 && (f.value = !0, ve(t.notice) ? p.value = { title: t.notice } : N(t.notice) && (p.value = t.notice, m.value = t.notice.noticeApi), delete t.notice), _.value = t.ownerNames || [], y.value = t.serviceOffLine || !1), h.value = n.schemaHandler(t, r), i.SET_PAGE_JSON_SCHEMA({
|
|
1285
1290
|
page: u.path,
|
|
1286
1291
|
json: h.value
|
|
1287
|
-
});
|
|
1292
|
+
}));
|
|
1288
1293
|
});
|
|
1289
|
-
}
|
|
1294
|
+
}
|
|
1295
|
+
return j(() => [
|
|
1296
|
+
u.fullPath,
|
|
1297
|
+
u.meta?.path,
|
|
1298
|
+
n.schemaApi
|
|
1299
|
+
], () => {
|
|
1300
|
+
E();
|
|
1301
|
+
}, { immediate: !0 }), (t, n) => {
|
|
1290
1302
|
let r = Ge;
|
|
1291
1303
|
return C(), s(e, null, [A(_).length > 0 ? (C(), a(r, {
|
|
1292
1304
|
key: 0,
|
|
@@ -1306,7 +1318,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
|
|
|
1306
1318
|
}, null, 8, ["notice", "data-api"])) : o("", !0), A(d) ? (C(), a(Vn, { key: 1 })) : D(t.$slots, "default", v(g({ key: 2 }, A(h))), void 0, !0)], 64))], 64);
|
|
1307
1319
|
};
|
|
1308
1320
|
}
|
|
1309
|
-
}), [["__scopeId", "data-v-
|
|
1321
|
+
}), [["__scopeId", "data-v-f11e8aa5"]]), qn = {
|
|
1310
1322
|
__name: "table",
|
|
1311
1323
|
setup(e) {
|
|
1312
1324
|
let t = (e, t) => {
|
|
@@ -5215,34 +5227,47 @@ var Za = { mounted: (e, t) => {
|
|
|
5215
5227
|
outClick: () => qa,
|
|
5216
5228
|
resize: () => Ya,
|
|
5217
5229
|
rightClick: () => Ja
|
|
5218
|
-
}), $a, eo = /* @__PURE__ */ new WeakMap(), to = (e) =>
|
|
5230
|
+
}), $a, eo = /* @__PURE__ */ new WeakMap(), to = (e) => {
|
|
5231
|
+
if (e.path === "/" && !e.name && e.children && e.children.length === 1) {
|
|
5232
|
+
let t = e.children[0];
|
|
5233
|
+
return typeof t.name == "string" ? `layout:${t.name}` : `layout:${t.path}`;
|
|
5234
|
+
}
|
|
5235
|
+
return typeof e.name == "string" ? e.name : e.path;
|
|
5236
|
+
};
|
|
5219
5237
|
function no(e) {
|
|
5238
|
+
let t = { ...e };
|
|
5239
|
+
return t.path === "/" && Array.isArray(t.children) ? t : {
|
|
5240
|
+
path: "/",
|
|
5241
|
+
children: [t]
|
|
5242
|
+
};
|
|
5243
|
+
}
|
|
5244
|
+
function ro(e) {
|
|
5220
5245
|
let t = eo.get(e);
|
|
5221
5246
|
return t || (t = {
|
|
5222
5247
|
pendingRoutes: [],
|
|
5223
5248
|
registeredRouteKeys: /* @__PURE__ */ new Set()
|
|
5224
5249
|
}, eo.set(e, t)), t;
|
|
5225
5250
|
}
|
|
5226
|
-
function
|
|
5251
|
+
function io(e) {
|
|
5227
5252
|
return e ? Ga(R(Ut.axios, e)) : $a;
|
|
5228
5253
|
}
|
|
5229
|
-
function
|
|
5230
|
-
let t = R(Ut, e), n = Ra(t.router), r = i(un), a =
|
|
5254
|
+
function ao(e) {
|
|
5255
|
+
let t = R(Ut, e), n = Ra(t.router), r = i(un), a = mo(t, n), o = t.plugins || [];
|
|
5231
5256
|
o.unshift(a), o.forEach((e) => {
|
|
5232
|
-
|
|
5257
|
+
po(r, e, n);
|
|
5233
5258
|
}), t?.mock && yn(), $a = Ga(t.axios), $t(r);
|
|
5234
5259
|
let s = q(J), c = G(J), l = K(J);
|
|
5235
5260
|
zt($a), c.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), r.config.globalProperties.$http = $a, r.config.globalProperties.$router = n, za(n), window.App = r, window.OmsOptions = t, We(() => ({ "X-Token": W() })), j(() => l.token, () => {
|
|
5236
|
-
|
|
5261
|
+
so(n);
|
|
5237
5262
|
}, { immediate: !0 }), n.isReady().then(() => r.mount("#app"));
|
|
5238
5263
|
}
|
|
5239
|
-
function
|
|
5264
|
+
function oo(e, t = {}) {
|
|
5240
5265
|
Object.keys(t).forEach((n) => {
|
|
5241
5266
|
e.component(n, t[n]);
|
|
5242
5267
|
});
|
|
5243
5268
|
}
|
|
5244
|
-
function
|
|
5245
|
-
let t =
|
|
5269
|
+
function so(e) {
|
|
5270
|
+
let t = ro(e), n = sa(W()), r = ra(t.pendingRoutes, n), i = K(J), a = new Set(i.customRouter.map((e) => to(e))), o = r.filter((e) => {
|
|
5246
5271
|
let n = to(e);
|
|
5247
5272
|
return t.registeredRouteKeys.has(n) || a.has(n) ? !1 : (t.registeredRouteKeys.add(n), !0);
|
|
5248
5273
|
});
|
|
@@ -5250,20 +5275,20 @@ function oo(e) {
|
|
|
5250
5275
|
e.addRoute(t);
|
|
5251
5276
|
}), o.length && i.setCustomRoutes(o);
|
|
5252
5277
|
}
|
|
5253
|
-
function
|
|
5254
|
-
|
|
5278
|
+
function co(e, t = []) {
|
|
5279
|
+
ro(e).pendingRoutes.push(...t.map(no)), so(e);
|
|
5255
5280
|
}
|
|
5256
|
-
function
|
|
5281
|
+
function lo(e, t) {
|
|
5257
5282
|
t.forEach((t) => {
|
|
5258
5283
|
N(t) && (t = [t]), e.use(...t);
|
|
5259
5284
|
});
|
|
5260
5285
|
}
|
|
5261
|
-
function
|
|
5286
|
+
function uo(e, t = {}) {
|
|
5262
5287
|
Object.keys(t).forEach((n) => {
|
|
5263
5288
|
e.directive(n, t[n]);
|
|
5264
5289
|
});
|
|
5265
5290
|
}
|
|
5266
|
-
function
|
|
5291
|
+
function fo(e = {}) {
|
|
5267
5292
|
let t = [
|
|
5268
5293
|
"app",
|
|
5269
5294
|
"settings",
|
|
@@ -5277,10 +5302,10 @@ function uo(e = {}) {
|
|
|
5277
5302
|
console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", e);
|
|
5278
5303
|
});
|
|
5279
5304
|
}
|
|
5280
|
-
function
|
|
5281
|
-
|
|
5305
|
+
function po(e, t, n = Ra()) {
|
|
5306
|
+
oo(e, t.components || {}), co(n, t.routes || []), lo(e, t.use || []), uo(e, t.directives || {}), fo(t.storeModules || {}), _n(t.mockApis || []);
|
|
5282
5307
|
}
|
|
5283
|
-
function
|
|
5308
|
+
function mo(e, t = Ra(e.router)) {
|
|
5284
5309
|
return {
|
|
5285
5310
|
components: { VIcon: Ue },
|
|
5286
5311
|
directives: Qa,
|
|
@@ -5291,6 +5316,6 @@ function po(e, t = Ra(e.router)) {
|
|
|
5291
5316
|
};
|
|
5292
5317
|
}
|
|
5293
5318
|
//#endregion
|
|
5294
|
-
export { jn as BaseSso, ir as Container, Nn as DingTalk, Mn as Github, Zi as Layout, X as MenuType, bn as Message, xn as MessageBox, Y as PageType, Fn as allSso, Xt as appState, Zt as builderSchemaState,
|
|
5319
|
+
export { jn as BaseSso, ir as Container, Nn as DingTalk, Mn as Github, Zi as Layout, X as MenuType, bn as Message, xn as MessageBox, Y as PageType, Fn as allSso, Xt as appState, Zt as builderSchemaState, ao as createAdmin, Ma as createOmsRouter, Ia as ensureOmsRouterGuards, $ as eventBus, Ba as getActiveOmsRouter, pa as getCmp, La as getDefaultOmsRouter, Bt as getHttp, $a as http, Ga as instance, J as pinia, Dr as regViews, Ra as resolveOmsRouter, za as setActiveOmsRouter, fa as setCmp, zt as setHttp, Wt as settings, $t as setupStore, Mr as transRemoteModules, q as useAppStore, Qt as useBuilderSchemaStore, io as useHttp, G as useSettingsStore, K as useUserStore, Gt as userState };
|
|
5295
5320
|
|
|
5296
5321
|
//# sourceMappingURL=index.es.js.map
|