@skyfox2000/webui 1.5.21 → 1.5.22
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/{baseLayout-D1c-i5Jy.js → baseLayout-BbWv6Njy.js} +3 -3
- package/lib/assets/modules/{file-upload-D0PzDzw5.js → file-upload-czkP0_KZ.js} +1 -1
- package/lib/assets/modules/{index-Br13CsSY.js → index-BM6-4CHA.js} +2 -2
- package/lib/assets/modules/{index-2FnjnZKE.js → index-CnrS4kfC.js} +2 -2
- package/lib/assets/modules/{index-xBhZt3kd.js → index-D62pvKsu.js} +1 -1
- package/lib/assets/modules/{menuTabs-DGBmIq_G.js → menuTabs-DA2V4Fdt.js} +2 -2
- package/lib/assets/modules/{toolIcon-CQYHaCan.js → toolIcon-BPUk821a.js} +1 -1
- package/lib/assets/modules/{upload-template-DBTaPGiN.js → upload-template-1qHFUTUu.js} +575 -571
- package/lib/assets/modules/{uploadList-2nN7g3jv.js → uploadList-BVcO1MPp.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- 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/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/utils/data.ts +4 -3
- package/src/utils/options.ts +4 -1
- package/src/utils/table.ts +5 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ce, ref as R, computed as I, watch as $, resolveDirective as de, createElementBlock as m, openBlock as d, normalizeClass as z, unref as n, createElementVNode as w, withDirectives as b, createCommentVNode as y, createBlock as V, mergeProps as G, withCtx as v, createVNode as p, createTextVNode as E, toDisplayString as P, Fragment as pe, renderList as me } from "vue";
|
|
2
|
-
import { _ as H } from "./index-
|
|
3
|
-
import { a as B, _ as K } from "./toolIcon-
|
|
2
|
+
import { _ as H } from "./index-D62pvKsu.js";
|
|
3
|
+
import { a as B, _ as K } from "./toolIcon-BPUk821a.js";
|
|
4
4
|
import { httpPost as N, ResStatus as j } from "@skyfox2000/fapi";
|
|
5
|
-
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-
|
|
5
|
+
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-1qHFUTUu.js";
|
|
6
6
|
import U from "vue-m-message";
|
|
7
7
|
import { Upload as J, Tag as we, Popconfirm as ve, Progress as xe } from "ant-design-vue";
|
|
8
|
-
import { U as r, f as be, p as W } from "./file-upload-
|
|
8
|
+
import { U as r, f as be, p as W } from "./file-upload-czkP0_KZ.js";
|
|
9
9
|
import { combineParams as Z } from "@skyfox2000/microbase";
|
|
10
10
|
import "async-validator";
|
|
11
11
|
import "dayjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as V, defineAsyncComponent as J, ref as m, watch as K, onMounted as W, createElementBlock as x, openBlock as p, Fragment as z, createElementVNode as f, createVNode as N, toDisplayString as $, unref as l, createBlock as A, withKeys as v, normalizeClass as O, withModifiers as w, withCtx as L, createCommentVNode as q } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { _ as D } from "../../assets/modules/toolIcon-
|
|
3
|
+
import { _ as D } from "../../assets/modules/toolIcon-BPUk821a.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { $ as b } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as b } from "../../assets/modules/upload-template-1qHFUTUu.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { _ as Q } from "../../assets/modules/index-
|
|
7
|
+
import { _ as Q } from "../../assets/modules/index-BM6-4CHA.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/baseLayout-
|
|
3
|
-
import { al as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-BbWv6Njy.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-1qHFUTUu.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import b from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as n, openBlock as p, unref as r, withCtx as e, createVNode as m, createTextVNode as c, toDisplayString as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-1qHFUTUu.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 n, openBlock as p, unref as e, withCtx as r, createVNode as m, createTextVNode as a, toDisplayString as c } from "vue";
|
|
2
|
-
import { r as u } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as u } from "../../assets/modules/upload-template-1qHFUTUu.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as be, ref as p, computed as S, watch as H, onMounted as he, createBlock as Q, openBlock as f, unref as r, withCtx as D, renderSlot as W, createElementBlock as g, createCommentVNode as B, createElementVNode as b, createVNode as _, createTextVNode as J, toDisplayString as E, normalizeClass as Fe, Fragment as ie, renderList as ne } from "vue";
|
|
2
|
-
import { _ as Y } from "../../assets/modules/index-
|
|
2
|
+
import { _ as Y } from "../../assets/modules/index-D62pvKsu.js";
|
|
3
3
|
import { Modal as Ce, Upload as ce, Space as Ue } from "ant-design-vue";
|
|
4
4
|
import { httpGet as _e, ResStatus as de } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-1qHFUTUu.js";
|
|
6
6
|
import m from "vue-m-message";
|
|
7
|
-
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-
|
|
8
|
-
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-
|
|
7
|
+
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-CnrS4kfC.js";
|
|
8
|
+
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-czkP0_KZ.js";
|
|
9
9
|
import "@skyfox2000/microbase";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
|
|
2
|
-
import { _ as y } from "../../assets/modules/baseLayout-
|
|
3
|
-
import { al as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as y } from "../../assets/modules/baseLayout-BbWv6Njy.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-1qHFUTUu.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import k from "vue-m-message";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as T, ref as l, watch as x, onMounted as F, createBlock as C, openBlock as q, unref as u, withCtx as d, createVNode as f, createTextVNode as L, toDisplayString as b } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-D62pvKsu.js";
|
|
3
3
|
import { Modal as D, Space as z } from "ant-design-vue";
|
|
4
4
|
import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
|
|
5
|
-
import { ao as n, $ as w } from "../../assets/modules/upload-template-
|
|
5
|
+
import { ao as n, $ as w } from "../../assets/modules/upload-template-1qHFUTUu.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { U as M } from "../../assets/modules/file-upload-
|
|
7
|
+
import { U as M } from "../../assets/modules/file-upload-czkP0_KZ.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as $ } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as $ } from "../../assets/modules/uploadList-BVcO1MPp.js";
|
|
13
13
|
const H = /* @__PURE__ */ T({
|
|
14
14
|
__name: "templateFile",
|
|
15
15
|
props: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as F, ref as s, watch as y, onMounted as z, createBlock as D, openBlock as _, unref as u, withCtx as p, createVNode as m, mergeProps as L, createTextVNode as w, toDisplayString as C } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-D62pvKsu.js";
|
|
3
3
|
import { Modal as k, Space as N } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as T } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as v, ab as $ } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as v, ab as $ } from "../../assets/modules/upload-template-1qHFUTUu.js";
|
|
6
6
|
import A from "vue-m-message";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { A as E } from "../../assets/modules/file-upload-
|
|
10
|
+
import { A as E } from "../../assets/modules/file-upload-czkP0_KZ.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-BVcO1MPp.js";
|
|
13
13
|
const W = /* @__PURE__ */ F({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
package/lib/webui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as Be, i as ve, $ as y, a as Ae, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as ze, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-
|
|
2
|
-
import { ah as Vr, V as Yr, W as Gr, a0 as Wr, ag as Hr, ae as qr, af as Qr, ai as Jr, as as Xr, a3 as Zr, Y as eo, at as to, ac as ao, a8 as lo, T as ro, a9 as oo, ab as so, aq as no, ar as io, Z as co, K as uo, J as po, a5 as fo, aa as vo, ad as mo, U as go, X as ho, aj as bo, I as xo, a7 as yo, ak as wo, a2 as ko, a4 as _o, au as Co, a1 as So, ap as To, ao as $o, al as Do, N as Fo, Q as Po, am as Io, S as Eo, an as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-
|
|
3
|
-
import { f as Yt, p as Ve } from "./assets/modules/file-upload-
|
|
4
|
-
import { A as Ro, U as Bo } from "./assets/modules/file-upload-
|
|
1
|
+
import { u as Be, i as ve, $ as y, a as Ae, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as ze, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-1qHFUTUu.js";
|
|
2
|
+
import { ah as Vr, V as Yr, W as Gr, a0 as Wr, ag as Hr, ae as qr, af as Qr, ai as Jr, as as Xr, a3 as Zr, Y as eo, at as to, ac as ao, a8 as lo, T as ro, a9 as oo, ab as so, aq as no, ar as io, Z as co, K as uo, J as po, a5 as fo, aa as vo, ad as mo, U as go, X as ho, aj as bo, I as xo, a7 as yo, ak as wo, a2 as ko, a4 as _o, au as Co, a1 as So, ap as To, ao as $o, al as Do, N as Fo, Q as Po, am as Io, S as Eo, an as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-1qHFUTUu.js";
|
|
3
|
+
import { f as Yt, p as Ve } from "./assets/modules/file-upload-czkP0_KZ.js";
|
|
4
|
+
import { A as Ro, U as Bo } from "./assets/modules/file-upload-czkP0_KZ.js";
|
|
5
5
|
import { EnvConfig as Ye, isMicroApp as Gt } from "@skyfox2000/microbase";
|
|
6
6
|
import { FrontCache as he, httpPost as Oe, ResStatus as Ke, SERVER_HOST as Wt, fieldMapping as xe } from "@skyfox2000/fapi";
|
|
7
7
|
import ae from "vue-m-message";
|
|
@@ -10,15 +10,15 @@ import "async-validator";
|
|
|
10
10
|
import Ne from "dayjs";
|
|
11
11
|
import { Popover as Jt, theme as ct, Drawer as Xt, Space as pe, Form as ut, message as Zt, FormItem as dt, ConfigProvider as we, Popconfirm as pt, DropdownButton as ft, Menu as Te, MenuItem as $e, Dropdown as Re, Checkbox as ea, List as ta, ListItem as aa, Card as la, Button as vt, Table as mt, Tree as ra, Cascader as oa, DatePicker as sa, Input as me, InputPassword as na, InputNumber as ia, RangePicker as ca, Textarea as ua, TimePicker as da, Transfer as pa, TreeSelect as fa, Upload as va, Image as ma, LayoutContent as ga } from "ant-design-vue";
|
|
12
12
|
import { VueDraggableNext as ha } from "vue-draggable-next";
|
|
13
|
-
import { d as ba } from "./assets/modules/uploadList-
|
|
14
|
-
import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-
|
|
15
|
-
import { c as gt } from "./assets/modules/index-
|
|
16
|
-
import { _ as Yo, h as Go, b as Wo, a as Ho, d as qo, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-
|
|
17
|
-
import { _ as ee } from "./assets/modules/index-
|
|
18
|
-
import { _ as Y } from "./assets/modules/toolIcon-
|
|
19
|
-
import { a as rs } from "./assets/modules/toolIcon-
|
|
20
|
-
import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-
|
|
21
|
-
import { _ as gs } from "./assets/modules/index-
|
|
13
|
+
import { d as ba } from "./assets/modules/uploadList-BVcO1MPp.js";
|
|
14
|
+
import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-BVcO1MPp.js";
|
|
15
|
+
import { c as gt } from "./assets/modules/index-CnrS4kfC.js";
|
|
16
|
+
import { _ as Yo, h as Go, b as Wo, a as Ho, d as qo, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-CnrS4kfC.js";
|
|
17
|
+
import { _ as ee } from "./assets/modules/index-D62pvKsu.js";
|
|
18
|
+
import { _ as Y } from "./assets/modules/toolIcon-BPUk821a.js";
|
|
19
|
+
import { a as rs } from "./assets/modules/toolIcon-BPUk821a.js";
|
|
20
|
+
import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-DA2V4Fdt.js";
|
|
21
|
+
import { _ as gs } from "./assets/modules/index-BM6-4CHA.js";
|
|
22
22
|
import { _ as ce } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
23
23
|
const We = (r, a, e, t = "remove") => {
|
|
24
24
|
if (!e)
|
package/package.json
CHANGED
package/src/utils/data.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyControl, ExecuteOptions, PostOptions } from '@/typings/data.d';
|
|
2
|
-
import { ApiResponse, httpPost, IUrlInfo, ResStatus } from '@skyfox2000/fapi';
|
|
2
|
+
import { ApiResponse, httpPost, httpGet, IUrlInfo, ResStatus } from '@skyfox2000/fapi';
|
|
3
3
|
import message from 'vue-m-message';
|
|
4
4
|
import { isEmpty } from './isEmpty';
|
|
5
5
|
import { combineParams } from '@skyfox2000/microbase';
|
|
@@ -63,8 +63,9 @@ const doPost = <T>(control: AnyControl, options: PostOptions<T>): Promise<ApiRes
|
|
|
63
63
|
if (options.hideErrorToast) {
|
|
64
64
|
url.hideErrorToast = true;
|
|
65
65
|
}
|
|
66
|
-
//
|
|
67
|
-
|
|
66
|
+
// 发起请求,根据method选择合适的HTTP方法
|
|
67
|
+
const httpMethod = url.method === 'GET' ? httpGet : httpPost;
|
|
68
|
+
return httpMethod<T>(url, newParams)
|
|
68
69
|
.then((result: ApiResponse<T> | null) => {
|
|
69
70
|
// 更新加载状态
|
|
70
71
|
if (options.loadingState) {
|
package/src/utils/options.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
ApiResponse,
|
|
4
4
|
fieldMapping,
|
|
5
5
|
httpPost,
|
|
6
|
+
httpGet,
|
|
6
7
|
IUrlInfo,
|
|
7
8
|
parseFieldTemplate,
|
|
8
9
|
ReqParams,
|
|
@@ -165,7 +166,9 @@ const queryOptions = <T>(
|
|
|
165
166
|
if (!params.Query) params.Query = {};
|
|
166
167
|
optionCtrl.optionQuery = params;
|
|
167
168
|
optionCtrl.isOptionLoading.value = true;
|
|
168
|
-
|
|
169
|
+
// 根据method选择合适的HTTP方法,查询操作通常使用GET
|
|
170
|
+
const httpMethod = optionUrl.method === 'GET' ? httpGet : httpPost;
|
|
171
|
+
return httpMethod<T>(optionUrl, params)
|
|
169
172
|
.then((result: ApiResponse<T> | null) => {
|
|
170
173
|
if (result?.status === ResStatus.SUCCESS) {
|
|
171
174
|
if (result.data) {
|
package/src/utils/table.ts
CHANGED
|
@@ -114,7 +114,11 @@ export const gridQueryFind = <T>(gridCtrl: GridControl<T>): Promise<FindResult>
|
|
|
114
114
|
|
|
115
115
|
return doQuery<FindResult>(gridCtrl, {
|
|
116
116
|
urlKey,
|
|
117
|
-
url:
|
|
117
|
+
url: {
|
|
118
|
+
url: gridCtrl.gridUrl?.url || '',
|
|
119
|
+
...gridCtrl.gridUrl,
|
|
120
|
+
loadingText: gridCtrl.gridUrl?.loadingText || $t('webui.common.dataLoading'),
|
|
121
|
+
},
|
|
118
122
|
params: gridCtrl.gridQuery,
|
|
119
123
|
loadingState: gridCtrl.isGridLoading,
|
|
120
124
|
loadingText: gridCtrl.gridUrl?.loadingText === false ? false : (gridCtrl.gridUrl?.loadingText || $t('webui.common.dataLoading')),
|