jmash-core 0.0.40 → 0.0.41
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-CEl3xZ9U.mjs → 401-CJFCHgSZ.mjs} +2 -2
- package/dist/{404-BJI4jQGp.mjs → 404-CIMxkP9D.mjs} +1 -1
- package/dist/{BarChart-DdL2YjH9.mjs → BarChart-DU09mkLm.mjs} +2 -2
- package/dist/{PieChart-DpRLzU_D.mjs → PieChart-CoqFm60I.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-Db-lqTD8.mjs → PieChart.vue_vue_type_script_setup_true_lang-sfYOFNKO.mjs} +2 -2
- package/dist/{RadarChart-2a1QGb0r.mjs → RadarChart-0WISsxpt.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-CwF9slnO.mjs → RadarChart.vue_vue_type_script_setup_true_lang-BIOHXswr.mjs} +2 -2
- package/dist/{el-card-FMIPeWk6.mjs → el-card-DTXS4SWb.mjs} +1 -1
- package/dist/{el-col-8K1Xv7aq.mjs → el-col-C1oER81S.mjs} +1 -1
- package/dist/{el-form-item-J_27GFln.mjs → el-form-item-CJcAbcqr.mjs} +76 -76
- package/dist/{index-BB9i38wB.mjs → index-BAk-5oG9.mjs} +1 -1
- package/dist/{index--oHFkGGF.mjs → index-BwIx8FCt.mjs} +32 -32
- package/dist/{index-C_arFWKZ.mjs → index-C195Pa7c.mjs} +9759 -11332
- package/dist/{index-Ca93omwQ.mjs → index-DB4OW-7Q.mjs} +980 -944
- package/dist/{index-BUndPokw.mjs → index-ORr19rEl.mjs} +42 -42
- package/dist/index.mjs +36 -36
- package/dist/index.vue_vue_type_script_setup_true_lang-fPrQh0lj.mjs +720 -0
- package/dist/{picture-BQKPWIIU.mjs → picture-Cpgh-vo-.mjs} +106 -106
- package/dist/{position-DZbY0x3r.mjs → position-M0AZIV5D.mjs} +1 -1
- package/dist/profile-DBegP-cF.mjs +4904 -0
- package/dist/{runAs-DSfasz8M.mjs → runAs-xhA9mf-i.mjs} +1 -1
- package/dist/runAs.vue_vue_type_script_setup_true_lang-DLfQ0lsg.mjs +610 -0
- package/dist/style.css +1 -1
- package/dist/{types-BHZ78WKD.mjs → types-FkPgztcJ.mjs} +4 -3
- package/dist/{updatePwd-D2U2rq9Q.mjs → updatePwd-D1EnTbTY.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-HlhGZun3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DkH3J5K0.mjs} +20 -20
- package/dts/src/api/auth/index.d.ts +27 -2
- package/dts/src/api/auth/types.d.ts +42 -34
- package/dts/src/index.d.ts +2 -3
- package/dts/src/lang/package/zh-cn.d.ts +2 -0
- package/dts/src/utils/request.d.ts +2 -0
- package/package.json +1 -1
- package/dist/edit-BEz2CGVA.mjs +0 -4
- package/dist/edit-BfCUuHU7.mjs +0 -823
- package/dist/edit-BjIGOyRY.mjs +0 -4
- package/dist/edit-ByyeESA7.mjs +0 -4
- package/dist/edit-DCqdRa7R.mjs +0 -4
- package/dist/edit-DaPZ7RSc.mjs +0 -4
- package/dist/edit-Mg7mOWDc.mjs +0 -4
- package/dist/edit-voW3EO87.mjs +0 -459
- package/dist/edit.vue_vue_type_script_setup_true_lang-BCgNC4mY.mjs +0 -136
- package/dist/edit.vue_vue_type_script_setup_true_lang-BMYBrnHy.mjs +0 -280
- package/dist/edit.vue_vue_type_script_setup_true_lang-C-WS99W7.mjs +0 -157
- package/dist/edit.vue_vue_type_script_setup_true_lang-CylQxP9Z.mjs +0 -226
- package/dist/edit.vue_vue_type_script_setup_true_lang-DDCQNqdc.mjs +0 -593
- package/dist/edit.vue_vue_type_script_setup_true_lang-DyO-f1Lc.mjs +0 -216
- package/dist/el-checkbox-group-l0sNRNKZ.mjs +0 -1
- package/dist/el-date-picker-CHigi6WN.mjs +0 -3345
- package/dist/el-divider-Cg4Mgsu-.mjs +0 -45
- package/dist/el-dropdown-item-DHcRJ-Fg.mjs +0 -671
- package/dist/el-tree-select-C4cU2Ot7.mjs +0 -1313
- package/dist/index-9e59vbzb.mjs +0 -949
- package/dist/index-B5IfrzOt.mjs +0 -63
- package/dist/index-BcxeqvFF.mjs +0 -505
- package/dist/index-BoT8a4D9.mjs +0 -480
- package/dist/index-BzsE8aZb.mjs +0 -280
- package/dist/index-CKu3Vm7Y.mjs +0 -246
- package/dist/index-CPi9CcGt.mjs +0 -134
- package/dist/index-CdarTP7Q.mjs +0 -471
- package/dist/index-D3kdKwxs.mjs +0 -292
- package/dist/index-D7uxePGV.mjs +0 -501
- package/dist/index-DSwTLzp1.mjs +0 -74
- package/dist/index-Dd9wDjLG.mjs +0 -280
- package/dist/index-DdnQhmYX.mjs +0 -502
- package/dist/index-DsmvLyNJ.mjs +0 -93
- package/dist/index-VD2Oa87u.mjs +0 -280
- package/dist/index.vue_vue_type_script_setup_true_lang-BUTwLlja.mjs +0 -55
- package/dist/moment-CMYwqyVT.mjs +0 -2579
- package/dist/profile-Blgfj6Pw.mjs +0 -262
- package/dist/runAs.vue_vue_type_script_setup_true_lang-xOMc-WaC.mjs +0 -114
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { $ as U, b0 as Y, X as F, s as Z, as as ee, at as oe, b1 as le, b2 as te, b3 as ae, b4 as re, t as se, al as ne } from "./index-C_arFWKZ.mjs";
|
|
2
|
-
import "./el-checkbox-group-l0sNRNKZ.mjs";
|
|
3
|
-
import { E as de, a as me } from "./el-form-item-J_27GFln.mjs";
|
|
4
|
-
import { defineComponent as ue, ref as m, reactive as j, toRef as ie, openBlock as f, createBlock as E, unref as a, withCtx as n, createElementVNode as pe, createVNode as s, createTextVNode as g, toDisplayString as b, createElementBlock as x, Fragment as A, renderList as B, isRef as ce } from "vue";
|
|
5
|
-
import { useI18n as fe } from "vue-i18n";
|
|
6
|
-
import { p as be } from "./index-DSwTLzp1.mjs";
|
|
7
|
-
import { m as he } from "./index-DsmvLyNJ.mjs";
|
|
8
|
-
import { e as ge, a as _e } from "./index-B5IfrzOt.mjs";
|
|
9
|
-
const ye = { class: "dialog-footer" }, Re = /* @__PURE__ */ ue({
|
|
10
|
-
__name: "edit",
|
|
11
|
-
props: {
|
|
12
|
-
formData: {
|
|
13
|
-
type: Object,
|
|
14
|
-
default: () => {
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
dialog: {
|
|
18
|
-
type: Object,
|
|
19
|
-
default: () => {
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
emits: ["dialogEvent", "refresh"],
|
|
24
|
-
setup(S, { emit: T }) {
|
|
25
|
-
var R;
|
|
26
|
-
const { t: u } = fe(), v = m();
|
|
27
|
-
let l = j({
|
|
28
|
-
tenant: U().user.tenant,
|
|
29
|
-
requestId: Math.random() * 10 + "",
|
|
30
|
-
roleType: "job",
|
|
31
|
-
updateMask: "roleCode,roleName,description",
|
|
32
|
-
roleId: "",
|
|
33
|
-
roleCode: "",
|
|
34
|
-
roleName: "",
|
|
35
|
-
description: "",
|
|
36
|
-
permCodes: []
|
|
37
|
-
});
|
|
38
|
-
const M = j({
|
|
39
|
-
roleCode: [{ required: !0, validator: (e, o, t) => {
|
|
40
|
-
if (o === "")
|
|
41
|
-
t(new Error(u("sysJob.codeRequired")));
|
|
42
|
-
else {
|
|
43
|
-
const d = {
|
|
44
|
-
tenant: U().user.tenant,
|
|
45
|
-
roleCode: o,
|
|
46
|
-
addFlag: !l.roleId,
|
|
47
|
-
roleId: l.roleId
|
|
48
|
-
};
|
|
49
|
-
Y(d).then(({ data: V }) => {
|
|
50
|
-
V === !0 ? t(new Error(u("sysRole.codeExist"))) : t();
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}, trigger: "blur" }],
|
|
54
|
-
roleName: [
|
|
55
|
-
{ required: !0, message: u("sysJob.nameRequired"), trigger: "blur" }
|
|
56
|
-
]
|
|
57
|
-
});
|
|
58
|
-
let k = m([]);
|
|
59
|
-
const h = m(!1), _ = m(!1), w = m();
|
|
60
|
-
let i = m([]);
|
|
61
|
-
const p = T, y = S, C = ie(y, "dialog"), O = async () => {
|
|
62
|
-
var e;
|
|
63
|
-
await ((e = v.value) == null ? void 0 : e.validate((o) => {
|
|
64
|
-
o && (l.roleId ? ge(l).then((t) => {
|
|
65
|
-
console.log(t), t.status === 200 && (F({
|
|
66
|
-
message: u("common.submitSuccess"),
|
|
67
|
-
type: "success"
|
|
68
|
-
}), p("dialogEvent", !1), p("refresh", t.status === 200));
|
|
69
|
-
}) : _e(l).then((t) => {
|
|
70
|
-
console.log(t), t.status === 200 && (F({
|
|
71
|
-
message: u("common.submitSuccess"),
|
|
72
|
-
type: "success"
|
|
73
|
-
}), p("dialogEvent", !1), p("refresh", t.status === 200));
|
|
74
|
-
}));
|
|
75
|
-
}));
|
|
76
|
-
};
|
|
77
|
-
function I() {
|
|
78
|
-
p("dialogEvent", !1);
|
|
79
|
-
}
|
|
80
|
-
function N() {
|
|
81
|
-
be(l.moduleId).then(({ data: e }) => {
|
|
82
|
-
w.value = e.results, J(e.results);
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function L() {
|
|
86
|
-
he().then(({ data: e }) => {
|
|
87
|
-
k.value = e.results;
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function z(e) {
|
|
91
|
-
console.log(e), N();
|
|
92
|
-
}
|
|
93
|
-
function J(e) {
|
|
94
|
-
for (let o = 0; o < e.length; o++) {
|
|
95
|
-
for (let t = 0; t < e[o].perms.length; t++)
|
|
96
|
-
i.value.push(e[o].perms[t].permCode);
|
|
97
|
-
J(e[o].children);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
function P(e) {
|
|
101
|
-
console.log(e, i.value), l.permCodes = e ? i.value : [], _.value = !1;
|
|
102
|
-
}
|
|
103
|
-
function G(e) {
|
|
104
|
-
console.log(e), l.permCodes = e, console.log(l.permCodes);
|
|
105
|
-
const o = e.length;
|
|
106
|
-
h.value = o === i.value.length, _.value = o > 0 && o < i.value.length;
|
|
107
|
-
}
|
|
108
|
-
return N(), L(), (R = y.formData) != null && R.roleId && (l = Object.assign(l, y.formData)), (e, o) => {
|
|
109
|
-
const t = Z, d = de, V = ee, X = oe, $ = le, q = te, H = ae, K = re, Q = me, D = se, W = ne;
|
|
110
|
-
return f(), E(W, {
|
|
111
|
-
title: a(C).title,
|
|
112
|
-
modelValue: a(C).visible,
|
|
113
|
-
"onUpdate:modelValue": o[6] || (o[6] = (r) => a(C).visible = r),
|
|
114
|
-
width: "800px",
|
|
115
|
-
onClose: I
|
|
116
|
-
}, {
|
|
117
|
-
footer: n(() => [
|
|
118
|
-
pe("div", ye, [
|
|
119
|
-
s(D, { onClick: I }, {
|
|
120
|
-
default: n(() => [
|
|
121
|
-
g(b(e.$t("common.cancel")), 1)
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}),
|
|
125
|
-
s(D, {
|
|
126
|
-
type: "primary",
|
|
127
|
-
onClick: O
|
|
128
|
-
}, {
|
|
129
|
-
default: n(() => [
|
|
130
|
-
g(b(e.$t("common.confirm")), 1)
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
})
|
|
134
|
-
])
|
|
135
|
-
]),
|
|
136
|
-
default: n(() => [
|
|
137
|
-
s(Q, {
|
|
138
|
-
ref_key: "jobFormRef",
|
|
139
|
-
ref: v,
|
|
140
|
-
model: a(l),
|
|
141
|
-
rules: a(M),
|
|
142
|
-
"label-width": "160px"
|
|
143
|
-
}, {
|
|
144
|
-
default: n(() => [
|
|
145
|
-
s(d, {
|
|
146
|
-
label: e.$t("sysJob.code"),
|
|
147
|
-
prop: "roleCode"
|
|
148
|
-
}, {
|
|
149
|
-
default: n(() => [
|
|
150
|
-
s(t, {
|
|
151
|
-
modelValue: a(l).roleCode,
|
|
152
|
-
"onUpdate:modelValue": o[0] || (o[0] = (r) => a(l).roleCode = r),
|
|
153
|
-
placeholder: e.$t("sysJob.codeRequired"),
|
|
154
|
-
clearable: "",
|
|
155
|
-
maxlength: "30",
|
|
156
|
-
"show-word-limit": ""
|
|
157
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}, 8, ["label"]),
|
|
161
|
-
s(d, {
|
|
162
|
-
label: e.$t("sysJob.name"),
|
|
163
|
-
prop: "roleName"
|
|
164
|
-
}, {
|
|
165
|
-
default: n(() => [
|
|
166
|
-
s(t, {
|
|
167
|
-
modelValue: a(l).roleName,
|
|
168
|
-
"onUpdate:modelValue": o[1] || (o[1] = (r) => a(l).roleName = r),
|
|
169
|
-
placeholder: e.$t("sysJob.nameRequired"),
|
|
170
|
-
clearable: "",
|
|
171
|
-
maxlength: "30",
|
|
172
|
-
"show-word-limit": ""
|
|
173
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
174
|
-
]),
|
|
175
|
-
_: 1
|
|
176
|
-
}, 8, ["label"]),
|
|
177
|
-
s(d, {
|
|
178
|
-
label: e.$t("sysJob.operatePerm"),
|
|
179
|
-
prop: "permCodes"
|
|
180
|
-
}, {
|
|
181
|
-
default: n(() => [
|
|
182
|
-
s(X, {
|
|
183
|
-
modelValue: a(l).moduleId,
|
|
184
|
-
"onUpdate:modelValue": o[2] || (o[2] = (r) => a(l).moduleId = r),
|
|
185
|
-
clearable: "",
|
|
186
|
-
placeholder: e.$t("sysJob.moduleRequired"),
|
|
187
|
-
style: { width: "100%" },
|
|
188
|
-
onChange: z
|
|
189
|
-
}, {
|
|
190
|
-
default: n(() => [
|
|
191
|
-
(f(!0), x(A, null, B(a(k), (r) => (f(), E(V, {
|
|
192
|
-
key: r.moduleId,
|
|
193
|
-
label: r.moduleName,
|
|
194
|
-
value: r.moduleId
|
|
195
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
}, 8, ["modelValue", "placeholder"]),
|
|
199
|
-
s($, {
|
|
200
|
-
modelValue: a(h),
|
|
201
|
-
"onUpdate:modelValue": o[3] || (o[3] = (r) => ce(h) ? h.value = r : null),
|
|
202
|
-
indeterminate: a(_),
|
|
203
|
-
onChange: P
|
|
204
|
-
}, {
|
|
205
|
-
default: n(() => [
|
|
206
|
-
g(b(e.$t("sysJob.checkAll")) + "/" + b(e.$t("sysJob.checkNoAll")), 1)
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
}, 8, ["modelValue", "indeterminate"]),
|
|
210
|
-
s(K, {
|
|
211
|
-
data: a(w),
|
|
212
|
-
"row-key": "resourceId",
|
|
213
|
-
border: "",
|
|
214
|
-
"show-header": !1,
|
|
215
|
-
"tree-props": { children: "children", hasChildren: "hasChildren" }
|
|
216
|
-
}, {
|
|
217
|
-
default: n(() => [
|
|
218
|
-
s(q, {
|
|
219
|
-
prop: "resourceName",
|
|
220
|
-
width: "180"
|
|
221
|
-
}),
|
|
222
|
-
s(q, { prop: "resourceName" }, {
|
|
223
|
-
default: n((r) => [
|
|
224
|
-
s(H, {
|
|
225
|
-
modelValue: a(l).permCodes,
|
|
226
|
-
"onUpdate:modelValue": o[4] || (o[4] = (c) => a(l).permCodes = c),
|
|
227
|
-
onChange: G
|
|
228
|
-
}, {
|
|
229
|
-
default: n(() => [
|
|
230
|
-
(f(!0), x(A, null, B(r.row.perms, (c) => (f(), E($, {
|
|
231
|
-
label: c.permCode,
|
|
232
|
-
key: c.permId
|
|
233
|
-
}, {
|
|
234
|
-
default: n(() => [
|
|
235
|
-
g(b(c.permName), 1)
|
|
236
|
-
]),
|
|
237
|
-
_: 2
|
|
238
|
-
}, 1032, ["label"]))), 128))
|
|
239
|
-
]),
|
|
240
|
-
_: 2
|
|
241
|
-
}, 1032, ["modelValue"])
|
|
242
|
-
]),
|
|
243
|
-
_: 1
|
|
244
|
-
})
|
|
245
|
-
]),
|
|
246
|
-
_: 1
|
|
247
|
-
}, 8, ["data"])
|
|
248
|
-
]),
|
|
249
|
-
_: 1
|
|
250
|
-
}, 8, ["label"]),
|
|
251
|
-
s(d, {
|
|
252
|
-
label: e.$t("sysJob.description"),
|
|
253
|
-
prop: "description"
|
|
254
|
-
}, {
|
|
255
|
-
default: n(() => [
|
|
256
|
-
s(t, {
|
|
257
|
-
modelValue: a(l).description,
|
|
258
|
-
"onUpdate:modelValue": o[5] || (o[5] = (r) => a(l).description = r),
|
|
259
|
-
type: "textarea",
|
|
260
|
-
autosize: { minRows: 2 },
|
|
261
|
-
maxlength: "200",
|
|
262
|
-
"show-word-limit": "",
|
|
263
|
-
placeholder: e.$t("sysJob.descriptionRequired"),
|
|
264
|
-
clearable: ""
|
|
265
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
266
|
-
]),
|
|
267
|
-
_: 1
|
|
268
|
-
}, 8, ["label"])
|
|
269
|
-
]),
|
|
270
|
-
_: 1
|
|
271
|
-
}, 8, ["model", "rules"])
|
|
272
|
-
]),
|
|
273
|
-
_: 1
|
|
274
|
-
}, 8, ["title", "modelValue"]);
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
export {
|
|
279
|
-
Re as _
|
|
280
|
-
};
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { $ as R, s as $, t as q, al as w } from "./index-C_arFWKZ.mjs";
|
|
2
|
-
import { E as D, a as F } from "./el-form-item-J_27GFln.mjs";
|
|
3
|
-
import { defineComponent as U, toRef as k, ref as S, reactive as y, openBlock as j, createBlock as B, withCtx as a, createElementVNode as O, createVNode as d, createTextVNode as V, toDisplayString as _, unref as s } from "vue";
|
|
4
|
-
import { ElMessage as E } from "element-plus";
|
|
5
|
-
import { useI18n as z } from "vue-i18n";
|
|
6
|
-
import { e as A, f as T, h as G } from "./index-DsmvLyNJ.mjs";
|
|
7
|
-
const H = { class: "dialog-footer" }, Y = /* @__PURE__ */ U({
|
|
8
|
-
__name: "edit",
|
|
9
|
-
props: {
|
|
10
|
-
formData: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default: () => {
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
dialog: {
|
|
16
|
-
type: Object,
|
|
17
|
-
default: () => {
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
emits: ["dialogEvent", "refresh"],
|
|
22
|
-
setup(M, { emit: v }) {
|
|
23
|
-
var g;
|
|
24
|
-
const { t: i } = z(), n = M, p = k(n, "dialog"), f = S();
|
|
25
|
-
let o = y({
|
|
26
|
-
tenant: R().user.tenant,
|
|
27
|
-
moduleId: "",
|
|
28
|
-
moduleCode: "",
|
|
29
|
-
moduleName: "",
|
|
30
|
-
description: "",
|
|
31
|
-
updateMask: "moduleCode,moduleName,description",
|
|
32
|
-
requestId: Math.random() * 10 + ""
|
|
33
|
-
});
|
|
34
|
-
const C = y({
|
|
35
|
-
moduleCode: [
|
|
36
|
-
{ required: !0, validator: (t, l, e) => {
|
|
37
|
-
l === "" ? e(new Error(i("sysModule.codeRequired"))) : o.moduleId ? e() : A(l).then(({ data: m }) => {
|
|
38
|
-
m === !0 ? e(new Error("该编码已存在")) : e();
|
|
39
|
-
});
|
|
40
|
-
}, trigger: "blur" }
|
|
41
|
-
],
|
|
42
|
-
moduleName: [
|
|
43
|
-
{ required: !0, message: i("sysModule.nameRequired"), trigger: "blur" }
|
|
44
|
-
]
|
|
45
|
-
}), u = v, h = async () => {
|
|
46
|
-
var t;
|
|
47
|
-
await ((t = f.value) == null ? void 0 : t.validate((l) => {
|
|
48
|
-
l && (o.moduleId ? T(o).then((e) => {
|
|
49
|
-
console.log(e), e.status === 200 && (E({
|
|
50
|
-
message: i("common.submitSuccess"),
|
|
51
|
-
type: "success"
|
|
52
|
-
}), u("dialogEvent", !1), u("refresh", e.status === 200));
|
|
53
|
-
}) : G(o).then((e) => {
|
|
54
|
-
console.log(e), e.status === 200 && (E({
|
|
55
|
-
message: i("common.submitSuccess"),
|
|
56
|
-
type: "success"
|
|
57
|
-
}), u("dialogEvent", !1), u("refresh", e.status === 200));
|
|
58
|
-
}));
|
|
59
|
-
}));
|
|
60
|
-
};
|
|
61
|
-
function c() {
|
|
62
|
-
u("dialogEvent", !1);
|
|
63
|
-
}
|
|
64
|
-
return (g = n.formData) != null && g.moduleId && (o = Object.assign(o, n.formData)), (t, l) => {
|
|
65
|
-
const e = $, m = D, I = F, b = q, N = w;
|
|
66
|
-
return j(), B(N, {
|
|
67
|
-
modelValue: p.value.visible,
|
|
68
|
-
"onUpdate:modelValue": l[3] || (l[3] = (r) => p.value.visible = r),
|
|
69
|
-
title: p.value.title,
|
|
70
|
-
width: "600px",
|
|
71
|
-
onClose: c
|
|
72
|
-
}, {
|
|
73
|
-
footer: a(() => [
|
|
74
|
-
O("div", H, [
|
|
75
|
-
d(b, { onClick: c }, {
|
|
76
|
-
default: a(() => [
|
|
77
|
-
V(_(t.$t("common.cancel")), 1)
|
|
78
|
-
]),
|
|
79
|
-
_: 1
|
|
80
|
-
}),
|
|
81
|
-
d(b, {
|
|
82
|
-
type: "primary",
|
|
83
|
-
onClick: h
|
|
84
|
-
}, {
|
|
85
|
-
default: a(() => [
|
|
86
|
-
V(_(t.$t("common.confirm")), 1)
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
})
|
|
90
|
-
])
|
|
91
|
-
]),
|
|
92
|
-
default: a(() => [
|
|
93
|
-
d(I, {
|
|
94
|
-
ref_key: "moduleFormRef",
|
|
95
|
-
ref: f,
|
|
96
|
-
model: s(o),
|
|
97
|
-
rules: C,
|
|
98
|
-
"label-width": "160px"
|
|
99
|
-
}, {
|
|
100
|
-
default: a(() => [
|
|
101
|
-
d(m, {
|
|
102
|
-
label: t.$t("sysModule.code"),
|
|
103
|
-
prop: "moduleCode"
|
|
104
|
-
}, {
|
|
105
|
-
default: a(() => [
|
|
106
|
-
d(e, {
|
|
107
|
-
modelValue: s(o).moduleCode,
|
|
108
|
-
"onUpdate:modelValue": l[0] || (l[0] = (r) => s(o).moduleCode = r),
|
|
109
|
-
placeholder: t.$t("sysModule.codeRequired"),
|
|
110
|
-
disabled: !!s(o).moduleId,
|
|
111
|
-
clearable: ""
|
|
112
|
-
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 8, ["label"]),
|
|
116
|
-
d(m, {
|
|
117
|
-
label: t.$t("sysModule.name"),
|
|
118
|
-
prop: "moduleName"
|
|
119
|
-
}, {
|
|
120
|
-
default: a(() => [
|
|
121
|
-
d(e, {
|
|
122
|
-
modelValue: s(o).moduleName,
|
|
123
|
-
"onUpdate:modelValue": l[1] || (l[1] = (r) => s(o).moduleName = r),
|
|
124
|
-
placeholder: t.$t("sysModule.nameRequired"),
|
|
125
|
-
clearable: ""
|
|
126
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
}, 8, ["label"]),
|
|
130
|
-
d(m, {
|
|
131
|
-
label: t.$t("sysModule.description"),
|
|
132
|
-
prop: "description"
|
|
133
|
-
}, {
|
|
134
|
-
default: a(() => [
|
|
135
|
-
d(e, {
|
|
136
|
-
modelValue: s(o).description,
|
|
137
|
-
"onUpdate:modelValue": l[2] || (l[2] = (r) => s(o).description = r),
|
|
138
|
-
type: "textarea",
|
|
139
|
-
autosize: { minRows: 2 },
|
|
140
|
-
placeholder: t.$t("sysModule.descriptionRequired"),
|
|
141
|
-
clearable: ""
|
|
142
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
}, 8, ["label"])
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["model", "rules"])
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}, 8, ["modelValue", "title"]);
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
export {
|
|
156
|
-
Y as _
|
|
157
|
-
};
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { b5 as l, $ as d, s as D, t as R, al as $ } from "./index-C_arFWKZ.mjs";
|
|
2
|
-
import { E as k, a as F } from "./el-form-item-J_27GFln.mjs";
|
|
3
|
-
import { defineComponent as S, toRef as U, ref as j, reactive as O, openBlock as B, createBlock as M, withCtx as i, createElementVNode as A, createVNode as s, createTextVNode as E, toDisplayString as V, unref as u } from "vue";
|
|
4
|
-
import { ElMessage as C } from "element-plus";
|
|
5
|
-
import { useI18n as P } from "vue-i18n";
|
|
6
|
-
function X(e) {
|
|
7
|
-
return l({
|
|
8
|
-
url: "/v1/rbac/operation/page",
|
|
9
|
-
method: "get",
|
|
10
|
-
params: e
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function T(e) {
|
|
14
|
-
return l({
|
|
15
|
-
url: "/v1/rbac/operation",
|
|
16
|
-
method: "post",
|
|
17
|
-
data: e
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function x(e) {
|
|
21
|
-
return l({
|
|
22
|
-
url: "/v1/rbac/operation",
|
|
23
|
-
method: "patch",
|
|
24
|
-
data: e
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function Y(e) {
|
|
28
|
-
const n = {
|
|
29
|
-
tenant: d().user.tenant,
|
|
30
|
-
operationId: e
|
|
31
|
-
};
|
|
32
|
-
return l({
|
|
33
|
-
url: "/v1/rbac/operation/id",
|
|
34
|
-
method: "delete",
|
|
35
|
-
params: n
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function Z(e) {
|
|
39
|
-
const n = {
|
|
40
|
-
tenant: d().user.tenant,
|
|
41
|
-
operationId: e
|
|
42
|
-
};
|
|
43
|
-
return l({
|
|
44
|
-
url: "/v1/rbac/operation/moveup",
|
|
45
|
-
method: "post",
|
|
46
|
-
params: n
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function ee(e) {
|
|
50
|
-
const n = {
|
|
51
|
-
tenant: d().user.tenant,
|
|
52
|
-
operationId: e
|
|
53
|
-
};
|
|
54
|
-
return l({
|
|
55
|
-
url: "/v1/rbac/operation/movedown",
|
|
56
|
-
method: "post",
|
|
57
|
-
params: n
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function te(e) {
|
|
61
|
-
const n = {
|
|
62
|
-
tenant: d().user.tenant,
|
|
63
|
-
operationId: e
|
|
64
|
-
};
|
|
65
|
-
return l({
|
|
66
|
-
url: "/v1/rbac/operation/batch",
|
|
67
|
-
method: "put",
|
|
68
|
-
data: n
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
function z(e) {
|
|
72
|
-
return l({
|
|
73
|
-
url: "/v1/rbac/operation/check",
|
|
74
|
-
method: "get",
|
|
75
|
-
params: {
|
|
76
|
-
tenant: d().user.tenant,
|
|
77
|
-
operationCode: e
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
const G = { class: "dialog-footer" }, oe = /* @__PURE__ */ S({
|
|
82
|
-
__name: "edit",
|
|
83
|
-
props: {
|
|
84
|
-
formData: {
|
|
85
|
-
type: Object,
|
|
86
|
-
default: () => {
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
dialog: {
|
|
90
|
-
type: Object,
|
|
91
|
-
default: () => {
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
emits: ["dialogEvent", "refresh"],
|
|
96
|
-
setup(e, { emit: n }) {
|
|
97
|
-
var _;
|
|
98
|
-
const { t: c } = P(), b = e, g = U(b, "dialog"), v = j();
|
|
99
|
-
let o = O({
|
|
100
|
-
tenant: d().user.tenant,
|
|
101
|
-
requestId: Math.random() * 10 + "",
|
|
102
|
-
operationCode: "",
|
|
103
|
-
operationName: "",
|
|
104
|
-
updateMask: "operationCode,operationName"
|
|
105
|
-
});
|
|
106
|
-
const q = O({
|
|
107
|
-
operationCode: [
|
|
108
|
-
{
|
|
109
|
-
required: !0,
|
|
110
|
-
validator: (r, a, t) => {
|
|
111
|
-
a === "" ? t(new Error(c("sysOperation.codeRequired"))) : o.operationId ? t() : z(a).then(({ data: f }) => {
|
|
112
|
-
f === !0 ? t(new Error("该编码已存在")) : t();
|
|
113
|
-
});
|
|
114
|
-
},
|
|
115
|
-
trigger: "blur"
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
operationName: [
|
|
119
|
-
{
|
|
120
|
-
required: !0,
|
|
121
|
-
message: c("sysOperation.nameRequired"),
|
|
122
|
-
trigger: "blur"
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
}), p = n, I = async () => {
|
|
126
|
-
var r;
|
|
127
|
-
await ((r = v.value) == null ? void 0 : r.validate((a) => {
|
|
128
|
-
a && (o.operationId ? x(o).then((t) => {
|
|
129
|
-
console.log(t), t.status === 200 && (C({
|
|
130
|
-
message: c("common.submitSuccess"),
|
|
131
|
-
type: "success"
|
|
132
|
-
}), p("dialogEvent", !1), p("refresh", t.status === 200));
|
|
133
|
-
}) : T(o).then((t) => {
|
|
134
|
-
console.log(t), t.status === 200 && (C({
|
|
135
|
-
message: c("common.submitSuccess"),
|
|
136
|
-
type: "success"
|
|
137
|
-
}), p("dialogEvent", !1), p("refresh", t.status === 200));
|
|
138
|
-
}));
|
|
139
|
-
}));
|
|
140
|
-
};
|
|
141
|
-
function h() {
|
|
142
|
-
p("dialogEvent", !1);
|
|
143
|
-
}
|
|
144
|
-
return (_ = b.formData) != null && _.operationId && (o = Object.assign(o, b.formData)), (r, a) => {
|
|
145
|
-
const t = D, f = k, N = F, y = R, w = $;
|
|
146
|
-
return B(), M(w, {
|
|
147
|
-
modelValue: g.value.visible,
|
|
148
|
-
"onUpdate:modelValue": a[2] || (a[2] = (m) => g.value.visible = m),
|
|
149
|
-
title: g.value.title,
|
|
150
|
-
width: "600px",
|
|
151
|
-
onClose: h
|
|
152
|
-
}, {
|
|
153
|
-
footer: i(() => [
|
|
154
|
-
A("div", G, [
|
|
155
|
-
s(y, { onClick: h }, {
|
|
156
|
-
default: i(() => [
|
|
157
|
-
E(V(r.$t("common.cancel")), 1)
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}),
|
|
161
|
-
s(y, {
|
|
162
|
-
type: "primary",
|
|
163
|
-
onClick: I
|
|
164
|
-
}, {
|
|
165
|
-
default: i(() => [
|
|
166
|
-
E(V(r.$t("common.confirm")), 1)
|
|
167
|
-
]),
|
|
168
|
-
_: 1
|
|
169
|
-
})
|
|
170
|
-
])
|
|
171
|
-
]),
|
|
172
|
-
default: i(() => [
|
|
173
|
-
s(N, {
|
|
174
|
-
ref_key: "operationFormRef",
|
|
175
|
-
ref: v,
|
|
176
|
-
model: u(o),
|
|
177
|
-
rules: q,
|
|
178
|
-
"label-width": "160px"
|
|
179
|
-
}, {
|
|
180
|
-
default: i(() => [
|
|
181
|
-
s(f, {
|
|
182
|
-
label: r.$t("sysOperation.code"),
|
|
183
|
-
prop: "operationCode"
|
|
184
|
-
}, {
|
|
185
|
-
default: i(() => [
|
|
186
|
-
s(t, {
|
|
187
|
-
modelValue: u(o).operationCode,
|
|
188
|
-
"onUpdate:modelValue": a[0] || (a[0] = (m) => u(o).operationCode = m),
|
|
189
|
-
placeholder: r.$t("sysOperation.codeRequired"),
|
|
190
|
-
disabled: !!u(o).operationId,
|
|
191
|
-
clearable: ""
|
|
192
|
-
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
193
|
-
]),
|
|
194
|
-
_: 1
|
|
195
|
-
}, 8, ["label"]),
|
|
196
|
-
s(f, {
|
|
197
|
-
label: r.$t("sysOperation.name"),
|
|
198
|
-
prop: "operationName"
|
|
199
|
-
}, {
|
|
200
|
-
default: i(() => [
|
|
201
|
-
s(t, {
|
|
202
|
-
modelValue: u(o).operationName,
|
|
203
|
-
"onUpdate:modelValue": a[1] || (a[1] = (m) => u(o).operationName = m),
|
|
204
|
-
placeholder: r.$t("sysOperation.nameRequired"),
|
|
205
|
-
clearable: ""
|
|
206
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
}, 8, ["label"])
|
|
210
|
-
]),
|
|
211
|
-
_: 1
|
|
212
|
-
}, 8, ["model", "rules"])
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
}, 8, ["modelValue", "title"]);
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
export {
|
|
220
|
-
oe as _,
|
|
221
|
-
ee as a,
|
|
222
|
-
te as b,
|
|
223
|
-
Y as d,
|
|
224
|
-
X as g,
|
|
225
|
-
Z as m
|
|
226
|
-
};
|