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