jmash-core 0.0.12 → 0.0.14

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 (111) hide show
  1. package/dist/{401-Do8xnEsN.mjs → 401-BkJPlIzp.mjs} +2 -2
  2. package/dist/{404-D1L3bBKj.mjs → 404-BBmYfUdE.mjs} +1 -1
  3. package/dist/{BarChart-CfcVJz3-.mjs → BarChart-B6A8iUXj.mjs} +2 -2
  4. package/dist/{FileSaver.min-C3PXR_ER.mjs → FileSaver.min-CgOjN3Qg.mjs} +1 -1
  5. package/dist/{PieChart-6YLME4bj.mjs → PieChart-DX64TYZz.mjs} +1 -1
  6. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CzuULwXY.mjs → PieChart.vue_vue_type_script_setup_true_lang-DtGRvxtk.mjs} +2 -2
  7. package/dist/{RadarChart-DkmgXM6y.mjs → RadarChart-bUPojoRx.mjs} +1 -1
  8. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-NTNi_I9_.mjs → RadarChart.vue_vue_type_script_setup_true_lang-BmDtds_e.mjs} +2 -2
  9. package/dist/{edit-YJP7pN6W.mjs → edit-BSOs3vN5.mjs} +1 -1
  10. package/dist/{edit-DjN392jC.mjs → edit-B_7Qd0xx.mjs} +1 -1
  11. package/dist/{edit-DGe7AWsr.mjs → edit-Cm32AuKE.mjs} +37 -37
  12. package/dist/{edit-BUeKYrEZ.mjs → edit-DI9xVL3f.mjs} +1 -1
  13. package/dist/{edit-CkpeOqrr.mjs → edit-HfjGZfbA.mjs} +1 -1
  14. package/dist/edit-K-SeNsHi.mjs +4 -0
  15. package/dist/{edit-CJuMrQ46.mjs → edit-SaGTHCRi.mjs} +52 -51
  16. package/dist/edit-syovGHsx.mjs +4 -0
  17. package/dist/{edit.vue_vue_type_script_setup_true_lang-RBjkUr1y.mjs → edit.vue_vue_type_script_setup_true_lang-BY6U7HyH.mjs} +2 -2
  18. package/dist/{edit.vue_vue_type_script_setup_true_lang-DEydJiSf.mjs → edit.vue_vue_type_script_setup_true_lang-BZIGUF15.mjs} +19 -19
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-BtM452jP.mjs → edit.vue_vue_type_script_setup_true_lang-CXKNjagX.mjs} +12 -12
  20. package/dist/{edit.vue_vue_type_script_setup_true_lang-BWtQvmLi.mjs → edit.vue_vue_type_script_setup_true_lang-CvQyDvvs.mjs} +2 -2
  21. package/dist/{edit.vue_vue_type_script_setup_true_lang-DI-oeRPA.mjs → edit.vue_vue_type_script_setup_true_lang-DOBRRSJo.mjs} +4 -4
  22. package/dist/{edit.vue_vue_type_script_setup_true_lang-djIfNPqQ.mjs → edit.vue_vue_type_script_setup_true_lang-DdpRY-Il.mjs} +1 -1
  23. package/dist/{el-card-C861yBJo.mjs → el-card-DO00Wvz9.mjs} +1 -1
  24. package/dist/{el-col-BBiMr5pm.mjs → el-col-DFdwiQq6.mjs} +1 -1
  25. package/dist/{el-date-picker-N5aiMKSy.mjs → el-date-picker-BiAhUGOG.mjs} +143 -143
  26. package/dist/{el-divider-QMj1kMtJ.mjs → el-divider-c2CLca4o.mjs} +1 -1
  27. package/dist/{el-dropdown-item-4ws609Gw.mjs → el-dropdown-item-9E9GqcUL.mjs} +22 -22
  28. package/dist/{el-tree-select-DdZxfrNV.mjs → el-tree-select-CC0XwXVL.mjs} +25 -25
  29. package/dist/{index-C__OmU1O.mjs → index-B2TvQOt9.mjs} +4 -4
  30. package/dist/{index-DnSJxj9r.mjs → index-BBMnmuNy.mjs} +1105 -1096
  31. package/dist/{index-Dn-psVpr.mjs → index-BLIll5te.mjs} +6 -6
  32. package/dist/{index-CrZPfuW6.mjs → index-Bozt9oGT.mjs} +73 -71
  33. package/dist/{index-H7-W4HC2.mjs → index-ByZF--LW.mjs} +1 -1
  34. package/dist/{index-BzT4__Is.mjs → index-CMrLCILj.mjs} +105 -104
  35. package/dist/{index-B7u0TetV.mjs → index-CRuu1sq3.mjs} +63 -60
  36. package/dist/{index-DFVq4R0u.mjs → index-CgTJTyzP.mjs} +1 -1
  37. package/dist/{index-hMoSvG6q.mjs → index-CiTJNDrg.mjs} +76 -73
  38. package/dist/{index-DD1K2w1b.mjs → index-CovctCXh.mjs} +80 -71
  39. package/dist/{index-NVKBuLg_.mjs → index-DDZExl-h.mjs} +77 -73
  40. package/dist/{index-BZBpY0uA.mjs → index-DQe98_8-.mjs} +65 -62
  41. package/dist/{index-Cmlc_Bb4.mjs → index-DSMgAe9r.mjs} +1 -1
  42. package/dist/{index-DtR1eBZg.mjs → index-DfG2Ushb.mjs} +1 -1
  43. package/dist/{index-CkXpK-zH.mjs → index-Dy5Mc1xa.mjs} +6911 -7001
  44. package/dist/{index-AiS44_Xc.mjs → index-Dzz_DJ2A.mjs} +25 -24
  45. package/dist/{index-BX1Jx_xA.mjs → index-QGbAm-j4.mjs} +1 -1
  46. package/dist/{index-9TwUBNc5.mjs → index-UYeY7Byx.mjs} +1 -1
  47. package/dist/{index-DOPTH9F2.mjs → index-WXrB1MMY.mjs} +112 -110
  48. package/dist/{index-Be59bIqU.mjs → index-qw7NC8eE.mjs} +67 -65
  49. package/dist/index.mjs +16 -16
  50. package/dist/{index.vue_vue_type_script_setup_true_lang-up5cpReQ.mjs → index.vue_vue_type_script_setup_true_lang-DNUiKzAB.mjs} +2 -2
  51. package/dist/index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs +280 -0
  52. package/dist/{picture-o8CKMR0j.mjs → picture-B-Z93WvM.mjs} +2 -2
  53. package/dist/{position-BUALjtY9.mjs → position-vpBZqxst.mjs} +1 -1
  54. package/dist/{profile-BLq1IvXt.mjs → profile-yHqe9ckz.mjs} +6 -6
  55. package/dist/runAs-30DZ0fw7.mjs +4 -0
  56. package/dist/runAs.vue_vue_type_script_setup_true_lang-Df5JuFXX.mjs +114 -0
  57. package/dist/style.css +1 -1
  58. package/dist/{types-JT7Xyhpz.mjs → types-B-kpFO60.mjs} +2 -2
  59. package/dist/{updatePwd-DnT8nEtM.mjs → updatePwd-B0jx4S2G.mjs} +1 -1
  60. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Dks8j8my.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DqPa62Sx.mjs} +3 -3
  61. package/dts/src/components/AppLink/index.vue.d.ts +19 -0
  62. package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
  63. package/dts/src/components/Dictionary/index.vue.d.ts +1 -1
  64. package/dts/src/components/IconSelect/requireIcons.d.ts +1 -1
  65. package/dts/src/components/JmashColumnSelect/index.vue.d.ts +16 -0
  66. package/dts/src/components/JmashTable/index.vue.d.ts +31 -0
  67. package/dts/src/components/Pagination/index.vue.d.ts +3 -3
  68. package/dts/src/components/Table/index.vue.d.ts +2 -2
  69. package/dts/src/components/TableSet/index.vue.d.ts +5 -5
  70. package/dts/src/enums/DeviceEnum.d.ts +13 -0
  71. package/dts/src/enums/LayoutEnum.d.ts +17 -0
  72. package/dts/src/enums/MenuTypeEnum.d.ts +4 -1
  73. package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
  74. package/dts/src/enums/ThemeEnum.d.ts +17 -0
  75. package/dts/src/hooks/useList.d.ts +1 -0
  76. package/dts/src/index.d.ts +10 -3
  77. package/dts/src/lang/index.d.ts +91 -1
  78. package/dts/src/lang/package/en.d.ts +42 -0
  79. package/dts/src/lang/package/zh-cn.d.ts +48 -0
  80. package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
  81. package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
  82. package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
  83. package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
  84. package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
  85. package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
  86. package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
  87. package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
  88. package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +23 -0
  89. package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
  90. package/dts/src/stores/index.d.ts +5 -0
  91. package/dts/src/stores/modules/app.d.ts +2 -0
  92. package/dts/src/stores/modules/permission.d.ts +2 -0
  93. package/dts/src/stores/modules/settings.d.ts +1 -0
  94. package/dts/src/stores/modules/user.d.ts +2 -0
  95. package/dts/src/utils/color.d.ts +69 -0
  96. package/dts/src/utils/common.d.ts +1 -1
  97. package/dts/src/utils/index.d.ts +9 -0
  98. package/dts/src/utils/nprogress.d.ts +4 -0
  99. package/dts/src/views/my/runAs.vue.d.ts +6 -0
  100. package/dts/src/views/system/dept/edit.vue.d.ts +3 -3
  101. package/dts/src/views/system/job/edit.vue.d.ts +3 -3
  102. package/dts/src/views/system/menu/edit.vue.d.ts +3 -3
  103. package/dts/src/views/system/module/edit.vue.d.ts +3 -3
  104. package/dts/src/views/system/operation/edit.vue.d.ts +3 -3
  105. package/dts/src/views/system/permission/edit.vue.d.ts +3 -3
  106. package/dts/src/views/system/role/edit.vue.d.ts +3 -3
  107. package/dts/src/views/system/user/edit.vue.d.ts +3 -3
  108. package/dts/tsconfig.tsbuildinfo +1 -1
  109. package/package.json +2 -4
  110. package/dist/edit-lwVBGzDE.mjs +0 -4
  111. package/dist/edit-xlxZjC4R.mjs +0 -4
@@ -1,23 +1,24 @@
1
- import { aj as ne, a0 as de, aT as se, aU as ie, s as re, aq as me, t as ue, ai as ce, aV as pe, E as _e, aW as fe, ba as be } from "./index-CkXpK-zH.mjs";
2
- import { E as ge, a as ye } from "./el-col-BBiMr5pm.mjs";
1
+ import { aj as ne, a0 as de, aW as se, aX as ie, s as re, aq as me, t as ue, ai as ce, aY as pe, E as _e, bc as fe } from "./index-Dy5Mc1xa.mjs";
2
+ import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs";
3
+ import { E as Ce, a as ge } from "./el-col-DFdwiQq6.mjs";
3
4
  import "./el-form-item-l0sNRNKZ.mjs";
4
- import { defineComponent as Ce, reactive as c, resolveComponent as N, resolveDirective as ve, openBlock as r, createElementBlock as $, createVNode as l, withCtx as a, withKeys as R, unref as o, createTextVNode as m, toDisplayString as u, withDirectives as C, createBlock as v, isRef as he, createCommentVNode as S, createElementVNode as ke } from "vue";
5
- import { g as we, d as $e, b as Me, a as Ee, c as Ie } from "./index-DtR1eBZg.mjs";
6
- import { _ as Te } from "./edit.vue_vue_type_script_setup_true_lang-BWtQvmLi.mjs";
7
- const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "clear" }, null, -1), Se = ["onClick"], Ve = ["onClick"], Ke = /* @__PURE__ */ Ce({
5
+ import { defineComponent as ye, reactive as m, resolveComponent as R, resolveDirective as ve, openBlock as r, createElementBlock as $, createVNode as l, withCtx as a, withKeys as T, unref as o, createTextVNode as u, toDisplayString as c, withDirectives as g, createBlock as y, isRef as he, createCommentVNode as S, createElementVNode as ke } from "vue";
6
+ import { g as we, d as $e, b as Me, a as Ee, c as Ie } from "./index-DfG2Ushb.mjs";
7
+ import { _ as Ne } from "./edit.vue_vue_type_script_setup_true_lang-CvQyDvvs.mjs";
8
+ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "clear" }, null, -1), Se = ["onClick"], De = ["onClick"], Le = /* @__PURE__ */ ye({
8
9
  __name: "index",
9
- setup(De) {
10
- const { t: s } = ne(), d = c({
10
+ setup(Ve) {
11
+ const { t: s } = ne(), d = m({
11
12
  tenant: de().user.tenant,
12
13
  curPage: 1,
13
14
  pageSize: 10
14
15
  });
15
- let p = c({
16
+ let v = m({
16
17
  moduleId: "",
17
18
  moduleCode: "",
18
19
  moduleName: "",
19
20
  description: ""
20
- }), _ = c([
21
+ }), p = m([
21
22
  {
22
23
  label: s("sysModule.code"),
23
24
  width: "200",
@@ -52,61 +53,64 @@ const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "
52
53
  isColumn: !0
53
54
  }
54
55
  ]);
55
- const i = c({
56
+ const i = m({
56
57
  visible: !1,
57
58
  title: ""
58
- }), V = c({
59
+ }), D = m({
59
60
  list: we,
60
61
  del: $e,
61
62
  dels: Me,
62
63
  up: Ee,
63
64
  down: Ie
64
65
  }), {
65
- tableData: D,
66
- total: f,
66
+ tableData: V,
67
+ total: _,
67
68
  listLoading: P,
68
69
  selectionRows: F,
69
- multipleTableRef: U,
70
+ multipleTableRef: q,
70
71
  queryFormRef: M,
71
72
  getList: h,
72
- handleQuery: b,
73
- deleteRecord: q,
74
- deleteRecords: B,
73
+ handleQuery: f,
74
+ deleteRecord: B,
75
+ deleteRecords: U,
75
76
  handleMoveTop: z,
76
77
  // 上移
77
78
  handleMoveDown: K
78
79
  // 下移
79
- } = se(s, V, d), {
80
+ } = se(s, D, d), {
80
81
  parIndex: L,
81
82
  tableArray: j,
82
83
  getLocalStorageContent: x,
83
84
  fixedChange: A,
84
85
  isShowChange: Q
85
- } = ie(_, "/system/module");
86
+ } = ie(p, "/system/module");
86
87
  function W(e) {
87
88
  F.value = e;
88
89
  }
89
- function G() {
90
- M.value.resetFields(), b();
90
+ function X() {
91
+ M.value.resetFields(), f();
91
92
  }
92
- function H() {
93
- for (const e in p)
94
- p[e] = "";
95
- i.title = s("common.add"), i.visible = !0;
93
+ function Y() {
94
+ v = m({
95
+ moduleId: "",
96
+ moduleCode: "",
97
+ moduleName: "",
98
+ description: ""
99
+ }), i.title = s("common.add"), i.visible = !0;
96
100
  }
97
- function J(e) {
98
- i.title = s("common.edit"), i.visible = !0, p = { ...e };
101
+ function G(e) {
102
+ i.title = s("common.edit"), i.visible = !0, v = { ...e };
99
103
  }
100
- function O(e) {
104
+ function H(e) {
101
105
  i.visible = e;
102
106
  }
103
- function X(e) {
107
+ function J(e) {
104
108
  e && h();
105
109
  }
106
- return x(), _ = j.value, h(), (e, n) => {
107
- const E = re, k = me, g = ue, Y = ce, I = ge, Z = pe, ee = ye, oe = N("Bottom"), T = _e, le = N("Top"), te = fe, ae = be, y = ve("hasPerm");
108
- return r(), $("div", Ne, [
109
- l(Y, {
110
+ return x(), p = j.value, h(), (e, n) => {
111
+ const E = re, k = me, b = ue, O = ce, I = Ce, Z = pe, ee = ge, oe = R("Bottom"), N = _e, le = R("Top"), te = be, ae = fe, C = ve("hasPerm");
112
+ return r(), $("div", Re, [
113
+ l(O, {
110
114
  ref_key: "queryFormRef",
111
115
  ref: M,
112
116
  model: d,
@@ -122,7 +126,7 @@ const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "
122
126
  modelValue: d.moduleCode,
123
127
  "onUpdate:modelValue": n[0] || (n[0] = (t) => d.moduleCode = t),
124
128
  placeholder: e.$t("sysModule.codeRequired"),
125
- onKeyup: R(o(b), ["enter"])
129
+ onKeyup: T(o(f), ["enter"])
126
130
  }, null, 8, ["modelValue", "placeholder", "onKeyup"])
127
131
  ]),
128
132
  _: 1
@@ -136,25 +140,25 @@ const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "
136
140
  modelValue: d.likeModuleName,
137
141
  "onUpdate:modelValue": n[1] || (n[1] = (t) => d.likeModuleName = t),
138
142
  placeholder: e.$t("sysModule.nameRequired"),
139
- onKeyup: R(o(b), ["enter"])
143
+ onKeyup: T(o(f), ["enter"])
140
144
  }, null, 8, ["modelValue", "placeholder", "onKeyup"])
141
145
  ]),
142
146
  _: 1
143
147
  }, 8, ["label"]),
144
148
  l(k, { class: "search-container" }, {
145
149
  default: a(() => [
146
- l(g, {
150
+ l(b, {
147
151
  type: "primary",
148
- onClick: o(b)
152
+ onClick: o(f)
149
153
  }, {
150
154
  default: a(() => [
151
- m(u(e.$t("common.search")), 1)
155
+ u(c(e.$t("common.search")), 1)
152
156
  ]),
153
157
  _: 1
154
158
  }, 8, ["onClick"]),
155
- l(g, { onClick: G }, {
159
+ l(b, { onClick: X }, {
156
160
  default: a(() => [
157
- m(u(e.$t("common.reset")), 1)
161
+ u(c(e.$t("common.reset")), 1)
158
162
  ]),
159
163
  _: 1
160
164
  })
@@ -164,32 +168,32 @@ const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "
164
168
  ]),
165
169
  _: 1
166
170
  }, 8, ["model"]),
167
- Re,
171
+ Te,
168
172
  l(ee, { justify: "space-between" }, {
169
173
  default: a(() => [
170
174
  l(I, { span: 19 }, {
171
175
  default: a(() => [
172
- C((r(), v(g, {
176
+ g((r(), y(b, {
173
177
  type: "primary",
174
- onClick: H
178
+ onClick: Y
175
179
  }, {
176
180
  default: a(() => [
177
- m(u(e.$t("common.add")), 1)
181
+ u(c(e.$t("common.add")), 1)
178
182
  ]),
179
183
  _: 1
180
184
  })), [
181
- [y, ["rbac:module:add"]]
185
+ [C, ["rbac:module:add"]]
182
186
  ]),
183
- C((r(), v(g, {
187
+ g((r(), y(b, {
184
188
  type: "primary",
185
- onClick: n[2] || (n[2] = (t) => o(B)("moduleId"))
189
+ onClick: n[2] || (n[2] = (t) => o(U)("moduleId"))
186
190
  }, {
187
191
  default: a(() => [
188
- m(u(e.$t("common.batchDelete")), 1)
192
+ u(c(e.$t("common.batchDelete")), 1)
189
193
  ]),
190
194
  _: 1
191
195
  })), [
192
- [y, ["rbac:module:delete"]]
196
+ [C, ["rbac:module:delete"]]
193
197
  ])
194
198
  ]),
195
199
  _: 1
@@ -200,7 +204,7 @@ const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "
200
204
  }, {
201
205
  default: a(() => [
202
206
  l(Z, {
203
- "table-label": o(_),
207
+ "table-label": o(p),
204
208
  "par-index": o(L),
205
209
  onFixedChange: o(A),
206
210
  onIsShowChange: o(Q)
@@ -214,15 +218,15 @@ const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "
214
218
  l(te, {
215
219
  class: "table-top",
216
220
  ref_key: "multipleTableRef",
217
- ref: U,
221
+ ref: q,
218
222
  "row-keys": "moduleId",
219
- "table-data": o(D),
223
+ "table-data": o(V),
220
224
  "list-loading": o(P),
221
- "table-label": o(_),
225
+ "table-label": o(p),
222
226
  onTableSelected: W
223
227
  }, {
224
228
  sort: a((t) => [
225
- l(T, {
229
+ l(N, {
226
230
  size: "16",
227
231
  onClick: (w) => o(K)(t.data.row.moduleId)
228
232
  }, {
@@ -231,7 +235,7 @@ const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "
231
235
  ]),
232
236
  _: 2
233
237
  }, 1032, ["onClick"]),
234
- l(T, {
238
+ l(N, {
235
239
  size: "16",
236
240
  onClick: (w) => o(z)(t.data.row.moduleId)
237
241
  }, {
@@ -242,46 +246,46 @@ const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "
242
246
  }, 1032, ["onClick"])
243
247
  ]),
244
248
  operation: a((t) => [
245
- C((r(), $("span", {
249
+ g((r(), $("span", {
246
250
  class: "el-button-color",
247
- onClick: (w) => J(t.data.row)
251
+ onClick: (w) => G(t.data.row)
248
252
  }, [
249
- m(u(e.$t("common.edit")), 1)
253
+ u(c(e.$t("common.edit")), 1)
250
254
  ], 8, Se)), [
251
- [y, ["rbac:module:update"]]
255
+ [C, ["rbac:module:update"]]
252
256
  ]),
253
- C((r(), $("span", {
257
+ g((r(), $("span", {
254
258
  class: "el-button-color dropdown-left",
255
- onClick: (w) => o(q)(t.data.row.moduleId)
259
+ onClick: (w) => o(B)(t.data.row.moduleId)
256
260
  }, [
257
- m(u(e.$t("common.delete")), 1)
258
- ], 8, Ve)), [
259
- [y, ["rbac:module:delete"]]
261
+ u(c(e.$t("common.delete")), 1)
262
+ ], 8, De)), [
263
+ [C, ["rbac:module:delete"]]
260
264
  ])
261
265
  ]),
262
266
  _: 1
263
267
  }, 8, ["table-data", "list-loading", "table-label"]),
264
- o(f) > 0 ? (r(), v(ae, {
268
+ o(_) > 0 ? (r(), y(ae, {
265
269
  key: 0,
266
- total: o(f),
267
- "onUpdate:total": n[3] || (n[3] = (t) => he(f) ? f.value = t : null),
270
+ total: o(_),
271
+ "onUpdate:total": n[3] || (n[3] = (t) => he(_) ? _.value = t : null),
268
272
  page: d.curPage,
269
273
  "onUpdate:page": n[4] || (n[4] = (t) => d.curPage = t),
270
274
  limit: d.pageSize,
271
275
  "onUpdate:limit": n[5] || (n[5] = (t) => d.pageSize = t),
272
276
  onPagination: o(h)
273
277
  }, null, 8, ["total", "page", "limit", "onPagination"])) : S("", !0),
274
- i.visible ? (r(), v(Te, {
278
+ i.visible ? (r(), y(Ne, {
275
279
  key: 1,
276
280
  dialog: i,
277
- "form-data": o(p),
278
- onDialogEvent: O,
279
- onRefresh: X
281
+ "form-data": o(v),
282
+ onDialogEvent: H,
283
+ onRefresh: J
280
284
  }, null, 8, ["dialog", "form-data"])) : S("", !0)
281
285
  ]);
282
286
  };
283
287
  }
284
288
  });
285
289
  export {
286
- Ke as default
290
+ Le as default
287
291
  };
@@ -1,16 +1,17 @@
1
- import { aj as le, a0 as te, bu as ae, bv as ne, bw as se, a_ as re, a$ as ie, aT as de, aU as ce, b0 as me, s as ue, aq as pe, t as _e, ai as fe, aV as be, E as ye, aW as Ce } from "./index-CkXpK-zH.mjs";
2
- import { E as he, a as ve } from "./el-col-BBiMr5pm.mjs";
1
+ import { _ as le } from "./index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs";
2
+ import { aj as te, a0 as ae, bw as ne, bx as re, by as se, b0 as ie, b1 as de, aW as me, aX as ce, b2 as ue, s as pe, aq as _e, t as be, ai as fe, aY as ye, E as Ce } from "./index-Dy5Mc1xa.mjs";
3
+ import { E as he, a as ve } from "./el-col-DFdwiQq6.mjs";
3
4
  import "./el-form-item-l0sNRNKZ.mjs";
4
- import { defineComponent as Re, reactive as p, resolveComponent as I, resolveDirective as ke, openBlock as c, createElementBlock as R, createElementVNode as D, createVNode as l, unref as e, withCtx as t, withKeys as T, createTextVNode as m, toDisplayString as u, withDirectives as C, createBlock as k, createCommentVNode as we } from "vue";
5
- import ge from "./edit-DGe7AWsr.mjs";
6
- const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie = /* @__PURE__ */ D("div", { class: "clear" }, null, -1), Te = ["onClick"], De = ["onClick"], Ke = /* @__PURE__ */ Re({
5
+ import { defineComponent as Re, reactive as m, resolveComponent as I, resolveDirective as we, openBlock as c, createElementBlock as R, createElementVNode as D, createVNode as l, unref as e, withCtx as t, withKeys as T, createTextVNode as u, toDisplayString as p, withDirectives as y, createBlock as w, createCommentVNode as ke } from "vue";
6
+ import ge from "./edit-Cm32AuKE.mjs";
7
+ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie = /* @__PURE__ */ D("div", { class: "clear" }, null, -1), Te = ["onClick"], De = ["onClick"], Le = /* @__PURE__ */ Re({
7
8
  __name: "index",
8
9
  setup(Ne) {
9
- const { t: n } = le(), i = p({
10
- tenant: te().user.tenant,
10
+ const { t: n } = te(), i = m({
11
+ tenant: ae().user.tenant,
11
12
  roleType: "role"
12
13
  });
13
- let _ = p([
14
+ let _ = m([
14
15
  {
15
16
  label: n("sysRole.code"),
16
17
  width: "140",
@@ -44,27 +45,27 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
44
45
  isColumn: !0
45
46
  }
46
47
  ]);
47
- const r = p({
48
+ const s = m({
48
49
  visible: !1,
49
50
  title: ""
50
51
  });
51
- let f = p({
52
+ let C = m({
52
53
  roleCode: "",
53
54
  roleName: "",
54
55
  roleDuty: []
55
56
  });
56
- const N = p({
57
- list: ae,
58
- del: ne,
57
+ const N = m({
58
+ list: ne,
59
+ del: re,
59
60
  dels: se,
60
- up: re,
61
- down: ie
61
+ up: ie,
62
+ down: de
62
63
  }), {
63
64
  tableData: V,
64
65
  listLoading: S,
65
66
  selectionRows: F,
66
67
  multipleTableRef: q,
67
- queryFormRef: w,
68
+ queryFormRef: k,
68
69
  handleQuery: d,
69
70
  deleteRecord: B,
70
71
  deleteRecords: K,
@@ -72,42 +73,44 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
72
73
  // 上移
73
74
  handleMoveDown: P
74
75
  // 下移
75
- } = de(n, N, i), {
76
- parIndex: U,
77
- tableArray: j,
78
- getLocalStorageContent: x,
76
+ } = me(n, N, i), {
77
+ parIndex: x,
78
+ tableArray: U,
79
+ getLocalStorageContent: j,
79
80
  fixedChange: z,
80
81
  isShowChange: A
81
82
  } = ce(_, "/system/role");
82
83
  function M() {
83
- w.value.resetFields(), d();
84
+ k.value.resetFields(), d();
84
85
  }
85
86
  function Q() {
86
- for (const o in f)
87
- f[o] = "";
88
- r.visible = !0, r.title = n("common.add");
87
+ C = m({
88
+ roleCode: "",
89
+ roleName: "",
90
+ roleDuty: []
91
+ }), s.visible = !0, s.title = n("common.add");
89
92
  }
90
93
  function W(o) {
91
- r.title = n("common.edit"), me(o.roleId).then(({ data: s }) => {
92
- f = { ...s }, r.visible = !0;
94
+ s.title = n("common.edit"), ue(o.roleId).then(({ data: r }) => {
95
+ C = { ...r }, s.visible = !0;
93
96
  });
94
97
  }
95
- function G(o) {
96
- r.visible = o;
98
+ function X(o) {
99
+ s.visible = o;
97
100
  }
98
- function H(o) {
101
+ function Y(o) {
99
102
  o && d();
100
103
  }
101
- function J(o) {
104
+ function G(o) {
102
105
  F.value = o;
103
106
  }
104
- return x(), _ = j.value, d(), (o, s) => {
105
- const g = ue, h = pe, b = _e, O = fe, $ = he, X = be, Y = ve, Z = I("Bottom"), E = ye, ee = I("Top"), oe = Ce, y = ke("hasPerm");
107
+ return j(), _ = U.value, d(), (o, r) => {
108
+ const g = pe, h = _e, b = be, H = fe, $ = he, J = ye, O = ve, Z = I("Bottom"), E = Ce, ee = I("Top"), oe = le, f = we("hasPerm");
106
109
  return c(), R("div", $e, [
107
110
  D("div", Ee, [
108
- l(O, {
111
+ l(H, {
109
112
  ref_key: "queryFormRef",
110
- ref: w,
113
+ ref: k,
111
114
  inline: !0,
112
115
  model: e(i)
113
116
  }, {
@@ -119,7 +122,7 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
119
122
  default: t(() => [
120
123
  l(g, {
121
124
  modelValue: e(i).roleCode,
122
- "onUpdate:modelValue": s[0] || (s[0] = (a) => e(i).roleCode = a),
125
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => e(i).roleCode = a),
123
126
  placeholder: o.$t("sysRole.codeRequired"),
124
127
  onKeyup: T(e(d), ["enter"])
125
128
  }, null, 8, ["modelValue", "placeholder", "onKeyup"])
@@ -133,7 +136,7 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
133
136
  default: t(() => [
134
137
  l(g, {
135
138
  modelValue: e(i).likeRoleName,
136
- "onUpdate:modelValue": s[1] || (s[1] = (a) => e(i).likeRoleName = a),
139
+ "onUpdate:modelValue": r[1] || (r[1] = (a) => e(i).likeRoleName = a),
137
140
  placeholder: o.$t("sysRole.nameRequired"),
138
141
  onKeyup: T(e(d), ["enter"])
139
142
  }, null, 8, ["modelValue", "placeholder", "onKeyup"])
@@ -147,13 +150,13 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
147
150
  onClick: e(d)
148
151
  }, {
149
152
  default: t(() => [
150
- m(u(o.$t("common.search")), 1)
153
+ u(p(o.$t("common.search")), 1)
151
154
  ]),
152
155
  _: 1
153
156
  }, 8, ["onClick"]),
154
157
  l(b, { onClick: M }, {
155
158
  default: t(() => [
156
- m(u(o.$t("common.reset")), 1)
159
+ u(p(o.$t("common.reset")), 1)
157
160
  ]),
158
161
  _: 1
159
162
  })
@@ -165,31 +168,31 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
165
168
  }, 8, ["model"])
166
169
  ]),
167
170
  Ie,
168
- l(Y, { justify: "space-between" }, {
171
+ l(O, { justify: "space-between" }, {
169
172
  default: t(() => [
170
173
  l($, { span: 19 }, {
171
174
  default: t(() => [
172
- C((c(), k(b, {
175
+ y((c(), w(b, {
173
176
  type: "primary",
174
177
  onClick: Q
175
178
  }, {
176
179
  default: t(() => [
177
- m(u(o.$t("common.add")), 1)
180
+ u(p(o.$t("common.add")), 1)
178
181
  ]),
179
182
  _: 1
180
183
  })), [
181
- [y, ["rbac:role:add"]]
184
+ [f, ["rbac:role:add"]]
182
185
  ]),
183
- C((c(), k(b, {
186
+ y((c(), w(b, {
184
187
  type: "primary",
185
- onClick: s[2] || (s[2] = (a) => e(K)("roleId"))
188
+ onClick: r[2] || (r[2] = (a) => e(K)("roleId"))
186
189
  }, {
187
190
  default: t(() => [
188
- m(u(o.$t("common.batchDelete")), 1)
191
+ u(p(o.$t("common.batchDelete")), 1)
189
192
  ]),
190
193
  _: 1
191
194
  })), [
192
- [y, ["rbac:role:delete"]]
195
+ [f, ["rbac:role:delete"]]
193
196
  ])
194
197
  ]),
195
198
  _: 1
@@ -199,9 +202,9 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
199
202
  class: "container-float"
200
203
  }, {
201
204
  default: t(() => [
202
- l(X, {
205
+ l(J, {
203
206
  "table-label": e(_),
204
- "par-index": e(U),
207
+ "par-index": e(x),
205
208
  onFixedChange: e(z),
206
209
  onIsShowChange: e(A)
207
210
  }, null, 8, ["table-label", "par-index", "onFixedChange", "onIsShowChange"])
@@ -219,7 +222,7 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
219
222
  "list-loading": e(S),
220
223
  "table-data": e(V),
221
224
  "table-label": e(_),
222
- onTableSelected: J
225
+ onTableSelected: G
223
226
  }, {
224
227
  sort: t((a) => [
225
228
  l(E, {
@@ -242,36 +245,36 @@ const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie =
242
245
  }, 1032, ["onClick"])
243
246
  ]),
244
247
  operation: t((a) => [
245
- C((c(), R("span", {
248
+ y((c(), R("span", {
246
249
  class: "el-button-color",
247
250
  onClick: (v) => W(a.data.row)
248
251
  }, [
249
- m(u(o.$t("common.edit")), 1)
252
+ u(p(o.$t("common.edit")), 1)
250
253
  ], 8, Te)), [
251
- [y, ["rbac:role:update"]]
254
+ [f, ["rbac:role:update"]]
252
255
  ]),
253
- C((c(), R("span", {
256
+ y((c(), R("span", {
254
257
  class: "el-button-color dropdown-left",
255
258
  onClick: (v) => e(B)(a.data.row.roleId)
256
259
  }, [
257
- m(u(o.$t("common.delete")), 1)
260
+ u(p(o.$t("common.delete")), 1)
258
261
  ], 8, De)), [
259
- [y, ["rbac:role:delete"]]
262
+ [f, ["rbac:role:delete"]]
260
263
  ])
261
264
  ]),
262
265
  _: 1
263
266
  }, 8, ["list-loading", "table-data", "table-label"]),
264
- e(r).visible ? (c(), k(ge, {
267
+ e(s).visible ? (c(), w(ge, {
265
268
  key: 0,
266
- dialog: e(r),
267
- "form-data": e(f),
268
- onDialogEvent: G,
269
- onRefresh: H
270
- }, null, 8, ["dialog", "form-data"])) : we("", !0)
269
+ dialog: e(s),
270
+ "form-data": e(C),
271
+ onDialogEvent: X,
272
+ onRefresh: Y
273
+ }, null, 8, ["dialog", "form-data"])) : ke("", !0)
271
274
  ]);
272
275
  };
273
276
  }
274
277
  });
275
278
  export {
276
- Ke as default
279
+ Le as default
277
280
  };
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as o, openBlock as r, createBlock as t } from "vue";
2
- import { a6 as n } from "./index-CkXpK-zH.mjs";
2
+ import { a6 as n } from "./index-Dy5Mc1xa.mjs";
3
3
  const c = {};
4
4
  function _(s, a) {
5
5
  const e = o("router-view");
@@ -1,4 +1,4 @@
1
- import { b6 as t, a0 as n } from "./index-CkXpK-zH.mjs";
1
+ import { b8 as t, a0 as n } from "./index-Dy5Mc1xa.mjs";
2
2
  function o(e) {
3
3
  return t({
4
4
  url: "/v1/rbac/module/page",