@dazhicheng/ui 1.5.240 → 1.5.242

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.
@@ -75,8 +75,8 @@ declare function __VLS_template(): {
75
75
  $refs: {
76
76
  [x: string]: unknown;
77
77
  } & {
78
- vxelist: (import('vxe-pc-ui').VxeListMethods & {
79
- $props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
78
+ vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
79
+ $props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
80
80
  $slots: import('vxe-pc-ui').VxeListSlots;
81
81
  }) | null;
82
82
  table: HTMLTableElement;
@@ -570,8 +570,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
570
570
  $refs: {
571
571
  [x: string]: unknown;
572
572
  } & {
573
- vxelist: (import('vxe-pc-ui').VxeListMethods & {
574
- $props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
573
+ vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
574
+ $props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
575
575
  $slots: import('vxe-pc-ui').VxeListSlots;
576
576
  }) | null;
577
577
  table: HTMLTableElement;
@@ -32,8 +32,8 @@ declare function __VLS_template(): {
32
32
  empty: () => VNode;
33
33
  };
34
34
  refs: {
35
- vxelist: (import('vxe-pc-ui').VxeListMethods & {
36
- $props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
35
+ vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
36
+ $props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
37
37
  $slots: import('vxe-pc-ui').VxeListSlots;
38
38
  }) | null;
39
39
  table: HTMLTableElement;
@@ -234,8 +234,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
234
234
  hasNextPage: boolean;
235
235
  showCheckbox: boolean;
236
236
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
237
- vxelist: (import('vxe-pc-ui').VxeListMethods & {
238
- $props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
237
+ vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
238
+ $props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
239
239
  $slots: import('vxe-pc-ui').VxeListSlots;
240
240
  }) | null;
241
241
  table: HTMLTableElement;
@@ -412,14 +412,15 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
412
412
  pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
413
413
  showPager: any;
414
414
  showCheckbox: any;
415
+ showRadio: any;
416
+ radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
417
+ checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
418
+ menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
415
419
  columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
416
420
  toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
417
421
  zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
418
422
  showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
419
423
  showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
420
- radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
421
- checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
422
- menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
423
424
  mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
424
425
  keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
425
426
  emptyText: string;
@@ -436,7 +437,6 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
436
437
  showRefresh: boolean;
437
438
  columnsKey: string | (() => string);
438
439
  showExpand: any;
439
- showRadio: any;
440
440
  showIndex: any;
441
441
  isCellResize: any;
442
442
  isColumnsDrag: any;
@@ -1044,14 +1044,15 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
1044
1044
  pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
1045
1045
  showPager: any;
1046
1046
  showCheckbox: any;
1047
+ showRadio: any;
1048
+ radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
1049
+ checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
1050
+ menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
1047
1051
  columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
1048
1052
  toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
1049
1053
  zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
1050
1054
  showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
1051
1055
  showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
1052
- radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
1053
- checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
1054
- menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
1055
1056
  mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
1056
1057
  keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
1057
1058
  emptyText: string;
@@ -1068,7 +1069,6 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
1068
1069
  showRefresh: boolean;
1069
1070
  columnsKey: string | (() => string);
1070
1071
  showExpand: any;
1071
- showRadio: any;
1072
1072
  showIndex: any;
1073
1073
  isCellResize: any;
1074
1074
  isColumnsDrag: any;
@@ -1409,14 +1409,15 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
1409
1409
  pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
1410
1410
  showPager: any;
1411
1411
  showCheckbox: any;
1412
+ showRadio: any;
1413
+ radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
1414
+ checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
1415
+ menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
1412
1416
  columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
1413
1417
  toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
1414
1418
  zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
1415
1419
  showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
1416
1420
  showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
1417
- radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
1418
- checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
1419
- menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
1420
1421
  mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
1421
1422
  keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
1422
1423
  emptyText: string;
@@ -1433,7 +1434,6 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
1433
1434
  showRefresh: boolean;
1434
1435
  columnsKey: string | (() => string);
1435
1436
  showExpand: any;
1436
- showRadio: any;
1437
1437
  showIndex: any;
1438
1438
  isCellResize: any;
1439
1439
  isColumnsDrag: any;
@@ -809,14 +809,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
809
809
  pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
810
810
  showPager: any;
811
811
  showCheckbox: any;
812
+ showRadio: any;
813
+ radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
814
+ checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
815
+ menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
812
816
  columns: import('vue').MaybeRef<VxeTableDefines.ColumnOptions<any>[]> | undefined;
813
817
  toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
814
818
  zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
815
819
  showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
816
820
  showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
817
- radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
818
- checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
819
- menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
820
821
  mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
821
822
  keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
822
823
  emptyText: string;
@@ -833,7 +834,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
833
834
  showRefresh: boolean;
834
835
  columnsKey: string | (() => string);
835
836
  showExpand: any;
836
- showRadio: any;
837
837
  showIndex: any;
838
838
  isCellResize: any;
839
839
  isColumnsDrag: any;
@@ -1,9 +1,9 @@
1
- import { queryDataPermissionDetailDataTypeContext as L, pageUser as R } from "../api/dataTypeContext.js";
2
- import { ref as U, watchEffect as b, unref as O, watch as M, computed as V } from "vue";
3
- import { useRoute as _ } from "vue-router";
4
- const c = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
5
- let D, h;
6
- const j = "all", E = { label: "全部", value: j }, z = {
1
+ import { queryDataPermissionDetailDataTypeContext as V, pageUser as _ } from "../api/dataTypeContext.js";
2
+ import { ref as j, watchEffect as z, unref as R, watch as F, computed as k } from "vue";
3
+ import { useRoute as B } from "vue-router";
4
+ const s = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
5
+ let P, g;
6
+ const G = "all", H = { label: "全部", value: G }, J = {
7
7
  platformId: ["platformName", "platformId"],
8
8
  shopId: ["shopName", "shopId"],
9
9
  purchasePlaceId: ["purchasePlaceName", "purchasePlaceCode"],
@@ -11,117 +11,129 @@ const j = "all", E = { label: "全部", value: j }, z = {
11
11
  lockUserId: ["userName", "userId"],
12
12
  userId: ["fullName", "id"]
13
13
  };
14
- async function k() {
15
- if (D) return D;
16
- if (h) return h;
17
- h = R({ pageNo: 1, pageSize: 9999 }).then((n) => {
18
- const l = n.records || [];
19
- return D = l, l;
14
+ async function Q() {
15
+ if (P) return P;
16
+ if (g) return g;
17
+ g = _({ pageNo: 1, pageSize: 9999 }).then((a) => {
18
+ const l = a.records || [];
19
+ return P = l, l;
20
20
  });
21
21
  try {
22
- return await h;
22
+ return await g;
23
23
  } finally {
24
- h = void 0;
24
+ g = void 0;
25
25
  }
26
26
  }
27
- function J(n) {
28
- const l = _(), v = U({});
29
- function m(t = {}) {
30
- v.value = n.codes.reduce(
27
+ function $(a) {
28
+ const l = B(), q = j({});
29
+ function p(t = {}) {
30
+ q.value = a.codes.reduce(
31
31
  (e, r) => {
32
- const [s, d] = z[r], g = (t[r] || []).map((f) => {
32
+ const [c, m] = J[r], d = (t[r] || []).map((f) => {
33
33
  const o = r === "purchasePlaceId" ? f.purchaseInfo || {} : f;
34
34
  return {
35
35
  ...f,
36
- label: o == null ? void 0 : o[s],
37
- value: o == null ? void 0 : o[d]
36
+ label: o == null ? void 0 : o[c],
37
+ value: o == null ? void 0 : o[m]
38
38
  };
39
39
  });
40
- return e[r] = g, e;
40
+ return e[r] = d, e;
41
41
  },
42
42
  {}
43
43
  );
44
44
  }
45
- function A(t) {
45
+ function x(t) {
46
46
  var e;
47
- return typeof n.showAll == "boolean" ? n.showAll : ((e = n.showAll) == null ? void 0 : e[t]) ?? !1;
47
+ return typeof a.showAll == "boolean" ? a.showAll : ((e = a.showAll) == null ? void 0 : e[t]) ?? !1;
48
48
  }
49
- function x() {
50
- C.clear(), c.clear(), p.clear(), D = void 0, h = void 0;
49
+ function M() {
50
+ D.clear(), h.clear(), s.clear(), C.clear(), w.clear(), P = void 0, g = void 0;
51
51
  }
52
52
  function T(t) {
53
- c.delete(t);
53
+ s.delete(t), C.delete(t), h.delete(t);
54
54
  }
55
- async function S(t = !1) {
56
- const e = l.path, r = O(n.dataSource);
55
+ function L(t) {
56
+ const e = C.get(t) || /* @__PURE__ */ new Set();
57
+ a.codes.forEach((r) => e.add(r)), C.set(t, e);
58
+ }
59
+ async function N(t = !1) {
60
+ const e = l.path, r = R(a.dataSource);
57
61
  if (r) {
58
- const i = { ...c.get(e) || {}, ...r };
59
- c.set(e, i), m(i);
62
+ const i = { ...s.get(e) || {}, ...r };
63
+ s.set(e, i), p(i);
60
64
  return;
61
65
  }
62
- const s = c.get(e) || {};
63
- let d = t ? [...n.codes] : n.codes.filter((a) => !Object.prototype.hasOwnProperty.call(s, a));
66
+ const c = s.get(e) || {}, m = [...C.get(e) || a.codes];
67
+ let d = t ? m : m.filter((n) => !Object.prototype.hasOwnProperty.call(c, n));
64
68
  if (!d.length) {
65
- m(s);
69
+ p(c);
66
70
  return;
67
71
  }
68
- const g = t ? void 0 : C.get(e);
69
- if (g) {
70
- const a = await g, u = { ...c.get(e) || {}, ...a };
71
- if (c.set(e, u), d = n.codes.filter((y) => !Object.prototype.hasOwnProperty.call(u, y)), !d.length) {
72
- m(u);
72
+ const f = t ? void 0 : D.get(e);
73
+ if (f) {
74
+ const n = await f, u = { ...s.get(e) || {}, ...n };
75
+ if (s.set(e, u), d = m.filter((I) => !Object.prototype.hasOwnProperty.call(u, I)), !d.length) {
76
+ p(u);
73
77
  return;
74
78
  }
75
79
  }
76
- const f = d.filter((a) => a !== "userId"), o = d.includes("userId"), q = Promise.allSettled([
77
- f.length ? L({ dataTypeName: f }).then(
78
- (a) => a
80
+ const o = d.filter((n) => n !== "userId"), E = d.includes("userId"), O = Promise.allSettled([
81
+ o.length ? V({ dataTypeName: o }).then(
82
+ (n) => n
79
83
  ) : Promise.resolve([]),
80
- o ? k() : Promise.resolve(void 0)
81
- ]).then(([a, i]) => {
82
- const u = a.status === "fulfilled" ? a.value : [], y = i.status === "fulfilled" ? i.value : void 0;
84
+ E ? Q() : Promise.resolve(void 0)
85
+ ]).then(([n, i]) => {
86
+ const u = n.status === "fulfilled" ? n.value : [], I = i.status === "fulfilled" ? i.value : void 0;
83
87
  return {
84
- ...y ? { userId: y } : {},
85
- ...u.reduce((P, I) => {
86
- const N = I == null ? void 0 : I.dataTypeCode;
87
- return N && (P[N] = I.originalItems || []), P;
88
+ ...I ? { userId: I } : {},
89
+ ...u.reduce((S, y) => {
90
+ const A = y == null ? void 0 : y.dataTypeCode;
91
+ return A && (S[A] = y.originalItems || []), S;
88
92
  }, {})
89
93
  };
90
- }), w = (p.get(e) || 0) + 1;
91
- p.set(e, w), C.set(e, q);
94
+ }), v = (w.get(e) || 0) + 1;
95
+ w.set(e, v), D.set(e, O);
92
96
  try {
93
- const a = await q;
94
- if (p.get(e) !== w) return;
95
- const u = { ...c.get(e) || {}, ...a };
96
- c.set(e, u), m(u);
97
+ const n = await O;
98
+ if (w.get(e) !== v) return;
99
+ const u = { ...s.get(e) || {}, ...n };
100
+ s.set(e, u), p(u);
97
101
  } finally {
98
- p.get(e) === w && C.delete(e);
102
+ w.get(e) === v && D.delete(e);
99
103
  }
100
104
  }
101
- async function K() {
105
+ async function U() {
102
106
  const t = l.path;
103
- x(), T(t), await S(!0);
107
+ M(), T(t), await N(!0);
108
+ }
109
+ function b(t) {
110
+ const e = h.get(t);
111
+ if (e) return e;
112
+ const r = Promise.resolve().then(() => N());
113
+ return h.set(t, r), r.finally(() => {
114
+ h.get(t) === r && h.delete(t);
115
+ }), r;
104
116
  }
105
- return b(() => {
106
- const t = O(n.dataSource);
117
+ return z(() => {
118
+ const t = R(a.dataSource);
107
119
  if (!t) return;
108
- const e = l.path, s = { ...c.get(e) || {}, ...t };
109
- c.set(e, s), m(s);
110
- }), M(
120
+ const e = l.path, c = { ...s.get(e) || {}, ...t };
121
+ s.set(e, c), p(c);
122
+ }), F(
111
123
  () => l.path,
112
- () => {
113
- S();
124
+ (t) => {
125
+ L(t), b(t);
114
126
  },
115
127
  { immediate: !0 }
116
128
  ), {
117
129
  /**
118
130
  * 数据源
119
131
  */
120
- dataSource: V(() => {
121
- const t = n.codes.reduce(
132
+ dataSource: k(() => {
133
+ const t = a.codes.reduce(
122
134
  (e, r) => {
123
- const s = v.value[r] || [];
124
- return e[r] = A(r) ? [E, ...s] : s, e;
135
+ const c = q.value[r] || [];
136
+ return e[r] = x(r) ? [H, ...c] : c, e;
125
137
  },
126
138
  {}
127
139
  );
@@ -137,9 +149,9 @@ function J(n) {
137
149
  /**
138
150
  * @description 清空所有缓存,重新请求
139
151
  */
140
- reload: K
152
+ reload: U
141
153
  };
142
154
  }
143
155
  export {
144
- J as useDataPermissionOptions
156
+ $ as useDataPermissionOptions
145
157
  };