refactor: ♻️ 通知公共部分内容重构

通知公告部分内容重构
This commit is contained in:
Theo
2024-09-21 21:35:01 +08:00
parent 89ce395d99
commit c6a7359b6f
5 changed files with 54 additions and 10 deletions

View File

@@ -44,7 +44,16 @@
label="通知类型"
prop="noticeType"
min-width="150"
/>
>
<template #default="scope">
<el-tag v-if="scope.row.noticeType == 2" type="warning">
系统通知
</el-tag>
<el-tag v-if="scope.row.noticeType == 1" type="success">
通知消息
</el-tag>
</template>
</el-table-column>
<el-table-column
align="center"
key="releaseBy"
@@ -72,10 +81,25 @@
prop="releaseTime"
min-width="100"
/>
<el-table-column align="center" fixed="right" label="操作" width="220">
<el-table-column
align="center"
key="readStatus"
label="状态"
prop="readStatus"
min-width="100"
>
<template #default="scope">
<el-tag v-if="scope.row.readStatus == 1" type="success">
已读
</el-tag>
<el-tag v-if="scope.row.readStatus == 0" type="warning">
未读
</el-tag>
</template>
</el-table-column>
<el-table-column align="center" fixed="right" label="操作" width="80">
<template #default="scope">
<el-button
v-hasPerm="['system:notice:edit']"
type="primary"
size="small"
link

View File

@@ -83,7 +83,16 @@
label="通知类型"
prop="noticeTypeLabel"
min-width="150"
/>
>
<template #default="scope">
<el-tag v-if="scope.row.noticeType == 2" type="warning">
系统通知
</el-tag>
<el-tag v-if="scope.row.noticeType == 1" type="success">
通知消息
</el-tag>
</template>
</el-table-column>
<el-table-column
align="center"
key="releaseBy"