@skyfox2000/webui 1.2.9 → 1.2.11
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/assets/modules/{file-upload-BYIvmkmy.js → file-upload-CGyzCx7I.js} +1 -1
- package/lib/assets/modules/{form-excel-BUX2QW11.js → form-excel-DWirWVPA.js} +1 -1
- package/lib/assets/modules/{index-DcRkhkn2.js → index-C1zkNPmi.js} +1 -1
- package/lib/assets/modules/{index-jl5Ie2tZ.js → index-Czk7DDWM.js} +2 -2
- package/lib/assets/modules/{menuTabs-DY1XBq16.js → menuTabs-BOax-dro.js} +2 -2
- package/lib/assets/modules/{toolIcon-BDIOj_3l.js → toolIcon-vJF7OgP6.js} +1 -1
- package/lib/assets/modules/{uploadList-BPG5whz7.js → uploadList-BW23uSvi.js} +4 -4
- package/lib/assets/modules/{uploadList-D2Ux4h1N.js → uploadList-DaUjVXLU.js} +251 -237
- package/lib/components/common/icon/index.vue.d.ts +1 -1
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/stores/userInfo.d.ts +1 -0
- package/lib/webui.es.js +11 -11
- package/package.json +1 -1
- package/src/stores/userInfo.ts +28 -2
|
@@ -228,9 +228,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
228
228
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
229
229
|
"onUpdate:iconIndex"?: ((...args: any[]) => any) | undefined;
|
|
230
230
|
}>, {
|
|
231
|
+
fontsize: string;
|
|
231
232
|
icons: string[];
|
|
232
233
|
size: string | String[];
|
|
233
|
-
fontsize: string;
|
|
234
234
|
className: string;
|
|
235
235
|
iconIndex: number;
|
|
236
236
|
clickable: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { _ as q } from "../../assets/modules/toolIcon-
|
|
3
|
+
import { _ as q } from "../../assets/modules/toolIcon-vJF7OgP6.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/uploadList-
|
|
5
|
+
import "../../assets/modules/uploadList-DaUjVXLU.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { _ as D } from "../../assets/modules/index-
|
|
10
|
+
import { _ as D } from "../../assets/modules/index-Czk7DDWM.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
12
|
const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
13
13
|
const o = document.createElement("script");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as y, ref as I, watch as C, onMounted as b, resolveComponent as g, createBlock as n, openBlock as o, unref as e, withCtx as l, createCommentVNode as c, createVNode as r, createElementVNode as u, createElementBlock as k, toDisplayString as w, normalizeClass as S, KeepAlive as N, resolveDynamicComponent as $ } from "vue";
|
|
2
2
|
import { Layout as f, LayoutSider as E } from "ant-design-vue";
|
|
3
|
-
import { a as z } from "../../assets/modules/toolIcon-
|
|
4
|
-
import { I as A, _ as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-
|
|
5
|
-
import { ab as j, a as K, ad as M } from "../../assets/modules/uploadList-
|
|
3
|
+
import { a as z } from "../../assets/modules/toolIcon-vJF7OgP6.js";
|
|
4
|
+
import { I as A, _ as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-BOax-dro.js";
|
|
5
|
+
import { ab as j, a as K, ad as M } from "../../assets/modules/uploadList-DaUjVXLU.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import P from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/uploadList-
|
|
2
|
+
import { r as s } from "../../assets/modules/uploadList-DaUjVXLU.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/uploadList-
|
|
2
|
+
import { r as s } from "../../assets/modules/uploadList-DaUjVXLU.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Y, ref as r, watch as V, onMounted as Z, createBlock as ee, openBlock as d, unref as i, withCtx as _, renderSlot as le, createElementVNode as c, createVNode as m, createElementBlock as f, createCommentVNode as M, createTextVNode as O, toDisplayString as F, normalizeClass as ae, Fragment as $, renderList as P } from "vue";
|
|
2
|
-
import { _ as A } from "../../assets/modules/index-
|
|
2
|
+
import { _ as A } from "../../assets/modules/index-C1zkNPmi.js";
|
|
3
3
|
import { Modal as te, Upload as I, Alert as G, Space as re } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as oe } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as se, a5 as ie } from "../../assets/modules/uploadList-
|
|
6
|
-
import { A as ue, p as ne, U as ce } from "../../assets/modules/file-upload-
|
|
5
|
+
import { $ as se, a5 as ie } from "../../assets/modules/uploadList-DaUjVXLU.js";
|
|
6
|
+
import { A as ue, p as ne, U as ce } from "../../assets/modules/file-upload-CGyzCx7I.js";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import n from "vue-m-message";
|
|
9
|
-
import { p as ve, v as de, c as fe } from "../../assets/modules/form-excel-
|
|
9
|
+
import { p as ve, v as de, c as fe } from "../../assets/modules/form-excel-DWirWVPA.js";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
12
|
import pe from "@vue-office/excel";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as y, ref as f, watch as S, onMounted as z, createBlock as D, openBlock as F, unref as u, withCtx as s, createVNode as m, createTextVNode as C } from "vue";
|
|
2
|
-
import { _ as c } from "../../assets/modules/index-
|
|
2
|
+
import { _ as c } from "../../assets/modules/index-C1zkNPmi.js";
|
|
3
3
|
import { Modal as _, Space as k } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as E } from "@skyfox2000/fapi";
|
|
5
|
-
import { a1 as h } from "../../assets/modules/uploadList-
|
|
5
|
+
import { a1 as h } from "../../assets/modules/uploadList-DaUjVXLU.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import L from "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { A as N } from "../../assets/modules/file-upload-
|
|
10
|
+
import { A as N } from "../../assets/modules/file-upload-CGyzCx7I.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as B } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as B } from "../../assets/modules/uploadList-BW23uSvi.js";
|
|
13
13
|
const K = /* @__PURE__ */ y({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
package/lib/stores/userInfo.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ interface UserState {
|
|
|
8
8
|
refreshToken?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare const useUserInfo: StoreDefinition<"userInfo", UserState, {}, {
|
|
11
|
+
init(): void;
|
|
11
12
|
login(loginInfo: LoginInfo, redirect?: boolean): Promise<ApiResponse<LoginInfo> | void>;
|
|
12
13
|
getRolePermits(appId: string): Promise<boolean>;
|
|
13
14
|
hasRole(role: string | string[]): boolean;
|
package/lib/webui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as Qe, i as Z, a as ve, c as qe, P as V, o as Pe, b as Ge, d as Je, e as Ee, r as ie, f as Xe, g as Ze, h as Fe, j as et, k as ke, l as tt, m as at, O as Me, q as Ne, _ as lt, n as st, p as O, s as rt, t as ot, v as nt, w as H, x as it, y as ct, z as ut, A as Re } from "./assets/modules/uploadList-
|
|
2
|
-
import { a7 as _l, L as bl, M as xl, S as yl, a6 as kl, a4 as wl, a5 as Sl, a8 as Cl, V as $l, Q as Tl, a2 as Il, $ as Dl, K as Pl, H as El, a1 as Fl, R as Ml, C as Nl, X as Rl, a0 as Al, a3 as Bl, J as Ol, I as Ll, N as zl, a9 as Ul, B as Yl, Z as Wl, aa as Kl, U as Vl, W as jl, T as Hl, ab as Ql, D as ql, E as Gl, ac as Jl, G as Xl, ad as Zl, F as es, Y as ts } from "./assets/modules/uploadList-
|
|
3
|
-
import { A as ls, U as ss, a as rs, g as os, c as ns, d as is, p as cs, u as us, b as ds } from "./assets/modules/file-upload-
|
|
1
|
+
import { u as Qe, i as Z, a as ve, c as qe, P as V, o as Pe, b as Ge, d as Je, e as Ee, r as ie, f as Xe, g as Ze, h as Fe, j as et, k as ke, l as tt, m as at, O as Me, q as Ne, _ as lt, n as st, p as O, s as rt, t as ot, v as nt, w as H, x as it, y as ct, z as ut, A as Re } from "./assets/modules/uploadList-DaUjVXLU.js";
|
|
2
|
+
import { a7 as _l, L as bl, M as xl, S as yl, a6 as kl, a4 as wl, a5 as Sl, a8 as Cl, V as $l, Q as Tl, a2 as Il, $ as Dl, K as Pl, H as El, a1 as Fl, R as Ml, C as Nl, X as Rl, a0 as Al, a3 as Bl, J as Ol, I as Ll, N as zl, a9 as Ul, B as Yl, Z as Wl, aa as Kl, U as Vl, W as jl, T as Hl, ab as Ql, D as ql, E as Gl, ac as Jl, G as Xl, ad as Zl, F as es, Y as ts } from "./assets/modules/uploadList-DaUjVXLU.js";
|
|
3
|
+
import { A as ls, U as ss, a as rs, g as os, c as ns, d as is, p as cs, u as us, b as ds } from "./assets/modules/file-upload-CGyzCx7I.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
5
|
import { FrontCache as se, httpPost as Ae, ResStatus as Be, SERVER_HOST as dt, fieldMapping as re } from "@skyfox2000/fapi";
|
|
6
6
|
import me from "vue-m-message";
|
|
@@ -9,14 +9,14 @@ import "async-validator";
|
|
|
9
9
|
import pe from "dayjs";
|
|
10
10
|
import { Popover as ht, Spin as gt, theme as Le, Drawer as _t, Space as ae, Form as ze, message as bt, FormItem as Ue, ConfigProvider as Ce, Popconfirm as xt, Button as Ye, DropdownButton as yt, Menu as ge, MenuItem as _e, Dropdown as fe, Checkbox as kt, Table as We, Tree as wt, Cascader as St, DatePicker as Ct, Input as ee, InputPassword as $t, InputNumber as Tt, RangePicker as It, Textarea as Dt, Transfer as Pt, TreeSelect as Et, LayoutContent as Ft } from "ant-design-vue";
|
|
11
11
|
import { VueDraggableNext as Mt } from "vue-draggable-next";
|
|
12
|
-
import { d as Ke, _ as Nt } from "./assets/modules/uploadList-
|
|
13
|
-
import { U as fs, a as vs } from "./assets/modules/uploadList-
|
|
14
|
-
import { a as hs, c as gs, p as _s, v as bs } from "./assets/modules/form-excel-
|
|
15
|
-
import { _ as B } from "./assets/modules/index-
|
|
16
|
-
import { _ as z } from "./assets/modules/toolIcon-
|
|
17
|
-
import { a as ys } from "./assets/modules/toolIcon-
|
|
18
|
-
import { _ as ws, b as Ss, c as Cs, d as $s, e as Ts, I as Is, f as Ds, g as Ps, a as Es } from "./assets/modules/menuTabs-
|
|
19
|
-
import { _ as Ms } from "./assets/modules/index-
|
|
12
|
+
import { d as Ke, _ as Nt } from "./assets/modules/uploadList-BW23uSvi.js";
|
|
13
|
+
import { U as fs, a as vs } from "./assets/modules/uploadList-BW23uSvi.js";
|
|
14
|
+
import { a as hs, c as gs, p as _s, v as bs } from "./assets/modules/form-excel-DWirWVPA.js";
|
|
15
|
+
import { _ as B } from "./assets/modules/index-C1zkNPmi.js";
|
|
16
|
+
import { _ as z } from "./assets/modules/toolIcon-vJF7OgP6.js";
|
|
17
|
+
import { a as ys } from "./assets/modules/toolIcon-vJF7OgP6.js";
|
|
18
|
+
import { _ as ws, b as Ss, c as Cs, d as $s, e as Ts, I as Is, f as Ds, g as Ps, a as Es } from "./assets/modules/menuTabs-BOax-dro.js";
|
|
19
|
+
import { _ as Ms } from "./assets/modules/index-Czk7DDWM.js";
|
|
20
20
|
import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
21
|
const $e = (s, a, e, t = "remove") => {
|
|
22
22
|
if (!e)
|
package/package.json
CHANGED
package/src/stores/userInfo.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
2
|
import { ApiResponse, httpPost, IUrlInfo, ReqParams, ResStatus, setToken } from '@skyfox2000/fapi';
|
|
3
3
|
import message from 'vue-m-message';
|
|
4
|
-
import { LoginInfo, UserInfo } from '@skyfox2000/microbase';
|
|
4
|
+
import { isMicroApp, LoginInfo, UserInfo } from '@skyfox2000/microbase';
|
|
5
5
|
import { ref } from 'vue';
|
|
6
6
|
import { useAppInfo } from './appInfo';
|
|
7
7
|
|
|
@@ -203,6 +203,22 @@ export const useUserInfo = defineStore('userInfo', {
|
|
|
203
203
|
refreshToken: '',
|
|
204
204
|
}),
|
|
205
205
|
actions: {
|
|
206
|
+
/**
|
|
207
|
+
* 启动时初始化用户信息
|
|
208
|
+
*/
|
|
209
|
+
init() {
|
|
210
|
+
// 非子应用,则需要检查token
|
|
211
|
+
if (!isMicroApp()) {
|
|
212
|
+
if (this.token) {
|
|
213
|
+
checkToken(this.token, () => this.clean());
|
|
214
|
+
setToken(this.token);
|
|
215
|
+
userLevel.value = this.userInfo.UserLevel;
|
|
216
|
+
this.isLogin = true;
|
|
217
|
+
} else {
|
|
218
|
+
this.clean();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
206
222
|
/**
|
|
207
223
|
* 登录操作
|
|
208
224
|
* @param loginInfo 登录信息
|
|
@@ -428,5 +444,15 @@ export const useUserInfo = defineStore('userInfo', {
|
|
|
428
444
|
return Promise.resolve();
|
|
429
445
|
},
|
|
430
446
|
},
|
|
431
|
-
persist:
|
|
447
|
+
persist: !isMicroApp()
|
|
448
|
+
? {
|
|
449
|
+
key: 'MICROAPP_USER_INFO',
|
|
450
|
+
storage: localStorage,
|
|
451
|
+
pick: ['token', 'userInfo'], // 只存储token和userInfo
|
|
452
|
+
afterHydrate: (ctx: any) => {
|
|
453
|
+
// 加载后自动调用init()验证是否过期
|
|
454
|
+
ctx.store.init();
|
|
455
|
+
},
|
|
456
|
+
}
|
|
457
|
+
: false,
|
|
432
458
|
});
|