jmash-core 0.0.13 → 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.
- package/dist/{401-LzXAVxnC.mjs → 401-BkJPlIzp.mjs} +2 -2
- package/dist/{404-BaS1xZmV.mjs → 404-BBmYfUdE.mjs} +1 -1
- package/dist/{BarChart-ClnlJEhi.mjs → BarChart-B6A8iUXj.mjs} +2 -2
- package/dist/{FileSaver.min-C7ddeQoo.mjs → FileSaver.min-CgOjN3Qg.mjs} +1 -1
- package/dist/{PieChart-BHM8amLk.mjs → PieChart-DX64TYZz.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-BaJNQr7Z.mjs → PieChart.vue_vue_type_script_setup_true_lang-DtGRvxtk.mjs} +2 -2
- package/dist/{RadarChart-ChaevZtZ.mjs → RadarChart-bUPojoRx.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-DF4axEB-.mjs → RadarChart.vue_vue_type_script_setup_true_lang-BmDtds_e.mjs} +2 -2
- package/dist/{edit-D2udSsbu.mjs → edit-BSOs3vN5.mjs} +1 -1
- package/dist/{edit-ClmR7gql.mjs → edit-B_7Qd0xx.mjs} +1 -1
- package/dist/{edit-FahW6Usp.mjs → edit-Cm32AuKE.mjs} +24 -24
- package/dist/{edit-5MpAgj0J.mjs → edit-DI9xVL3f.mjs} +1 -1
- package/dist/{edit-Bz0L-kJZ.mjs → edit-HfjGZfbA.mjs} +1 -1
- package/dist/edit-K-SeNsHi.mjs +4 -0
- package/dist/{edit-oUUjQ6s5.mjs → edit-SaGTHCRi.mjs} +41 -40
- package/dist/edit-syovGHsx.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C5DH8_ra.mjs → edit.vue_vue_type_script_setup_true_lang-BY6U7HyH.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-F-7AWta2.mjs → edit.vue_vue_type_script_setup_true_lang-BZIGUF15.mjs} +38 -38
- package/dist/{edit.vue_vue_type_script_setup_true_lang-yaBZyiFi.mjs → edit.vue_vue_type_script_setup_true_lang-CXKNjagX.mjs} +32 -32
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BpmgWV6c.mjs → edit.vue_vue_type_script_setup_true_lang-CvQyDvvs.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BRk4mulZ.mjs → edit.vue_vue_type_script_setup_true_lang-DOBRRSJo.mjs} +4 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BFSwE0WY.mjs → edit.vue_vue_type_script_setup_true_lang-DdpRY-Il.mjs} +1 -1
- package/dist/{el-card-CjFpAXC4.mjs → el-card-DO00Wvz9.mjs} +1 -1
- package/dist/{el-col-D9kCVYAq.mjs → el-col-DFdwiQq6.mjs} +1 -1
- package/dist/{el-date-picker-_cuHa2hi.mjs → el-date-picker-BiAhUGOG.mjs} +1 -1
- package/dist/{el-divider-8Ov9f55F.mjs → el-divider-c2CLca4o.mjs} +1 -1
- package/dist/{el-dropdown-item-CSpUSfWV.mjs → el-dropdown-item-9E9GqcUL.mjs} +1 -1
- package/dist/{el-tree-select-BUK1QB3u.mjs → el-tree-select-CC0XwXVL.mjs} +2 -2
- package/dist/{index-DhjUimfd.mjs → index-B2TvQOt9.mjs} +4 -4
- package/dist/{index-hZzxBNan.mjs → index-BBMnmuNy.mjs} +8 -8
- package/dist/{index-CXJ-WW3h.mjs → index-BLIll5te.mjs} +6 -6
- package/dist/{index-Dav45Y13.mjs → index-Bozt9oGT.mjs} +64 -62
- package/dist/{index-BeFhB4ZJ.mjs → index-ByZF--LW.mjs} +1 -1
- package/dist/{index-C68JBxAE.mjs → index-CMrLCILj.mjs} +108 -107
- package/dist/{index-l9Oeu9G-.mjs → index-CRuu1sq3.mjs} +63 -60
- package/dist/{index-CYAfQz-w.mjs → index-CgTJTyzP.mjs} +1 -1
- package/dist/{index-DHQQEEWW.mjs → index-CiTJNDrg.mjs} +68 -65
- package/dist/{index-gaeN4E1_.mjs → index-CovctCXh.mjs} +64 -55
- package/dist/{index-D8zb68MK.mjs → index-DDZExl-h.mjs} +63 -59
- package/dist/{index-Cuk7sDz9.mjs → index-DQe98_8-.mjs} +65 -62
- package/dist/{index-GPbjfqQg.mjs → index-DSMgAe9r.mjs} +1 -1
- package/dist/{index-BYYYSOkP.mjs → index-DfG2Ushb.mjs} +1 -1
- package/dist/{index-CPqNZOs9.mjs → index-Dy5Mc1xa.mjs} +6055 -6154
- package/dist/{index-C34zVC-7.mjs → index-Dzz_DJ2A.mjs} +17 -16
- package/dist/{index-W4pvCYhJ.mjs → index-QGbAm-j4.mjs} +1 -1
- package/dist/{index-D9itg8P7.mjs → index-UYeY7Byx.mjs} +1 -1
- package/dist/{index-BkPB5eHC.mjs → index-WXrB1MMY.mjs} +76 -74
- package/dist/{index-DW1L3U1A.mjs → index-qw7NC8eE.mjs} +60 -58
- package/dist/index.mjs +10 -10
- package/dist/{index.vue_vue_type_script_setup_true_lang-DWjQT4jn.mjs → index.vue_vue_type_script_setup_true_lang-DNUiKzAB.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs +280 -0
- package/dist/{picture-DRU19T9b.mjs → picture-B-Z93WvM.mjs} +2 -2
- package/dist/{position-Ba7wRAlR.mjs → position-vpBZqxst.mjs} +1 -1
- package/dist/{profile-3Wsx53aV.mjs → profile-yHqe9ckz.mjs} +6 -6
- package/dist/{runAs-CE2R49GJ.mjs → runAs-30DZ0fw7.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-i0DdmfK1.mjs → runAs.vue_vue_type_script_setup_true_lang-Df5JuFXX.mjs} +13 -12
- package/dist/style.css +1 -1
- package/dist/{types-D3sIBzF1.mjs → types-B-kpFO60.mjs} +2 -2
- package/dist/{updatePwd-2Dc9-bnF.mjs → updatePwd-B0jx4S2G.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-3mhiAxD4.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DqPa62Sx.mjs} +3 -3
- package/dts/src/components/JmashColumnSelect/index.vue.d.ts +16 -0
- package/dts/src/components/JmashTable/index.vue.d.ts +31 -0
- package/dts/src/components/Table/index.vue.d.ts +2 -2
- package/dts/src/components/TableSet/index.vue.d.ts +5 -5
- package/dts/src/hooks/useList.d.ts +1 -0
- package/dts/src/lang/index.d.ts +1 -1
- package/dts/src/stores/modules/app.d.ts +2 -0
- package/dts/src/stores/modules/permission.d.ts +2 -0
- package/dts/src/stores/modules/settings.d.ts +1 -0
- package/dts/src/stores/modules/user.d.ts +2 -0
- package/dts/src/utils/common.d.ts +1 -1
- package/dts/src/views/system/dept/edit.vue.d.ts +3 -3
- package/dts/src/views/system/job/edit.vue.d.ts +3 -3
- package/dts/src/views/system/menu/edit.vue.d.ts +3 -3
- package/dts/src/views/system/module/edit.vue.d.ts +3 -3
- package/dts/src/views/system/operation/edit.vue.d.ts +3 -3
- package/dts/src/views/system/permission/edit.vue.d.ts +3 -3
- package/dts/src/views/system/role/edit.vue.d.ts +3 -3
- package/dts/src/views/system/user/edit.vue.d.ts +3 -3
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -3
- package/dist/edit-DXSp7oE2.mjs +0 -4
- package/dist/edit-zLDTi0zt.mjs +0 -4
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { aj as ke, a0 as $e,
|
|
2
|
-
import {
|
|
3
|
-
import { E as We, a as
|
|
1
|
+
import { aj as ke, a0 as $e, bd as Ie, be as Ee, bf as Te, bg as Me, bh as Re, aW as De, aX as Ne, bi as Ve, bj as qe, bk as Fe, Y as U, bl as Se, bm as Be, bn as Le, ao as Ue, ap as je, aq as Ae, s as Pe, t as xe, ai as He, aY as Ke, Z as ze, an as Qe, E as Ye, aZ as Ze } from "./index-Dy5Mc1xa.mjs";
|
|
2
|
+
import { _ as Oe } from "./index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs";
|
|
3
|
+
import { E as We, a as Xe, b as Ge } from "./el-dropdown-item-9E9GqcUL.mjs";
|
|
4
|
+
import { E as Je, a as eo } from "./el-col-DFdwiQq6.mjs";
|
|
4
5
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
5
|
-
import { defineComponent as oo, reactive as
|
|
6
|
-
import { m as so } from "./index-
|
|
7
|
-
import { _ as ro } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { F as A } from "./FileSaver.min-
|
|
9
|
-
const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "clear" }, null, -1), mo = { style: { "padding-left": "5px" } }, co = ["onClick"], po = ["onClick"], fo = { class: "el-dropdown-link" },
|
|
6
|
+
import { defineComponent as oo, reactive as y, ref as M, resolveComponent as R, resolveDirective as to, openBlock as a, createElementBlock as h, createVNode as t, withCtx as o, Fragment as lo, renderList as no, createBlock as m, withKeys as ao, unref as s, createTextVNode as u, toDisplayString as r, withDirectives as p, createElementVNode as E, createCommentVNode as j } from "vue";
|
|
7
|
+
import { m as so } from "./index-DfG2Ushb.mjs";
|
|
8
|
+
import { _ as ro } from "./edit.vue_vue_type_script_setup_true_lang-BZIGUF15.mjs";
|
|
9
|
+
import { F as A } from "./FileSaver.min-CgOjN3Qg.mjs";
|
|
10
|
+
const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "clear" }, null, -1), mo = { style: { "padding-left": "5px" } }, co = ["onClick"], po = ["onClick"], fo = { class: "el-dropdown-link" }, Io = /* @__PURE__ */ oo({
|
|
10
11
|
__name: "index",
|
|
11
12
|
setup(_o) {
|
|
12
|
-
const { t: i } = ke(), d =
|
|
13
|
+
const { t: i } = ke(), d = y({
|
|
13
14
|
tenant: $e().user.tenant,
|
|
14
15
|
resourceId: ""
|
|
15
16
|
}), D = M([]), N = M([]);
|
|
16
|
-
let
|
|
17
|
+
let v = y({
|
|
17
18
|
moduleId: "",
|
|
18
19
|
parentId: "",
|
|
19
20
|
resourceType: "",
|
|
@@ -23,7 +24,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
23
24
|
icon: "",
|
|
24
25
|
operCodes: [],
|
|
25
26
|
target: ""
|
|
26
|
-
}), k =
|
|
27
|
+
}), k = y([
|
|
27
28
|
{
|
|
28
29
|
label: i("sysMenu.name"),
|
|
29
30
|
width: "200",
|
|
@@ -76,10 +77,10 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
76
77
|
isColumn: !0
|
|
77
78
|
}
|
|
78
79
|
]);
|
|
79
|
-
const f =
|
|
80
|
+
const f = y({
|
|
80
81
|
visible: !1,
|
|
81
82
|
title: ""
|
|
82
|
-
}),
|
|
83
|
+
}), w = M(!1), P = y({
|
|
83
84
|
list: Ie,
|
|
84
85
|
del: Ee,
|
|
85
86
|
dels: Te,
|
|
@@ -91,7 +92,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
91
92
|
selectionRows: K,
|
|
92
93
|
multipleTableRef: z,
|
|
93
94
|
queryFormRef: V,
|
|
94
|
-
handleQuery:
|
|
95
|
+
handleQuery: _,
|
|
95
96
|
deleteRecord: Q,
|
|
96
97
|
deleteRecords: Y,
|
|
97
98
|
handleMoveTop: Z,
|
|
@@ -99,10 +100,10 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
99
100
|
handleMoveDown: O
|
|
100
101
|
// 下移
|
|
101
102
|
} = De(i, P, d), {
|
|
102
|
-
parIndex:
|
|
103
|
-
tableArray:
|
|
104
|
-
getLocalStorageContent:
|
|
105
|
-
fixedChange:
|
|
103
|
+
parIndex: W,
|
|
104
|
+
tableArray: X,
|
|
105
|
+
getLocalStorageContent: G,
|
|
106
|
+
fixedChange: J,
|
|
106
107
|
isShowChange: ee
|
|
107
108
|
} = Ne(k, "/system/menu");
|
|
108
109
|
function oe() {
|
|
@@ -119,7 +120,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
119
120
|
K.value = e;
|
|
120
121
|
}
|
|
121
122
|
function ne() {
|
|
122
|
-
V.value.resetFields(), d.hasHidden = !1,
|
|
123
|
+
V.value.resetFields(), d.hasHidden = !1, _();
|
|
123
124
|
}
|
|
124
125
|
function ae() {
|
|
125
126
|
Fe().then((e) => {
|
|
@@ -142,27 +143,35 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
142
143
|
n.status === 200 && (U({
|
|
143
144
|
message: n.data,
|
|
144
145
|
type: "success"
|
|
145
|
-
}),
|
|
146
|
+
}), w.value = !1, _());
|
|
146
147
|
});
|
|
147
148
|
}
|
|
148
149
|
function re() {
|
|
149
|
-
|
|
150
|
+
w.value = !1;
|
|
150
151
|
}
|
|
151
152
|
function q(e) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
v = y({
|
|
154
|
+
moduleId: "",
|
|
155
|
+
parentId: "",
|
|
156
|
+
resourceType: "",
|
|
157
|
+
resourceCode: "",
|
|
158
|
+
resourceName: "",
|
|
159
|
+
url: "",
|
|
160
|
+
icon: "",
|
|
161
|
+
operCodes: [],
|
|
162
|
+
target: ""
|
|
163
|
+
}), f.title = i("common.add"), e && (v.parentId = e.resourceId, v.moduleId = e.moduleId), f.visible = !0;
|
|
155
164
|
}
|
|
156
165
|
function de(e) {
|
|
157
166
|
f.title = i("common.edit"), Be(e.resourceId).then(({ data: n }) => {
|
|
158
|
-
|
|
167
|
+
v = { ...n }, f.visible = !0;
|
|
159
168
|
});
|
|
160
169
|
}
|
|
161
170
|
function ue(e) {
|
|
162
171
|
f.visible = e;
|
|
163
172
|
}
|
|
164
173
|
function ie(e) {
|
|
165
|
-
e &&
|
|
174
|
+
e && _();
|
|
166
175
|
}
|
|
167
176
|
function F(e) {
|
|
168
177
|
console.log(e);
|
|
@@ -170,15 +179,15 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
170
179
|
req: {},
|
|
171
180
|
resourceId: e ? d.resourceId = e : d.resourceId = void 0
|
|
172
181
|
};
|
|
173
|
-
n.req = d, Le(n).then(({ data:
|
|
174
|
-
const $ = new Blob([
|
|
182
|
+
n.req = d, Le(n).then(({ data: C }) => {
|
|
183
|
+
const $ = new Blob([C], {
|
|
175
184
|
type: "application/octet-stream"
|
|
176
185
|
});
|
|
177
186
|
A.saveAs($, i("route.sysMenu") + ".xlsx");
|
|
178
187
|
});
|
|
179
188
|
}
|
|
180
|
-
return
|
|
181
|
-
const
|
|
189
|
+
return G(), k = X.value, oe(), _(), (e, n) => {
|
|
190
|
+
const C = Ue, $ = je, I = Ae, me = Pe, b = xe, ce = He, S = Je, pe = Ke, fe = eo, _e = ze, B = Qe, be = R("Bottom"), T = Ye, ye = R("Top"), he = R("arrow-down"), L = We, ve = Xe, we = Ge, Ce = Oe, ge = Ze, c = to("hasPerm");
|
|
182
191
|
return a(), h("div", uo, [
|
|
183
192
|
t(ce, {
|
|
184
193
|
ref_key: "queryFormRef",
|
|
@@ -198,7 +207,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
198
207
|
placeholder: e.$t("sysMenu.moduleRequired")
|
|
199
208
|
}, {
|
|
200
209
|
default: o(() => [
|
|
201
|
-
(a(!0), h(lo, null, no(D.value, (l) => (a(), m(
|
|
210
|
+
(a(!0), h(lo, null, no(D.value, (l) => (a(), m(C, {
|
|
202
211
|
key: l.moduleId,
|
|
203
212
|
label: l.moduleName,
|
|
204
213
|
value: l.moduleId
|
|
@@ -218,7 +227,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
218
227
|
modelValue: d.likeResourceName,
|
|
219
228
|
"onUpdate:modelValue": n[1] || (n[1] = (l) => d.likeResourceName = l),
|
|
220
229
|
placeholder: e.$t("sysMenu.nameRequired"),
|
|
221
|
-
onKeyup: ao(s(
|
|
230
|
+
onKeyup: ao(s(_), ["enter"])
|
|
222
231
|
}, null, 8, ["modelValue", "placeholder", "onKeyup"])
|
|
223
232
|
]),
|
|
224
233
|
_: 1
|
|
@@ -235,11 +244,11 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
235
244
|
onChange: te
|
|
236
245
|
}, {
|
|
237
246
|
default: o(() => [
|
|
238
|
-
t(
|
|
247
|
+
t(C, {
|
|
239
248
|
label: e.$t("common.show"),
|
|
240
249
|
value: !1
|
|
241
250
|
}, null, 8, ["label"]),
|
|
242
|
-
t(
|
|
251
|
+
t(C, {
|
|
243
252
|
label: e.$t("common.hide"),
|
|
244
253
|
value: !0
|
|
245
254
|
}, null, 8, ["label"])
|
|
@@ -251,16 +260,16 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
251
260
|
}, 8, ["label"]),
|
|
252
261
|
t(I, { class: "search-container" }, {
|
|
253
262
|
default: o(() => [
|
|
254
|
-
t(
|
|
263
|
+
t(b, {
|
|
255
264
|
type: "primary",
|
|
256
|
-
onClick: s(
|
|
265
|
+
onClick: s(_)
|
|
257
266
|
}, {
|
|
258
267
|
default: o(() => [
|
|
259
268
|
u(r(e.$t("common.search")), 1)
|
|
260
269
|
]),
|
|
261
270
|
_: 1
|
|
262
271
|
}, 8, ["onClick"]),
|
|
263
|
-
t(
|
|
272
|
+
t(b, { onClick: ne }, {
|
|
264
273
|
default: o(() => [
|
|
265
274
|
u(r(e.$t("common.reset")), 1)
|
|
266
275
|
]),
|
|
@@ -277,7 +286,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
277
286
|
default: o(() => [
|
|
278
287
|
t(S, { span: 19 }, {
|
|
279
288
|
default: o(() => [
|
|
280
|
-
p((a(), m(
|
|
289
|
+
p((a(), m(b, {
|
|
281
290
|
type: "primary",
|
|
282
291
|
onClick: q
|
|
283
292
|
}, {
|
|
@@ -288,7 +297,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
288
297
|
})), [
|
|
289
298
|
[c, ["rbac:resource:add"]]
|
|
290
299
|
]),
|
|
291
|
-
p((a(), m(
|
|
300
|
+
p((a(), m(b, {
|
|
292
301
|
type: "primary",
|
|
293
302
|
onClick: n[3] || (n[3] = (l) => s(Y)("resourceId"))
|
|
294
303
|
}, {
|
|
@@ -307,11 +316,11 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
307
316
|
class: "container-float"
|
|
308
317
|
}, {
|
|
309
318
|
default: o(() => [
|
|
310
|
-
p((a(), m(
|
|
319
|
+
p((a(), m(b, {
|
|
311
320
|
class: "dropdown-left",
|
|
312
321
|
plain: "",
|
|
313
322
|
type: "primary",
|
|
314
|
-
onClick: n[4] || (n[4] = (l) =>
|
|
323
|
+
onClick: n[4] || (n[4] = (l) => w.value = !0)
|
|
315
324
|
}, {
|
|
316
325
|
default: o(() => [
|
|
317
326
|
u(r(e.$t("common.import")), 1)
|
|
@@ -320,11 +329,11 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
320
329
|
})), [
|
|
321
330
|
[c, ["rbac:resource:import"]]
|
|
322
331
|
]),
|
|
323
|
-
p((a(), m(
|
|
332
|
+
p((a(), m(b, {
|
|
324
333
|
class: "dropdown-left",
|
|
325
334
|
plain: "",
|
|
326
335
|
type: "primary",
|
|
327
|
-
onClick: n[5] || (n[5] = (l) => F(
|
|
336
|
+
onClick: n[5] || (n[5] = (l) => F(""))
|
|
328
337
|
}, {
|
|
329
338
|
default: o(() => [
|
|
330
339
|
u(r(e.$t("common.export")), 1)
|
|
@@ -335,8 +344,8 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
335
344
|
]),
|
|
336
345
|
t(pe, {
|
|
337
346
|
"table-label": s(k),
|
|
338
|
-
"par-index": s(
|
|
339
|
-
onFixedChange: s(
|
|
347
|
+
"par-index": s(W),
|
|
348
|
+
onFixedChange: s(J),
|
|
340
349
|
onIsShowChange: s(ee)
|
|
341
350
|
}, null, 8, ["table-label", "par-index", "onFixedChange", "onIsShowChange"])
|
|
342
351
|
]),
|
|
@@ -386,7 +395,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
386
395
|
sort: o((l) => [
|
|
387
396
|
t(T, {
|
|
388
397
|
size: "16",
|
|
389
|
-
onClick: (
|
|
398
|
+
onClick: (g) => s(O)(l.data.row.resourceId)
|
|
390
399
|
}, {
|
|
391
400
|
default: o(() => [
|
|
392
401
|
t(be)
|
|
@@ -395,7 +404,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
395
404
|
}, 1032, ["onClick"]),
|
|
396
405
|
t(T, {
|
|
397
406
|
size: "16",
|
|
398
|
-
onClick: (
|
|
407
|
+
onClick: (g) => s(Z)(l.data.row.resourceId)
|
|
399
408
|
}, {
|
|
400
409
|
default: o(() => [
|
|
401
410
|
t(ye)
|
|
@@ -406,7 +415,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
406
415
|
operation: o((l) => [
|
|
407
416
|
p((a(), h("span", {
|
|
408
417
|
class: "el-button-color",
|
|
409
|
-
onClick: (
|
|
418
|
+
onClick: (g) => de(l.data.row)
|
|
410
419
|
}, [
|
|
411
420
|
u(r(e.$t("common.edit")), 1)
|
|
412
421
|
], 8, co)), [
|
|
@@ -414,7 +423,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
414
423
|
]),
|
|
415
424
|
p((a(), h("span", {
|
|
416
425
|
class: "el-button-color dropdown-left",
|
|
417
|
-
onClick: (
|
|
426
|
+
onClick: (g) => s(Q)(l.data.row.resourceId)
|
|
418
427
|
}, [
|
|
419
428
|
u(r(e.$t("common.delete")), 1)
|
|
420
429
|
], 8, po)), [
|
|
@@ -426,7 +435,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
426
435
|
default: o(() => [
|
|
427
436
|
p((a(), h("div", null, [
|
|
428
437
|
t(L, {
|
|
429
|
-
onClick: (
|
|
438
|
+
onClick: (g) => q(l.data.row)
|
|
430
439
|
}, {
|
|
431
440
|
default: o(() => [
|
|
432
441
|
u(r(e.$t("common.add")), 1)
|
|
@@ -438,7 +447,7 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
438
447
|
]),
|
|
439
448
|
p((a(), h("div", null, [
|
|
440
449
|
t(L, {
|
|
441
|
-
onClick: (
|
|
450
|
+
onClick: (g) => F(l.data.row.resourceId)
|
|
442
451
|
}, {
|
|
443
452
|
default: o(() => [
|
|
444
453
|
u(r(e.$t("common.export")), 1)
|
|
@@ -471,13 +480,13 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
471
480
|
f.visible ? (a(), m(ro, {
|
|
472
481
|
key: 0,
|
|
473
482
|
dialog: f,
|
|
474
|
-
"form-data": s(
|
|
483
|
+
"form-data": s(v),
|
|
475
484
|
onDialogEvent: ue,
|
|
476
485
|
onRefresh: ie
|
|
477
486
|
}, null, 8, ["dialog", "form-data"])) : j("", !0),
|
|
478
|
-
|
|
487
|
+
w.value ? (a(), m(ge, {
|
|
479
488
|
key: 1,
|
|
480
|
-
"upload-visible":
|
|
489
|
+
"upload-visible": w.value,
|
|
481
490
|
"template-title": e.$t("sysMenu.templateDownload"),
|
|
482
491
|
onTemplateDown: ae,
|
|
483
492
|
onImportEvents: se,
|
|
@@ -488,5 +497,5 @@ const uo = { class: "app-container" }, io = /* @__PURE__ */ E("div", { class: "c
|
|
|
488
497
|
}
|
|
489
498
|
});
|
|
490
499
|
export {
|
|
491
|
-
|
|
500
|
+
Io as default
|
|
492
501
|
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { aj as ne, a0 as de,
|
|
2
|
-
import {
|
|
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
|
|
5
|
-
import { g as we, d as $e, b as Me, a as Ee, c as Ie } from "./index-
|
|
6
|
-
import { _ as Ne } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "clear" }, null, -1), Se = ["onClick"],
|
|
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(
|
|
10
|
-
const { t: s } = ne(), d =
|
|
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
|
|
16
|
+
let v = m({
|
|
16
17
|
moduleId: "",
|
|
17
18
|
moduleCode: "",
|
|
18
19
|
moduleName: "",
|
|
19
20
|
description: ""
|
|
20
|
-
}),
|
|
21
|
+
}), p = m([
|
|
21
22
|
{
|
|
22
23
|
label: s("sysModule.code"),
|
|
23
24
|
width: "200",
|
|
@@ -52,50 +53,53 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
|
|
|
52
53
|
isColumn: !0
|
|
53
54
|
}
|
|
54
55
|
]);
|
|
55
|
-
const i =
|
|
56
|
+
const i = m({
|
|
56
57
|
visible: !1,
|
|
57
58
|
title: ""
|
|
58
|
-
}),
|
|
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:
|
|
66
|
-
total:
|
|
66
|
+
tableData: V,
|
|
67
|
+
total: _,
|
|
67
68
|
listLoading: P,
|
|
68
69
|
selectionRows: F,
|
|
69
70
|
multipleTableRef: q,
|
|
70
71
|
queryFormRef: M,
|
|
71
72
|
getList: h,
|
|
72
|
-
handleQuery:
|
|
73
|
+
handleQuery: f,
|
|
73
74
|
deleteRecord: B,
|
|
74
75
|
deleteRecords: U,
|
|
75
76
|
handleMoveTop: z,
|
|
76
77
|
// 上移
|
|
77
78
|
handleMoveDown: K
|
|
78
79
|
// 下移
|
|
79
|
-
} = se(s,
|
|
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(
|
|
86
|
-
function
|
|
86
|
+
} = ie(p, "/system/module");
|
|
87
|
+
function W(e) {
|
|
87
88
|
F.value = e;
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
M.value.resetFields(),
|
|
90
|
+
function X() {
|
|
91
|
+
M.value.resetFields(), f();
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
101
|
function G(e) {
|
|
98
|
-
i.title = s("common.edit"), i.visible = !0,
|
|
102
|
+
i.title = s("common.edit"), i.visible = !0, v = { ...e };
|
|
99
103
|
}
|
|
100
104
|
function H(e) {
|
|
101
105
|
i.visible = e;
|
|
@@ -103,8 +107,8 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
|
|
|
103
107
|
function J(e) {
|
|
104
108
|
e && h();
|
|
105
109
|
}
|
|
106
|
-
return x(),
|
|
107
|
-
const E = re, k = me,
|
|
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");
|
|
108
112
|
return r(), $("div", Re, [
|
|
109
113
|
l(O, {
|
|
110
114
|
ref_key: "queryFormRef",
|
|
@@ -122,7 +126,7 @@ const Re = { class: "app-container" }, Te = /* @__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: T(o(
|
|
129
|
+
onKeyup: T(o(f), ["enter"])
|
|
126
130
|
}, null, 8, ["modelValue", "placeholder", "onKeyup"])
|
|
127
131
|
]),
|
|
128
132
|
_: 1
|
|
@@ -136,25 +140,25 @@ const Re = { class: "app-container" }, Te = /* @__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: T(o(
|
|
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(
|
|
150
|
+
l(b, {
|
|
147
151
|
type: "primary",
|
|
148
|
-
onClick: o(
|
|
152
|
+
onClick: o(f)
|
|
149
153
|
}, {
|
|
150
154
|
default: a(() => [
|
|
151
|
-
|
|
155
|
+
u(c(e.$t("common.search")), 1)
|
|
152
156
|
]),
|
|
153
157
|
_: 1
|
|
154
158
|
}, 8, ["onClick"]),
|
|
155
|
-
l(
|
|
159
|
+
l(b, { onClick: X }, {
|
|
156
160
|
default: a(() => [
|
|
157
|
-
|
|
161
|
+
u(c(e.$t("common.reset")), 1)
|
|
158
162
|
]),
|
|
159
163
|
_: 1
|
|
160
164
|
})
|
|
@@ -169,27 +173,27 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
|
|
|
169
173
|
default: a(() => [
|
|
170
174
|
l(I, { span: 19 }, {
|
|
171
175
|
default: a(() => [
|
|
172
|
-
|
|
176
|
+
g((r(), y(b, {
|
|
173
177
|
type: "primary",
|
|
174
|
-
onClick:
|
|
178
|
+
onClick: Y
|
|
175
179
|
}, {
|
|
176
180
|
default: a(() => [
|
|
177
|
-
|
|
181
|
+
u(c(e.$t("common.add")), 1)
|
|
178
182
|
]),
|
|
179
183
|
_: 1
|
|
180
184
|
})), [
|
|
181
|
-
[
|
|
185
|
+
[C, ["rbac:module:add"]]
|
|
182
186
|
]),
|
|
183
|
-
|
|
187
|
+
g((r(), y(b, {
|
|
184
188
|
type: "primary",
|
|
185
189
|
onClick: n[2] || (n[2] = (t) => o(U)("moduleId"))
|
|
186
190
|
}, {
|
|
187
191
|
default: a(() => [
|
|
188
|
-
|
|
192
|
+
u(c(e.$t("common.batchDelete")), 1)
|
|
189
193
|
]),
|
|
190
194
|
_: 1
|
|
191
195
|
})), [
|
|
192
|
-
[
|
|
196
|
+
[C, ["rbac:module:delete"]]
|
|
193
197
|
])
|
|
194
198
|
]),
|
|
195
199
|
_: 1
|
|
@@ -199,8 +203,8 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
|
|
|
199
203
|
class: "container-float"
|
|
200
204
|
}, {
|
|
201
205
|
default: a(() => [
|
|
202
|
-
l(
|
|
203
|
-
"table-label": o(
|
|
206
|
+
l(Z, {
|
|
207
|
+
"table-label": o(p),
|
|
204
208
|
"par-index": o(L),
|
|
205
209
|
onFixedChange: o(A),
|
|
206
210
|
onIsShowChange: o(Q)
|
|
@@ -216,10 +220,10 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
|
|
|
216
220
|
ref_key: "multipleTableRef",
|
|
217
221
|
ref: q,
|
|
218
222
|
"row-keys": "moduleId",
|
|
219
|
-
"table-data": o(
|
|
223
|
+
"table-data": o(V),
|
|
220
224
|
"list-loading": o(P),
|
|
221
|
-
"table-label": o(
|
|
222
|
-
onTableSelected:
|
|
225
|
+
"table-label": o(p),
|
|
226
|
+
onTableSelected: W
|
|
223
227
|
}, {
|
|
224
228
|
sort: a((t) => [
|
|
225
229
|
l(N, {
|
|
@@ -242,39 +246,39 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
|
|
|
242
246
|
}, 1032, ["onClick"])
|
|
243
247
|
]),
|
|
244
248
|
operation: a((t) => [
|
|
245
|
-
|
|
249
|
+
g((r(), $("span", {
|
|
246
250
|
class: "el-button-color",
|
|
247
251
|
onClick: (w) => G(t.data.row)
|
|
248
252
|
}, [
|
|
249
|
-
|
|
253
|
+
u(c(e.$t("common.edit")), 1)
|
|
250
254
|
], 8, Se)), [
|
|
251
|
-
[
|
|
255
|
+
[C, ["rbac:module:update"]]
|
|
252
256
|
]),
|
|
253
|
-
|
|
257
|
+
g((r(), $("span", {
|
|
254
258
|
class: "el-button-color dropdown-left",
|
|
255
259
|
onClick: (w) => o(B)(t.data.row.moduleId)
|
|
256
260
|
}, [
|
|
257
|
-
|
|
258
|
-
], 8,
|
|
259
|
-
[
|
|
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(
|
|
268
|
+
o(_) > 0 ? (r(), y(ae, {
|
|
265
269
|
key: 0,
|
|
266
|
-
total: o(
|
|
267
|
-
"onUpdate:total": n[3] || (n[3] = (t) => he(
|
|
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(),
|
|
278
|
+
i.visible ? (r(), y(Ne, {
|
|
275
279
|
key: 1,
|
|
276
280
|
dialog: i,
|
|
277
|
-
"form-data": o(
|
|
281
|
+
"form-data": o(v),
|
|
278
282
|
onDialogEvent: H,
|
|
279
283
|
onRefresh: J
|
|
280
284
|
}, null, 8, ["dialog", "form-data"])) : S("", !0)
|
|
@@ -283,5 +287,5 @@ const Re = { class: "app-container" }, Te = /* @__PURE__ */ ke("div", { class: "
|
|
|
283
287
|
}
|
|
284
288
|
});
|
|
285
289
|
export {
|
|
286
|
-
|
|
290
|
+
Le as default
|
|
287
291
|
};
|