修改
This commit is contained in:
parent
cbc61b5b9e
commit
dcc5661c28
@ -90,13 +90,17 @@
|
||||
:type="item.type"
|
||||
:width="item.width"
|
||||
/>
|
||||
<el-table-column align="center" v-else-if="item.isSlot" v-bind="item">
|
||||
<template #default="scope">
|
||||
<slot :name="item.value" :scope="scope"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-else :prop="item.prop" v-bind="item" show-overflow-tooltip align="center">
|
||||
<template #default="scope" v-if="item.render">
|
||||
<Render :column="item" :row="scope.row" :render="item.render" :index="scope.$index" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
|
||||
<template v-for="item in Object.keys($slots)" :key="item" #[item]="data">
|
||||
<slot v-bind="data" :name="item"></slot>
|
||||
</template>
|
||||
|
@ -8,9 +8,9 @@ export function usePermission() {
|
||||
* @param accesses
|
||||
*/
|
||||
function _somePermissions(accesses: string[]) {
|
||||
return userStore.getPermissions.some((item) => {
|
||||
const { value }: any = item;
|
||||
return accesses.includes(value);
|
||||
const permissionsList = userStore.getPermissions;
|
||||
return accesses.some((item) => {
|
||||
return permissionsList.includes(item);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -170,3 +170,6 @@ body .n-modal {
|
||||
.el-table .el-table__body td .cell:empty::after {
|
||||
content: "-";
|
||||
}
|
||||
.el-drawer__header {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
@ -30,10 +30,6 @@
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<template #action>
|
||||
<TableAction />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</el-card>
|
||||
|
||||
@ -83,7 +79,7 @@ const selectionData = ref([])
|
||||
ifShow: () => {
|
||||
return true;
|
||||
},
|
||||
// auth: ['basic_list'],
|
||||
// auth: ['sys:user:list'],
|
||||
},
|
||||
{
|
||||
label: '删除',
|
||||
|
@ -30,10 +30,6 @@
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<template #action>
|
||||
<TableAction />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</el-card>
|
||||
|
||||
|
@ -40,13 +40,16 @@
|
||||
<el-radio :value="2">关闭</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<div class="flex">
|
||||
<el-form-item
|
||||
class="flex-1"
|
||||
label="内容"
|
||||
prop="content"
|
||||
:rules="{ required: true, message: '请输入通知内容', trigger: 'blur' }"
|
||||
>
|
||||
<Editor ref="editorRef" :height="600"/>
|
||||
<Editor ref="editorRef" :height="fwbHeight" class="flex-1"/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
@ -90,7 +93,7 @@ const props = defineProps({
|
||||
default: 0
|
||||
}
|
||||
});
|
||||
|
||||
const fwbHeight=document.body.clientHeight -400
|
||||
const handleSubmit = async () => {
|
||||
formData.content=editorRef.value.myValue
|
||||
await formRef.value?.validate();
|
||||
|
@ -32,10 +32,6 @@
|
||||
</el-button>
|
||||
</el-space>
|
||||
</template>
|
||||
|
||||
<template #action>
|
||||
<TableAction />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</el-card>
|
||||
|
||||
|
@ -30,10 +30,6 @@
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<template #action>
|
||||
<TableAction />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</el-card>
|
||||
|
||||
|
@ -59,10 +59,6 @@
|
||||
</el-button>
|
||||
</el-space>
|
||||
</template>
|
||||
|
||||
<template #action>
|
||||
<TableAction />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</el-card>
|
||||
|
||||
|
@ -22,10 +22,6 @@
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<template #action>
|
||||
<TableAction />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</el-card>
|
||||
|
||||
|
@ -22,10 +22,6 @@
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<template #action>
|
||||
<TableAction />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</el-card>
|
||||
|
||||
|
@ -30,10 +30,6 @@
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<template #action>
|
||||
<TableAction />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</el-card>
|
||||
|
||||
|
@ -30,10 +30,6 @@
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<template #action>
|
||||
<TableAction />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</el-card>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user