功能变化: 菜单管理按钮配置优化
This commit is contained in:
@@ -13,13 +13,12 @@ import piniaPersist from 'pinia-plugin-persist'
|
||||
// @ts-ignore
|
||||
import fastCrud from './settings.ts'
|
||||
import pinia from './stores';
|
||||
|
||||
import permission from "/@/plugin/permission/index";
|
||||
const app = createApp(App);
|
||||
pinia.use(piniaPersist)
|
||||
|
||||
directive(app);
|
||||
other.elSvg(app);
|
||||
|
||||
app.use(permission)
|
||||
app.use(pinia).use(router).use(ElementPlus, { i18n: i18n.global.t }).use(i18n).use(VueGridLayout).use(fastCrud).mount('#app');
|
||||
|
||||
app.config.globalProperties.mittBus = mitt();
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { request } from "/@/utils/service";
|
||||
// import request from "/@/utils/request";
|
||||
|
||||
export function getCaptcha() {
|
||||
return request({
|
||||
@@ -19,4 +18,4 @@ export function getUserInfo() {
|
||||
url: '/api/system/user/user_info/',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,11 +81,8 @@ export const createCrudOptions = function ({
|
||||
},
|
||||
name: {
|
||||
title: '权限名称',
|
||||
type: 'dict-select',
|
||||
type: 'text',
|
||||
search: {show: true},
|
||||
dict: dict({
|
||||
data: dictionary('system_button')
|
||||
}),
|
||||
column: {
|
||||
minWidth: 120,
|
||||
sortable: true,
|
||||
@@ -103,7 +100,7 @@ export const createCrudOptions = function ({
|
||||
},
|
||||
helper: {
|
||||
render (h) {
|
||||
return (< el-alert title="可手动输入不在列表中的新值" type="warning" description="比较常用的建议放在字典管理中"/>
|
||||
return (< el-alert title="手动输入" type="warning" description="页面中按钮的名称或者自定义一个名称"/>
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -122,7 +119,7 @@ export const createCrudOptions = function ({
|
||||
placeholder: '输入权限标识',
|
||||
helper: {
|
||||
render (h) {
|
||||
return (< el-alert title="用于前端按钮权限的判断展示" type="warning" description="使用方法:vm.hasPermissions(权限值)"/>
|
||||
return (< el-alert title="唯一值" type="warning" description="用于判断前端按钮权限或接口权限"/>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user