yh-pub 2.0.48 → 2.0.50
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/AdminLogin-DVQI2Z9s.js +149 -0
- package/AdminLogin-DVQI2Z9s.js.map +1 -0
- package/{Error-DeCOZS97.js → Error-DOZPyJ0i.js} +2 -2
- package/{Error-DeCOZS97.js.map → Error-DOZPyJ0i.js.map} +1 -1
- package/{Error401-DuF8BRGh.js → Error401-CasPfWu7.js} +3 -3
- package/{Error401-DuF8BRGh.js.map → Error401-CasPfWu7.js.map} +1 -1
- package/{Error404-D7myXZJO.js → Error404-DNrS1S6S.js} +3 -3
- package/{Error404-D7myXZJO.js.map → Error404-DNrS1S6S.js.map} +1 -1
- package/{Error500-CuRvDbRv.js → Error500-CiRkE2a5.js} +3 -3
- package/{Error500-CuRvDbRv.js.map → Error500-CiRkE2a5.js.map} +1 -1
- package/{HomeIndex-BaGgRhDm.js → HomeIndex-DHRUomj7.js} +8 -8
- package/{HomeIndex-BaGgRhDm.js.map → HomeIndex-DHRUomj7.js.map} +1 -1
- package/{IconExplorer-CfmiRU_m.js → IconExplorer-C1igIioV.js} +2 -2
- package/{IconExplorer-CfmiRU_m.js.map → IconExplorer-C1igIioV.js.map} +1 -1
- package/Index-COuzNZ87.js +5 -0
- package/Index-COuzNZ87.js.map +1 -0
- package/MainLogin-U1DN5JPD.js +166 -0
- package/MainLogin-U1DN5JPD.js.map +1 -0
- package/MenuManage-CKWdPkf8.js +710 -0
- package/MenuManage-CKWdPkf8.js.map +1 -0
- package/{OrgManage-BM27d4NU.js → OrgManage-BhDgZVGP.js} +2 -2
- package/{OrgManage-BM27d4NU.js.map → OrgManage-BhDgZVGP.js.map} +1 -1
- package/RoleManage-DSqNkRzf.js +457 -0
- package/RoleManage-DSqNkRzf.js.map +1 -0
- package/{SysConfig-C-E20xhr.js → SysConfig-DJtvgg3P.js} +58 -57
- package/SysConfig-DJtvgg3P.js.map +1 -0
- package/{TenantList-DEt4zEko.js → TenantList-CRgWwsor.js} +25 -25
- package/{TenantList-DEt4zEko.js.map → TenantList-CRgWwsor.js.map} +1 -1
- package/{ThemeConfig-BnSOVQLK.js → ThemeConfig-2Q563amW.js} +37 -37
- package/{ThemeConfig-BnSOVQLK.js.map → ThemeConfig-2Q563amW.js.map} +1 -1
- package/{ThemeDemo-ClUdN8kY.js → ThemeDemo-Dpxy4QLR.js} +5 -5
- package/{ThemeDemo-ClUdN8kY.js.map → ThemeDemo-Dpxy4QLR.js.map} +1 -1
- package/{index-CX2pD-5k.js → index-DYguh40Y.js} +13778 -11350
- package/{index-CX2pD-5k.js.map → index-DYguh40Y.js.map} +1 -1
- package/index.es.js +96 -81
- package/package.json +2 -2
- package/style.css +1 -1
- package/{themeVarLabels-HLULMyk9.js → themeVarLabels-Ch9IFe39.js} +4 -1
- package/themeVarLabels-Ch9IFe39.js.map +1 -0
- package/AdminLogin-BGGRNnlp.js +0 -147
- package/AdminLogin-BGGRNnlp.js.map +0 -1
- package/Index-BO1MSW5E.js +0 -5
- package/Index-BO1MSW5E.js.map +0 -1
- package/MainLogin-DwPsl10t.js +0 -159
- package/MainLogin-DwPsl10t.js.map +0 -1
- package/MenuManage-BAUTyUN0.js +0 -627
- package/MenuManage-BAUTyUN0.js.map +0 -1
- package/RoleManage-DOjU1Y69.js +0 -775
- package/RoleManage-DOjU1Y69.js.map +0 -1
- package/SysConfig-C-E20xhr.js.map +0 -1
- package/themeVarLabels-HLULMyk9.js.map +0 -1
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
import { watch as ie, computed as te, reactive as ke, ref as i, onMounted as ce, resolveComponent as _, resolveDirective as pe, openBlock as b, createBlock as N, unref as u, withCtx as s, createElementVNode as m, createVNode as t, withDirectives as D, createElementBlock as R, Fragment as J, renderList as j, createTextVNode as k, toDisplayString as y, defineComponent as we, onActivated as xe, vShow as G, createCommentVNode as Pe, nextTick as re } from "vue";
|
|
2
|
+
import { ElMessage as h, ElMessageBox as Te } from "element-plus";
|
|
3
|
+
import { getConfig as Re, httpRequest as Y, deepClone as de } from "yh-client";
|
|
4
|
+
import { g as Oe, c as e, s as T, I as Ue } from "./index-DYguh40Y.js";
|
|
5
|
+
import "pinia";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "./vite.js";
|
|
8
|
+
import { _ as le } from "./Dict.vue_vue_type_script_setup_true_lang-BGgSPFL2.js";
|
|
9
|
+
const De = { style: { height: "600px" } }, Ee = { class: "icon-choose-container" }, Fe = { slot: "footer" }, Le = {
|
|
10
|
+
__name: "IconSelect",
|
|
11
|
+
props: {
|
|
12
|
+
actionData: {
|
|
13
|
+
type: Object
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["clickSure"],
|
|
17
|
+
setup(oe, { emit: z }) {
|
|
18
|
+
const w = oe, E = z;
|
|
19
|
+
ie(
|
|
20
|
+
() => w.actionData,
|
|
21
|
+
(f) => {
|
|
22
|
+
f.type === "select" ? I.value = !0 : I.value = !1;
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
deep: !0
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
const F = te(() => {
|
|
29
|
+
const f = C.icon.toLowerCase();
|
|
30
|
+
return f ? M.value.filter((c) => c.label && c.label.toLowerCase().indexOf(f) > -1 || c.value && c.value.toLowerCase().indexOf(f) > -1 || c.pinyinFull && c.pinyinFull.indexOf(f) > -1 || c.pinyinFirst && c.pinyinFirst.indexOf(f) > -1) : M.value;
|
|
31
|
+
});
|
|
32
|
+
function O() {
|
|
33
|
+
C.icon = "", I.value = !1;
|
|
34
|
+
}
|
|
35
|
+
function U(f) {
|
|
36
|
+
const c = `${f.fontFamily} ${f.prefix}${f.value}`;
|
|
37
|
+
S.value = c, E("clickSure", c), I.value = !1;
|
|
38
|
+
}
|
|
39
|
+
const C = ke({
|
|
40
|
+
icon: ""
|
|
41
|
+
}), I = i(!1), S = i(""), M = i([]), x = i(!1);
|
|
42
|
+
return ce(async () => {
|
|
43
|
+
if (!(M.value.length > 0)) {
|
|
44
|
+
x.value = !0;
|
|
45
|
+
try {
|
|
46
|
+
M.value = await Oe();
|
|
47
|
+
} finally {
|
|
48
|
+
x.value = !1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}), (f, c) => {
|
|
52
|
+
const $ = _("el-input"), L = _("el-form-item"), X = _("el-form"), a = _("el-button"), H = _("el-dialog"), Q = pe("loading");
|
|
53
|
+
return b(), N(H, {
|
|
54
|
+
modelValue: I.value,
|
|
55
|
+
"onUpdate:modelValue": c[2] || (c[2] = (g) => I.value = g),
|
|
56
|
+
title: u(e)("选择ICON"),
|
|
57
|
+
width: 1200
|
|
58
|
+
}, {
|
|
59
|
+
default: s(() => [
|
|
60
|
+
m("div", De, [
|
|
61
|
+
t(X, {
|
|
62
|
+
model: C,
|
|
63
|
+
layout: "inline"
|
|
64
|
+
}, {
|
|
65
|
+
default: s(() => [
|
|
66
|
+
t(L, {
|
|
67
|
+
label: u(e)("筛选图标")
|
|
68
|
+
}, {
|
|
69
|
+
default: s(() => [
|
|
70
|
+
t($, {
|
|
71
|
+
modelValue: C.icon,
|
|
72
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => C.icon = g),
|
|
73
|
+
placeholder: u(e)("输入中文、英文、拼音筛选"),
|
|
74
|
+
"allow-clear": ""
|
|
75
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 8, ["label"])
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["model"]),
|
|
82
|
+
D((b(), R("div", Ee, [
|
|
83
|
+
(b(!0), R(J, null, j(F.value, (g) => (b(), N(T, {
|
|
84
|
+
"font-family": g.fontFamily,
|
|
85
|
+
prefix: g.prefix,
|
|
86
|
+
name: g.value,
|
|
87
|
+
onClick: (A) => U(g)
|
|
88
|
+
}, null, 8, ["font-family", "prefix", "name", "onClick"]))), 256))
|
|
89
|
+
])), [
|
|
90
|
+
[Q, x.value]
|
|
91
|
+
])
|
|
92
|
+
]),
|
|
93
|
+
m("div", Fe, [
|
|
94
|
+
t(a, {
|
|
95
|
+
type: "primary",
|
|
96
|
+
onClick: c[1] || (c[1] = (g) => O())
|
|
97
|
+
}, {
|
|
98
|
+
default: s(() => [
|
|
99
|
+
k(y(u(e)("关闭")), 1)
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["modelValue", "title"]);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}, Ae = { class: "yh-pub-menu-manage" }, qe = { class: "operation" }, Ne = { class: "yh-pub-menu-main" }, Se = { class: "tree" }, $e = { class: "edit-status-row" }, Be = { class: "tree-tips" }, We = { class: "tree-bar" }, Ke = { class: "form" }, Ge = { class: "yh-pub-menu-option-item" }, Ye = { class: "name" }, Je = { class: "tip" }, je = { class: "yh-pub-menu-option-item" }, ze = { class: "name" }, Xe = { class: "tip" }, He = { class: "icon-preview" }, ae = "innerStatementdetail/", ul = /* @__PURE__ */ we({
|
|
110
|
+
name: "MenuManage",
|
|
111
|
+
__name: "MenuManage",
|
|
112
|
+
setup(oe) {
|
|
113
|
+
const z = [
|
|
114
|
+
{ value: "WINDOW", label: e("窗口"), desc: e("引用配置窗口作为页面") },
|
|
115
|
+
{ value: "REPORT", label: e("报表"), desc: e("引用平台报表作为页面") },
|
|
116
|
+
{ value: "LINK", label: e("访问链接"), desc: e("外部链接或内部组件路径") },
|
|
117
|
+
{ value: "SUBPAGE", label: e("子页面"), desc: e("以弹窗方式打开页面的权限") },
|
|
118
|
+
{ value: "JOIN", label: e("关联弹窗"), desc: e("关联其他窗口的权限控制") },
|
|
119
|
+
{ value: "GROUP", label: e("菜单分组"), desc: e("电脑端菜单分组容器") },
|
|
120
|
+
{ value: "APP", label: e("手机页面"), desc: e("手机端页面") }
|
|
121
|
+
];
|
|
122
|
+
i("tree");
|
|
123
|
+
const w = i(!0), E = i(""), F = i(""), O = i(null), U = i(!1), C = i(), I = i(), S = i(), M = i([]), x = i([]), f = i([]), c = i({}), $ = i(null), L = i(!1), X = i(Re("AppPageId")), a = i({
|
|
124
|
+
name: "",
|
|
125
|
+
menuType: "",
|
|
126
|
+
sysModuleId: "",
|
|
127
|
+
sysWindowId: "",
|
|
128
|
+
sysAppDesignId: "",
|
|
129
|
+
url: "",
|
|
130
|
+
parentId: "",
|
|
131
|
+
showMode: null,
|
|
132
|
+
seq: null,
|
|
133
|
+
iconPath: "",
|
|
134
|
+
description: "",
|
|
135
|
+
adMenuId: "",
|
|
136
|
+
active: "Y"
|
|
137
|
+
}), H = {
|
|
138
|
+
name: [{ required: !0, message: e("名称不能为空"), trigger: "blur" }],
|
|
139
|
+
menuType: [{ required: !0, message: e("菜单类型不能为空"), trigger: "blur" }],
|
|
140
|
+
sysModuleId: [{ required: !0, message: e("所属模块不能为空"), trigger: "blur" }],
|
|
141
|
+
showMode: [{ required: !0, message: e("显示模式不能为空"), trigger: "blur" }],
|
|
142
|
+
seq: [{ required: !0, message: e("排序值不能为空"), trigger: "blur" }],
|
|
143
|
+
iconPath: [{ required: !0, message: e("图标不能为空"), trigger: "blur" }]
|
|
144
|
+
}, Q = {
|
|
145
|
+
label: "title"
|
|
146
|
+
}, g = te(() => f.value.filter((o) => ["JOIN"].includes(a.value.menuType) || o.menuType === "GROUP")), A = i([]), Z = i([]), B = i(!1), ne = te({
|
|
147
|
+
get: () => {
|
|
148
|
+
const o = a.value.url || "";
|
|
149
|
+
return o.startsWith(ae) ? o.slice(ae.length) : "";
|
|
150
|
+
},
|
|
151
|
+
set: (o) => {
|
|
152
|
+
a.value.url = o ? ae + o : "";
|
|
153
|
+
}
|
|
154
|
+
}), ve = (o) => {
|
|
155
|
+
const l = o.trim().toLowerCase();
|
|
156
|
+
Z.value = l ? A.value.filter(
|
|
157
|
+
(r) => r.name.toLowerCase().includes(l) || r.code.toLowerCase().includes(l)
|
|
158
|
+
) : A.value;
|
|
159
|
+
}, me = () => {
|
|
160
|
+
if (A.value.length > 0 || B.value) return;
|
|
161
|
+
B.value = !0;
|
|
162
|
+
const o = 200, l = 50, r = [], p = (v) => Y.post("/sysReport/list", {
|
|
163
|
+
active: "Y",
|
|
164
|
+
key: "",
|
|
165
|
+
pageSize: o,
|
|
166
|
+
pageNumber: v
|
|
167
|
+
}).then((d) => {
|
|
168
|
+
var P, K;
|
|
169
|
+
const V = ((P = d.data) == null ? void 0 : P.list) || [];
|
|
170
|
+
if (r.push(...V), r.length < (((K = d.data) == null ? void 0 : K.total) || 0) && v < l && V.length > 0)
|
|
171
|
+
return p(v + 1);
|
|
172
|
+
});
|
|
173
|
+
p(1).then(() => {
|
|
174
|
+
A.value = r, Z.value = r;
|
|
175
|
+
}).catch((v) => {
|
|
176
|
+
console.error("获取报表列表失败:", v), h.error(e("获取报表列表失败"));
|
|
177
|
+
}).finally(() => {
|
|
178
|
+
B.value = !1;
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
ie(
|
|
182
|
+
() => a.value.menuType,
|
|
183
|
+
(o) => {
|
|
184
|
+
o === "REPORT" && me();
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
const fe = (o, l) => {
|
|
188
|
+
const r = Ue(), p = Object.keys(r), v = o ? p.filter((d) => d.toLowerCase().includes(o.toLowerCase())) : p;
|
|
189
|
+
l(v.map((d) => ({ value: d })));
|
|
190
|
+
}, W = () => {
|
|
191
|
+
w.value = !0, Y.post("/menuController/getMenuData", {}).then((o) => {
|
|
192
|
+
o.data.result && (f.value = [], x.value = o.data.menuList, M.value = ee(x.value, 0));
|
|
193
|
+
}).catch((o) => {
|
|
194
|
+
console.error("获取菜单列表失败:", o), h.error(e("获取菜单列表失败"));
|
|
195
|
+
}).finally(() => {
|
|
196
|
+
w.value = !1;
|
|
197
|
+
});
|
|
198
|
+
}, _e = () => {
|
|
199
|
+
w.value = !0, M.value = ee(x.value, 0, E.value), w.value = !1;
|
|
200
|
+
}, ee = (o, l, r) => {
|
|
201
|
+
const p = [];
|
|
202
|
+
return o.forEach((v) => {
|
|
203
|
+
const d = {
|
|
204
|
+
data: v,
|
|
205
|
+
key: "",
|
|
206
|
+
title: "",
|
|
207
|
+
level: l
|
|
208
|
+
};
|
|
209
|
+
v._childs && v._childs.length > 0 && (d.children = ee(v._childs, l + 1, r)), !(r !== void 0 && (d.children === void 0 || d.children.length === 0) && v.name.indexOf(r) === -1) && (r === void 0 && f.value.push(v), d.key = v.adMenuId, d.title = v.name, p.push(d));
|
|
210
|
+
}), p;
|
|
211
|
+
}, ye = (o, l) => {
|
|
212
|
+
if (o) {
|
|
213
|
+
const r = de(o.data);
|
|
214
|
+
a.value = r, F.value = r.name, $.value = l, O.value = o.data.adMenuId;
|
|
215
|
+
} else
|
|
216
|
+
O.value = null, q();
|
|
217
|
+
}, be = () => {
|
|
218
|
+
ue(), re(() => {
|
|
219
|
+
var o;
|
|
220
|
+
(o = S.value) == null || o.focus();
|
|
221
|
+
});
|
|
222
|
+
}, ue = () => {
|
|
223
|
+
var o;
|
|
224
|
+
L.value || (L.value = !0, (o = C.value) == null || o.setCurrentKey(null), re(() => {
|
|
225
|
+
O.value = null, q(), L.value = !1;
|
|
226
|
+
}));
|
|
227
|
+
}, q = () => {
|
|
228
|
+
var o;
|
|
229
|
+
a.value.adMenuId = "", F.value = "", (o = I.value) == null || o.resetFields();
|
|
230
|
+
}, se = () => {
|
|
231
|
+
var o;
|
|
232
|
+
if (a.value.adMenuId && a.value.parentId === a.value.adMenuId) {
|
|
233
|
+
h.error(e("父级菜单不能为自身!"));
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
if (a.value.menuType === "REPORT" && !a.value.url) {
|
|
237
|
+
h.error(e("访问报表不能为空"));
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
(o = I.value) == null || o.validate((l) => {
|
|
241
|
+
if (l) {
|
|
242
|
+
U.value = !0;
|
|
243
|
+
const r = de(a.value);
|
|
244
|
+
delete r.created, delete r.updated, delete r._childs, Y.post("/menuController/submitMenu", r).then((p) => {
|
|
245
|
+
p.data.result ? (h.success(
|
|
246
|
+
(a.value.adMenuId !== "" ? e("修改") : e("新增")) + e("成功")
|
|
247
|
+
), W(), q()) : h.error(p.data.msg);
|
|
248
|
+
}).catch((p) => {
|
|
249
|
+
console.error("提交菜单失败:", p), h.error(e("提交失败,请稍后重试"));
|
|
250
|
+
}).finally(() => {
|
|
251
|
+
U.value = !1;
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}, ge = () => {
|
|
256
|
+
if (!$.value) {
|
|
257
|
+
h.warning(e("您还未勾选要删除的数据"));
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
Te.confirm(e("您确认要删除所选的数据?"), e("确认删除"), {
|
|
261
|
+
type: "warning"
|
|
262
|
+
}).then(() => {
|
|
263
|
+
const o = a.value.adMenuId;
|
|
264
|
+
Y.post("/menuController/delMenuByIds", { ids: o }).then((l) => {
|
|
265
|
+
l.data.result ? (h.success(e("删除成功")), W(), q()) : h.error(l.data.msg);
|
|
266
|
+
}).catch((l) => {
|
|
267
|
+
console.error("删除菜单失败:", l), h.error(e("删除失败,请稍后重试"));
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
}, he = () => {
|
|
271
|
+
c.value = {
|
|
272
|
+
type: "select"
|
|
273
|
+
};
|
|
274
|
+
}, Ie = (o) => {
|
|
275
|
+
a.value.iconPath = o;
|
|
276
|
+
};
|
|
277
|
+
return ce(() => {
|
|
278
|
+
W();
|
|
279
|
+
}), xe(() => {
|
|
280
|
+
}), (o, l) => {
|
|
281
|
+
const r = _("el-button"), p = _("el-input"), v = _("el-tree"), d = _("el-form-item"), V = _("el-option"), P = _("el-select"), K = _("el-autocomplete"), Ve = _("el-switch"), Ce = _("el-form"), Me = pe("loading");
|
|
282
|
+
return b(), R("div", Ae, [
|
|
283
|
+
m("div", qe, [
|
|
284
|
+
t(r, {
|
|
285
|
+
onClick: be,
|
|
286
|
+
type: "primary"
|
|
287
|
+
}, {
|
|
288
|
+
default: s(() => [
|
|
289
|
+
t(T, {
|
|
290
|
+
fontFamily: "yhicon",
|
|
291
|
+
prefix: "yh-",
|
|
292
|
+
name: "plus"
|
|
293
|
+
}),
|
|
294
|
+
k(" " + y(u(e)("新增")), 1)
|
|
295
|
+
]),
|
|
296
|
+
_: 1
|
|
297
|
+
}),
|
|
298
|
+
t(r, {
|
|
299
|
+
onClick: ge,
|
|
300
|
+
type: "danger"
|
|
301
|
+
}, {
|
|
302
|
+
default: s(() => [
|
|
303
|
+
t(T, {
|
|
304
|
+
fontFamily: "yhicon",
|
|
305
|
+
prefix: "yh-",
|
|
306
|
+
name: "delete2"
|
|
307
|
+
}),
|
|
308
|
+
k(" " + y(u(e)("删除")), 1)
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
}),
|
|
312
|
+
t(r, { onClick: W }, {
|
|
313
|
+
default: s(() => [
|
|
314
|
+
t(T, {
|
|
315
|
+
fontFamily: "yhicon",
|
|
316
|
+
prefix: "yh-",
|
|
317
|
+
name: "refresh"
|
|
318
|
+
}),
|
|
319
|
+
k(" " + y(u(e)("刷新")), 1)
|
|
320
|
+
]),
|
|
321
|
+
_: 1
|
|
322
|
+
})
|
|
323
|
+
]),
|
|
324
|
+
m("div", Ne, [
|
|
325
|
+
m("div", Se, [
|
|
326
|
+
m("div", $e, [
|
|
327
|
+
m("div", Be, y(u(e)("当前选择编辑:") + F.value), 1),
|
|
328
|
+
t(T, {
|
|
329
|
+
class: "select-clear-icon",
|
|
330
|
+
onClick: ue,
|
|
331
|
+
fontFamily: "yhicon",
|
|
332
|
+
prefix: "yh-",
|
|
333
|
+
name: "circle-close"
|
|
334
|
+
})
|
|
335
|
+
]),
|
|
336
|
+
t(p, {
|
|
337
|
+
modelValue: E.value,
|
|
338
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => E.value = n),
|
|
339
|
+
onChange: _e,
|
|
340
|
+
placeholder: u(e)("输入菜单名搜索"),
|
|
341
|
+
clearable: ""
|
|
342
|
+
}, {
|
|
343
|
+
prepend: s(() => [
|
|
344
|
+
t(T, { name: "search" })
|
|
345
|
+
]),
|
|
346
|
+
_: 1
|
|
347
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
348
|
+
D((b(), R("div", We, [
|
|
349
|
+
t(v, {
|
|
350
|
+
ref_key: "treeRef",
|
|
351
|
+
ref: C,
|
|
352
|
+
data: M.value,
|
|
353
|
+
props: Q,
|
|
354
|
+
"node-key": "key",
|
|
355
|
+
"default-expand-all": "",
|
|
356
|
+
"expand-on-click-node": !1,
|
|
357
|
+
"highlight-current": "",
|
|
358
|
+
"current-node-key": O.value,
|
|
359
|
+
onCurrentChange: ye
|
|
360
|
+
}, null, 8, ["data", "current-node-key"])
|
|
361
|
+
])), [
|
|
362
|
+
[Me, w.value]
|
|
363
|
+
])
|
|
364
|
+
]),
|
|
365
|
+
m("div", Ke, [
|
|
366
|
+
t(Ce, {
|
|
367
|
+
ref_key: "formRef",
|
|
368
|
+
ref: I,
|
|
369
|
+
class: "menu-edit-form",
|
|
370
|
+
model: a.value,
|
|
371
|
+
rules: H,
|
|
372
|
+
"label-width": "90px"
|
|
373
|
+
}, {
|
|
374
|
+
default: s(() => [
|
|
375
|
+
t(d, {
|
|
376
|
+
label: u(e)("名称"),
|
|
377
|
+
prop: "name"
|
|
378
|
+
}, {
|
|
379
|
+
default: s(() => [
|
|
380
|
+
t(p, {
|
|
381
|
+
modelValue: a.value.name,
|
|
382
|
+
"onUpdate:modelValue": l[1] || (l[1] = (n) => a.value.name = n),
|
|
383
|
+
ref_key: "nameInputRef",
|
|
384
|
+
ref: S
|
|
385
|
+
}, null, 8, ["modelValue"])
|
|
386
|
+
]),
|
|
387
|
+
_: 1
|
|
388
|
+
}, 8, ["label"]),
|
|
389
|
+
t(d, {
|
|
390
|
+
label: u(e)("类型"),
|
|
391
|
+
prop: "menuType"
|
|
392
|
+
}, {
|
|
393
|
+
default: s(() => [
|
|
394
|
+
t(P, {
|
|
395
|
+
modelValue: a.value.menuType,
|
|
396
|
+
"onUpdate:modelValue": l[2] || (l[2] = (n) => a.value.menuType = n),
|
|
397
|
+
"popper-class": "yh-pub-menu-option",
|
|
398
|
+
placeholder: u(e)("请选择或输入搜索"),
|
|
399
|
+
filterable: "",
|
|
400
|
+
clearable: ""
|
|
401
|
+
}, {
|
|
402
|
+
default: s(() => [
|
|
403
|
+
(b(), R(J, null, j(z, (n) => t(V, {
|
|
404
|
+
key: n.value,
|
|
405
|
+
value: n.value,
|
|
406
|
+
label: n.label
|
|
407
|
+
}, {
|
|
408
|
+
default: s(() => [
|
|
409
|
+
m("div", Ge, [
|
|
410
|
+
m("div", Ye, y(u(e)(n.label)), 1),
|
|
411
|
+
m("div", Je, y(u(e)(n.desc)), 1)
|
|
412
|
+
])
|
|
413
|
+
]),
|
|
414
|
+
_: 2
|
|
415
|
+
}, 1032, ["value", "label"])), 64))
|
|
416
|
+
]),
|
|
417
|
+
_: 1
|
|
418
|
+
}, 8, ["modelValue", "placeholder"])
|
|
419
|
+
]),
|
|
420
|
+
_: 1
|
|
421
|
+
}, 8, ["label"]),
|
|
422
|
+
t(d, {
|
|
423
|
+
label: u(e)("所属模块"),
|
|
424
|
+
prop: "sysModuleId"
|
|
425
|
+
}, {
|
|
426
|
+
default: s(() => [
|
|
427
|
+
t(le, {
|
|
428
|
+
dict: "sysModuleId",
|
|
429
|
+
_select_id: "59C1E77AE78D44DF8876688FE78DB53E",
|
|
430
|
+
modelValue: a.value.sysModuleId,
|
|
431
|
+
"onUpdate:modelValue": l[3] || (l[3] = (n) => a.value.sysModuleId = n),
|
|
432
|
+
placeholder: "请选择或输入搜索",
|
|
433
|
+
filterable: "",
|
|
434
|
+
clearable: ""
|
|
435
|
+
}, null, 8, ["modelValue"])
|
|
436
|
+
]),
|
|
437
|
+
_: 1
|
|
438
|
+
}, 8, ["label"]),
|
|
439
|
+
D(t(d, {
|
|
440
|
+
label: u(e)("请求地址"),
|
|
441
|
+
prop: "url"
|
|
442
|
+
}, {
|
|
443
|
+
default: s(() => [
|
|
444
|
+
t(K, {
|
|
445
|
+
modelValue: a.value.url,
|
|
446
|
+
"onUpdate:modelValue": l[4] || (l[4] = (n) => a.value.url = n),
|
|
447
|
+
"fetch-suggestions": fe,
|
|
448
|
+
placeholder: u(e)("请输入或选择组件路径"),
|
|
449
|
+
clearable: "",
|
|
450
|
+
style: { width: "100%" }
|
|
451
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
452
|
+
]),
|
|
453
|
+
_: 1
|
|
454
|
+
}, 8, ["label"]), [
|
|
455
|
+
[G, ["LINK", "SUBPAGE"].includes(a.value.menuType)]
|
|
456
|
+
]),
|
|
457
|
+
D(t(d, {
|
|
458
|
+
label: u(e)("访问报表"),
|
|
459
|
+
prop: "url"
|
|
460
|
+
}, {
|
|
461
|
+
default: s(() => [
|
|
462
|
+
t(P, {
|
|
463
|
+
modelValue: ne.value,
|
|
464
|
+
"onUpdate:modelValue": l[5] || (l[5] = (n) => ne.value = n),
|
|
465
|
+
"popper-class": "yh-pub-menu-option",
|
|
466
|
+
placeholder: u(e)("请选择或输入搜索"),
|
|
467
|
+
loading: B.value,
|
|
468
|
+
filterable: "",
|
|
469
|
+
clearable: "",
|
|
470
|
+
"filter-method": ve
|
|
471
|
+
}, {
|
|
472
|
+
default: s(() => [
|
|
473
|
+
(b(!0), R(J, null, j(Z.value, (n) => (b(), N(V, {
|
|
474
|
+
key: n.id,
|
|
475
|
+
value: n.id,
|
|
476
|
+
label: n.name
|
|
477
|
+
}, {
|
|
478
|
+
default: s(() => [
|
|
479
|
+
m("div", je, [
|
|
480
|
+
m("div", ze, y(n.name), 1),
|
|
481
|
+
m("div", Xe, y(n.code), 1)
|
|
482
|
+
])
|
|
483
|
+
]),
|
|
484
|
+
_: 2
|
|
485
|
+
}, 1032, ["value", "label"]))), 128))
|
|
486
|
+
]),
|
|
487
|
+
_: 1
|
|
488
|
+
}, 8, ["modelValue", "placeholder", "loading"])
|
|
489
|
+
]),
|
|
490
|
+
_: 1
|
|
491
|
+
}, 8, ["label"]), [
|
|
492
|
+
[G, a.value.menuType === "REPORT"]
|
|
493
|
+
]),
|
|
494
|
+
D(t(d, {
|
|
495
|
+
label: u(e)("访问窗口"),
|
|
496
|
+
prop: "sysWindowId"
|
|
497
|
+
}, {
|
|
498
|
+
default: s(() => [
|
|
499
|
+
t(le, {
|
|
500
|
+
dict: "sysWindowId",
|
|
501
|
+
_select_id: "F56B868C8FF44053926920588FB3C76C",
|
|
502
|
+
modelValue: a.value.sysWindowId,
|
|
503
|
+
"onUpdate:modelValue": l[6] || (l[6] = (n) => a.value.sysWindowId = n),
|
|
504
|
+
placeholder: u(e)("请选择或输入搜索"),
|
|
505
|
+
filterable: "",
|
|
506
|
+
clearable: ""
|
|
507
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
508
|
+
]),
|
|
509
|
+
_: 1
|
|
510
|
+
}, 8, ["label"]), [
|
|
511
|
+
[G, a.value.menuType === "WINDOW" || a.value.menuType === "JOIN"]
|
|
512
|
+
]),
|
|
513
|
+
D(t(d, {
|
|
514
|
+
label: "App页面",
|
|
515
|
+
prop: "sysAppDesignId"
|
|
516
|
+
}, {
|
|
517
|
+
default: s(() => [
|
|
518
|
+
t(le, {
|
|
519
|
+
dict: "sysAppDesignId",
|
|
520
|
+
_select_id: X.value,
|
|
521
|
+
modelValue: a.value.sysAppDesignId,
|
|
522
|
+
"onUpdate:modelValue": l[7] || (l[7] = (n) => a.value.sysAppDesignId = n),
|
|
523
|
+
placeholder: u(e)("请选择或输入搜索"),
|
|
524
|
+
filterable: "",
|
|
525
|
+
clearable: ""
|
|
526
|
+
}, null, 8, ["_select_id", "modelValue", "placeholder"])
|
|
527
|
+
]),
|
|
528
|
+
_: 1
|
|
529
|
+
}, 512), [
|
|
530
|
+
[G, a.value.menuType === "APP"]
|
|
531
|
+
]),
|
|
532
|
+
t(d, {
|
|
533
|
+
label: u(e)("上级菜单"),
|
|
534
|
+
prop: "parentId"
|
|
535
|
+
}, {
|
|
536
|
+
default: s(() => [
|
|
537
|
+
t(P, {
|
|
538
|
+
modelValue: a.value.parentId,
|
|
539
|
+
"onUpdate:modelValue": l[8] || (l[8] = (n) => a.value.parentId = n),
|
|
540
|
+
placeholder: u(e)("请选择或输入搜索"),
|
|
541
|
+
filterable: "",
|
|
542
|
+
clearable: ""
|
|
543
|
+
}, {
|
|
544
|
+
default: s(() => [
|
|
545
|
+
(b(!0), R(J, null, j(g.value, (n) => (b(), N(V, {
|
|
546
|
+
value: n.adMenuId,
|
|
547
|
+
label: n.name,
|
|
548
|
+
key: n.adMenuId
|
|
549
|
+
}, null, 8, ["value", "label"]))), 128))
|
|
550
|
+
]),
|
|
551
|
+
_: 1
|
|
552
|
+
}, 8, ["modelValue", "placeholder"])
|
|
553
|
+
]),
|
|
554
|
+
_: 1
|
|
555
|
+
}, 8, ["label"]),
|
|
556
|
+
t(d, {
|
|
557
|
+
label: u(e)("显示模式"),
|
|
558
|
+
prop: "showMode"
|
|
559
|
+
}, {
|
|
560
|
+
default: s(() => [
|
|
561
|
+
t(P, {
|
|
562
|
+
modelValue: a.value.showMode,
|
|
563
|
+
"onUpdate:modelValue": l[9] || (l[9] = (n) => a.value.showMode = n),
|
|
564
|
+
placeholder: u(e)("请选择或输入搜索"),
|
|
565
|
+
filterable: "",
|
|
566
|
+
clearable: ""
|
|
567
|
+
}, {
|
|
568
|
+
default: s(() => [
|
|
569
|
+
t(V, {
|
|
570
|
+
value: "P",
|
|
571
|
+
label: u(e)("电脑端")
|
|
572
|
+
}, null, 8, ["label"]),
|
|
573
|
+
t(V, {
|
|
574
|
+
value: "M",
|
|
575
|
+
label: u(e)("手机端")
|
|
576
|
+
}, null, 8, ["label"]),
|
|
577
|
+
t(V, {
|
|
578
|
+
value: "PM",
|
|
579
|
+
label: u(e)("电脑+手机")
|
|
580
|
+
}, null, 8, ["label"])
|
|
581
|
+
]),
|
|
582
|
+
_: 1
|
|
583
|
+
}, 8, ["modelValue", "placeholder"])
|
|
584
|
+
]),
|
|
585
|
+
_: 1
|
|
586
|
+
}, 8, ["label"]),
|
|
587
|
+
t(d, {
|
|
588
|
+
label: u(e)("排序"),
|
|
589
|
+
prop: "seq"
|
|
590
|
+
}, {
|
|
591
|
+
default: s(() => [
|
|
592
|
+
t(p, {
|
|
593
|
+
type: "number",
|
|
594
|
+
modelValue: a.value.seq,
|
|
595
|
+
"onUpdate:modelValue": l[10] || (l[10] = (n) => a.value.seq = n)
|
|
596
|
+
}, null, 8, ["modelValue"])
|
|
597
|
+
]),
|
|
598
|
+
_: 1
|
|
599
|
+
}, 8, ["label"]),
|
|
600
|
+
t(d, {
|
|
601
|
+
label: u(e)("图标地址"),
|
|
602
|
+
prop: "iconPath",
|
|
603
|
+
class: "icon-select-form-item"
|
|
604
|
+
}, {
|
|
605
|
+
default: s(() => [
|
|
606
|
+
t(r, {
|
|
607
|
+
type: "info",
|
|
608
|
+
onClick: l[11] || (l[11] = (n) => he())
|
|
609
|
+
}, {
|
|
610
|
+
default: s(() => [
|
|
611
|
+
k(y(u(e)("图标选择")), 1)
|
|
612
|
+
]),
|
|
613
|
+
_: 1
|
|
614
|
+
}),
|
|
615
|
+
t(p, {
|
|
616
|
+
modelValue: a.value.iconPath,
|
|
617
|
+
"onUpdate:modelValue": l[12] || (l[12] = (n) => a.value.iconPath = n)
|
|
618
|
+
}, null, 8, ["modelValue"]),
|
|
619
|
+
m("span", He, [
|
|
620
|
+
a.value.iconPath ? (b(), N(T, {
|
|
621
|
+
key: 0,
|
|
622
|
+
name: a.value.iconPath
|
|
623
|
+
}, null, 8, ["name"])) : Pe("", !0)
|
|
624
|
+
])
|
|
625
|
+
]),
|
|
626
|
+
_: 1
|
|
627
|
+
}, 8, ["label"]),
|
|
628
|
+
t(d, {
|
|
629
|
+
label: u(e)("备注"),
|
|
630
|
+
prop: "description"
|
|
631
|
+
}, {
|
|
632
|
+
default: s(() => [
|
|
633
|
+
t(p, {
|
|
634
|
+
modelValue: a.value.description,
|
|
635
|
+
"onUpdate:modelValue": l[13] || (l[13] = (n) => a.value.description = n),
|
|
636
|
+
type: "textarea"
|
|
637
|
+
}, null, 8, ["modelValue"])
|
|
638
|
+
]),
|
|
639
|
+
_: 1
|
|
640
|
+
}, 8, ["label"]),
|
|
641
|
+
t(d, {
|
|
642
|
+
label: u(e)("是否有效")
|
|
643
|
+
}, {
|
|
644
|
+
default: s(() => [
|
|
645
|
+
t(Ve, {
|
|
646
|
+
modelValue: a.value.active,
|
|
647
|
+
"onUpdate:modelValue": l[14] || (l[14] = (n) => a.value.active = n),
|
|
648
|
+
"inline-prompt": "",
|
|
649
|
+
"active-value": "Y",
|
|
650
|
+
"inactive-value": "N",
|
|
651
|
+
"active-text": u(e)("有效"),
|
|
652
|
+
"inactive-text": u(e)("无效")
|
|
653
|
+
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
654
|
+
]),
|
|
655
|
+
_: 1
|
|
656
|
+
}, 8, ["label"]),
|
|
657
|
+
t(d, null, {
|
|
658
|
+
default: s(() => [
|
|
659
|
+
t(r, {
|
|
660
|
+
style: { "margin-right": "5px" },
|
|
661
|
+
onClick: se,
|
|
662
|
+
loading: U.value,
|
|
663
|
+
disabled: a.value.adMenuId !== "",
|
|
664
|
+
type: "primary"
|
|
665
|
+
}, {
|
|
666
|
+
default: s(() => [
|
|
667
|
+
l[15] || (l[15] = m("i", { class: "iconfont icon-plus" }, null, -1)),
|
|
668
|
+
k(" " + y(u(e)("保存新增")), 1)
|
|
669
|
+
]),
|
|
670
|
+
_: 1
|
|
671
|
+
}, 8, ["loading", "disabled"]),
|
|
672
|
+
t(r, {
|
|
673
|
+
style: { "margin-right": "5px" },
|
|
674
|
+
onClick: se,
|
|
675
|
+
loading: U.value,
|
|
676
|
+
disabled: a.value.adMenuId === "",
|
|
677
|
+
type: "primary"
|
|
678
|
+
}, {
|
|
679
|
+
default: s(() => [
|
|
680
|
+
l[16] || (l[16] = m("i", { class: "iconfont icon-save" }, null, -1)),
|
|
681
|
+
k(" " + y(u(e)("保存修改")), 1)
|
|
682
|
+
]),
|
|
683
|
+
_: 1
|
|
684
|
+
}, 8, ["loading", "disabled"]),
|
|
685
|
+
t(r, { onClick: q }, {
|
|
686
|
+
default: s(() => [
|
|
687
|
+
k(y(u(e)("重置")), 1)
|
|
688
|
+
]),
|
|
689
|
+
_: 1
|
|
690
|
+
})
|
|
691
|
+
]),
|
|
692
|
+
_: 1
|
|
693
|
+
})
|
|
694
|
+
]),
|
|
695
|
+
_: 1
|
|
696
|
+
}, 8, ["model"])
|
|
697
|
+
])
|
|
698
|
+
]),
|
|
699
|
+
t(Le, {
|
|
700
|
+
actionData: c.value,
|
|
701
|
+
onClickSure: Ie
|
|
702
|
+
}, null, 8, ["actionData"])
|
|
703
|
+
]);
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
export {
|
|
708
|
+
ul as default
|
|
709
|
+
};
|
|
710
|
+
//# sourceMappingURL=MenuManage-CKWdPkf8.js.map
|