@utogether/udp-core 1.0.1-beta.22 → 1.0.1-beta.24
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/{403-B87JSuhn.js → 403-Dzcgpvp0.js} +1 -1
- package/dist/{404-BhiUKT1b.js → 404-BMtUBfzS.js} +1 -1
- package/dist/{500-2G6eyDeT.js → 500-BM0zxG1M.js} +1 -1
- package/dist/{AuthorityInfo-Bl4_zDot.js → AuthorityInfo-BmsB4SqO.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-92i5Oriz.js → AuthorityInfo.vue_vue_type_style_index_0_lang-CKcQbO7T.js} +1 -1
- package/dist/{Company-CbTh7_bX.js → Company-CwUC57TC.js} +3 -3
- package/dist/{CompanyPanel-BVEYMQKM.js → CompanyPanel-BAmnU8nv.js} +1 -1
- package/dist/{Department-Cu83Buy8.js → Department-BsXoz3BD.js} +3 -3
- package/dist/{DepartmentPanel-CO76buwO.js → DepartmentPanel-78TnO9Tu.js} +1 -1
- package/dist/{DesignPanel-DDgVNzYW.js → DesignPanel-CSL9uUNR.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Bwernx0s.js → DesignPanel.vue_vue_type_style_index_0_lang-CZrUHBBj.js} +2 -2
- package/dist/{DictView-DJDg_Oem.js → DictView-BKqfJuJq.js} +1 -1
- package/dist/{InvOrganization-D9BMWweK.js → InvOrganization-2gn2zpSK.js} +1 -1
- package/dist/{Org-CcfRkpBY.js → Org-C_08akFc.js} +1 -1
- package/dist/{Preview-DGP1uIZU.js → Preview-CffizoOK.js} +1 -1
- package/dist/{ReportDefine-u7r-IVPD.js → ReportDefine-BmBcBFey.js} +1 -1
- package/dist/{ReportDesign-CLQRMIy3.js → ReportDesign-Dw5AZl_M.js} +2 -2
- package/dist/{ReportQuery-BNTCTpqI.js → ReportQuery-B4LyGqtT.js} +1 -1
- package/dist/{ReportQueryFrom-G7X1Fyf5.js → ReportQueryFrom-oBS0ClDQ.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-D5lDZFPM.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DvayIk8Y.js} +1 -1
- package/dist/{ReportTemplate-QWAuFjaB.js → ReportTemplate-CNcUhJRf.js} +1 -1
- package/dist/{Role-Ba1OVGG0.js → Role-RUCpeqPj.js} +3 -3
- package/dist/{RoleAssign-DFiMYll8.js → RoleAssign-DYidK2md.js} +3 -3
- package/dist/{RolePanel-c-xitljX.js → RolePanel-BQuKAefI.js} +1 -1
- package/dist/{RolePanel-D6xKrLlM.js → RolePanel-BrtpMF69.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BeZ1xNXU.js → RolePanel.vue_vue_type_script_setup_true_lang-CrzUrpzJ.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DrBiLlBb.js → RolePanel.vue_vue_type_script_setup_true_lang-FAOBa5ds.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-D4eReGaK.js → ScrollPanel.vue_vue_type_style_index_0_lang-CmhAWJD4.js} +1 -1
- package/dist/{Staff-C-5TE1Yn.js → Staff-MnxrATUB.js} +3 -3
- package/dist/{StaffInfo-CwJlL_Nr.js → StaffInfo-CXNLmE3w.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-C2BsoQlr.js → StaffInfo.vue_vue_type_script_setup_true_lang-AsAikm4v.js} +1 -1
- package/dist/{StaffPanel-QOv1pq2Z.js → StaffPanel-BdhcAqQL.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BGQSHjaQ.js → StaffPanel.vue_vue_type_script_setup_true_lang-B51ElICg.js} +2 -2
- package/dist/{SysUser-Byug_VNY.js → SysUser-Dh70yuNE.js} +2 -2
- package/dist/{SysUserPanel-B-M2Yxjj.js → SysUserPanel-DimcWXi5.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-5U-oqRaF.js +340 -0
- package/dist/{SystemMenu-Bs9a4BE0.js → SystemMenu-CH04ZC4Q.js} +39 -39
- package/dist/{UserInfo-Ipp00UAF.js → UserInfo--5jFxyNg.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DIcWs6vj.js → UserInfo.vue_vue_type_style_index_0_lang-BpS2JUoM.js} +1 -1
- package/dist/{childView-N1PkzqQK.js → childView-1QhOOcjT.js} +1 -1
- package/dist/{childView-O-5baerB.js → childView-q4jq8JUU.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang--yGHgWVq.js → childView.vue_vue_type_style_index_0_lang-C1_CKaiz.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-srudWvXc.js → childView.vue_vue_type_style_index_0_lang-_9frXYVo.js} +1 -1
- package/dist/{code-rule-CRunTGXH.js → code-rule-Cmc-zh3P.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-IEuaI4Nt.js → cron-task-BJC8dKFZ.js} +1 -1
- package/dist/{frameView-vGVXV1ZG.js → frameView-rRbSPmqe.js} +1 -1
- package/dist/index-CU7HTsRe.js +6497 -0
- package/dist/{layoutView-BJO8Hm5d.js → layoutView-C5aVJcOn.js} +1 -1
- package/dist/{login-CZyenjQX.js → login-DGj6zzD2.js} +1 -1
- package/dist/{lov-view-6He1ZxGX.js → lov-view-CDYHJIbU.js} +2 -2
- package/dist/{menuInfo-CE5Cae2u.js → menuInfo-N2mUoR6P.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BjshFg3S.js → menuInfo.vue_vue_type_style_index_0_lang-Y7Jg-MZO.js} +119 -99
- package/dist/{pda-app-DOiT57m1.js → pda-app-D0g-Ygcq.js} +1 -1
- package/dist/{resource-BdlOJOcz.js → resource-DPW5r_7h.js} +1 -1
- package/dist/{su-welcome-BxRhJD8X.js → su-welcome-GWIgWj_m.js} +1 -1
- package/dist/{sys-config-Csy-234G.js → sys-config-DwaGsVVu.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +3 -3
- package/src/components/udp/grid/index.vue +514 -513
- package/src/plugins/i18n/zh.ts +6 -3
- package/src/router/utils.ts +2 -2
- package/src/style/button.scss +85 -85
- package/src/utils/udp/http/index.ts +294 -0
- package/src/utils/udp/http/types.d.ts +42 -0
- package/src/views/system/cron/cron-task.vue +2 -12
- package/src/views/system/menu/SystemMenu.vue +185 -183
- package/src/views/system/menu/menuInfo.vue +384 -363
- package/src/views/system/sysUser/SysUserPanel.vue +346 -279
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-Dm1YyUXX.js +0 -298
- package/dist/index-D_tU_u2l.js +0 -4640
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { defineComponent as oe, reactive as ae, ref as w, inject as le, createVNode as o, Fragment as x, resolveComponent as a, onMounted as re, createElementBlock as $, openBlock as g, createBlock as C, createCommentVNode as R, withCtx as d, renderList as ne, unref as de } from "vue";
|
|
2
|
+
import { useI18n as ie } from "vue-i18n";
|
|
3
|
+
import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
+
import { useRender as ue, warnMessage as me, delay as ce, errorMessage as fe, getDictChildren as pe } from "@utogether/utils";
|
|
5
|
+
import { VxeUI as ge } from "vxe-pc-ui";
|
|
6
|
+
import { clone as U, isEmpty as he } from "xe-utils";
|
|
7
|
+
import { w as we } from "./index-CU7HTsRe.js";
|
|
8
|
+
const ve = {
|
|
9
|
+
class: "page"
|
|
10
|
+
}, i = "/uums/user", ke = /* @__PURE__ */ oe({
|
|
11
|
+
__name: "SysUserPanel",
|
|
12
|
+
setup(_e) {
|
|
13
|
+
const t = ae({
|
|
14
|
+
record: {},
|
|
15
|
+
listQuery: {},
|
|
16
|
+
dataList: [],
|
|
17
|
+
roleList: [],
|
|
18
|
+
items: [],
|
|
19
|
+
submitLoading: !1,
|
|
20
|
+
showModelView: !1,
|
|
21
|
+
showUserRole: !1,
|
|
22
|
+
showModal: !1,
|
|
23
|
+
showAuth: !1,
|
|
24
|
+
dataStatus: ""
|
|
25
|
+
}), u = we(), {
|
|
26
|
+
t: r
|
|
27
|
+
} = ie(), M = {
|
|
28
|
+
userName: [{
|
|
29
|
+
required: !0,
|
|
30
|
+
message: `${r("message.required")}${r("message.userCode")}`
|
|
31
|
+
}],
|
|
32
|
+
name: [{
|
|
33
|
+
required: !0,
|
|
34
|
+
message: `${r("message.required")}${r("message.userName")}`
|
|
35
|
+
}],
|
|
36
|
+
unitId: [{
|
|
37
|
+
required: !0,
|
|
38
|
+
message: `${r("message.required")}${r("message.unitName")}`
|
|
39
|
+
}],
|
|
40
|
+
userPwd: [{
|
|
41
|
+
required: !0,
|
|
42
|
+
message: `${r("message.required")}${r("message.userPwd")}`
|
|
43
|
+
}]
|
|
44
|
+
}, L = ue(), v = w({}), q = le("treeList"), m = w(!1);
|
|
45
|
+
let _ = "";
|
|
46
|
+
const c = w(null), D = [{
|
|
47
|
+
field: "name",
|
|
48
|
+
title: "message.udp.userName"
|
|
49
|
+
}, {
|
|
50
|
+
field: "userName",
|
|
51
|
+
title: "message.udp.userCode"
|
|
52
|
+
}, {
|
|
53
|
+
field: "type",
|
|
54
|
+
title: "message.udp.userType",
|
|
55
|
+
code: "SU.USER.TYPE"
|
|
56
|
+
}], E = [{
|
|
57
|
+
type: "checkbox",
|
|
58
|
+
width: 40,
|
|
59
|
+
align: "center"
|
|
60
|
+
}, {
|
|
61
|
+
field: "userName",
|
|
62
|
+
title: "message.udp.userCode"
|
|
63
|
+
}, {
|
|
64
|
+
field: "name",
|
|
65
|
+
title: "message.udp.userName"
|
|
66
|
+
}, {
|
|
67
|
+
field: "type",
|
|
68
|
+
title: "message.udp.userType",
|
|
69
|
+
formatter: ["formatDict", "SU.USER.TYPE"]
|
|
70
|
+
}, {
|
|
71
|
+
field: "enabled",
|
|
72
|
+
width: 80,
|
|
73
|
+
cellRender: L.renderEnabled(z)
|
|
74
|
+
}, {
|
|
75
|
+
field: "operate",
|
|
76
|
+
width: 150,
|
|
77
|
+
fixed: "right",
|
|
78
|
+
slots: {
|
|
79
|
+
default: ({
|
|
80
|
+
row: e
|
|
81
|
+
}) => [o(x, null, [o(a("ut-button"), {
|
|
82
|
+
content: "edit",
|
|
83
|
+
icon: "ri-edit-line",
|
|
84
|
+
onTap: () => B(e)
|
|
85
|
+
}, null), o(a("ut-dropdown"), {
|
|
86
|
+
buttons: I(),
|
|
87
|
+
onCommand: (s) => A(e, s)
|
|
88
|
+
}, null)])]
|
|
89
|
+
}
|
|
90
|
+
}], A = (e, s) => {
|
|
91
|
+
s === "role" && H(e), s === "auth" && Q(e), s === "passwordReset" && O(e);
|
|
92
|
+
}, I = () => [{
|
|
93
|
+
code: "role",
|
|
94
|
+
icon: "ri-user-fill"
|
|
95
|
+
}, {
|
|
96
|
+
code: "auth",
|
|
97
|
+
icon: "ri-lock-fill"
|
|
98
|
+
}, {
|
|
99
|
+
code: "passwordReset",
|
|
100
|
+
icon: "ri-lock-password-line"
|
|
101
|
+
}], y = [{
|
|
102
|
+
field: "userName",
|
|
103
|
+
title: "message.udp.userCode",
|
|
104
|
+
required: !0,
|
|
105
|
+
disabled: !1
|
|
106
|
+
}, {
|
|
107
|
+
field: "name",
|
|
108
|
+
title: "message.udp.userName",
|
|
109
|
+
required: !0
|
|
110
|
+
}, {
|
|
111
|
+
field: "type",
|
|
112
|
+
required: !0,
|
|
113
|
+
title: "message.udp.userType",
|
|
114
|
+
code: "SU.USER.TYPE"
|
|
115
|
+
}, {
|
|
116
|
+
field: "userPwd",
|
|
117
|
+
required: !0,
|
|
118
|
+
visibleMethod: ({
|
|
119
|
+
data: e
|
|
120
|
+
}) => !e.id
|
|
121
|
+
}], T = () => {
|
|
122
|
+
t.record = {
|
|
123
|
+
userPwd: _,
|
|
124
|
+
...v.value
|
|
125
|
+
}, t.items = U(y, !0), t.height = 280, t.showModal = !0;
|
|
126
|
+
}, B = (e) => {
|
|
127
|
+
t.record = U(e, !0), y[0].disabled = !0, t.items = U(y, !0), t.height = 240, t.showModal = !0;
|
|
128
|
+
}, F = () => {
|
|
129
|
+
c.value.getInstance().commitProxy("delete");
|
|
130
|
+
}, Y = (e) => [e], j = () => {
|
|
131
|
+
c.value.refreshData();
|
|
132
|
+
};
|
|
133
|
+
async function z({
|
|
134
|
+
row: e
|
|
135
|
+
}) {
|
|
136
|
+
await S(u.put(i, [e])), c.value.refreshData();
|
|
137
|
+
}
|
|
138
|
+
const H = async (e) => {
|
|
139
|
+
var l;
|
|
140
|
+
t.roleList = [], t.showUserRole = !0, m.value = !0;
|
|
141
|
+
const s = await u.get(i + "/getUserRole", {
|
|
142
|
+
userName: e.userName
|
|
143
|
+
});
|
|
144
|
+
m.value = !1, t.roleList = (l = s[0]) == null ? void 0 : l.sysRoles;
|
|
145
|
+
}, O = async (e) => {
|
|
146
|
+
await u.put(i + "/resetPwd", e), await ge.modal.alert(r("message.tip.initPassword", {
|
|
147
|
+
code: _
|
|
148
|
+
}));
|
|
149
|
+
}, Q = async (e) => {
|
|
150
|
+
var h;
|
|
151
|
+
t.roleList = [], t.showAuth = !0, m.value = !0, t.record = e;
|
|
152
|
+
const [s, l] = await S(u.get(i + "/getUserRole", {
|
|
153
|
+
userName: e.userName
|
|
154
|
+
}));
|
|
155
|
+
m.value = !1, s || (he(l) ? me(r("message.tip.emptyAuth")) : t.roleList = (h = l[0]) == null ? void 0 : h.sysMenuExts);
|
|
156
|
+
}, V = w(null), W = () => {
|
|
157
|
+
V.value.validate(async (e) => {
|
|
158
|
+
if (!e) {
|
|
159
|
+
const {
|
|
160
|
+
record: s,
|
|
161
|
+
dataStatus: l
|
|
162
|
+
} = t;
|
|
163
|
+
l === "add" ? await u.post(i, s) : await u.put(i, s), P();
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}, P = () => {
|
|
167
|
+
t.showModelView = !1;
|
|
168
|
+
}, G = (e) => {
|
|
169
|
+
e === "add" && T(), e === "del" && F();
|
|
170
|
+
}, J = () => {
|
|
171
|
+
u.get("/uums/unit", {
|
|
172
|
+
pageSize: 10
|
|
173
|
+
}).then(async (e) => {
|
|
174
|
+
v.value = {
|
|
175
|
+
unitId: e[0].id,
|
|
176
|
+
enabled: "1"
|
|
177
|
+
}, await ce(100), c.value.refreshData();
|
|
178
|
+
}).catch(() => {
|
|
179
|
+
fe("获取租户失败,刷新后重试");
|
|
180
|
+
});
|
|
181
|
+
}, K = () => {
|
|
182
|
+
var s;
|
|
183
|
+
_ = ((s = pe("SU.DEFAULT_PASSWORD")) == null ? void 0 : s.find((l) => l.dictCode === "default")).dictName;
|
|
184
|
+
};
|
|
185
|
+
return re(() => {
|
|
186
|
+
K(), J();
|
|
187
|
+
}), (e, s) => {
|
|
188
|
+
const l = a("ut-grid"), h = a("vxe-option"), X = a("vxe-select"), f = a("vxe-form-item"), k = a("ut-button"), Z = a("vxe-form"), N = a("vxe-modal"), b = a("vxe-column"), ee = a("vxe-table"), te = a("el-tree-v2"), se = a("ut-modal-form");
|
|
189
|
+
return g(), $("div", ve, [o(l, {
|
|
190
|
+
ref_key: "xgrid",
|
|
191
|
+
ref: c,
|
|
192
|
+
columns: E,
|
|
193
|
+
items: D,
|
|
194
|
+
url: i,
|
|
195
|
+
"auto-load": !1,
|
|
196
|
+
"default-params": v.value,
|
|
197
|
+
mode: "form",
|
|
198
|
+
onButtonClick: G
|
|
199
|
+
}, null, 8, ["default-params"]), o(N, {
|
|
200
|
+
modelValue: t.showModelView,
|
|
201
|
+
"onUpdate:modelValue": s[0] || (s[0] = (n) => t.showModelView = n),
|
|
202
|
+
title: "用户信息",
|
|
203
|
+
width: "300"
|
|
204
|
+
}, {
|
|
205
|
+
default: d(() => [o(Z, {
|
|
206
|
+
ref_key: "xForm",
|
|
207
|
+
ref: V,
|
|
208
|
+
data: t.record,
|
|
209
|
+
rules: M,
|
|
210
|
+
"title-align": "right"
|
|
211
|
+
}, {
|
|
212
|
+
default: d(() => [o(f, {
|
|
213
|
+
title: e.$t("message.unitName"),
|
|
214
|
+
field: "unitId",
|
|
215
|
+
span: "24"
|
|
216
|
+
}, {
|
|
217
|
+
default: d(({
|
|
218
|
+
data: n
|
|
219
|
+
}) => [o(X, {
|
|
220
|
+
modelValue: n.unitId,
|
|
221
|
+
"onUpdate:modelValue": (p) => n.unitId = p
|
|
222
|
+
}, {
|
|
223
|
+
default: d(() => [(g(!0), $(x, null, ne(de(q), (p) => (g(), C(h, {
|
|
224
|
+
key: p.id,
|
|
225
|
+
value: p.id,
|
|
226
|
+
label: p.unitName
|
|
227
|
+
}, null, 8, ["value", "label"]))), 128))]),
|
|
228
|
+
_: 2
|
|
229
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["title"]), o(f, {
|
|
232
|
+
title: e.$t("message.userCode"),
|
|
233
|
+
"item-render": {
|
|
234
|
+
name: "input",
|
|
235
|
+
attrs: {
|
|
236
|
+
disabled: t.dataStatus === "update"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
field: "userName",
|
|
240
|
+
span: "24"
|
|
241
|
+
}, null, 8, ["title", "item-render"]), o(f, {
|
|
242
|
+
title: e.$t("message.userName"),
|
|
243
|
+
field: "name",
|
|
244
|
+
span: "24",
|
|
245
|
+
"item-render": {
|
|
246
|
+
name: "input"
|
|
247
|
+
}
|
|
248
|
+
}, null, 8, ["title"]), t.dataStatus === "add" ? (g(), C(f, {
|
|
249
|
+
key: 0,
|
|
250
|
+
title: e.$t("message.userPwd"),
|
|
251
|
+
"item-render": {
|
|
252
|
+
name: "input"
|
|
253
|
+
},
|
|
254
|
+
field: "userPwd",
|
|
255
|
+
span: "24"
|
|
256
|
+
}, null, 8, ["title"])) : R("", !0), o(f, {
|
|
257
|
+
align: "right",
|
|
258
|
+
span: "24"
|
|
259
|
+
}, {
|
|
260
|
+
default: d(() => [o(k, {
|
|
261
|
+
content: "cancel",
|
|
262
|
+
icon: "ri-close-fill",
|
|
263
|
+
onClick: P
|
|
264
|
+
}), o(k, {
|
|
265
|
+
content: "confirm",
|
|
266
|
+
icon: "ri-save-3-fill",
|
|
267
|
+
status: "u-cyan",
|
|
268
|
+
onClick: W
|
|
269
|
+
})]),
|
|
270
|
+
_: 1
|
|
271
|
+
})]),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, ["data"])]),
|
|
274
|
+
_: 1
|
|
275
|
+
}, 8, ["modelValue"]), o(N, {
|
|
276
|
+
modelValue: t.showUserRole,
|
|
277
|
+
"onUpdate:modelValue": s[1] || (s[1] = (n) => t.showUserRole = n),
|
|
278
|
+
loading: m.value,
|
|
279
|
+
title: e.$t("message.title.roleInfo"),
|
|
280
|
+
width: "600"
|
|
281
|
+
}, {
|
|
282
|
+
default: d(() => [o(ee, {
|
|
283
|
+
height: "300",
|
|
284
|
+
data: t.roleList,
|
|
285
|
+
border: ""
|
|
286
|
+
}, {
|
|
287
|
+
default: d(() => [o(b, {
|
|
288
|
+
type: "seq",
|
|
289
|
+
width: "60"
|
|
290
|
+
}), o(b, {
|
|
291
|
+
field: "roleName",
|
|
292
|
+
title: e.$t("message.udp.roleName")
|
|
293
|
+
}, null, 8, ["title"]), o(b, {
|
|
294
|
+
field: "roleDesc",
|
|
295
|
+
title: e.$t("message.udp.roleDesc")
|
|
296
|
+
}, null, 8, ["title"])]),
|
|
297
|
+
_: 1
|
|
298
|
+
}, 8, ["data"])]),
|
|
299
|
+
_: 1
|
|
300
|
+
}, 8, ["modelValue", "loading", "title"]), o(N, {
|
|
301
|
+
modelValue: t.showAuth,
|
|
302
|
+
"onUpdate:modelValue": s[2] || (s[2] = (n) => t.showAuth = n),
|
|
303
|
+
loading: m.value,
|
|
304
|
+
title: e.$t("message.title.authority", {
|
|
305
|
+
role: t.record.name || "88888"
|
|
306
|
+
}),
|
|
307
|
+
height: "620",
|
|
308
|
+
width: "560"
|
|
309
|
+
}, {
|
|
310
|
+
default: d(() => [o(te, {
|
|
311
|
+
ref: "xTree",
|
|
312
|
+
data: t.roleList,
|
|
313
|
+
props: {
|
|
314
|
+
children: "children",
|
|
315
|
+
label: "menuName"
|
|
316
|
+
},
|
|
317
|
+
height: 560,
|
|
318
|
+
"node-key": "id"
|
|
319
|
+
}, null, 8, ["data"])]),
|
|
320
|
+
_: 1
|
|
321
|
+
}, 8, ["modelValue", "loading", "title"]), t.showModal ? (g(), C(se, {
|
|
322
|
+
key: 0,
|
|
323
|
+
record: t.record,
|
|
324
|
+
items: t.items,
|
|
325
|
+
width: 360,
|
|
326
|
+
height: t.height,
|
|
327
|
+
method: t.record.id ? "put" : "post",
|
|
328
|
+
"data-process-method": Y,
|
|
329
|
+
title: e.$t("message.title.userInfo"),
|
|
330
|
+
"data-status": "update",
|
|
331
|
+
url: i,
|
|
332
|
+
onClose: s[3] || (s[3] = (n) => t.showModal = !1),
|
|
333
|
+
onConfirm: j
|
|
334
|
+
}, null, 8, ["record", "items", "height", "method", "title"])) : R("", !0)]);
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
export {
|
|
339
|
+
ke as _
|
|
340
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as k, reactive as S, ref as v, createVNode as n, resolveComponent as i, Fragment as m, createElementBlock as A, openBlock as D } from "vue";
|
|
2
2
|
import { useI18n as E } from "vue-i18n";
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
3
|
+
import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-Y7Jg-MZO.js";
|
|
4
|
+
import { _ as I } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
|
|
5
5
|
import { clone as p } from "xe-utils";
|
|
6
6
|
import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
|
|
7
|
-
import { VxeUI as
|
|
8
|
-
import { useRender as
|
|
9
|
-
import { w as
|
|
10
|
-
const
|
|
7
|
+
import { VxeUI as P } from "vxe-pc-ui";
|
|
8
|
+
import { useRender as R } from "@utogether/utils";
|
|
9
|
+
import { w as U } from "./index-CU7HTsRe.js";
|
|
10
|
+
const B = {
|
|
11
11
|
class: "page-content"
|
|
12
|
-
},
|
|
12
|
+
}, L = {
|
|
13
13
|
name: "SystemMenu"
|
|
14
|
-
}, q = /* @__PURE__ */
|
|
15
|
-
...
|
|
16
|
-
setup(
|
|
17
|
-
const t =
|
|
14
|
+
}, q = /* @__PURE__ */ k({
|
|
15
|
+
...L,
|
|
16
|
+
setup(z) {
|
|
17
|
+
const t = S({
|
|
18
18
|
record: {},
|
|
19
19
|
dataList: [],
|
|
20
20
|
submitLoading: !1,
|
|
@@ -27,9 +27,9 @@ const P = {
|
|
|
27
27
|
}
|
|
28
28
|
}), {
|
|
29
29
|
t: h
|
|
30
|
-
} = E(), f =
|
|
30
|
+
} = E(), f = R(), d = U(), r = v(null), s = "/uums/menu";
|
|
31
31
|
let l;
|
|
32
|
-
const
|
|
32
|
+
const w = [{
|
|
33
33
|
type: "checkbox",
|
|
34
34
|
width: 50,
|
|
35
35
|
align: "center"
|
|
@@ -66,81 +66,81 @@ const P = {
|
|
|
66
66
|
default: ({
|
|
67
67
|
row: e
|
|
68
68
|
}) => {
|
|
69
|
-
const
|
|
69
|
+
const o = e.menuType, a = n(i("ut-button"), {
|
|
70
70
|
status: "u-cyan",
|
|
71
71
|
icon: "ri-add-fill",
|
|
72
72
|
content: "add",
|
|
73
73
|
onTap: () => u(e)
|
|
74
|
-
}, null), x =
|
|
74
|
+
}, null), x = n(i("ut-button"), {
|
|
75
75
|
icon: "ri-lock-fill",
|
|
76
76
|
content: "auth",
|
|
77
77
|
onTap: () => b(e)
|
|
78
78
|
}, null);
|
|
79
|
-
return [
|
|
79
|
+
return [n(m, null, [o ? null : n(m, null, [n(i("ut-button"), {
|
|
80
80
|
status: "success",
|
|
81
81
|
icon: "ri-edit-box-line",
|
|
82
82
|
content: "edit",
|
|
83
|
-
onTap: () =>
|
|
83
|
+
onTap: () => y(e)
|
|
84
84
|
}, null), ["0", "5"].includes(e.menuCategory) ? a : x])])];
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
}],
|
|
87
|
+
}], C = ({
|
|
88
88
|
code: e
|
|
89
89
|
}) => {
|
|
90
90
|
e === "add" && u(), e === "del" && T();
|
|
91
|
-
},
|
|
91
|
+
}, g = async ({
|
|
92
92
|
row: e
|
|
93
93
|
}) => {
|
|
94
|
-
const
|
|
94
|
+
const o = await d.get(s, {
|
|
95
95
|
parentId: e.id
|
|
96
96
|
});
|
|
97
97
|
return new Promise((a) => {
|
|
98
|
-
a(
|
|
98
|
+
a(o.list);
|
|
99
99
|
});
|
|
100
100
|
}, u = (e) => {
|
|
101
|
-
t.showDrawer = !0, t.dataStatus = "add", t.record.dispalyCode = e == null ? void 0 : e.permissionCode, t.record.permissionCode = e == null ? void 0 : e.permissionCode, t.record.menuType = "0", t.record.menuCategory = e ? "" : "0", t.record.parentId = e == null ? void 0 : e.id, t.record.hasChildren = e == null ? void 0 : e.hasChildren, t.record.children = t.record.children || [], l = e;
|
|
102
|
-
},
|
|
101
|
+
t.showDrawer = !0, t.dataStatus = "add", t.record.dispalyCode = e == null ? void 0 : e.permissionCode, t.record.permissionCode = e == null ? void 0 : e.permissionCode, t.record.menuType = "0", t.record.showLink = "Y", t.record.isApprovalPage = "N", t.record.menuCategory = e ? "" : "0", t.record.parentId = e == null ? void 0 : e.id, t.record.hasChildren = e == null ? void 0 : e.hasChildren, t.record.children = t.record.children || [], l = e;
|
|
102
|
+
}, y = (e) => {
|
|
103
103
|
t.showDrawer = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
104
104
|
};
|
|
105
105
|
async function _({
|
|
106
106
|
row: e
|
|
107
107
|
}) {
|
|
108
|
-
await d.put(
|
|
108
|
+
await d.put(s, [e]), r.value.refreshData();
|
|
109
109
|
}
|
|
110
110
|
const T = async () => {
|
|
111
|
-
const e = await
|
|
111
|
+
const e = await P.modal.confirm(h("message.delRecord")), o = r.value.getInstance().getCheckboxRecords();
|
|
112
112
|
if (e === "confirm") {
|
|
113
|
-
const [a] = await M(d.delete(
|
|
113
|
+
const [a] = await M(d.delete(s, o));
|
|
114
114
|
}
|
|
115
115
|
}, b = (e) => {
|
|
116
116
|
t.showAuthority = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
117
|
-
}, c = (e,
|
|
118
|
-
e === "submit" && (l ||
|
|
117
|
+
}, c = (e, o) => {
|
|
118
|
+
e === "submit" && (l || o) && r.value.getInstance().reloadTreeExpand(l || o), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
|
|
119
119
|
};
|
|
120
|
-
return (e,
|
|
121
|
-
const a =
|
|
122
|
-
return
|
|
120
|
+
return (e, o) => {
|
|
121
|
+
const a = i("ut-grid");
|
|
122
|
+
return D(), A("div", B, [n(a, {
|
|
123
123
|
ref_key: "xgrid",
|
|
124
|
-
ref:
|
|
124
|
+
ref: r,
|
|
125
125
|
"tree-config": {
|
|
126
126
|
childrenField: "children",
|
|
127
127
|
lazy: !0,
|
|
128
128
|
hasChild: "hasChildren",
|
|
129
|
-
loadMethod:
|
|
129
|
+
loadMethod: g,
|
|
130
130
|
iconOpen: "ri-checkbox-indeterminate-line ri-lg",
|
|
131
131
|
iconClose: "ri-add-box-line ri-lg"
|
|
132
132
|
},
|
|
133
|
-
columns:
|
|
134
|
-
url:
|
|
133
|
+
columns: w,
|
|
134
|
+
url: s,
|
|
135
135
|
stripe: !1,
|
|
136
136
|
mode: "form",
|
|
137
|
-
onToolbarButtonClick:
|
|
138
|
-
}, null, 8, ["tree-config"]),
|
|
137
|
+
onToolbarButtonClick: C
|
|
138
|
+
}, null, 8, ["tree-config"]), n(N, {
|
|
139
139
|
show: t.showDrawer,
|
|
140
140
|
record: t.record,
|
|
141
141
|
"data-status": t.dataStatus,
|
|
142
142
|
onClose: c
|
|
143
|
-
}, null, 8, ["show", "record", "data-status"]),
|
|
143
|
+
}, null, 8, ["show", "record", "data-status"]), n(I, {
|
|
144
144
|
show: t.showAuthority,
|
|
145
145
|
record: t.record,
|
|
146
146
|
onClose: c
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as R, ref as i, reactive as x, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as m, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as A, mergeProps as E, toHandlers as P } from "vue";
|
|
2
2
|
import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
-
import { w as V } from "./index-
|
|
3
|
+
import { w as V } from "./index-CU7HTsRe.js";
|
|
4
4
|
const q = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
|
|
5
5
|
__name: "UserInfo",
|
|
6
6
|
props: {
|
|
@@ -3,7 +3,7 @@ import { useI18n as Q } from "vue-i18n";
|
|
|
3
3
|
import { t as I } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
4
|
import { VxeUI as W } from "vxe-pc-ui";
|
|
5
5
|
import { useRender as X, successMessage as k } from "@utogether/utils";
|
|
6
|
-
import { w as b, i as S } from "./index-
|
|
6
|
+
import { w as b, i as S } from "./index-CU7HTsRe.js";
|
|
7
7
|
const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } }, _ = "/upfm/v1/lov", de = /* @__PURE__ */ U({
|
|
8
8
|
__name: "childView",
|
|
9
9
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as h, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
|
|
2
2
|
import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
3
|
import { useRender as P } from "@utogether/utils";
|
|
4
|
-
import { i as $, w as f } from "./index-
|
|
4
|
+
import { i as $, w as f } from "./index-CU7HTsRe.js";
|
|
5
5
|
const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
|
|
6
6
|
__name: "childView",
|
|
7
7
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as _, ref as d, createVNode as c, resolveComponent as i, createElementBlock as k, openBlock as m, createBlock as C, createCommentVNode as E } from "vue";
|
|
2
2
|
import { t as U } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
3
|
import { useRender as b } from "@utogether/utils";
|
|
4
|
-
import { w as q } from "./index-
|
|
4
|
+
import { w as q } from "./index-CU7HTsRe.js";
|
|
5
5
|
const y = {
|
|
6
6
|
name: "CodeRule"
|
|
7
7
|
}, V = /* @__PURE__ */ _({
|
package/dist/core.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as a, J as t, C as r, E as o, G as u, P as i, w as n, y as l, K as g, D as c, L as h, O as m, M as f, s as y, z as S, A, c as C, h as P, i as R } from "./index-
|
|
1
|
+
import { N as a, J as t, C as r, E as o, G as u, P as i, w as n, y as l, K as g, D as c, L as h, O as m, M as f, s as y, z as S, A, c as C, h as P, i as R } from "./index-CU7HTsRe.js";
|
|
2
2
|
export {
|
|
3
3
|
a as constantRoutes,
|
|
4
4
|
t as default,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as k, ref as d, createVNode as n, resolveComponent as o, Fragment as v, createElementBlock as T, openBlock as f, createBlock as I, createCommentVNode as R } from "vue";
|
|
2
2
|
import { VXETable as C } from "vxe-table";
|
|
3
3
|
import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import { w as y } from "./index-
|
|
4
|
+
import { w as y } from "./index-CU7HTsRe.js";
|
|
5
5
|
import { useRender as S, successMessage as D } from "@utogether/utils";
|
|
6
6
|
const E = {
|
|
7
7
|
name: "CronTask"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as _, ref as r, unref as a, onMounted as d, resolveDirective as p, withDirectives as v, createElementBlock as h, openBlock as g, createElementVNode as k, nextTick as x } from "vue";
|
|
2
2
|
import { useRoute as E } from "vue-router";
|
|
3
|
-
import { _ as R } from "./index-
|
|
3
|
+
import { _ as R } from "./index-CU7HTsRe.js";
|
|
4
4
|
const w = { class: "frame" }, S = ["src"], V = /* @__PURE__ */ _({
|
|
5
5
|
__name: "frameView",
|
|
6
6
|
setup(B) {
|