表单开发按钮权限 key字段跟后台保持一致
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
></InputTimeRange>
|
||||
</template>
|
||||
<template #header v-if="Object.keys(dimensionFields)?.length">
|
||||
<div style="display:flex;align-items:center;border-top:1px solid #eee;margin-bottom:10px;padding-top:10px;">
|
||||
<div style="display:flex;padding-top:10px;margin-bottom:10px;border-top:1px solid #eee;align-items:center;">
|
||||
<span style="margin-right:10px;">维度:</span>
|
||||
<el-checkbox-group
|
||||
@change="searchDimension" v-model="tableSearch['Group by']"
|
||||
@@ -190,7 +190,7 @@ const hideCols=ref<any>([])
|
||||
const dictFieldList=ref<any>([])
|
||||
const textAlignFiels=ref<any>({})
|
||||
const permissions =
|
||||
wsCache.get(CACHE_KEY.USER).lideeYunjipermissions?.[route.meta.menuDataId as string] || false
|
||||
wsCache.get(CACHE_KEY.USER).lideeYunJipermissions?.[route.meta.menuDataId as string] || false
|
||||
const selectIds = computed(() => {
|
||||
return tableSelect.value.map((item) => item['id'])
|
||||
})
|
||||
@@ -905,12 +905,15 @@ defineExpose({
|
||||
:deep(.el-form-item--default){
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
:deep(.avue-crud__pagination){
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
:deep(.avue-crud__tip){
|
||||
display: none;
|
||||
}
|
||||
|
||||
.amountBox{
|
||||
&::after{
|
||||
content:'、'
|
||||
@@ -922,30 +925,35 @@ defineExpose({
|
||||
}
|
||||
|
||||
:deep(.el-table){
|
||||
--el-table-border-color: #000;
|
||||
|
||||
.is-group th.el-table__cell,th.el-table__cell{
|
||||
background-color: #C6EFFE;
|
||||
}
|
||||
|
||||
.el-table__body tr.hover-row>td.el-table__cell{
|
||||
background-color: #FFFFD2;
|
||||
|
||||
}
|
||||
|
||||
&.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
|
||||
background-color: #FFFFD2;
|
||||
}
|
||||
|
||||
td.el-table__cell,th.el-table__cell{
|
||||
border-right: 1px solid #000 !important;
|
||||
border-bottom: 1px solid #000 !important;
|
||||
|
||||
border-right: 1px solid #000 !important;
|
||||
|
||||
}
|
||||
|
||||
td.textAlignCell .cell{
|
||||
span{
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
--el-table-border-color: #000;
|
||||
|
||||
tfoot .el-table__cell{
|
||||
border-top: 1px solid #000 !important;
|
||||
}
|
||||
|
||||
@@ -552,7 +552,7 @@ const initButton = (data, context) => {
|
||||
const { wsCache } = useCache()
|
||||
const currentRoute = router.currentRoute.value
|
||||
const currPath = currentRoute.meta?.menuDataId as string
|
||||
const permissions = wsCache.get(CACHE_KEY.USER).lideeYunjipermissions?.[currPath] || false
|
||||
const permissions = wsCache.get(CACHE_KEY.USER).lideeYunJipermissions?.[currPath] || false
|
||||
const { model, defaultTip, tableId, getPermiKey, webConfigRoleButtonVoList, isSub } = context
|
||||
const defPermiObj = {
|
||||
addBtn: 'create', addChild: 'create',
|
||||
|
||||
@@ -33,7 +33,7 @@ interface DeptVO {
|
||||
|
||||
interface UserInfoVO {
|
||||
permissions: object
|
||||
lideeYunjipermissions: object
|
||||
lideeYunJipermissions: object
|
||||
roles: string[]
|
||||
isSetUser: boolean
|
||||
user: UserVO
|
||||
@@ -43,7 +43,7 @@ interface UserInfoVO {
|
||||
export const useUserStore = defineStore('admin-user', {
|
||||
state: (): UserInfoVO => ({
|
||||
permissions: {},
|
||||
lideeYunjipermissions: {},
|
||||
lideeYunJipermissions: {},
|
||||
roles: [],
|
||||
isSetUser: false,
|
||||
user: {
|
||||
@@ -58,8 +58,8 @@ export const useUserStore = defineStore('admin-user', {
|
||||
getPermissions(): object {
|
||||
return this.permissions
|
||||
},
|
||||
getLideeYunjipermissions(): object {
|
||||
return this.lideeYunjipermissions
|
||||
getLideeYunJipermissions(): object {
|
||||
return this.lideeYunJipermissions
|
||||
},
|
||||
getRoles(): string[] {
|
||||
return this.roles
|
||||
@@ -82,7 +82,7 @@ export const useUserStore = defineStore('admin-user', {
|
||||
userInfo = await getInfo()
|
||||
}
|
||||
this.permissions = userInfo.permissions
|
||||
this.lideeYunjipermissions = userInfo.lideeYunjipermissions
|
||||
this.lideeYunJipermissions = userInfo.lideeYunJipermissions
|
||||
this.roles = userInfo.roles
|
||||
this.user = userInfo.user
|
||||
this.deptInfo = userInfo.deptInfoList
|
||||
@@ -112,7 +112,7 @@ export const useUserStore = defineStore('admin-user', {
|
||||
},
|
||||
resetState() {
|
||||
this.permissions = {}
|
||||
this.lideeYunjipermissions = {}
|
||||
this.lideeYunJipermissions = {}
|
||||
this.roles = []
|
||||
this.isSetUser = false
|
||||
this.user = {
|
||||
|
||||
Reference in New Issue
Block a user