feat(修改ico,logo,菜单管理crud基本功能完成): 🐛 修复登录未使用MD5
This commit is contained in:
7890
web/package-lock.json
generated
7890
web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -33,11 +33,13 @@
|
|||||||
"screenfull": "^6.0.2",
|
"screenfull": "^6.0.2",
|
||||||
"sortablejs": "^1.15.0",
|
"sortablejs": "^1.15.0",
|
||||||
"splitpanes": "^3.1.1",
|
"splitpanes": "^3.1.1",
|
||||||
|
"ts-md5": "^1.3.1",
|
||||||
"vue": "^3.2.37",
|
"vue": "^3.2.37",
|
||||||
"vue-clipboard3": "^2.0.0",
|
"vue-clipboard3": "^2.0.0",
|
||||||
"vue-grid-layout": "^3.0.0-beta1",
|
"vue-grid-layout": "^3.0.0-beta1",
|
||||||
"vue-i18n": "^9.1.10",
|
"vue-i18n": "^9.1.10",
|
||||||
"vue-router": "^4.1.2"
|
"vue-router": "^4.1.2",
|
||||||
|
"xe-utils": "^3.5.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.0.6",
|
"@types/node": "^18.0.6",
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 17 KiB |
@@ -1,9 +1,53 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 50" width="64" height="50">
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<defs>
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
<image width="64" height="50" id="img1" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAyCAYAAADsg90UAAAAAXNSR0IB2cksfwAACI5JREFUeJy1WgtsW9UZdvNq0xU6WhZoCCVx7Gunbld1GSsMdYpGREhwr+2IMbQWqRoTk+iWPZi2wWhm1kwEmqV52feRJrbvvd6DiUnbQCAemzY2xh4tS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s5SIdsQt4hjsXOCvmvzrDu6Fdnebo3Hj3u69xXngoFqkH09KL3ie2BB6y2XCsfZNt1apnOqsL7uY/KoB57k+SDJRUhIZlX2iD4UJ4b5ef+3dqabY9hlunUdPt0XXyIryqs1yKVAv3qbPFuKNNedaAR5FeD4NE8AqRTwZ1ZmxqnHv0EcI4Rxz3hNqSqxThevrEXqpJq31IJgOD3TN3+h0tYmmPpLt9bJex80W4SRBzmEF7kE8Bhbo5aONwutwCx6K4JUVyByu/JfOTn+6EFAiTNN1uoAgxyC1BvqFcAZLJo8pr8rlvuq8wExfpFUl+u/s7/dt6R9UKkS5ergHeaOP6Yc2SQLw7Mqa6SDznsHakvzLAyoeAPCyRvVoXpUGCb1ZZqRWFnhdQXPWcg3Jac5App7C2MImf/5Kb+nupJ0X8FSL1NEOACEyyHPQ9QbWA73CIEkBuEIqrCzUO9CsNB6esCqQ8pAqD/Oe33l9vs2SLQd6svuhJSWW6GeVptLFKGbMD9eltjZ2cjw5m4o60ChF4lCvBeJhjIuntAYF4N3KNEO9Lwgmo+F/D5mNt1cbr/2OeD916qx+HSB4gCsDdNdmXZM7dbjRJtYXeZd/EJ4DDX3Q4uARLSj604yO23UgVA2jRy2EO+OkNX/w+fZNm8pw5QbAAAAABJRU5ErkJggg=="/>
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <image id="image0" width="64" height="64" x="0" y="0"
|
||||||
</defs>
|
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAACBjSFJN
|
||||||
<style>
|
AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAJ
|
||||||
tspan { white-space:pre }
|
30lEQVR42u2ae3QU1R3HP3dmd1kSIAlCIJDwCMpDEXxU0MpDEY5wRK2CVhTFqhUrWBSh9VFaUXvq
|
||||||
</style>
|
oe1RSxWLYkFbqsJpFbFqUNE2gghKgaA5SokYjCRgIhDy3JnbP353ybDsZndDCO3pfs+ZMzuzd+69
|
||||||
<use id="Background" href="#img1" x="0" y="0" />
|
v+/93d9rBlJIIYUUUkghhRRSSOH/EupETyAW8p+oBrCAIJAJ+IH2QDvgEFAPHACqAWfnjA7/uwQY
|
||||||
</svg>
|
YTHC9gYGA/2BQeY6xwgeMETUAY1ABfAZsAlYD2wF6pIh44QSYARvDwwBRpvjDCAb8CXZXSWwFlhs
|
||||||
|
zo2JENHmBHhWuytwMXA1MALIaqUh9gNLgAVAeTwSjjsBRmAfor4KZXUGfSWa60CfSfIrnQg08Aow
|
||||||
|
AyhrjoRWI8AjaFegD3AKosp9kD2M8gf+7NZUfePW152FUrbVLj2gAmndlbI6oFRfXLe31k4OWgdb
|
||||||
|
aVpLgDuA2lgktJgAjyp3Ak4HzgWGm989gXTEijdi2WtwGh/ddW+/Bufg3qlAP8AF9gHfYNl7fR2z
|
||||||
|
vw32H3mg08hb7GD+efnKFzhPu6Fz0Dr9GAioB24DlgJEIyFpAjzuaQAw0RxnGCIiuy9R/sAjZY+O
|
||||||
|
X1/76dtTgJsRrYgGjbi0EmCdP7vfxuwb/+gG84eP027oErTOaCEJ64DLgG+OiQCP4IOBacBVQF7M
|
||||||
|
B5T1lltTOe+LObk9gZ8jlj4ZNAAbrfYZL+XMePnb4MnfnaKdxrEkbzMagKnAihYR4FH1bsAPgelA
|
||||||
|
bjOPhLDsv1R/8NwjFcumTwFmAR2TnLQXDvCPQO7Qxbk/fa8Xtv9OtM5Jso+ngB/B0dvASlD484EX
|
||||||
|
gAfjCO8q27do79JpD1csm34/cN8xCg9gAxc27N7yxM4fZwUbK3bcgWVvTbKP02PNIyYBHuEvBZYD
|
||||||
|
FxBPYyx75b4XZi46uOGlBcC18QhOEp3Rel7pA0PHHdr88l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ldVM2
|
||||||
|
9p4nr+55aMvqS5AUtm8rjFOCZS/NmfnK5rRTx96undB4pDI0C3i1pcK3GgGHSVAWaJ2tfP4J2nXq
|
||||||
|
KpbeXFa9Yfm5SAB1Jk1JTSJoBD4FVmWMmbnhpMkLzgZuRbs9kETtPuCDYxG+VQk4TIIgA7gRyx6p
|
||||||
|
LHtTbfG7GyuW3ZIWqvzyTCT3H0BTKBueQy1SvioBttsZ3bd1ueo3lelnTxoCTMF1BiEp8zPAQmDP
|
||||||
|
sQh+XAiIIMICvgPMQKnhyvLtQql1zqGqHXWfF1bWfFLghPbuzHTrq0OqXXrA7tC1Lm3QRU6w/+gM
|
||||||
|
X+fc3kpZI7TrDEe7WYaYVxE//yFJuro2JyCCCD8wDKkUjwb6opSLsvYrpeqQIkhQax1E60y07gja
|
||||||
|
QrLHIqSMvgpJmxP69u+/hoAIIhTyjv50RDPygZOQL8gUUo4vRQqhxcDH5rwfjm2fn3ACmiHFRvJ5
|
||||||
|
EJfaQCuqdwoppJBCCimkkEJz+A8yuCszfDFdCAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0wMi0w
|
||||||
|
NFQwOToyODoxNyswMDowMFBCTAkAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMDItMDRUMDk6Mjg6
|
||||||
|
MTcrMDA6MDAhH/S1AAAAAElFTkSuQmCC" />
|
||||||
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 4.1 KiB |
52
web/src/stores/dictionary.ts
Normal file
52
web/src/stores/dictionary.ts
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
import { defineStore } from 'pinia';
|
||||||
|
import { DictionaryStates } from './interface';
|
||||||
|
import { request } from '../utils/service';
|
||||||
|
|
||||||
|
export const urlPrefix = '/api/init/dictionary/'
|
||||||
|
export const BUTTON_VALUE_TO_COLOR_MAPPING: any = {
|
||||||
|
1: 'success',
|
||||||
|
true: 'success',
|
||||||
|
0: 'danger',
|
||||||
|
false: 'danger',
|
||||||
|
Search: 'warning', // 查询
|
||||||
|
Update: 'primary', // 编辑
|
||||||
|
Create: 'success', // 新增
|
||||||
|
Retrieve: 'info', // 单例
|
||||||
|
Delete: 'danger' // 删除
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getButtonSettings(objectSettings: any) {
|
||||||
|
return objectSettings.map((item: any) => ({
|
||||||
|
label: item.label,
|
||||||
|
value: item.value,
|
||||||
|
color: item.color || BUTTON_VALUE_TO_COLOR_MAPPING[item.value]
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典管理数据
|
||||||
|
* @methods getSystemDictionarys 获取系统字典数据
|
||||||
|
*/
|
||||||
|
export const DictionaryStore = defineStore('Dictionary', {
|
||||||
|
state: (): DictionaryStates => ({
|
||||||
|
data: {}
|
||||||
|
}),
|
||||||
|
actions: {
|
||||||
|
async getSystemDictionarys() {
|
||||||
|
request({
|
||||||
|
url: '/api/init/dictionary/?dictionary_key=all',
|
||||||
|
method: 'get',
|
||||||
|
}).then((ret: {
|
||||||
|
data: []
|
||||||
|
}) => {
|
||||||
|
// 转换数据格式并保存到pinia
|
||||||
|
let dataList = ret.data
|
||||||
|
dataList.forEach((item: any) => {
|
||||||
|
let childrens = item.children
|
||||||
|
this.data[item.value] = childrens
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
@@ -25,8 +25,8 @@ export const useUserInfo = defineStore('userInfo', {
|
|||||||
this.userInfos = Session.get('userInfo');
|
this.userInfos = Session.get('userInfo');
|
||||||
} else {
|
} else {
|
||||||
let userInfos: any = await this.getApiUserInfo();
|
let userInfos: any = await this.getApiUserInfo();
|
||||||
this.userInfos.userName = userInfos.name;
|
this.userInfos.userName = userInfos.data.name;
|
||||||
this.userInfos.photo = userInfos.avatar || 'https://img2.baidu.com/it/u=1978192862,2048448374&fm=253&fmt=auto&app=138&f=JPEG?w=504&h=500'
|
this.userInfos.photo = userInfos.data.avatar || 'https://img2.baidu.com/it/u=1978192862,2048448374&fm=253&fmt=auto&app=138&f=JPEG?w=504&h=500'
|
||||||
this.userInfos.time = new Date().getTime()
|
this.userInfos.time = new Date().getTime()
|
||||||
this.userInfos.roles = ['admin']
|
this.userInfos.roles = ['admin']
|
||||||
Session.set('userInfo', this.userInfos)
|
Session.set('userInfo', this.userInfos)
|
||||||
|
|||||||
11
web/src/utils/dictionary.ts
Normal file
11
web/src/utils/dictionary.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import { toRaw } from 'vue';
|
||||||
|
import { DictionaryStore } from '/@/stores/dictionary';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @method 获取指定name字典
|
||||||
|
*/
|
||||||
|
export const dictionary = (name: string) => {
|
||||||
|
const dict = DictionaryStore()
|
||||||
|
const dictionary = toRaw(dict.data)
|
||||||
|
return dictionary[name]
|
||||||
|
}
|
||||||
@@ -73,6 +73,7 @@ import { formatAxis } from '/@/utils/formatTime';
|
|||||||
import { NextLoading } from '/@/utils/loading';
|
import { NextLoading } from '/@/utils/loading';
|
||||||
import * as loginApi from '/@/views/system/login/api';
|
import * as loginApi from '/@/views/system/login/api';
|
||||||
import { useUserInfo } from '/@/stores/userInfo';
|
import { useUserInfo } from '/@/stores/userInfo';
|
||||||
|
import { Md5 } from 'ts-md5';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'loginAccount',
|
name: 'loginAccount',
|
||||||
@@ -114,10 +115,9 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const loginClick = async () => {
|
const loginClick = async () => {
|
||||||
loginApi.login(state.ruleForm).then((ret: any) => {
|
loginApi.login({ ...state.ruleForm, password: Md5.hashStr(state.ruleForm.password) }).then((ret: any) => {
|
||||||
console.log(ret);
|
Session.set('token', ret.data.access);
|
||||||
Session.set('token', ret.access);
|
Cookies.set('username', ret.data.name);
|
||||||
Cookies.set('username', ret.name);
|
|
||||||
if (!themeConfig.value.isRequestRoutes) {
|
if (!themeConfig.value.isRequestRoutes) {
|
||||||
// 前端控制路由,2、请注意执行顺序
|
// 前端控制路由,2、请注意执行顺序
|
||||||
initFrontEndControlRoutes();
|
initFrontEndControlRoutes();
|
||||||
@@ -132,10 +132,7 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const getUserInfo = () => {
|
const getUserInfo = () => {
|
||||||
loginApi.getUserInfo().then((ret: any) => {
|
useUserInfo().setUserInfos();
|
||||||
console.log('getUserInfo');
|
|
||||||
console.log(ret);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
// 登录成功后的跳转
|
// 登录成功后的跳转
|
||||||
const loginSuccess = () => {
|
const loginSuccess = () => {
|
||||||
|
|||||||
41
web/src/views/system/menu/api.ts
Normal file
41
web/src/views/system/menu/api.ts
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import { request } from '/@/utils/service';
|
||||||
|
import { PageQuery, AddReq, DelReq, EditReq, InfoReq } from '@fast-crud/fast-crud';
|
||||||
|
|
||||||
|
export const apiPrefix = '/api/system/menu/';
|
||||||
|
export function GetList(query: PageQuery) {
|
||||||
|
return request({
|
||||||
|
url: apiPrefix,
|
||||||
|
method: 'get',
|
||||||
|
data: query,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export function GetObj(id: InfoReq) {
|
||||||
|
return request({
|
||||||
|
url: apiPrefix + id,
|
||||||
|
method: 'get',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function AddObj(obj: AddReq) {
|
||||||
|
return request({
|
||||||
|
url: apiPrefix,
|
||||||
|
method: 'post',
|
||||||
|
data: obj,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function UpdateObj(obj: EditReq) {
|
||||||
|
return request({
|
||||||
|
url: apiPrefix + obj.id + '/',
|
||||||
|
method: 'put',
|
||||||
|
data: obj,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function DelObj(id: DelReq) {
|
||||||
|
return request({
|
||||||
|
url: apiPrefix + id + '/',
|
||||||
|
method: 'delete',
|
||||||
|
data: { id },
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -1,230 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="system-add-menu-container">
|
|
||||||
<el-dialog title="新增菜单" v-model="isShowDialog" width="769px">
|
|
||||||
<el-form :model="ruleForm" size="default" label-width="80px">
|
|
||||||
<el-row :gutter="35">
|
|
||||||
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
||||||
<el-form-item label="上级菜单">
|
|
||||||
<el-cascader
|
|
||||||
:options="menuData"
|
|
||||||
:props="{ checkStrictly: true, value: 'path', label: 'title' }"
|
|
||||||
placeholder="请选择上级菜单"
|
|
||||||
clearable
|
|
||||||
class="w100"
|
|
||||||
v-model="ruleForm.menuSuperior"
|
|
||||||
>
|
|
||||||
<template #default="{ node, data }">
|
|
||||||
<span>{{ data.title }}</span>
|
|
||||||
<span v-if="!node.isLeaf"> ({{ data.children.length }}) </span>
|
|
||||||
</template>
|
|
||||||
</el-cascader>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
||||||
<el-form-item label="菜单类型">
|
|
||||||
<el-radio-group v-model="ruleForm.menuType">
|
|
||||||
<el-radio label="menu">菜单</el-radio>
|
|
||||||
<el-radio label="btn">按钮</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="菜单名称">
|
|
||||||
<el-input v-model="ruleForm.meta.title" placeholder="格式:message.router.xxx" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<template v-if="ruleForm.menuType === 'menu'">
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="路由名称">
|
|
||||||
<el-input v-model="ruleForm.name" placeholder="路由中的 name 值" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="路由路径">
|
|
||||||
<el-input v-model="ruleForm.path" placeholder="路由中的 path 值" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="重定向">
|
|
||||||
<el-input v-model="ruleForm.redirect" placeholder="请输入路由重定向" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="菜单图标">
|
|
||||||
<IconSelector placeholder="请输入菜单图标" v-model="ruleForm.meta.icon" type="all" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="组件路径">
|
|
||||||
<el-input v-model="ruleForm.component" placeholder="组件路径" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="链接地址">
|
|
||||||
<el-input v-model="ruleForm.meta.isLink" placeholder="外链/内嵌时链接地址(http:xxx.com)" clearable :disabled="!ruleForm.isLink">
|
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="权限标识">
|
|
||||||
<el-select v-model="ruleForm.meta.roles" multiple placeholder="取角色管理" clearable class="w100">
|
|
||||||
<el-option label="admin" value="admin"></el-option>
|
|
||||||
<el-option label="common" value="common"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</template>
|
|
||||||
<template v-if="ruleForm.menuType === 'btn'">
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="权限标识">
|
|
||||||
<el-input v-model="ruleForm.btnPower" placeholder="请输入权限标识" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</template>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="菜单排序">
|
|
||||||
<el-input-number v-model="ruleForm.menuSort" controls-position="right" placeholder="请输入排序" class="w100" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<template v-if="ruleForm.menuType === 'menu'">
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="是否隐藏">
|
|
||||||
<el-radio-group v-model="ruleForm.meta.isHide">
|
|
||||||
<el-radio :label="true">隐藏</el-radio>
|
|
||||||
<el-radio :label="false">不隐藏</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="页面缓存">
|
|
||||||
<el-radio-group v-model="ruleForm.meta.isKeepAlive">
|
|
||||||
<el-radio :label="true">缓存</el-radio>
|
|
||||||
<el-radio :label="false">不缓存</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="是否固定">
|
|
||||||
<el-radio-group v-model="ruleForm.meta.isAffix">
|
|
||||||
<el-radio :label="true">固定</el-radio>
|
|
||||||
<el-radio :label="false">不固定</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="是否外链">
|
|
||||||
<el-radio-group v-model="ruleForm.isLink" :disabled="ruleForm.meta.isIframe">
|
|
||||||
<el-radio :label="true">是</el-radio>
|
|
||||||
<el-radio :label="false">否</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="是否内嵌">
|
|
||||||
<el-radio-group v-model="ruleForm.meta.isIframe" @change="onSelectIframeChange">
|
|
||||||
<el-radio :label="true">是</el-radio>
|
|
||||||
<el-radio :label="false">否</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</template>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
<template #footer>
|
|
||||||
<span class="dialog-footer">
|
|
||||||
<el-button @click="onCancel" size="default">取 消</el-button>
|
|
||||||
<el-button type="primary" @click="onSubmit" size="default">新 增</el-button>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
import { reactive, toRefs, onMounted, defineComponent } from 'vue';
|
|
||||||
import { storeToRefs } from 'pinia';
|
|
||||||
import { useRoutesList } from '/@/stores/routesList';
|
|
||||||
import { i18n } from '/@/i18n/index';
|
|
||||||
import IconSelector from '/@/components/iconSelector/index.vue';
|
|
||||||
// import { setBackEndControlRefreshRoutes } from "/@/router/backEnd";
|
|
||||||
|
|
||||||
export default defineComponent({
|
|
||||||
name: 'systemAddMenu',
|
|
||||||
components: { IconSelector },
|
|
||||||
setup() {
|
|
||||||
const stores = useRoutesList();
|
|
||||||
const { routesList } = storeToRefs(stores);
|
|
||||||
const state = reactive({
|
|
||||||
isShowDialog: false,
|
|
||||||
// 参数请参考 `/src/router/route.ts` 中的 `dynamicRoutes` 路由菜单格式
|
|
||||||
ruleForm: {
|
|
||||||
menuSuperior: [], // 上级菜单
|
|
||||||
menuType: 'menu', // 菜单类型
|
|
||||||
name: '', // 路由名称
|
|
||||||
component: '', // 组件路径
|
|
||||||
isLink: false, // 是否外链
|
|
||||||
menuSort: 0, // 菜单排序
|
|
||||||
path: '', // 路由路径
|
|
||||||
redirect: '', // 路由重定向,有子集 children 时
|
|
||||||
meta: {
|
|
||||||
title: '', // 菜单名称
|
|
||||||
icon: '', // 菜单图标
|
|
||||||
isHide: false, // 是否隐藏
|
|
||||||
isKeepAlive: true, // 是否缓存
|
|
||||||
isAffix: false, // 是否固定
|
|
||||||
isLink: '', // 外链/内嵌时链接地址(http:xxx.com),开启外链条件,`1、isLink: 链接地址不为空`
|
|
||||||
isIframe: false, // 是否内嵌,开启条件,`1、isIframe:true 2、isLink:链接地址不为空`
|
|
||||||
roles: '', // 权限标识,取角色管理
|
|
||||||
},
|
|
||||||
btnPower: '', // 菜单类型为按钮时,权限标识
|
|
||||||
},
|
|
||||||
menuData: [], // 上级菜单数据
|
|
||||||
});
|
|
||||||
// 获取 vuex 中的路由
|
|
||||||
const getMenuData = (routes: any) => {
|
|
||||||
const arr: any = [];
|
|
||||||
routes.map((val: any) => {
|
|
||||||
val['title'] = i18n.global.t(val.meta.title);
|
|
||||||
val['id'] = Math.random();
|
|
||||||
arr.push({ ...val });
|
|
||||||
if (val.children) getMenuData(val.children);
|
|
||||||
});
|
|
||||||
return arr;
|
|
||||||
};
|
|
||||||
// 打开弹窗
|
|
||||||
const openDialog = () => {
|
|
||||||
state.isShowDialog = true;
|
|
||||||
};
|
|
||||||
// 关闭弹窗
|
|
||||||
const closeDialog = () => {
|
|
||||||
state.isShowDialog = false;
|
|
||||||
};
|
|
||||||
// 是否内嵌下拉改变
|
|
||||||
const onSelectIframeChange = () => {
|
|
||||||
if (state.ruleForm.meta.isIframe) state.ruleForm.isLink = true;
|
|
||||||
else state.ruleForm.isLink = false;
|
|
||||||
};
|
|
||||||
// 取消
|
|
||||||
const onCancel = () => {
|
|
||||||
closeDialog();
|
|
||||||
};
|
|
||||||
// 新增
|
|
||||||
const onSubmit = () => {
|
|
||||||
closeDialog(); // 关闭弹窗
|
|
||||||
// setBackEndControlRefreshRoutes() // 刷新菜单,未进行后端接口测试
|
|
||||||
};
|
|
||||||
// 页面加载时
|
|
||||||
onMounted(() => {
|
|
||||||
state.menuData = getMenuData(routesList.value);
|
|
||||||
});
|
|
||||||
return {
|
|
||||||
openDialog,
|
|
||||||
closeDialog,
|
|
||||||
onSelectIframeChange,
|
|
||||||
onCancel,
|
|
||||||
onSubmit,
|
|
||||||
...toRefs(state),
|
|
||||||
};
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@@ -1,238 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="system-edit-menu-container">
|
|
||||||
<el-dialog title="修改菜单" v-model="isShowDialog" width="769px">
|
|
||||||
<el-form :model="ruleForm" size="default" label-width="80px">
|
|
||||||
<el-row :gutter="35">
|
|
||||||
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
||||||
<el-form-item label="上级菜单">
|
|
||||||
<el-cascader
|
|
||||||
:options="menuData"
|
|
||||||
:props="{ checkStrictly: true, value: 'path', label: 'title' }"
|
|
||||||
placeholder="请选择上级菜单"
|
|
||||||
clearable
|
|
||||||
class="w100"
|
|
||||||
v-model="ruleForm.menuSuperior"
|
|
||||||
>
|
|
||||||
<template #default="{ node, data }">
|
|
||||||
<span>{{ data.title }}</span>
|
|
||||||
<span v-if="!node.isLeaf"> ({{ data.children.length }}) </span>
|
|
||||||
</template>
|
|
||||||
</el-cascader>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
||||||
<el-form-item label="菜单类型">
|
|
||||||
<el-radio-group v-model="ruleForm.menuType">
|
|
||||||
<el-radio label="menu">菜单</el-radio>
|
|
||||||
<el-radio label="btn">按钮</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="菜单名称">
|
|
||||||
<el-input v-model="ruleForm.meta.title" placeholder="格式:message.router.xxx" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<template v-if="ruleForm.menuType === 'menu'">
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="路由名称">
|
|
||||||
<el-input v-model="ruleForm.name" placeholder="路由中的 name 值" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="路由路径">
|
|
||||||
<el-input v-model="ruleForm.path" placeholder="路由中的 path 值" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="重定向">
|
|
||||||
<el-input v-model="ruleForm.redirect" placeholder="请输入路由重定向" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="菜单图标">
|
|
||||||
<IconSelector placeholder="请输入菜单图标" v-model="ruleForm.meta.icon" type="all" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="组件路径">
|
|
||||||
<el-input v-model="ruleForm.component" placeholder="组件路径" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="链接地址">
|
|
||||||
<el-input v-model="ruleForm.meta.isLink" placeholder="外链/内嵌时链接地址(http:xxx.com)" clearable :disabled="!ruleForm.isLink">
|
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="权限标识">
|
|
||||||
<el-select v-model="ruleForm.meta.roles" multiple placeholder="取角色管理" clearable class="w100">
|
|
||||||
<el-option label="admin" value="admin"></el-option>
|
|
||||||
<el-option label="common" value="common"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</template>
|
|
||||||
<template v-if="ruleForm.menuType === 'btn'">
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="权限标识">
|
|
||||||
<el-input v-model="ruleForm.btnPower" placeholder="请输入权限标识" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</template>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="菜单排序">
|
|
||||||
<el-input-number v-model="ruleForm.menuSort" controls-position="right" placeholder="请输入排序" class="w100" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<template v-if="ruleForm.menuType === 'menu'">
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="是否隐藏">
|
|
||||||
<el-radio-group v-model="ruleForm.meta.isHide">
|
|
||||||
<el-radio :label="true">隐藏</el-radio>
|
|
||||||
<el-radio :label="false">不隐藏</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="页面缓存">
|
|
||||||
<el-radio-group v-model="ruleForm.meta.isKeepAlive">
|
|
||||||
<el-radio :label="true">缓存</el-radio>
|
|
||||||
<el-radio :label="false">不缓存</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="是否固定">
|
|
||||||
<el-radio-group v-model="ruleForm.meta.isAffix">
|
|
||||||
<el-radio :label="true">固定</el-radio>
|
|
||||||
<el-radio :label="false">不固定</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="是否外链">
|
|
||||||
<el-radio-group v-model="ruleForm.isLink" :disabled="ruleForm.meta.isIframe">
|
|
||||||
<el-radio :label="true">是</el-radio>
|
|
||||||
<el-radio :label="false">否</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
||||||
<el-form-item label="是否内嵌">
|
|
||||||
<el-radio-group v-model="ruleForm.meta.isIframe" @change="onSelectIframeChange">
|
|
||||||
<el-radio :label="true">是</el-radio>
|
|
||||||
<el-radio :label="false">否</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</template>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
<template #footer>
|
|
||||||
<span class="dialog-footer">
|
|
||||||
<el-button @click="onCancel" size="default">取 消</el-button>
|
|
||||||
<el-button type="primary" @click="onSubmit" size="default">修 改</el-button>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
import { reactive, toRefs, onMounted, defineComponent } from 'vue';
|
|
||||||
import { storeToRefs } from 'pinia';
|
|
||||||
import { useRoutesList } from '/@/stores/routesList';
|
|
||||||
import { i18n } from '/@/i18n/index';
|
|
||||||
import IconSelector from '/@/components/iconSelector/index.vue';
|
|
||||||
// import { setBackEndControlRefreshRoutes } from "/@/router/backEnd";
|
|
||||||
|
|
||||||
export default defineComponent({
|
|
||||||
name: 'systemEditMenu',
|
|
||||||
components: { IconSelector },
|
|
||||||
setup() {
|
|
||||||
const stores = useRoutesList();
|
|
||||||
const { routesList } = storeToRefs(stores);
|
|
||||||
const state = reactive({
|
|
||||||
isShowDialog: false,
|
|
||||||
// 参数请参考 `/src/router/route.ts` 中的 `dynamicRoutes` 路由菜单格式
|
|
||||||
ruleForm: {
|
|
||||||
menuSuperior: [], // 上级菜单
|
|
||||||
menuType: 'menu', // 菜单类型
|
|
||||||
name: '', // 路由名称
|
|
||||||
component: '', // 组件路径
|
|
||||||
isLink: false, // 是否外链
|
|
||||||
menuSort: 0, // 菜单排序
|
|
||||||
path: '', // 路由路径
|
|
||||||
redirect: '', // 路由重定向,有子集 children 时
|
|
||||||
meta: {
|
|
||||||
title: '', // 菜单名称
|
|
||||||
icon: '', // 菜单图标
|
|
||||||
isHide: false, // 是否隐藏
|
|
||||||
isKeepAlive: true, // 是否缓存
|
|
||||||
isAffix: false, // 是否固定
|
|
||||||
isLink: '', // 外链/内嵌时链接地址(http:xxx.com),开启外链条件,`1、isLink: 链接地址不为空`
|
|
||||||
isIframe: false, // 是否内嵌,开启条件,`1、isIframe:true 2、isLink:链接地址不为空`
|
|
||||||
roles: '', // 权限标识,取角色管理
|
|
||||||
},
|
|
||||||
btnPower: '', // 菜单类型为按钮时,权限标识
|
|
||||||
},
|
|
||||||
menuData: [], // 上级菜单数据
|
|
||||||
});
|
|
||||||
// 获取 vuex 中的路由
|
|
||||||
const getMenuData = (routes: any) => {
|
|
||||||
const arr: any = [];
|
|
||||||
routes.map((val: any) => {
|
|
||||||
val['title'] = i18n.global.t(val.meta.title);
|
|
||||||
val['id'] = Math.random();
|
|
||||||
arr.push({ ...val });
|
|
||||||
if (val.children) getMenuData(val.children);
|
|
||||||
});
|
|
||||||
return arr;
|
|
||||||
};
|
|
||||||
// 打开弹窗
|
|
||||||
const openDialog = (row: any) => {
|
|
||||||
// 模拟数据,实际请走接口
|
|
||||||
row.menuType = 'menu';
|
|
||||||
row.menuSort = Math.random();
|
|
||||||
row.component = `${row.component} `
|
|
||||||
.match(/\'(.+)\'/g)
|
|
||||||
?.join('')
|
|
||||||
.replace(/\'/g, '');
|
|
||||||
state.ruleForm = row;
|
|
||||||
state.isShowDialog = true;
|
|
||||||
};
|
|
||||||
// 关闭弹窗
|
|
||||||
const closeDialog = () => {
|
|
||||||
state.isShowDialog = false;
|
|
||||||
};
|
|
||||||
// 是否内嵌下拉改变
|
|
||||||
const onSelectIframeChange = () => {
|
|
||||||
if (state.ruleForm.meta.isIframe) state.ruleForm.isLink = true;
|
|
||||||
else state.ruleForm.isLink = false;
|
|
||||||
};
|
|
||||||
// 取消
|
|
||||||
const onCancel = () => {
|
|
||||||
closeDialog();
|
|
||||||
};
|
|
||||||
// 新增
|
|
||||||
const onSubmit = () => {
|
|
||||||
closeDialog(); // 关闭弹窗
|
|
||||||
// setBackEndControlRefreshRoutes() // 刷新菜单,未进行后端接口测试
|
|
||||||
};
|
|
||||||
// 页面加载时
|
|
||||||
onMounted(() => {
|
|
||||||
state.menuData = getMenuData(routesList.value);
|
|
||||||
});
|
|
||||||
return {
|
|
||||||
openDialog,
|
|
||||||
closeDialog,
|
|
||||||
onSelectIframeChange,
|
|
||||||
onCancel,
|
|
||||||
onSubmit,
|
|
||||||
...toRefs(state),
|
|
||||||
};
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
429
web/src/views/system/menu/crud.tsx
Normal file
429
web/src/views/system/menu/crud.tsx
Normal file
@@ -0,0 +1,429 @@
|
|||||||
|
import * as api from "./api";
|
||||||
|
import { dict, PageQuery, AddReq, DelReq, EditReq, CrudExpose, CrudOptions, } from "@fast-crud/fast-crud";
|
||||||
|
import { apiPrefix as menuPrefix } from './api'
|
||||||
|
import { request } from "/@/utils/service";
|
||||||
|
import XEUtils from "xe-utils";
|
||||||
|
import { dictionary } from "/@/utils/dictionary";
|
||||||
|
import iconSelector from '/@/components/iconSelector/index.vue'
|
||||||
|
interface CreateCrudOptionsTypes {
|
||||||
|
crudOptions: CrudOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExpose }): CreateCrudOptionsTypes {
|
||||||
|
//验证路由地址
|
||||||
|
const validateWebPath = (rule: string, value: string, callback: Function) => {
|
||||||
|
const isLink = crudExpose.getFormData().is_link
|
||||||
|
let pattern = /^\/.*?/
|
||||||
|
if (isLink) {
|
||||||
|
pattern = /^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/g
|
||||||
|
} else {
|
||||||
|
pattern = /^\/.*?/
|
||||||
|
}
|
||||||
|
if (!pattern.test(value)) {
|
||||||
|
callback(new Error('请正确的地址'))
|
||||||
|
} else {
|
||||||
|
callback()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const pageRequest = async (query: PageQuery) => {
|
||||||
|
return await api.GetList(query);
|
||||||
|
};
|
||||||
|
const editRequest = async ({ form, row }: EditReq) => {
|
||||||
|
form.id = row.id;
|
||||||
|
return await api.UpdateObj(form);
|
||||||
|
};
|
||||||
|
const delRequest = async ({ row }: DelReq) => {
|
||||||
|
return await api.DelObj(row.id);
|
||||||
|
};
|
||||||
|
const addRequest = async ({ form }: AddReq) => {
|
||||||
|
return await api.AddObj(form);
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
crudOptions: {
|
||||||
|
request: {
|
||||||
|
pageRequest,
|
||||||
|
addRequest,
|
||||||
|
editRequest,
|
||||||
|
delRequest
|
||||||
|
},
|
||||||
|
columns: {
|
||||||
|
_index: {
|
||||||
|
title: '序号',
|
||||||
|
form: { show: false },
|
||||||
|
column: {
|
||||||
|
//type: 'index',
|
||||||
|
align: 'center',
|
||||||
|
width: '70px',
|
||||||
|
columnSetDisabled: true, //禁止在列设置中选择
|
||||||
|
formatter: (context) => {
|
||||||
|
//计算序号,你可以自定义计算规则,此处为翻页累加
|
||||||
|
let index = context.index ?? 1;
|
||||||
|
let pagination = crudExpose.crudBinding.value.pagination;
|
||||||
|
return ((pagination.currentPage ?? 1) - 1) * pagination.pageSize + index + 1;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
search: {
|
||||||
|
title: '关键词',
|
||||||
|
column: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
search: {
|
||||||
|
show: true,
|
||||||
|
component: {
|
||||||
|
props: {
|
||||||
|
clearable: true
|
||||||
|
},
|
||||||
|
placeholder: '请输入关键词'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
show: false,
|
||||||
|
component: {
|
||||||
|
props: {
|
||||||
|
clearable: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
parent: {
|
||||||
|
title: '父级菜单',
|
||||||
|
column: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
type: 'dict-cascader',
|
||||||
|
dict: dict({
|
||||||
|
url: menuPrefix,
|
||||||
|
value: "id",
|
||||||
|
label: "name",
|
||||||
|
children: "children",
|
||||||
|
isTree: true,
|
||||||
|
getData: async ({ url }: { url: string }) => {
|
||||||
|
return request({
|
||||||
|
url: url,
|
||||||
|
params: { limit: 999, status: 1, is_catalog: 1 },
|
||||||
|
}).then((ret: any) => {
|
||||||
|
const responseData = ret.data;
|
||||||
|
const result = XEUtils.toArrayTree(responseData, {
|
||||||
|
parentKey: "parent",
|
||||||
|
strict: true,
|
||||||
|
});
|
||||||
|
return [{ id: null, name: "根节点", children: result }];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
form: {
|
||||||
|
component: {
|
||||||
|
filterable: true,
|
||||||
|
placeholder: '请选择父级菜单',
|
||||||
|
props: {
|
||||||
|
props: {
|
||||||
|
checkStrictly: true,
|
||||||
|
value: "id",
|
||||||
|
label: "name",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
title: '菜单名称',
|
||||||
|
search: {
|
||||||
|
show: true,
|
||||||
|
component: {
|
||||||
|
props: {
|
||||||
|
clearable: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
type: 'input',
|
||||||
|
form: {
|
||||||
|
rules: [ // 表单校验规则
|
||||||
|
{ required: true, message: '菜单名称必填项' }
|
||||||
|
],
|
||||||
|
component: {
|
||||||
|
props: {
|
||||||
|
clearable: true
|
||||||
|
},
|
||||||
|
placeholder: '请输入菜单名称'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
icon: {
|
||||||
|
title: '图标',
|
||||||
|
form: {
|
||||||
|
component: {
|
||||||
|
name: iconSelector,
|
||||||
|
vModel: 'modelValue'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
column: {
|
||||||
|
component: {
|
||||||
|
name: "fs-icon",
|
||||||
|
vModel: "icon",
|
||||||
|
style: "font-size:18px"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sort: {
|
||||||
|
title: '排序',
|
||||||
|
width: 60,
|
||||||
|
type: 'number',
|
||||||
|
form: {
|
||||||
|
value: 1,
|
||||||
|
component: {
|
||||||
|
placeholder: '请输入排序'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
is_catalog: {
|
||||||
|
title: '是否目录',
|
||||||
|
type: 'dict-switch',
|
||||||
|
dict: dict({
|
||||||
|
data: dictionary("button_whether_bool")
|
||||||
|
}),
|
||||||
|
form: {
|
||||||
|
component: {
|
||||||
|
placeholder: '请选择是否目录'
|
||||||
|
},
|
||||||
|
// valueChange(key, value, form, { getColumn, mode, component, immediate, getComponent }) {
|
||||||
|
// if (!value) {
|
||||||
|
// form.web_path = undefined
|
||||||
|
// form.component = undefined
|
||||||
|
// form.component_name = undefined
|
||||||
|
// form.cache = false
|
||||||
|
// form.is_link = false
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
is_link: {
|
||||||
|
title: '外链接',
|
||||||
|
type: 'dict-switch',
|
||||||
|
dict: dict({
|
||||||
|
data: dictionary('button_whether_bool')
|
||||||
|
}),
|
||||||
|
form: {
|
||||||
|
value: false,
|
||||||
|
component: {
|
||||||
|
/* show(context) {
|
||||||
|
const { form } = context
|
||||||
|
return !form.is_catalog
|
||||||
|
}, */
|
||||||
|
placeholder: '请选择是否外链接'
|
||||||
|
},
|
||||||
|
/* valueChange(key, value, form, { getColumn, mode, component, immediate, getComponent }) {
|
||||||
|
form.web_path = undefined
|
||||||
|
form.component = undefined
|
||||||
|
form.component_name = undefined
|
||||||
|
if (value) {
|
||||||
|
getColumn('web_path').title = '外链接地址'
|
||||||
|
getColumn('web_path').component.placeholder = '请输入外链接地址'
|
||||||
|
getColumn('web_path').helper = {
|
||||||
|
render(h) {
|
||||||
|
return (< el-alert title="外链接地址,请以https|http|ftp|rtsp|mms开头" type="warning" />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
getColumn('web_path').title = '路由地址'
|
||||||
|
getColumn('web_path').component.placeholder = '请输入路由地址'
|
||||||
|
getColumn('web_path').helper = {
|
||||||
|
render(h) {
|
||||||
|
return (< el-alert title="浏览器中url的地址,请以/开头" type="warning" />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
},
|
||||||
|
web_path: {
|
||||||
|
title: '路由地址',
|
||||||
|
width: 150,
|
||||||
|
column: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
rules: [
|
||||||
|
{ required: true, message: '请输入正确的路由地址' },
|
||||||
|
{ validator: validateWebPath, trigger: 'change' }
|
||||||
|
],
|
||||||
|
component: {
|
||||||
|
show(context: any) {
|
||||||
|
const { form } = context
|
||||||
|
return !form.is_catalog
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
clearable: true
|
||||||
|
},
|
||||||
|
placeholder: '请输入路由地址'
|
||||||
|
},
|
||||||
|
helper: {
|
||||||
|
render(h) {
|
||||||
|
return (< el-alert title="浏览器中url的地址,请以/开头" type="warning" />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
component: {
|
||||||
|
title: '组件地址',
|
||||||
|
type: 'dict-select',
|
||||||
|
show: false,
|
||||||
|
dict: dict({
|
||||||
|
getData: () => {
|
||||||
|
const files: any = import.meta.globEager("@views/**/*.vue");
|
||||||
|
let result: Array<any> = [];
|
||||||
|
Object.keys(files).forEach((key: string) => {
|
||||||
|
result.push({
|
||||||
|
label: key.replace(/(\.\/|\.vue)/g, ""),
|
||||||
|
value: key.replace(/(\.\/|\.vue)/g, ""),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
column: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
rules: [
|
||||||
|
{ required: true, message: '请选择组件地址' }
|
||||||
|
],
|
||||||
|
component: {
|
||||||
|
props: {
|
||||||
|
clearable: true,
|
||||||
|
filterable: true // 可过滤选择项
|
||||||
|
},
|
||||||
|
placeholder: '请输入组件地址'
|
||||||
|
},
|
||||||
|
helper: {
|
||||||
|
render(h) {
|
||||||
|
return (< el-alert title="src/views下的文件夹地址" type="warning" />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
component_name: {
|
||||||
|
title: '组件名称',
|
||||||
|
width: 170,
|
||||||
|
form: {
|
||||||
|
rules: [
|
||||||
|
{ required: true, message: '请输入组件名称' }
|
||||||
|
],
|
||||||
|
component: {
|
||||||
|
show(context: any) {
|
||||||
|
const { form } = context
|
||||||
|
return !form.is_catalog && !form.is_link
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
clearable: true
|
||||||
|
},
|
||||||
|
placeholder: '请输入组件名称'
|
||||||
|
},
|
||||||
|
helper: {
|
||||||
|
render(h) {
|
||||||
|
return (< el-alert title="xx.vue文件中的name" type="warning" />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
menuPermission: {
|
||||||
|
title: '拥有权限',
|
||||||
|
type: 'dict-select',
|
||||||
|
width: 300,
|
||||||
|
form: {
|
||||||
|
show: false,
|
||||||
|
component: {
|
||||||
|
elProps: { // el-select的配置项,https://element.eleme.cn/#/zh-CN/component/select
|
||||||
|
filterable: true,
|
||||||
|
multiple: true,
|
||||||
|
clearable: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cache: {
|
||||||
|
title: '缓存',
|
||||||
|
search: {
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
width: 60,
|
||||||
|
type: 'dict-switch',
|
||||||
|
dict: dict({
|
||||||
|
data: dictionary('button_whether_bool')
|
||||||
|
}),
|
||||||
|
form: {
|
||||||
|
value: false,
|
||||||
|
component: {
|
||||||
|
// show(context) {
|
||||||
|
// const { form } = context
|
||||||
|
// return !form.is_catalog
|
||||||
|
// },
|
||||||
|
placeholder: '请选择是否缓存'
|
||||||
|
},
|
||||||
|
helper: {
|
||||||
|
render(h) {
|
||||||
|
return (< el-alert title="是否开启页面缓存,需要组件名称和xx.vue页面的name一致" type="warning" />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
visible: {
|
||||||
|
title: '侧边可见',
|
||||||
|
search: {
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
width: 75,
|
||||||
|
type: 'dict-switch',
|
||||||
|
dict: dict({
|
||||||
|
data: dictionary('button_whether_bool')
|
||||||
|
}),
|
||||||
|
form: {
|
||||||
|
value: true,
|
||||||
|
component: {
|
||||||
|
placeholder: '请选择侧边可见'
|
||||||
|
},
|
||||||
|
rules: [ // 表单校验规则
|
||||||
|
{ required: true, message: '侧边可见必填项' }
|
||||||
|
],
|
||||||
|
helper: {
|
||||||
|
render(h) {
|
||||||
|
return (< el-alert title="是否显示在侧边菜单中" type="warning" />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
status: {
|
||||||
|
title: '状态',
|
||||||
|
sortable: true,
|
||||||
|
search: {
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
width: 70,
|
||||||
|
type: 'dict-switch',
|
||||||
|
dict: dict({
|
||||||
|
data: dictionary('button_status_bool')
|
||||||
|
}),
|
||||||
|
form: {
|
||||||
|
value: true,
|
||||||
|
component: {
|
||||||
|
placeholder: '请选择状态'
|
||||||
|
},
|
||||||
|
rules: [ // 表单校验规则
|
||||||
|
{ required: true, message: '状态必填项' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
|
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
|
||||||
"baseUrl": "." /* Base directory to resolve non-absolute module names. */,
|
"baseUrl": "." /* Base directory to resolve non-absolute module names. */,
|
||||||
"paths": {
|
"paths": {
|
||||||
"/@/*": ["src/*"]
|
"/@/*": ["src/*"],
|
||||||
} /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */,
|
} /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */,
|
||||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
||||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
// "typeRoots": [], /* List of folders to include type definitions from. */
|
||||||
|
|||||||
@@ -8,13 +8,14 @@ const pathResolve = (dir: string): any => {
|
|||||||
|
|
||||||
const alias: Record<string, string> = {
|
const alias: Record<string, string> = {
|
||||||
'/@': pathResolve('./src/'),
|
'/@': pathResolve('./src/'),
|
||||||
|
'@views': pathResolve('./src/views'),
|
||||||
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js',
|
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js',
|
||||||
};
|
};
|
||||||
|
|
||||||
const viteConfig = defineConfig((mode: ConfigEnv) => {
|
const viteConfig = defineConfig((mode: ConfigEnv) => {
|
||||||
const env = loadEnv(mode.mode, process.cwd());
|
const env = loadEnv(mode.mode, process.cwd());
|
||||||
return {
|
return {
|
||||||
plugins: [vue(),vueJsx() ],
|
plugins: [vue(), vueJsx()],
|
||||||
root: process.cwd(),
|
root: process.cwd(),
|
||||||
resolve: { alias },
|
resolve: { alias },
|
||||||
base: mode.command === 'serve' ? './' : env.VITE_PUBLIC_PATH,
|
base: mode.command === 'serve' ? './' : env.VITE_PUBLIC_PATH,
|
||||||
|
|||||||
@@ -2558,6 +2558,11 @@ to-regex-range@^5.0.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
is-number "^7.0.0"
|
is-number "^7.0.0"
|
||||||
|
|
||||||
|
ts-md5@^1.3.1:
|
||||||
|
version "1.3.1"
|
||||||
|
resolved "https://registry.npmjs.org/ts-md5/-/ts-md5-1.3.1.tgz#f5b860c0d5241dd9bb4e909dd73991166403f511"
|
||||||
|
integrity sha512-DiwiXfwvcTeZ5wCE0z+2A9EseZsztaiZtGrtSaY5JOD7ekPnR/GoIVD5gXZAlK9Na9Kvpo9Waz5rW64WKAWApg==
|
||||||
|
|
||||||
tslib@2.3.0:
|
tslib@2.3.0:
|
||||||
version "2.3.0"
|
version "2.3.0"
|
||||||
resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz"
|
resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz"
|
||||||
@@ -2734,6 +2739,11 @@ wrappy@1:
|
|||||||
resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
|
resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
|
||||||
integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
|
integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
|
||||||
|
|
||||||
|
xe-utils@^3.5.7:
|
||||||
|
version "3.5.7"
|
||||||
|
resolved "https://registry.npmjs.org/xe-utils/-/xe-utils-3.5.7.tgz#2c885852dfadd5c8beeffdc1f884f8ceb962c669"
|
||||||
|
integrity sha512-3H+fDBKBR2wLJgyA7k9C/w1Xljx6Maml5ukV0WDY06HjYyGs2FEz6XhcwRCLIDXX4pBP3Gu0nX9DbCeuuRA2Ew==
|
||||||
|
|
||||||
xml-name-validator@^4.0.0:
|
xml-name-validator@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz"
|
resolved "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz"
|
||||||
|
|||||||
Reference in New Issue
Block a user