yh-pub 1.0.2 → 2.0.1
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-BoxKRRwd.js +140 -0
- package/AdminLogin-BoxKRRwd.js.map +1 -0
- package/Dict.vue_vue_type_script_setup_true_lang-A8BZwEiK.js +55 -0
- package/Dict.vue_vue_type_script_setup_true_lang-A8BZwEiK.js.map +1 -0
- package/Error-BCu4KHfU.js +43 -0
- package/Error-BCu4KHfU.js.map +1 -0
- package/Error401-C5kTyMSM.js +30 -0
- package/Error401-C5kTyMSM.js.map +1 -0
- package/Error404-P3qKjHk6.js +30 -0
- package/Error404-P3qKjHk6.js.map +1 -0
- package/Error500-NVnuOBIQ.js +30 -0
- package/Error500-NVnuOBIQ.js.map +1 -0
- package/HomeIndex-C806Fp-9.js +438 -0
- package/HomeIndex-C806Fp-9.js.map +1 -0
- package/IconExplorer-CBg1lvD0.js +66 -0
- package/IconExplorer-CBg1lvD0.js.map +1 -0
- package/Index-AjfvK7Ss.js +5 -0
- package/Index-AjfvK7Ss.js.map +1 -0
- package/MainLogin-wW7bSk0F.js +155 -0
- package/MainLogin-wW7bSk0F.js.map +1 -0
- package/MenuManage-CIxqmusr.js +641 -0
- package/MenuManage-CIxqmusr.js.map +1 -0
- package/OrgManage-BcTWbnyc.js +378 -0
- package/OrgManage-BcTWbnyc.js.map +1 -0
- package/RoleManage-Bw83c_7q.js +729 -0
- package/RoleManage-Bw83c_7q.js.map +1 -0
- package/SysConfig-L0A1eY-O.js +727 -0
- package/SysConfig-L0A1eY-O.js.map +1 -0
- package/TenantList-B5imzQc5.js +696 -0
- package/TenantList-B5imzQc5.js.map +1 -0
- package/index-BP41Ph8K.js +55257 -0
- package/index-BP41Ph8K.js.map +1 -0
- package/index-CJ0So9-k.js +7 -0
- package/index-CJ0So9-k.js.map +1 -0
- package/index-wVC41gTc.js +23955 -0
- package/index-wVC41gTc.js.map +1 -0
- package/index.d.ts +35 -0
- package/index.es.js +66 -0
- package/index.es.js.map +1 -0
- package/package.json +27 -6
- package/style.css +1 -0
- package/README.MD +0 -19
- package/layout/admin/adminIndex.vue +0 -104
- package/layout/admin/api/loginApi.js +0 -24
- package/layout/admin/api/routers.js +0 -93
- package/layout/admin/api/tenantApi.js +0 -123
- package/layout/admin/home/homeIndex.vue +0 -25
- package/layout/admin/login/login.vue +0 -161
- package/layout/admin/menu/MenuIndex.vue +0 -648
- package/layout/admin/menu/icon.vue +0 -108
- package/layout/admin/menu/iconList.js +0 -934
- package/layout/admin/saTenant/saTenant.js +0 -0
- package/layout/admin/saTenant/saTenant.vue +0 -173
- package/layout/admin/saTenant/saTenantForm.js +0 -80
- package/layout/admin/saTenant/saTenantForm.vue +0 -61
- package/layout/admin/saTenant/saTenantRoleManage.js +0 -417
- package/layout/admin/saTenant/saTenantRoleManage.vue +0 -99
- package/layout/admin/user/saUser.less +0 -6
- package/layout/admin/user/saUser.vue +0 -72
- package/layout/main/components/console/console.vue +0 -205
- package/layout/main/components/error-store/error-store.vue +0 -72
- package/layout/main/components/error-store/index.js +0 -2
- package/layout/main/components/fullscreen/fullscreen.vue +0 -57
- package/layout/main/components/fullscreen/index.js +0 -2
- package/layout/main/components/language/language.vue +0 -71
- package/layout/main/components/side-menu/side-menu.less +0 -74
- package/layout/main/components/side-menu/side-menu.vue +0 -75
- package/layout/main/components/tags-nav/tags-nav.less +0 -45
- package/layout/main/components/tags-nav/tags-nav.vue +0 -144
- package/layout/main/components/user/user.less +0 -12
- package/layout/main/components/user/user.vue +0 -185
- package/layout/main/home/home.vue +0 -480
- package/layout/main/home/index.js +0 -2
- package/layout/main/home/toDoList.vue +0 -32
- package/layout/main/login/login.less +0 -93
- package/layout/main/login/login.vue +0 -151
- package/layout/main/main.less +0 -81
- package/layout/main/main.vue +0 -254
- package/layout/main/system/dict.vue +0 -64
- package/layout/main/system/orgManage.vue +0 -473
- package/layout/main/system/roleManage.js +0 -807
- package/layout/main/system/roleManage.vue +0 -424
- package/view/basic/error-logger.vue +0 -74
- package/view/basic/error-page/401.vue +0 -22
- package/view/basic/error-page/404.vue +0 -22
- package/view/basic/error-page/500.vue +0 -22
- package/view/basic/error-page/back-btn-group.vue +0 -48
- package/view/basic/error-page/error-content.vue +0 -28
- package/view/basic/error-page/error.less +0 -46
- package/view/config/component/confFormItem.vue +0 -49
- package/view/config/config.scss +0 -45
- package/view/config/configIndex.vue +0 -150
- package/view/config/subPage/router-config.vue +0 -5
- package/view/config/subPage/sys-config.vue +0 -249
- package/view/window/IframeFReportView.vue +0 -28
- package/view/window/windowIndex.vue +0 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MainLogin-wW7bSk0F.js","sources":["../layout/MainLogin.vue"],"sourcesContent":["<template>\n <div\n class=\"login\"\n :style=\"{backgroundImage: `url(${appStore.loginBg || defaultLoginBg})`}\">\n <!-- 右上角后台管理入口 -->\n <div\n class=\"admin-entry\"\n @click=\"goToAdminLogin\"\n title=\"后台管理\">\n <YhIcon\n fontFamily=\"yhicon\"\n prefix=\"yh-\"\n name=\"setting\"></YhIcon>\n </div>\n <div class=\"login-content\">\n <div class=\"login-title\">\n <img\n class=\"login-logo\"\n :src=\"appStore.miniLogoUrl || defaultLogo\"\n alt=\"力控元海\" />\n <div class=\"login-title-text\">\n <div class=\"login-title-cn\">{{ title || '力控元海' }}</div>\n <div class=\"login-title-en\">{{ titleEn || 'ANYHAI' }}</div>\n </div>\n </div>\n <div class=\"form-con\">\n <el-form\n ref=\"loginForm\"\n :model=\"form\"\n :rules=\"rules\"\n size=\"large\"\n layout=\"inline\"\n @keydown.enter=\"handleSubmit\">\n <el-form-item prop=\"username\">\n <el-input\n ref=\"username\"\n v-model=\"form.username\"\n size=\"large\"\n placeholder=\"请输入用户名\">\n <template #prefix>\n <YhIcon\n fontFamily=\"yhicon\"\n prefix=\"yh-\"\n name=\"user\"></YhIcon>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item prop=\"password\">\n <el-input\n ref=\"password\"\n type=\"password\"\n size=\"large\"\n v-model=\"form.password\"\n placeholder=\"请输入密码\"\n style=\"line-height: 40px\">\n <template #prefix>\n <YhIcon\n fontFamily=\"yhicon\"\n prefix=\"yh-\"\n name=\"lock\"></YhIcon>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item>\n <el-button\n @click=\"handleSubmit\"\n type=\"primary\"\n style=\"width: 100%\"\n size=\"large\"\n :loading=\"loading\">\n 登录\n </el-button>\n </el-form-item>\n </el-form>\n <p class=\"login-tip\">{{ errorMsg }}</p>\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import {ElMessage} from 'element-plus';\n import {ref, reactive, onMounted} from 'vue';\n import {useRouter} from 'vue-router';\n import {useClientStore, getConfig} from 'yh-client';\n import {useAppStore} from '../store';\n import {resetInitTasks, runInitTasks} from '../init';\n\n const router = useRouter();\n const clientStore = useClientStore();\n const appStore = useAppStore();\n\n // 默认 logo\n const defaultLogo = new URL('../assets/images/logo-mini.png', import.meta.url).href;\n const defaultLoginBg = new URL('../assets/images/login-bg.jpg', import.meta.url).href;\n\n // 标题配置\n const title = ref('');\n const titleEn = ref('');\n\n // 初始化时获取配置\n onMounted(() => {\n title.value = getConfig('title');\n titleEn.value = getConfig('titleEn');\n });\n\n const loginForm = ref();\n\n const errorMsg = ref('');\n const loading = ref(false);\n\n interface Form {\n username: string;\n password: string;\n }\n\n const form = reactive<Form>({\n username: '',\n password: '',\n });\n\n const rules = reactive({\n username: [{required: true, message: '账号不能为空', trigger: 'blur'}],\n password: [{required: true, message: '密码不能为空', trigger: 'blur'}],\n });\n\n async function handleSubmit() {\n if (!loginForm.value) return;\n\n const valid = await loginForm.value.validate();\n if (!valid) return;\n\n loading.value = true;\n errorMsg.value = '';\n\n try {\n // 登录\n await clientStore.login({\n username: form.username,\n password: form.password,\n });\n\n // 重置并重新执行初始化任务(加载用户信息、业务路由)\n resetInitTasks();\n await runInitTasks();\n\n ElMessage.success('登录成功');\n router.push('/');\n } catch (e: any) {\n console.error(e);\n errorMsg.value = e?.response?.data?.msg || e?.message || '登录失败';\n } finally {\n loading.value = false;\n }\n }\n\n function goToAdminLogin() {\n router.push('/admin/login');\n }\n</script>\n\n<style lang=\"scss\">\n .login {\n position: relative;\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n background-size: cover;\n background-position: center;\n --el-border-color: #ffffff;\n\n .admin-entry {\n position: absolute;\n top: 20px;\n right: 20px;\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(255, 255, 255, 0.1);\n border-radius: 8px;\n cursor: pointer;\n color: rgba(255, 255, 255, 0.7);\n transition: all 0.3s;\n z-index: 10;\n\n &:hover {\n background: rgba(255, 255, 255, 0.2);\n color: #ffffff;\n }\n\n i {\n font-size: 20px;\n }\n }\n\n &-content {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 40px;\n padding: 20px;\n }\n\n .login-title {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 30px;\n\n .login-logo {\n flex-shrink: 0;\n max-width: 80px;\n width: auto;\n height: auto;\n aspect-ratio: 1 / 1;\n object-fit: contain;\n }\n\n &-text {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n &-cn {\n font-size: 3rem;\n color: #fcfcfc;\n font-weight: bolder;\n }\n\n &-en {\n font-size: 1.5rem;\n color: #fcfcfc;\n font-family: 'Microsoft YaHei';\n }\n }\n\n .form-con {\n width: 100%;\n max-width: 600px;\n padding: 30px;\n backdrop-filter: blur(10px);\n border-radius: 8px;\n }\n\n .login-tip {\n font-size: 1rem;\n text-align: center;\n color: #ffa24a;\n min-height: 1.5em;\n margin-top: 10px;\n }\n\n &-info {\n padding: 40px 0;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 30px;\n\n &-item {\n text-align: center;\n }\n\n &-icon {\n width: 70px;\n height: 70px;\n border-radius: 35px;\n background-color: #fcfcfc;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n\n i {\n font-size: 40px;\n color: #3e99fd;\n }\n }\n\n &-text {\n font-size: 1rem;\n color: #ffffff;\n margin-top: 10px;\n }\n }\n }\n</style>\n"],"names":["router","useRouter","clientStore","useClientStore","appStore","useAppStore","defaultLogo","defaultLoginBg","title","ref","titleEn","onMounted","getConfig","loginForm","errorMsg","loading","form","reactive","rules","handleSubmit","resetInitTasks","runInitTasks","ElMessage","e","_b","_a","goToAdminLogin","_createElementBlock","_normalizeStyle","_unref","_createElementVNode","_createVNode","_component_YhIcon","_hoisted_1","_hoisted_2","_hoisted_4","_hoisted_5","_toDisplayString","_hoisted_6","_hoisted_7","_component_el_form","_component_el_form_item","_component_el_input","_cache","$event","_component_el_button","_hoisted_8"],"mappings":"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"}
|
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
import { watch as ge, computed as ae, reactive as be, ref as r, onMounted as oe, resolveComponent as d, resolveDirective as ne, openBlock as g, createBlock as S, withCtx as n, createElementVNode as I, createVNode as l, withDirectives as x, createElementBlock as k, Fragment as H, renderList as J, createTextVNode as M, defineComponent as Ie, onActivated as Ve, normalizeStyle as Me, vShow as B, createCommentVNode as he, nextTick as le } from "vue";
|
|
2
|
+
import { ElMessage as b, ElMessageBox as we } from "element-plus";
|
|
3
|
+
import { g as xe, h as C, j as G, w as Ce, _ as ke } from "./index-BP41Ph8K.js";
|
|
4
|
+
import "lodash-es";
|
|
5
|
+
import { d as te } from "./index-CJ0So9-k.js";
|
|
6
|
+
import { _ as Y } from "./Dict.vue_vue_type_script_setup_true_lang-A8BZwEiK.js";
|
|
7
|
+
const Fe = { style: { height: "600px" } }, De = { class: "icon-choose-container" }, Te = { slot: "footer" }, Pe = {
|
|
8
|
+
__name: "IconSelect",
|
|
9
|
+
props: {
|
|
10
|
+
actionData: {
|
|
11
|
+
type: Object
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
emits: ["clickSure"],
|
|
15
|
+
setup(z, { emit: q }) {
|
|
16
|
+
const R = z, h = q;
|
|
17
|
+
ge(
|
|
18
|
+
() => R.actionData,
|
|
19
|
+
(i) => {
|
|
20
|
+
i.type === "select" ? f.value = !0 : f.value = !1;
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
deep: !0
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
const O = ae(() => {
|
|
27
|
+
const i = _.icon.toLowerCase();
|
|
28
|
+
return i ? V.value.filter((s) => s.label && s.label.toLowerCase().indexOf(i) > -1 || s.value && s.value.toLowerCase().indexOf(i) > -1 || s.pinyinFull && s.pinyinFull.indexOf(i) > -1 || s.pinyinFirst && s.pinyinFirst.indexOf(i) > -1) : V.value;
|
|
29
|
+
});
|
|
30
|
+
function F() {
|
|
31
|
+
_.icon = "", f.value = !1;
|
|
32
|
+
}
|
|
33
|
+
function D(i) {
|
|
34
|
+
const s = `${i.fontFamily} ${i.prefix}${i.value}`;
|
|
35
|
+
L.value = s, h("clickSure", s), f.value = !1;
|
|
36
|
+
}
|
|
37
|
+
const _ = be({
|
|
38
|
+
icon: ""
|
|
39
|
+
}), f = r(!1), L = r(""), V = r([]), w = r(!1);
|
|
40
|
+
return oe(async () => {
|
|
41
|
+
if (!(V.value.length > 0)) {
|
|
42
|
+
w.value = !0;
|
|
43
|
+
try {
|
|
44
|
+
V.value = await xe();
|
|
45
|
+
} finally {
|
|
46
|
+
w.value = !1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}), (i, s) => {
|
|
50
|
+
const T = d("el-input"), N = d("el-form-item"), A = d("el-form"), P = d("el-button"), t = d("el-dialog"), W = ne("loading");
|
|
51
|
+
return g(), S(t, {
|
|
52
|
+
modelValue: f.value,
|
|
53
|
+
"onUpdate:modelValue": s[2] || (s[2] = (y) => f.value = y),
|
|
54
|
+
title: "选择ICON",
|
|
55
|
+
width: 1200
|
|
56
|
+
}, {
|
|
57
|
+
default: n(() => [
|
|
58
|
+
I("div", Fe, [
|
|
59
|
+
l(A, {
|
|
60
|
+
model: _,
|
|
61
|
+
layout: "inline"
|
|
62
|
+
}, {
|
|
63
|
+
default: n(() => [
|
|
64
|
+
l(N, { label: "筛选图标" }, {
|
|
65
|
+
default: n(() => [
|
|
66
|
+
l(T, {
|
|
67
|
+
modelValue: _.icon,
|
|
68
|
+
"onUpdate:modelValue": s[0] || (s[0] = (y) => _.icon = y),
|
|
69
|
+
placeholder: "输入中文、英文、拼音筛选",
|
|
70
|
+
"allow-clear": ""
|
|
71
|
+
}, null, 8, ["modelValue"])
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
})
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["model"]),
|
|
78
|
+
x((g(), k("div", De, [
|
|
79
|
+
(g(!0), k(H, null, J(O.value, (y) => (g(), S(C, {
|
|
80
|
+
"font-family": y.fontFamily,
|
|
81
|
+
prefix: y.prefix,
|
|
82
|
+
name: y.value,
|
|
83
|
+
onClick: (Q) => D(y)
|
|
84
|
+
}, null, 8, ["font-family", "prefix", "name", "onClick"]))), 256))
|
|
85
|
+
])), [
|
|
86
|
+
[W, w.value]
|
|
87
|
+
])
|
|
88
|
+
]),
|
|
89
|
+
I("div", Te, [
|
|
90
|
+
l(P, {
|
|
91
|
+
type: "primary",
|
|
92
|
+
onClick: s[1] || (s[1] = (y) => F())
|
|
93
|
+
}, {
|
|
94
|
+
default: n(() => [...s[3] || (s[3] = [
|
|
95
|
+
M(" 关闭 ", -1)
|
|
96
|
+
])]),
|
|
97
|
+
_: 1
|
|
98
|
+
})
|
|
99
|
+
])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["modelValue"]);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}, Ue = { class: "menu-manage" }, Ee = { class: "edit-status-row" }, Oe = { class: "icon-preview" }, Le = 287, Ne = /* @__PURE__ */ Ie({
|
|
106
|
+
name: "MenuManage",
|
|
107
|
+
__name: "MenuManage",
|
|
108
|
+
setup(z) {
|
|
109
|
+
const q = [
|
|
110
|
+
{ value: "WINDOW", label: "窗口" },
|
|
111
|
+
{ value: "LINK", label: "访问链接" },
|
|
112
|
+
{ value: "SUBPAGE", label: "子页面" },
|
|
113
|
+
{ value: "JOIN", label: "关联弹窗" },
|
|
114
|
+
{ value: "GROUP", label: "菜单分组" },
|
|
115
|
+
{ value: "APP", label: "手机页面" }
|
|
116
|
+
], R = r("tree"), h = r(!0), O = r("500px"), F = r(""), D = r(""), _ = r(null), f = r(!1), L = r(), V = r(), w = r(), i = r([]), s = r([]), T = r([]), N = r({}), A = r(null), P = r(!1), t = r({
|
|
117
|
+
name: "",
|
|
118
|
+
menuType: "",
|
|
119
|
+
sysModuleId: "",
|
|
120
|
+
sysWindowId: "",
|
|
121
|
+
sysAppDesignId: "",
|
|
122
|
+
url: "",
|
|
123
|
+
parentId: "",
|
|
124
|
+
showMode: null,
|
|
125
|
+
seq: null,
|
|
126
|
+
iconPath: "",
|
|
127
|
+
description: "",
|
|
128
|
+
adMenuId: "",
|
|
129
|
+
active: !0
|
|
130
|
+
}), W = {
|
|
131
|
+
name: [{ required: !0, message: "名称不能为空", trigger: "blur" }],
|
|
132
|
+
menuType: [{ required: !0, message: "菜单类型不能为空", trigger: "blur" }],
|
|
133
|
+
sysModuleId: [{ required: !0, message: "所属模块不能为空", trigger: "blur" }],
|
|
134
|
+
showMode: [{ required: !0, message: "显示模式不能为空", trigger: "blur" }],
|
|
135
|
+
seq: [{ required: !0, message: "排序值不能为空", trigger: "blur" }],
|
|
136
|
+
iconPath: [{ required: !0, message: "图标不能为空", trigger: "blur" }]
|
|
137
|
+
}, y = {
|
|
138
|
+
label: "title"
|
|
139
|
+
}, Q = ae(() => T.value.filter((a) => ["JOIN"].includes(t.value.menuType) || a.menuType === "GROUP")), ue = (a, e) => {
|
|
140
|
+
const u = Ce(), p = Object.keys(u), v = a ? p.filter((c) => c.toLowerCase().includes(a.toLowerCase())) : p;
|
|
141
|
+
e(v.map((c) => ({ value: c })));
|
|
142
|
+
}, $ = () => {
|
|
143
|
+
h.value = !0, G.post("/menuController/getMenuData", {}).then((a) => {
|
|
144
|
+
a.data.result && (T.value = [], s.value = a.data.menuList, i.value = K(s.value, 0));
|
|
145
|
+
}).catch((a) => {
|
|
146
|
+
console.error("获取菜单列表失败:", a), b.error("获取菜单列表失败");
|
|
147
|
+
}).finally(() => {
|
|
148
|
+
h.value = !1;
|
|
149
|
+
});
|
|
150
|
+
}, se = () => {
|
|
151
|
+
h.value = !0, i.value = K(s.value, 0, F.value), h.value = !1;
|
|
152
|
+
}, K = (a, e, u) => {
|
|
153
|
+
const p = [];
|
|
154
|
+
return a.forEach((v) => {
|
|
155
|
+
const c = {
|
|
156
|
+
data: v,
|
|
157
|
+
key: "",
|
|
158
|
+
title: "",
|
|
159
|
+
level: e
|
|
160
|
+
};
|
|
161
|
+
v._childs && v._childs.length > 0 && (c.children = K(v._childs, e + 1, u)), !(u !== void 0 && (c.children === void 0 || c.children.length === 0) && v.name.indexOf(u) === -1) && (u === void 0 && T.value.push(v), c.key = v.adMenuId, c.title = v.name, p.push(c));
|
|
162
|
+
}), p;
|
|
163
|
+
}, re = (a, e) => {
|
|
164
|
+
if (a) {
|
|
165
|
+
const u = te(a.data);
|
|
166
|
+
u.active = u.active === "Y", t.value = u, D.value = u.name, A.value = e, _.value = a.data.adMenuId;
|
|
167
|
+
} else
|
|
168
|
+
_.value = null, U();
|
|
169
|
+
}, de = () => {
|
|
170
|
+
X(), le(() => {
|
|
171
|
+
var a;
|
|
172
|
+
(a = w.value) == null || a.focus();
|
|
173
|
+
});
|
|
174
|
+
}, X = () => {
|
|
175
|
+
var a;
|
|
176
|
+
P.value || (P.value = !0, (a = L.value) == null || a.setCurrentKey(null), le(() => {
|
|
177
|
+
_.value = null, U(), P.value = !1;
|
|
178
|
+
}));
|
|
179
|
+
}, U = () => {
|
|
180
|
+
var a;
|
|
181
|
+
t.value.adMenuId = "", D.value = "", (a = V.value) == null || a.resetFields();
|
|
182
|
+
}, Z = () => {
|
|
183
|
+
var a;
|
|
184
|
+
if (t.value.adMenuId && t.value.parentId === t.value.adMenuId) {
|
|
185
|
+
b.error("父级菜单不能为自身!");
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
(a = V.value) == null || a.validate((e) => {
|
|
189
|
+
if (e) {
|
|
190
|
+
f.value = !0;
|
|
191
|
+
const u = te(t.value);
|
|
192
|
+
delete u.created, delete u.updated, delete u._childs, u.active = u.active ? "Y" : "N", G.post("/menuController/submitMenu", u).then((p) => {
|
|
193
|
+
p.data.result ? (b.success((t.value.adMenuId !== "" ? "修改" : "新增") + "成功"), $(), U()) : b.error(p.data.msg);
|
|
194
|
+
}).catch((p) => {
|
|
195
|
+
console.error("提交菜单失败:", p), b.error("提交失败,请稍后重试");
|
|
196
|
+
}).finally(() => {
|
|
197
|
+
f.value = !1;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}, ie = () => {
|
|
202
|
+
if (!A.value) {
|
|
203
|
+
b.warning("您还未勾选要删除的数据");
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
we.confirm("您确认要删除所选的数据?", "确认删除", {
|
|
207
|
+
type: "warning"
|
|
208
|
+
}).then(() => {
|
|
209
|
+
const a = t.value.adMenuId;
|
|
210
|
+
G.post("/menuController/delMenuByIds", { ids: a }).then((e) => {
|
|
211
|
+
e.data.result ? (b.success("删除成功"), $(), U()) : b.error(e.data.msg);
|
|
212
|
+
}).catch((e) => {
|
|
213
|
+
console.error("删除菜单失败:", e), b.error("删除失败,请稍后重试");
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
}, ce = () => {
|
|
217
|
+
N.value = {
|
|
218
|
+
type: "select"
|
|
219
|
+
};
|
|
220
|
+
}, pe = (a) => {
|
|
221
|
+
t.value.iconPath = a;
|
|
222
|
+
};
|
|
223
|
+
return oe(() => {
|
|
224
|
+
$();
|
|
225
|
+
}), Ve(() => {
|
|
226
|
+
const a = document.documentElement.clientHeight;
|
|
227
|
+
O.value = `${a - Le}px`;
|
|
228
|
+
}), (a, e) => {
|
|
229
|
+
const u = d("el-button"), p = d("el-row"), v = d("el-alert"), c = d("el-input"), me = d("el-tree"), ee = d("el-col"), m = d("el-form-item"), E = d("el-option"), j = d("el-select"), ve = d("el-autocomplete"), fe = d("el-switch"), ye = d("el-form"), _e = ne("loading");
|
|
230
|
+
return g(), k("div", Ue, [
|
|
231
|
+
l(p, { class: "operation" }, {
|
|
232
|
+
default: n(() => [
|
|
233
|
+
I("div", null, [
|
|
234
|
+
l(u, { onClick: de }, {
|
|
235
|
+
default: n(() => [
|
|
236
|
+
l(C, {
|
|
237
|
+
fontFamily: "yhicon",
|
|
238
|
+
prefix: "yh-",
|
|
239
|
+
name: "plus"
|
|
240
|
+
}),
|
|
241
|
+
e[14] || (e[14] = M(" 新增 ", -1))
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}),
|
|
245
|
+
l(u, { onClick: ie }, {
|
|
246
|
+
default: n(() => [
|
|
247
|
+
l(C, {
|
|
248
|
+
fontFamily: "yhicon",
|
|
249
|
+
prefix: "yh-",
|
|
250
|
+
name: "delete2"
|
|
251
|
+
}),
|
|
252
|
+
e[15] || (e[15] = M(" 删除 ", -1))
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}),
|
|
256
|
+
l(u, { onClick: $ }, {
|
|
257
|
+
default: n(() => [
|
|
258
|
+
l(C, {
|
|
259
|
+
fontFamily: "yhicon",
|
|
260
|
+
prefix: "yh-",
|
|
261
|
+
name: "refresh"
|
|
262
|
+
}),
|
|
263
|
+
e[16] || (e[16] = M(" 刷新 ", -1))
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
})
|
|
267
|
+
])
|
|
268
|
+
]),
|
|
269
|
+
_: 1
|
|
270
|
+
}),
|
|
271
|
+
x(l(p, {
|
|
272
|
+
type: "flex",
|
|
273
|
+
justify: "start",
|
|
274
|
+
gutter: 16
|
|
275
|
+
}, {
|
|
276
|
+
default: n(() => [
|
|
277
|
+
l(ee, {
|
|
278
|
+
sm: 8,
|
|
279
|
+
md: 8,
|
|
280
|
+
lg: 8,
|
|
281
|
+
xl: 6
|
|
282
|
+
}, {
|
|
283
|
+
default: n(() => [
|
|
284
|
+
I("div", Ee, [
|
|
285
|
+
l(v, {
|
|
286
|
+
class: "tree-tips",
|
|
287
|
+
"show-icon": "",
|
|
288
|
+
closable: !1,
|
|
289
|
+
title: `当前选择编辑:${D.value}`
|
|
290
|
+
}, null, 8, ["title"]),
|
|
291
|
+
l(C, {
|
|
292
|
+
class: "select-clear-icon",
|
|
293
|
+
onClick: X,
|
|
294
|
+
fontFamily: "yhicon",
|
|
295
|
+
prefix: "yh-",
|
|
296
|
+
name: "circle-close"
|
|
297
|
+
})
|
|
298
|
+
]),
|
|
299
|
+
l(c, {
|
|
300
|
+
modelValue: F.value,
|
|
301
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => F.value = o),
|
|
302
|
+
onChange: se,
|
|
303
|
+
placeholder: "输入菜单名搜索",
|
|
304
|
+
clearable: ""
|
|
305
|
+
}, {
|
|
306
|
+
prepend: n(() => [...e[17] || (e[17] = [
|
|
307
|
+
I("i", { class: "iconfont icon-search" }, null, -1)
|
|
308
|
+
])]),
|
|
309
|
+
_: 1
|
|
310
|
+
}, 8, ["modelValue"]),
|
|
311
|
+
x((g(), k("div", null, [
|
|
312
|
+
I("div", {
|
|
313
|
+
class: "tree-bar",
|
|
314
|
+
style: Me({ maxHeight: O.value })
|
|
315
|
+
}, [
|
|
316
|
+
l(me, {
|
|
317
|
+
ref_key: "treeRef",
|
|
318
|
+
ref: L,
|
|
319
|
+
data: i.value,
|
|
320
|
+
props: y,
|
|
321
|
+
"node-key": "key",
|
|
322
|
+
"default-expand-all": "",
|
|
323
|
+
"expand-on-click-node": !1,
|
|
324
|
+
"highlight-current": "",
|
|
325
|
+
"current-node-key": _.value,
|
|
326
|
+
onCurrentChange: re
|
|
327
|
+
}, null, 8, ["data", "current-node-key"])
|
|
328
|
+
], 4)
|
|
329
|
+
])), [
|
|
330
|
+
[_e, h.value]
|
|
331
|
+
])
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
}),
|
|
335
|
+
l(ee, {
|
|
336
|
+
sm: 16,
|
|
337
|
+
md: 16,
|
|
338
|
+
lg: 16,
|
|
339
|
+
xl: 9
|
|
340
|
+
}, {
|
|
341
|
+
default: n(() => [
|
|
342
|
+
l(ye, {
|
|
343
|
+
ref_key: "formRef",
|
|
344
|
+
ref: V,
|
|
345
|
+
class: "menu-edit-form",
|
|
346
|
+
model: t.value,
|
|
347
|
+
rules: W,
|
|
348
|
+
"label-width": "90px"
|
|
349
|
+
}, {
|
|
350
|
+
default: n(() => [
|
|
351
|
+
l(m, {
|
|
352
|
+
label: "名称",
|
|
353
|
+
prop: "name"
|
|
354
|
+
}, {
|
|
355
|
+
default: n(() => [
|
|
356
|
+
l(c, {
|
|
357
|
+
modelValue: t.value.name,
|
|
358
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => t.value.name = o),
|
|
359
|
+
ref_key: "nameInputRef",
|
|
360
|
+
ref: w
|
|
361
|
+
}, null, 8, ["modelValue"])
|
|
362
|
+
]),
|
|
363
|
+
_: 1
|
|
364
|
+
}),
|
|
365
|
+
l(m, {
|
|
366
|
+
label: "类型",
|
|
367
|
+
prop: "menuType"
|
|
368
|
+
}, {
|
|
369
|
+
default: n(() => [
|
|
370
|
+
l(j, {
|
|
371
|
+
modelValue: t.value.menuType,
|
|
372
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => t.value.menuType = o),
|
|
373
|
+
placeholder: "请选择或输入搜索",
|
|
374
|
+
filterable: "",
|
|
375
|
+
clearable: ""
|
|
376
|
+
}, {
|
|
377
|
+
default: n(() => [
|
|
378
|
+
(g(), k(H, null, J(q, (o) => l(E, {
|
|
379
|
+
key: o.value,
|
|
380
|
+
value: o.value,
|
|
381
|
+
label: o.label
|
|
382
|
+
}, null, 8, ["value", "label"])), 64))
|
|
383
|
+
]),
|
|
384
|
+
_: 1
|
|
385
|
+
}, 8, ["modelValue"])
|
|
386
|
+
]),
|
|
387
|
+
_: 1
|
|
388
|
+
}),
|
|
389
|
+
l(m, {
|
|
390
|
+
label: "所属模块",
|
|
391
|
+
prop: "sysModuleId"
|
|
392
|
+
}, {
|
|
393
|
+
default: n(() => [
|
|
394
|
+
l(Y, {
|
|
395
|
+
dict: "sysModuleId",
|
|
396
|
+
_select_id: "59C1E77AE78D44DF8876688FE78DB53E",
|
|
397
|
+
modelValue: t.value.sysModuleId,
|
|
398
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => t.value.sysModuleId = o),
|
|
399
|
+
placeholder: "请选择或输入搜索",
|
|
400
|
+
filterable: "",
|
|
401
|
+
clearable: ""
|
|
402
|
+
}, null, 8, ["modelValue"])
|
|
403
|
+
]),
|
|
404
|
+
_: 1
|
|
405
|
+
}),
|
|
406
|
+
x(l(m, {
|
|
407
|
+
label: "请求地址",
|
|
408
|
+
prop: "url"
|
|
409
|
+
}, {
|
|
410
|
+
default: n(() => [
|
|
411
|
+
l(ve, {
|
|
412
|
+
modelValue: t.value.url,
|
|
413
|
+
"onUpdate:modelValue": e[4] || (e[4] = (o) => t.value.url = o),
|
|
414
|
+
"fetch-suggestions": ue,
|
|
415
|
+
placeholder: "请输入或选择组件路径",
|
|
416
|
+
clearable: "",
|
|
417
|
+
style: { width: "100%" }
|
|
418
|
+
}, null, 8, ["modelValue"])
|
|
419
|
+
]),
|
|
420
|
+
_: 1
|
|
421
|
+
}, 512), [
|
|
422
|
+
[B, ["LINK", "SUBPAGE"].includes(t.value.menuType)]
|
|
423
|
+
]),
|
|
424
|
+
x(l(m, {
|
|
425
|
+
label: "访问窗口",
|
|
426
|
+
prop: "sysWindowId"
|
|
427
|
+
}, {
|
|
428
|
+
default: n(() => [
|
|
429
|
+
l(Y, {
|
|
430
|
+
dict: "sysWindowId",
|
|
431
|
+
_select_id: "F56B868C8FF44053926920588FB3C76C",
|
|
432
|
+
modelValue: t.value.sysWindowId,
|
|
433
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => t.value.sysWindowId = o),
|
|
434
|
+
placeholder: "请选择或输入搜索",
|
|
435
|
+
filterable: "",
|
|
436
|
+
clearable: ""
|
|
437
|
+
}, null, 8, ["modelValue"])
|
|
438
|
+
]),
|
|
439
|
+
_: 1
|
|
440
|
+
}, 512), [
|
|
441
|
+
[B, t.value.menuType === "WINDOW" || t.value.menuType === "JOIN"]
|
|
442
|
+
]),
|
|
443
|
+
x(l(m, {
|
|
444
|
+
label: "App页面",
|
|
445
|
+
prop: "sysAppDesignId"
|
|
446
|
+
}, {
|
|
447
|
+
default: n(() => [
|
|
448
|
+
l(Y, {
|
|
449
|
+
dict: "sysAppDesignId",
|
|
450
|
+
_select_id: "1352728B367842EDAFF195BF073DD817",
|
|
451
|
+
modelValue: t.value.sysAppDesignId,
|
|
452
|
+
"onUpdate:modelValue": e[6] || (e[6] = (o) => t.value.sysAppDesignId = o),
|
|
453
|
+
placeholder: "请选择或输入搜索",
|
|
454
|
+
filterable: "",
|
|
455
|
+
clearable: ""
|
|
456
|
+
}, null, 8, ["modelValue"])
|
|
457
|
+
]),
|
|
458
|
+
_: 1
|
|
459
|
+
}, 512), [
|
|
460
|
+
[B, t.value.menuType === "APP"]
|
|
461
|
+
]),
|
|
462
|
+
l(m, {
|
|
463
|
+
label: "上级菜单",
|
|
464
|
+
prop: "parentId"
|
|
465
|
+
}, {
|
|
466
|
+
default: n(() => [
|
|
467
|
+
l(j, {
|
|
468
|
+
modelValue: t.value.parentId,
|
|
469
|
+
"onUpdate:modelValue": e[7] || (e[7] = (o) => t.value.parentId = o),
|
|
470
|
+
placeholder: "请选择或输入搜索",
|
|
471
|
+
filterable: "",
|
|
472
|
+
clearable: ""
|
|
473
|
+
}, {
|
|
474
|
+
default: n(() => [
|
|
475
|
+
(g(!0), k(H, null, J(Q.value, (o) => (g(), S(E, {
|
|
476
|
+
value: o.adMenuId,
|
|
477
|
+
label: o.name,
|
|
478
|
+
key: o.adMenuId
|
|
479
|
+
}, null, 8, ["value", "label"]))), 128))
|
|
480
|
+
]),
|
|
481
|
+
_: 1
|
|
482
|
+
}, 8, ["modelValue"])
|
|
483
|
+
]),
|
|
484
|
+
_: 1
|
|
485
|
+
}),
|
|
486
|
+
l(m, {
|
|
487
|
+
label: "显示模式",
|
|
488
|
+
prop: "showMode"
|
|
489
|
+
}, {
|
|
490
|
+
default: n(() => [
|
|
491
|
+
l(j, {
|
|
492
|
+
modelValue: t.value.showMode,
|
|
493
|
+
"onUpdate:modelValue": e[8] || (e[8] = (o) => t.value.showMode = o),
|
|
494
|
+
placeholder: "请选择或输入搜索",
|
|
495
|
+
filterable: "",
|
|
496
|
+
clearable: ""
|
|
497
|
+
}, {
|
|
498
|
+
default: n(() => [
|
|
499
|
+
l(E, {
|
|
500
|
+
value: "P",
|
|
501
|
+
label: "电脑端"
|
|
502
|
+
}),
|
|
503
|
+
l(E, {
|
|
504
|
+
value: "M",
|
|
505
|
+
label: "手机端"
|
|
506
|
+
}),
|
|
507
|
+
l(E, {
|
|
508
|
+
value: "PM",
|
|
509
|
+
label: "电脑+手机"
|
|
510
|
+
})
|
|
511
|
+
]),
|
|
512
|
+
_: 1
|
|
513
|
+
}, 8, ["modelValue"])
|
|
514
|
+
]),
|
|
515
|
+
_: 1
|
|
516
|
+
}),
|
|
517
|
+
l(m, {
|
|
518
|
+
label: "排序",
|
|
519
|
+
prop: "seq"
|
|
520
|
+
}, {
|
|
521
|
+
default: n(() => [
|
|
522
|
+
l(c, {
|
|
523
|
+
type: "number",
|
|
524
|
+
modelValue: t.value.seq,
|
|
525
|
+
"onUpdate:modelValue": e[9] || (e[9] = (o) => t.value.seq = o)
|
|
526
|
+
}, null, 8, ["modelValue"])
|
|
527
|
+
]),
|
|
528
|
+
_: 1
|
|
529
|
+
}),
|
|
530
|
+
l(m, {
|
|
531
|
+
label: "图标地址",
|
|
532
|
+
prop: "iconPath",
|
|
533
|
+
class: "icon-select-form-item"
|
|
534
|
+
}, {
|
|
535
|
+
default: n(() => [
|
|
536
|
+
l(u, {
|
|
537
|
+
type: "info",
|
|
538
|
+
onClick: e[10] || (e[10] = (o) => ce())
|
|
539
|
+
}, {
|
|
540
|
+
default: n(() => [...e[18] || (e[18] = [
|
|
541
|
+
M(" 图标选择 ", -1)
|
|
542
|
+
])]),
|
|
543
|
+
_: 1
|
|
544
|
+
}),
|
|
545
|
+
l(c, {
|
|
546
|
+
modelValue: t.value.iconPath,
|
|
547
|
+
"onUpdate:modelValue": e[11] || (e[11] = (o) => t.value.iconPath = o)
|
|
548
|
+
}, null, 8, ["modelValue"]),
|
|
549
|
+
I("span", Oe, [
|
|
550
|
+
t.value.iconPath ? (g(), S(C, {
|
|
551
|
+
key: 0,
|
|
552
|
+
name: t.value.iconPath
|
|
553
|
+
}, null, 8, ["name"])) : he("", !0)
|
|
554
|
+
])
|
|
555
|
+
]),
|
|
556
|
+
_: 1
|
|
557
|
+
}),
|
|
558
|
+
l(m, {
|
|
559
|
+
label: "备注",
|
|
560
|
+
prop: "description"
|
|
561
|
+
}, {
|
|
562
|
+
default: n(() => [
|
|
563
|
+
l(c, {
|
|
564
|
+
modelValue: t.value.description,
|
|
565
|
+
"onUpdate:modelValue": e[12] || (e[12] = (o) => t.value.description = o),
|
|
566
|
+
type: "textarea"
|
|
567
|
+
}, null, 8, ["modelValue"])
|
|
568
|
+
]),
|
|
569
|
+
_: 1
|
|
570
|
+
}),
|
|
571
|
+
l(m, { label: "是否有效" }, {
|
|
572
|
+
default: n(() => [
|
|
573
|
+
l(fe, {
|
|
574
|
+
modelValue: t.value.active,
|
|
575
|
+
"onUpdate:modelValue": e[13] || (e[13] = (o) => t.value.active = o),
|
|
576
|
+
"active-text": "Y",
|
|
577
|
+
"inactive-text": "N"
|
|
578
|
+
}, null, 8, ["modelValue"])
|
|
579
|
+
]),
|
|
580
|
+
_: 1
|
|
581
|
+
}),
|
|
582
|
+
l(m, null, {
|
|
583
|
+
default: n(() => [
|
|
584
|
+
l(u, {
|
|
585
|
+
style: { "margin-right": "5px" },
|
|
586
|
+
onClick: Z,
|
|
587
|
+
loading: f.value,
|
|
588
|
+
disabled: t.value.adMenuId !== "",
|
|
589
|
+
type: "primary"
|
|
590
|
+
}, {
|
|
591
|
+
default: n(() => [...e[19] || (e[19] = [
|
|
592
|
+
I("i", { class: "iconfont icon-plus" }, null, -1),
|
|
593
|
+
M(" 保存新增 ", -1)
|
|
594
|
+
])]),
|
|
595
|
+
_: 1
|
|
596
|
+
}, 8, ["loading", "disabled"]),
|
|
597
|
+
l(u, {
|
|
598
|
+
style: { "margin-right": "5px" },
|
|
599
|
+
onClick: Z,
|
|
600
|
+
loading: f.value,
|
|
601
|
+
disabled: t.value.adMenuId === "",
|
|
602
|
+
type: "primary"
|
|
603
|
+
}, {
|
|
604
|
+
default: n(() => [...e[20] || (e[20] = [
|
|
605
|
+
I("i", { class: "iconfont icon-save" }, null, -1),
|
|
606
|
+
M(" 保存修改 ", -1)
|
|
607
|
+
])]),
|
|
608
|
+
_: 1
|
|
609
|
+
}, 8, ["loading", "disabled"]),
|
|
610
|
+
l(u, { onClick: U }, {
|
|
611
|
+
default: n(() => [...e[21] || (e[21] = [
|
|
612
|
+
M("重置", -1)
|
|
613
|
+
])]),
|
|
614
|
+
_: 1
|
|
615
|
+
})
|
|
616
|
+
]),
|
|
617
|
+
_: 1
|
|
618
|
+
})
|
|
619
|
+
]),
|
|
620
|
+
_: 1
|
|
621
|
+
}, 8, ["model"])
|
|
622
|
+
]),
|
|
623
|
+
_: 1
|
|
624
|
+
})
|
|
625
|
+
]),
|
|
626
|
+
_: 1
|
|
627
|
+
}, 512), [
|
|
628
|
+
[B, R.value === "tree"]
|
|
629
|
+
]),
|
|
630
|
+
l(Pe, {
|
|
631
|
+
actionData: N.value,
|
|
632
|
+
onClickSure: pe
|
|
633
|
+
}, null, 8, ["actionData"])
|
|
634
|
+
]);
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
}), We = /* @__PURE__ */ ke(Ne, [["__scopeId", "data-v-1bf74f34"]]);
|
|
638
|
+
export {
|
|
639
|
+
We as default
|
|
640
|
+
};
|
|
641
|
+
//# sourceMappingURL=MenuManage-CIxqmusr.js.map
|