ss-component-new 1.1.113 → 1.1.116

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.
Files changed (87) hide show
  1. package/dist/array-DLX9HpUG.js +1956 -0
  2. package/dist/array-tWsmTH5r.cjs +7 -0
  3. package/dist/{cloneDeep-BfzU0pBe.js → cloneDeep-B2CowBmY.js} +42 -48
  4. package/dist/cloneDeep-Fj9bqNcO.cjs +1 -0
  5. package/dist/index-2BSH90QR.cjs +6 -0
  6. package/dist/{index-BTt24r3U.cjs → index-B2V71oy_.cjs} +1 -1
  7. package/dist/{index-DxyREQkR.js → index-B5nXV29K.js} +78 -76
  8. package/dist/index-B6bxf0h2.js +196 -0
  9. package/dist/{index-COPrDtid.js → index-BEAnS4I-.js} +1 -1
  10. package/dist/{index-CyQkKXnK.js → index-BGhy_ENi.js} +255 -187
  11. package/dist/index-BNf8v3E7.cjs +1 -0
  12. package/dist/index-BXJIxGj9.cjs +1 -0
  13. package/dist/index-BYNM1Eo-.js +432 -0
  14. package/dist/index-B_pYEWlS.cjs +6 -0
  15. package/dist/index-Bo8JGvd0.cjs +1 -0
  16. package/dist/index-BvvxVAFa.cjs +1 -0
  17. package/dist/index-C1qnTNzC.cjs +1 -0
  18. package/dist/index-C86gx6Ye.cjs +1 -0
  19. package/dist/{index-B4WYIlOz.cjs → index-CbuB7VDV.cjs} +1 -1
  20. package/dist/{index-B3iQoZwc.js → index-CdRgYGoU.js} +631 -625
  21. package/dist/{index-BpJeYb4X.js → index-CeJMZbXG.js} +1 -1
  22. package/dist/index-D0yDjxaf.cjs +1 -0
  23. package/dist/index-DCRZ9Y1m.js +199 -0
  24. package/dist/index-DD3Jbedk.cjs +1 -0
  25. package/dist/index-DH5pTE-1.js +304 -0
  26. package/dist/index-DQ8UtE2z.js +74 -0
  27. package/dist/index-DTs391JS.js +208 -0
  28. package/dist/{index-BMLnfdpX.js → index-DYee8R31.js} +4 -3
  29. package/dist/{index-BH3F6_ql.js → index-DdiwlYxv.js} +1025 -1121
  30. package/dist/{index-ChXKNVG8.cjs → index-DjHNYg39.cjs} +1 -1
  31. package/dist/{index-b_11tfuG.js → index-DmA5-mTS.js} +6 -6
  32. package/dist/{index-DLartnmY.js → index-M_Td6T9I.js} +1 -1
  33. package/dist/index-MpVy5A_K.cjs +1 -0
  34. package/dist/index-ULdYt3Gk.js +138 -0
  35. package/dist/index-Uak9xh_Z.cjs +1 -0
  36. package/dist/index-YlTnI4EI.cjs +1 -0
  37. package/dist/{index-CqJa9o1o.cjs → index-kHFiVhmA.cjs} +1 -1
  38. package/dist/{index-DWiZqfBA.js → index-vARVx4Lc.js} +4 -4
  39. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-BKTdfLNp.cjs +1 -0
  40. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-C2CUHQVo.js +7 -0
  41. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DSLx4cvQ.js +235 -0
  42. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DlqdNpcl.cjs +1 -0
  43. package/dist/login-CBjdvGjn.js +47 -0
  44. package/dist/login-CHZ1VF7_.cjs +1 -0
  45. package/dist/main-3fUagSVX.cjs +1 -0
  46. package/dist/{main-DAPxADXM.js → main-7GSU9TqI.js} +25 -24
  47. package/dist/menu-BnTNA2Lx.cjs +1 -0
  48. package/dist/menu-DxrO5JEn.js +34 -0
  49. package/dist/{modelComp-CHWFvhCq.js → modelComp-BsNooORx.js} +1 -1
  50. package/dist/modelComp-b_KDs0lh.cjs +1 -0
  51. package/dist/pinia-8zVC1cUT.cjs +11 -0
  52. package/dist/pinia-DB5lI5eD.js +4723 -0
  53. package/dist/{request-BK6KCyS9.js → request-3QszTjDN.js} +1 -1
  54. package/dist/{request-BrHEv9dn.cjs → request-SLgezlvU.cjs} +1 -1
  55. package/dist/ss-component.cjs +1 -1
  56. package/dist/ss-component.css +1 -1
  57. package/dist/ss-component.js +6 -6
  58. package/dist/ss-component2.cjs +1 -1
  59. package/dist/ss-component2.js +1 -1
  60. package/package.json +3 -3
  61. package/dist/array-BYRvPg11.cjs +0 -7
  62. package/dist/array-DyxKeexo.js +0 -1732
  63. package/dist/cloneDeep-WwDap0fL.cjs +0 -1
  64. package/dist/index-5dGTUAu_.cjs +0 -1
  65. package/dist/index-BIRKKGuW.cjs +0 -1
  66. package/dist/index-BUxzwz5l.cjs +0 -1
  67. package/dist/index-CBHJLZo4.cjs +0 -1
  68. package/dist/index-CVBCwf2F.cjs +0 -6
  69. package/dist/index-CbphQpiC.cjs +0 -1
  70. package/dist/index-CdEEK8I0.js +0 -408
  71. package/dist/index-CumtOgAw.cjs +0 -7
  72. package/dist/index-DVEWSdUo.cjs +0 -1
  73. package/dist/index-DmoecEm1.js +0 -205
  74. package/dist/index-DzJuDGl8.cjs +0 -1
  75. package/dist/index-EIbm0jBZ.js +0 -2707
  76. package/dist/index-EQOXj03f.cjs +0 -1
  77. package/dist/index-QWm4yJ7u.js +0 -135
  78. package/dist/index-smYHb1Ta.js +0 -456
  79. package/dist/index-uMboxmjq.cjs +0 -6
  80. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-CF5e1L_i.cjs +0 -1
  81. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-DrStz9iD.js +0 -2
  82. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs +0 -1
  83. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js +0 -192
  84. package/dist/main-DS-YP1Wn.cjs +0 -1
  85. package/dist/menu-BIINB-0Y.js +0 -1013
  86. package/dist/menu-B_Az9K_F.cjs +0 -11
  87. package/dist/modelComp-DY1RniW6.cjs +0 -1
@@ -0,0 +1,208 @@
1
+ import { ref as l } from "vue";
2
+ import { g as y, c as m, u as b, d as h } from "./index-BEAnS4I-.js";
3
+ import { u as D } from "./menu-DxrO5JEn.js";
4
+ import { s as k, E as r } from "./pinia-DB5lI5eD.js";
5
+ import { a as v } from "./index-DH5pTE-1.js";
6
+ import { c as S } from "./cloneDeep-B2CowBmY.js";
7
+ const C = D(), { activeMenuPath: c } = k(C), I = l([
8
+ {
9
+ label: "用户名称",
10
+ value: "",
11
+ name: "userName"
12
+ }
13
+ ]), K = l(!1), A = (e) => {
14
+ console.log("handleQueryChange", e);
15
+ }, u = l([
16
+ {
17
+ key: "extraButton",
18
+ contents: [
19
+ {
20
+ label: "新增"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ key: "rowButton",
26
+ contents: [
27
+ {
28
+ label: "编辑"
29
+ },
30
+ {
31
+ label: "删除",
32
+ textColor: "red"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ key: "tableIndex",
38
+ contents: []
39
+ },
40
+ {
41
+ key: "header",
42
+ contents: [
43
+ {
44
+ label: "用户名称",
45
+ prop: "userName"
46
+ },
47
+ {
48
+ label: "工号",
49
+ prop: "userNumber"
50
+ },
51
+ {
52
+ label: "所属机构",
53
+ prop: "userDept",
54
+ formType: "select",
55
+ options: [
56
+ // {
57
+ // label: "开发部",
58
+ // value: "开发部"
59
+ // },
60
+ // {
61
+ // label: "营销部",
62
+ // value: "营销部"
63
+ // }
64
+ ]
65
+ },
66
+ {
67
+ label: "角色",
68
+ prop: "userRoles",
69
+ formType: "multiSelect",
70
+ options: [
71
+ // {
72
+ // label: "超级管理员",
73
+ // value: "超级管理员"
74
+ // },
75
+ // {
76
+ // label: "普通管理员",
77
+ // value: "普通管理员"
78
+ // }
79
+ ]
80
+ },
81
+ {
82
+ label: "操作"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ key: "tableContents",
88
+ contents: [
89
+ [
90
+ "superAdmin",
91
+ "195467",
92
+ "集团",
93
+ "超级管理员"
94
+ ]
95
+ // [
96
+ // "李四",
97
+ // "195435",
98
+ // '营销部',
99
+ // '超级管理员',
100
+ // ],
101
+ ]
102
+ }
103
+ ]), w = (e) => {
104
+ var a;
105
+ u.value = (a = u.value) == null ? void 0 : a.map((t) => t.key === "tableContents" ? {
106
+ ...t,
107
+ contents: e.content
108
+ } : t), console.log("handleItemDataChange", e), d(e.singleContent, e.buttonName);
109
+ }, x = (e) => {
110
+ console.log("onDoubleClick", e);
111
+ }, E = (e, a) => {
112
+ console.log("onButtonClick", e, a);
113
+ }, g = l(), o = async (e, a) => {
114
+ var s;
115
+ const t = await e(a);
116
+ if (((s = t == null ? void 0 : t.data) == null ? void 0 : s.code) === 200)
117
+ return t.data.result;
118
+ }, B = async () => {
119
+ var a;
120
+ const e = await o(y, {
121
+ key: {
122
+ systemKey: sessionStorage.getItem("systemKey"),
123
+ pageKey: c.value
124
+ }
125
+ });
126
+ return {
127
+ isExist: (e == null ? void 0 : e.length) > 0,
128
+ data: (a = e == null ? void 0 : e[0]) == null ? void 0 : a.value.pageData
129
+ };
130
+ }, d = (e, a) => {
131
+ if (a === "新增") {
132
+ const t = S(e);
133
+ delete t.id, o(m, {
134
+ key: {
135
+ systemKey: sessionStorage.getItem("systemKey"),
136
+ pageKey: c.value
137
+ },
138
+ value: {
139
+ rowData: t
140
+ }
141
+ }).then((s) => {
142
+ g.value = {
143
+ ...e,
144
+ newId: s
145
+ }, a && s && r.success(a + "成功");
146
+ });
147
+ } else a === "编辑" ? o(b, {
148
+ id: e.id,
149
+ key: {
150
+ systemKey: sessionStorage.getItem("systemKey"),
151
+ pageKey: c.value
152
+ },
153
+ value: {
154
+ rowData: e
155
+ }
156
+ }).then((t) => {
157
+ a && t && r.success(a + "成功"), v.show = !1;
158
+ }) : a === "删除" && (console.log(222, e), o(h, {
159
+ id: e.id
160
+ }).then((t) => {
161
+ a && t && r.success(a + "成功");
162
+ }));
163
+ }, T = async (e) => {
164
+ const a = await o(y, {
165
+ key: {
166
+ systemKey: sessionStorage.getItem("systemKey"),
167
+ pageKey: e
168
+ }
169
+ }), t = a == null ? void 0 : a.map((s) => {
170
+ var n;
171
+ return {
172
+ id: s.id,
173
+ rowData: (n = s == null ? void 0 : s.value) == null ? void 0 : n.rowData
174
+ };
175
+ });
176
+ return console.log("tempRes", t), t == null ? void 0 : t.map((s) => {
177
+ var n;
178
+ if (Array.isArray(s == null ? void 0 : s.rowData)) {
179
+ let i = { id: s.id };
180
+ return (n = s == null ? void 0 : s.rowData) == null || n.forEach((p, f) => {
181
+ i[`a${f}`] = p;
182
+ }), i;
183
+ } else
184
+ return {
185
+ ...s.rowData,
186
+ id: s.id
187
+ };
188
+ });
189
+ }, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
190
+ __proto__: null,
191
+ changedRow: g,
192
+ getPageDataAsync: T,
193
+ handleItemDataChange: w,
194
+ handleQueryChange: A,
195
+ handleSubmitAsync: o,
196
+ isPageDataExist: K,
197
+ onButtonClick: E,
198
+ onDoubleClick: x,
199
+ pageData: u,
200
+ queryFormData: I,
201
+ submitTableAsyncByVerify: d,
202
+ verifySubmitDataExist: B
203
+ }, Symbol.toStringTag, { value: "Module" }));
204
+ export {
205
+ O as S,
206
+ o as h,
207
+ d as s
208
+ };
@@ -1,5 +1,6 @@
1
1
  import { defineComponent as g, onMounted as A, resolveComponent as l, createElementBlock as d, openBlock as o, Fragment as _, renderList as m, createBlock as r, withCtx as s, createVNode as I, createSlots as b, renderSlot as u, mergeProps as O, computed as S } from "vue";
2
- import { u as q, s as E } from "./menu-BIINB-0Y.js";
2
+ import { u as q } from "./menu-DxrO5JEn.js";
3
+ import { s as E } from "./pinia-DB5lI5eD.js";
3
4
  import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
5
  const R = /* @__PURE__ */ g({
5
6
  __name: "menuItem",
@@ -128,7 +129,7 @@ const R = /* @__PURE__ */ g({
128
129
  }, 8, ["default-active", "default-openeds"]);
129
130
  };
130
131
  }
131
- }), D = /* @__PURE__ */ F(T, [["__scopeId", "data-v-cd5548ec"]]);
132
+ }), G = /* @__PURE__ */ F(T, [["__scopeId", "data-v-cd5548ec"]]);
132
133
  export {
133
- D as default
134
+ G as default
134
135
  };