jmash-core 0.0.134 → 0.0.135

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { aa as t, ab as r, az as i, ac as o, ax as n, ae as u, B as d, av as g, aw as p, ar as l, as as c, at as m, au as P, ay as v, S, ak as E, Z as y, U as D, V as b, O as f, a1 as k, A as M, a2 as h, Q as A, e as C, P as L, ad as R, f as z, a3 as B, v as H, a0 as U, a4 as x, j as O, ag as V, R as w, p as Q, z as T, N as W, ap as j, r as q, ah as I, K, af as N, al as F, W as X, aq as Y, $ as Z, X as $, Y as G, u as J, am as _, ai as aa, k as ea, an as sa, c as ta, aj as ra, a as ia, b as oa, ao as na, a7 as ua, a9 as da, a8 as ga, a5 as pa, a6 as la, x as ca } from "./index-_d8kiXHj.mjs";
1
+ import { aa as t, ab as r, ay as i, ac as o, aw as n, ae as u, B as d, au as g, av as p, aq as l, ar as c, as as m, at as P, ax as v, S, aj as E, Z as y, U as b, V as f, O as k, a1 as D, A as M, a2 as h, Q as A, e as C, P as R, ad as L, f as z, a3 as B, v as H, a0 as U, a4 as x, j as O, ag as V, R as w, p as Q, z as T, N as W, ao as j, r as q, ah as I, K, af as N, ak as F, W as X, ap as Y, $ as Z, X as $, Y as G, u as J, al as _, k as aa, am as ea, c as sa, ai as ta, a as ra, b as ia, an as oa, a7 as na, a9 as ua, a8 as da, a5 as ga, a6 as pa, x as la } from "./index-DsRi-u4y.mjs";
2
2
  import "element-plus";
3
3
  export {
4
4
  t as BizDict,
@@ -18,16 +18,16 @@ export {
18
18
  S as SysApiImpl,
19
19
  E as TableHooks,
20
20
  y as addDynamicRoute,
21
- D as addViteMenus,
22
- b as addWebpackMenus,
23
- f as axiosConfig,
24
- k as clearEmpty,
21
+ b as addViteMenus,
22
+ f as addWebpackMenus,
23
+ k as axiosConfig,
24
+ D as clearEmpty,
25
25
  M as createLoginQrcode,
26
26
  h as deepMerge,
27
27
  A as default,
28
28
  C as defaultSettings,
29
- L as directive,
30
- R as enumMapCache,
29
+ R as directive,
30
+ L as enumMapCache,
31
31
  z as fileApi,
32
32
  B as generateRandomKey,
33
33
  H as getCaptchaApi,
@@ -52,18 +52,17 @@ export {
52
52
  G as updateWebpackMetaEnv,
53
53
  J as useAppStore,
54
54
  _ as useAppStoreHook,
55
- aa as useListData,
56
- ea as usePermissionStore,
57
- sa as usePermissionStoreHook,
58
- ta as useSettingsStore,
59
- ra as useTableHooks,
60
- ia as useTagsViewStore,
61
- oa as useUserStore,
62
- na as useUserStoreHook,
63
- ua as validateCreditCode,
64
- da as validateEmail,
65
- ga as validateIDCard,
66
- pa as validatePhoneNumber,
67
- la as validatePhoneOrLandline,
68
- ca as vueMetaEnv
55
+ aa as usePermissionStore,
56
+ ea as usePermissionStoreHook,
57
+ sa as useSettingsStore,
58
+ ta as useTableHooks,
59
+ ra as useTagsViewStore,
60
+ ia as useUserStore,
61
+ oa as useUserStoreHook,
62
+ na as validateCreditCode,
63
+ ua as validateEmail,
64
+ da as validateIDCard,
65
+ ga as validatePhoneNumber,
66
+ pa as validatePhoneOrLandline,
67
+ la as vueMetaEnv
69
68
  };
@@ -1,7 +1,7 @@
1
1
  var F = Object.defineProperty;
2
2
  var L = (m, p, i) => p in m ? F(m, p, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[p] = i;
3
3
  var y = (m, p, i) => L(m, typeof p != "symbol" ? p + "" : p, i);
4
- import { B as z, b as H, C as T, F as K, G as Q, H as W, I as X, i as Z } from "./index-_d8kiXHj.mjs";
4
+ import { B as z, b as H, C as T, F as K, G as Q, H as W, I as X, i as Z } from "./index-DsRi-u4y.mjs";
5
5
  import { defineComponent as x, ref as V, reactive as ee, resolveComponent as n, openBlock as c, createElementBlock as k, createVNode as t, unref as s, withCtx as a, createElementVNode as le, Fragment as $, renderList as N, createBlock as U, createCommentVNode as J, createTextVNode as te, toDisplayString as se } from "vue";
6
6
  import { ElMessage as ae } from "element-plus";
7
7
  class h {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-CYDXnEId.mjs";
1
+ import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-DEsuf14k.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { b as s, J as x, g as T, K as U, E as V, _ as B, L as P } from "./index-_d8kiXHj.mjs";
1
+ import { b as s, J as x, g as T, K as U, E as V, _ as B, L as P } from "./index-DsRi-u4y.mjs";
2
2
  import { defineComponent as M, ref as _, useModel as S, reactive as $, resolveComponent as A, openBlock as m, createBlock as D, withCtx as a, createVNode as d, unref as t, createTextVNode as c, toDisplayString as n, createElementBlock as y, withDirectives as f, vShow as g, createCommentVNode as C } from "vue";
3
3
  const L = {
4
4
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { openBlock as I, createElementBlock as y, createElementVNode as u, defineComponent as B, ref as V, reactive as f, resolveComponent as i, Fragment as D, createVNode as t, withCtx as l, createTextVNode as _, toDisplayString as v } from "vue";
2
- import { v as E, b as w, w as N, x as q, y as R } from "./index-_d8kiXHj.mjs";
2
+ import { v as E, b as w, w as N, x as q, y as R } from "./index-DsRi-u4y.mjs";
3
3
  const S = {
4
4
  viewBox: "0 0 1024 1024",
5
5
  width: "1.2em",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-BVcgzG2G.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-CHN9d9gw.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as q, ref as v, toRefs as E, reactive as V, resolveComponent as i, openBlock as O, createBlock as A, unref as t, isRef as U, withCtx as n, createElementVNode as z, createVNode as r, createTextVNode as g, toDisplayString as _ } from "vue";
2
2
  import { ElMessage as B } from "element-plus";
3
- import { z as b, M as D } from "./index-_d8kiXHj.mjs";
3
+ import { z as b, M as D } from "./index-DsRi-u4y.mjs";
4
4
  import { useI18n as I } from "vue-i18n";
5
5
  const S = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
6
6
  __name: "updatePwd",
@@ -28,8 +28,16 @@ export declare class TableHooks {
28
28
  findPage(): boolean;
29
29
  /** 处理查询,如果查询数据中存在当前页数,则重置为第一页. */
30
30
  handleQuery(): void;
31
+ /** 从详情页返回列表页并保留查询条件重新查询 */
32
+ restoreAndQuery(): void;
31
33
  handleSort(prop: string, order: string | null): void;
32
34
  resetQuery(): void;
35
+ /**
36
+ * 用于清除查询条件并重新加载数据与restoreAndQuery()对应
37
+ * 此函数用于重置查询表单,清除查询参数,并触发数据的重新加载
38
+ * @param {Array<string>} key - 需要重置的查询参数键数组
39
+ */
40
+ clearQueryAndReload(key: Array<string>): void;
33
41
  /** 删除记录 */
34
42
  deleteRecord(row: EntityModel): void;
35
43
  /** 删除多项记录 */
@@ -14,7 +14,6 @@ export { netEncrypt } from "./utils/netsecret";
14
14
  export { fileApi } from "./api/file/index";
15
15
  export { routerUtil } from "./utils/route";
16
16
  export { SysApiImpl } from "./api/sys/index";
17
- export { useListData } from "./hooks/useList";
18
17
  export { useTableHooks, TableHooks } from "./hooks/table";
19
18
  export { store } from "./stores";
20
19
  export { useAppStore, useAppStoreHook } from "./stores/modules/app";
@@ -0,0 +1,26 @@
1
+ export declare const useListStore: import("pinia").StoreDefinition<"list", Pick<{
2
+ setQueryParams: (params: Record<string, any>) => void;
3
+ resetQueryParams: (keysToDelete?: string[]) => void;
4
+ queryParams: Record<string, any>;
5
+ }, "queryParams">, Pick<{
6
+ setQueryParams: (params: Record<string, any>) => void;
7
+ resetQueryParams: (keysToDelete?: string[]) => void;
8
+ queryParams: Record<string, any>;
9
+ }, never>, Pick<{
10
+ setQueryParams: (params: Record<string, any>) => void;
11
+ resetQueryParams: (keysToDelete?: string[]) => void;
12
+ queryParams: Record<string, any>;
13
+ }, "setQueryParams" | "resetQueryParams">>;
14
+ export declare function useListStoreHook(): import("pinia").Store<"list", Pick<{
15
+ setQueryParams: (params: Record<string, any>) => void;
16
+ resetQueryParams: (keysToDelete?: string[] | undefined) => void;
17
+ queryParams: Record<string, any>;
18
+ }, "queryParams">, Pick<{
19
+ setQueryParams: (params: Record<string, any>) => void;
20
+ resetQueryParams: (keysToDelete?: string[] | undefined) => void;
21
+ queryParams: Record<string, any>;
22
+ }, never>, Pick<{
23
+ setQueryParams: (params: Record<string, any>) => void;
24
+ resetQueryParams: (keysToDelete?: string[] | undefined) => void;
25
+ queryParams: Record<string, any>;
26
+ }, "setQueryParams" | "resetQueryParams">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.0.134",
3
+ "version": "0.0.135",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",