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