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.
- package/dist/{401-Do8xnEsN.mjs → 401-BkJPlIzp.mjs} +2 -2
- package/dist/{404-D1L3bBKj.mjs → 404-BBmYfUdE.mjs} +1 -1
- package/dist/{BarChart-CfcVJz3-.mjs → BarChart-B6A8iUXj.mjs} +2 -2
- package/dist/{FileSaver.min-C3PXR_ER.mjs → FileSaver.min-CgOjN3Qg.mjs} +1 -1
- package/dist/{PieChart-6YLME4bj.mjs → PieChart-DX64TYZz.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CzuULwXY.mjs → PieChart.vue_vue_type_script_setup_true_lang-DtGRvxtk.mjs} +2 -2
- package/dist/{RadarChart-DkmgXM6y.mjs → RadarChart-bUPojoRx.mjs} +1 -1
- 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
- package/dist/{edit-YJP7pN6W.mjs → edit-BSOs3vN5.mjs} +1 -1
- package/dist/{edit-DjN392jC.mjs → edit-B_7Qd0xx.mjs} +1 -1
- package/dist/{edit-DGe7AWsr.mjs → edit-Cm32AuKE.mjs} +37 -37
- package/dist/{edit-BUeKYrEZ.mjs → edit-DI9xVL3f.mjs} +1 -1
- package/dist/{edit-CkpeOqrr.mjs → edit-HfjGZfbA.mjs} +1 -1
- package/dist/edit-K-SeNsHi.mjs +4 -0
- package/dist/{edit-CJuMrQ46.mjs → edit-SaGTHCRi.mjs} +52 -51
- package/dist/edit-syovGHsx.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-RBjkUr1y.mjs → edit.vue_vue_type_script_setup_true_lang-BY6U7HyH.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DEydJiSf.mjs → edit.vue_vue_type_script_setup_true_lang-BZIGUF15.mjs} +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
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BWtQvmLi.mjs → edit.vue_vue_type_script_setup_true_lang-CvQyDvvs.mjs} +2 -2
- 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
- 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
- package/dist/{el-card-C861yBJo.mjs → el-card-DO00Wvz9.mjs} +1 -1
- package/dist/{el-col-BBiMr5pm.mjs → el-col-DFdwiQq6.mjs} +1 -1
- package/dist/{el-date-picker-N5aiMKSy.mjs → el-date-picker-BiAhUGOG.mjs} +143 -143
- package/dist/{el-divider-QMj1kMtJ.mjs → el-divider-c2CLca4o.mjs} +1 -1
- package/dist/{el-dropdown-item-4ws609Gw.mjs → el-dropdown-item-9E9GqcUL.mjs} +22 -22
- package/dist/{el-tree-select-DdZxfrNV.mjs → el-tree-select-CC0XwXVL.mjs} +25 -25
- package/dist/{index-C__OmU1O.mjs → index-B2TvQOt9.mjs} +4 -4
- package/dist/{index-DnSJxj9r.mjs → index-BBMnmuNy.mjs} +1105 -1096
- package/dist/{index-Dn-psVpr.mjs → index-BLIll5te.mjs} +6 -6
- package/dist/{index-CrZPfuW6.mjs → index-Bozt9oGT.mjs} +73 -71
- package/dist/{index-H7-W4HC2.mjs → index-ByZF--LW.mjs} +1 -1
- package/dist/{index-BzT4__Is.mjs → index-CMrLCILj.mjs} +105 -104
- package/dist/{index-B7u0TetV.mjs → index-CRuu1sq3.mjs} +63 -60
- package/dist/{index-DFVq4R0u.mjs → index-CgTJTyzP.mjs} +1 -1
- package/dist/{index-hMoSvG6q.mjs → index-CiTJNDrg.mjs} +76 -73
- package/dist/{index-DD1K2w1b.mjs → index-CovctCXh.mjs} +80 -71
- package/dist/{index-NVKBuLg_.mjs → index-DDZExl-h.mjs} +77 -73
- package/dist/{index-BZBpY0uA.mjs → index-DQe98_8-.mjs} +65 -62
- package/dist/{index-Cmlc_Bb4.mjs → index-DSMgAe9r.mjs} +1 -1
- package/dist/{index-DtR1eBZg.mjs → index-DfG2Ushb.mjs} +1 -1
- package/dist/{index-CkXpK-zH.mjs → index-Dy5Mc1xa.mjs} +6911 -7001
- package/dist/{index-AiS44_Xc.mjs → index-Dzz_DJ2A.mjs} +25 -24
- package/dist/{index-BX1Jx_xA.mjs → index-QGbAm-j4.mjs} +1 -1
- package/dist/{index-9TwUBNc5.mjs → index-UYeY7Byx.mjs} +1 -1
- package/dist/{index-DOPTH9F2.mjs → index-WXrB1MMY.mjs} +112 -110
- package/dist/{index-Be59bIqU.mjs → index-qw7NC8eE.mjs} +67 -65
- package/dist/index.mjs +16 -16
- package/dist/{index.vue_vue_type_script_setup_true_lang-up5cpReQ.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-o8CKMR0j.mjs → picture-B-Z93WvM.mjs} +2 -2
- package/dist/{position-BUALjtY9.mjs → position-vpBZqxst.mjs} +1 -1
- package/dist/{profile-BLq1IvXt.mjs → profile-yHqe9ckz.mjs} +6 -6
- package/dist/runAs-30DZ0fw7.mjs +4 -0
- package/dist/runAs.vue_vue_type_script_setup_true_lang-Df5JuFXX.mjs +114 -0
- package/dist/style.css +1 -1
- package/dist/{types-JT7Xyhpz.mjs → types-B-kpFO60.mjs} +2 -2
- package/dist/{updatePwd-DnT8nEtM.mjs → updatePwd-B0jx4S2G.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Dks8j8my.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DqPa62Sx.mjs} +3 -3
- package/dts/src/components/AppLink/index.vue.d.ts +19 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
- package/dts/src/components/Dictionary/index.vue.d.ts +1 -1
- package/dts/src/components/IconSelect/requireIcons.d.ts +1 -1
- 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/Pagination/index.vue.d.ts +3 -3
- 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/enums/DeviceEnum.d.ts +13 -0
- package/dts/src/enums/LayoutEnum.d.ts +17 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +4 -1
- package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
- package/dts/src/enums/ThemeEnum.d.ts +17 -0
- package/dts/src/hooks/useList.d.ts +1 -0
- package/dts/src/index.d.ts +10 -3
- package/dts/src/lang/index.d.ts +91 -1
- package/dts/src/lang/package/en.d.ts +42 -0
- package/dts/src/lang/package/zh-cn.d.ts +48 -0
- package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
- package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
- package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +23 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
- package/dts/src/stores/index.d.ts +5 -0
- 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/color.d.ts +69 -0
- package/dts/src/utils/common.d.ts +1 -1
- package/dts/src/utils/index.d.ts +9 -0
- package/dts/src/utils/nprogress.d.ts +4 -0
- package/dts/src/views/my/runAs.vue.d.ts +6 -0
- 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 +2 -4
- package/dist/edit-lwVBGzDE.mjs +0 -4
- package/dist/edit-xlxZjC4R.mjs +0 -4
|
@@ -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
|
|
7
|
-
const
|
|
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,61 +53,64 @@ const Ne = { class: "app-container" }, Re = /* @__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
|
-
multipleTableRef:
|
|
70
|
+
multipleTableRef: q,
|
|
70
71
|
queryFormRef: M,
|
|
71
72
|
getList: h,
|
|
72
|
-
handleQuery:
|
|
73
|
-
deleteRecord:
|
|
74
|
-
deleteRecords:
|
|
73
|
+
handleQuery: f,
|
|
74
|
+
deleteRecord: B,
|
|
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
|
+
} = ie(p, "/system/module");
|
|
86
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
|
-
function
|
|
98
|
-
i.title = s("common.edit"), i.visible = !0,
|
|
101
|
+
function G(e) {
|
|
102
|
+
i.title = s("common.edit"), i.visible = !0, v = { ...e };
|
|
99
103
|
}
|
|
100
|
-
function
|
|
104
|
+
function H(e) {
|
|
101
105
|
i.visible = e;
|
|
102
106
|
}
|
|
103
|
-
function
|
|
107
|
+
function J(e) {
|
|
104
108
|
e && h();
|
|
105
109
|
}
|
|
106
|
-
return x(),
|
|
107
|
-
const E = re, k = me,
|
|
108
|
-
return r(), $("div",
|
|
109
|
-
l(
|
|
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:
|
|
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:
|
|
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
|
})
|
|
@@ -164,32 +168,32 @@ const Ne = { class: "app-container" }, Re = /* @__PURE__ */ ke("div", { class: "
|
|
|
164
168
|
]),
|
|
165
169
|
_: 1
|
|
166
170
|
}, 8, ["model"]),
|
|
167
|
-
|
|
171
|
+
Te,
|
|
168
172
|
l(ee, { justify: "space-between" }, {
|
|
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
|
-
onClick: n[2] || (n[2] = (t) => o(
|
|
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
|
|
@@ -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:
|
|
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(
|
|
225
|
+
"table-label": o(p),
|
|
222
226
|
onTableSelected: W
|
|
223
227
|
}, {
|
|
224
228
|
sort: a((t) => [
|
|
225
|
-
l(
|
|
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(
|
|
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
|
-
|
|
249
|
+
g((r(), $("span", {
|
|
246
250
|
class: "el-button-color",
|
|
247
|
-
onClick: (w) =>
|
|
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
|
-
onClick: (w) => o(
|
|
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(
|
|
278
|
-
onDialogEvent:
|
|
279
|
-
onRefresh:
|
|
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
|
-
|
|
290
|
+
Le as default
|
|
287
291
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
|
5
|
-
import ge from "./edit-
|
|
6
|
-
const $e = { class: "app-container" }, Ee = { class: "search-container" }, Ie = /* @__PURE__ */ D("div", { class: "clear" }, null, -1), Te = ["onClick"], De = ["onClick"],
|
|
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 } =
|
|
10
|
-
tenant:
|
|
10
|
+
const { t: n } = te(), i = m({
|
|
11
|
+
tenant: ae().user.tenant,
|
|
11
12
|
roleType: "role"
|
|
12
13
|
});
|
|
13
|
-
let _ =
|
|
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
|
|
48
|
+
const s = m({
|
|
48
49
|
visible: !1,
|
|
49
50
|
title: ""
|
|
50
51
|
});
|
|
51
|
-
let
|
|
52
|
+
let C = m({
|
|
52
53
|
roleCode: "",
|
|
53
54
|
roleName: "",
|
|
54
55
|
roleDuty: []
|
|
55
56
|
});
|
|
56
|
-
const N =
|
|
57
|
-
list:
|
|
58
|
-
del:
|
|
57
|
+
const N = m({
|
|
58
|
+
list: ne,
|
|
59
|
+
del: re,
|
|
59
60
|
dels: se,
|
|
60
|
-
up:
|
|
61
|
-
down:
|
|
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:
|
|
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
|
-
} =
|
|
76
|
-
parIndex:
|
|
77
|
-
tableArray:
|
|
78
|
-
getLocalStorageContent:
|
|
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
|
-
|
|
84
|
+
k.value.resetFields(), d();
|
|
84
85
|
}
|
|
85
86
|
function Q() {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
92
|
-
|
|
94
|
+
s.title = n("common.edit"), ue(o.roleId).then(({ data: r }) => {
|
|
95
|
+
C = { ...r }, s.visible = !0;
|
|
93
96
|
});
|
|
94
97
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
98
|
+
function X(o) {
|
|
99
|
+
s.visible = o;
|
|
97
100
|
}
|
|
98
|
-
function
|
|
101
|
+
function Y(o) {
|
|
99
102
|
o && d();
|
|
100
103
|
}
|
|
101
|
-
function
|
|
104
|
+
function G(o) {
|
|
102
105
|
F.value = o;
|
|
103
106
|
}
|
|
104
|
-
return
|
|
105
|
-
const g =
|
|
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(
|
|
111
|
+
l(H, {
|
|
109
112
|
ref_key: "queryFormRef",
|
|
110
|
-
ref:
|
|
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":
|
|
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":
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
171
|
+
l(O, { justify: "space-between" }, {
|
|
169
172
|
default: t(() => [
|
|
170
173
|
l($, { span: 19 }, {
|
|
171
174
|
default: t(() => [
|
|
172
|
-
|
|
175
|
+
y((c(), w(b, {
|
|
173
176
|
type: "primary",
|
|
174
177
|
onClick: Q
|
|
175
178
|
}, {
|
|
176
179
|
default: t(() => [
|
|
177
|
-
|
|
180
|
+
u(p(o.$t("common.add")), 1)
|
|
178
181
|
]),
|
|
179
182
|
_: 1
|
|
180
183
|
})), [
|
|
181
|
-
[
|
|
184
|
+
[f, ["rbac:role:add"]]
|
|
182
185
|
]),
|
|
183
|
-
|
|
186
|
+
y((c(), w(b, {
|
|
184
187
|
type: "primary",
|
|
185
|
-
onClick:
|
|
188
|
+
onClick: r[2] || (r[2] = (a) => e(K)("roleId"))
|
|
186
189
|
}, {
|
|
187
190
|
default: t(() => [
|
|
188
|
-
|
|
191
|
+
u(p(o.$t("common.batchDelete")), 1)
|
|
189
192
|
]),
|
|
190
193
|
_: 1
|
|
191
194
|
})), [
|
|
192
|
-
[
|
|
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(
|
|
205
|
+
l(J, {
|
|
203
206
|
"table-label": e(_),
|
|
204
|
-
"par-index": e(
|
|
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:
|
|
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
|
-
|
|
248
|
+
y((c(), R("span", {
|
|
246
249
|
class: "el-button-color",
|
|
247
250
|
onClick: (v) => W(a.data.row)
|
|
248
251
|
}, [
|
|
249
|
-
|
|
252
|
+
u(p(o.$t("common.edit")), 1)
|
|
250
253
|
], 8, Te)), [
|
|
251
|
-
[
|
|
254
|
+
[f, ["rbac:role:update"]]
|
|
252
255
|
]),
|
|
253
|
-
|
|
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
|
-
|
|
260
|
+
u(p(o.$t("common.delete")), 1)
|
|
258
261
|
], 8, De)), [
|
|
259
|
-
[
|
|
262
|
+
[f, ["rbac:role:delete"]]
|
|
260
263
|
])
|
|
261
264
|
]),
|
|
262
265
|
_: 1
|
|
263
266
|
}, 8, ["list-loading", "table-data", "table-label"]),
|
|
264
|
-
e(
|
|
267
|
+
e(s).visible ? (c(), w(ge, {
|
|
265
268
|
key: 0,
|
|
266
|
-
dialog: e(
|
|
267
|
-
"form-data": e(
|
|
268
|
-
onDialogEvent:
|
|
269
|
-
onRefresh:
|
|
270
|
-
}, null, 8, ["dialog", "form-data"])) :
|
|
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
|
-
|
|
279
|
+
Le as default
|
|
277
280
|
};
|