feat(notice): 新增公告优先级和未读状态功能,优化公告展示逻辑

This commit is contained in:
2025-12-30 22:49:03 +08:00
parent 76c324b0df
commit 88a4e58130
21 changed files with 1520 additions and 13 deletions

View File

@@ -128,7 +128,7 @@
href="https://open.tntlinking.com/communityTreaty"
target="_blank"
>
>Copyright © 2025 湖北天天数链技术有限公司 本系统软件源代码许可来源于
Copyright © 2025 湖北天天数链技术有限公司 本系统软件源代码许可来源于
天天开源软件社区版许可协议 https://open.tntlinking.com/communityTreaty
</el-link>
</span>
@@ -137,7 +137,7 @@
</template>
<script setup>
import {getCurrentInstance, onMounted, ref, watch} from 'vue';
import {getCurrentInstance, onMounted, ref, watch, nextTick} from 'vue';
import settings from '@/settings';
import {getCodeImg, getUserBindTenantList, sign} from '@/api/login';
import {invokeYbPlugin5001} from '@/api/public';

View File

@@ -89,6 +89,13 @@
<dict-tag :options="sys_notice_type" :value="scope.row.noticeType" class="dict-tag" />
</template>
</el-table-column>
<el-table-column label="优先级" align="center" prop="priority" width="90">
<template #default="scope">
<el-tag v-if="scope.row.priority === '1'" type="danger"></el-tag>
<el-tag v-else-if="scope.row.priority === '2'" type="warning"></el-tag>
<el-tag v-else type="info"></el-tag>
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="status" width="90">
<template #default="scope">
<dict-tag :options="sys_notice_status" :value="scope.row.status" class="dict-tag" />
@@ -163,6 +170,15 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-select v-model="form.priority" placeholder="请选择优先级">
<el-option label="高" value="1" />
<el-option label="中" value="2" />
<el-option label="低" value="3" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="状态">
<el-radio-group v-model="form.status">
@@ -246,7 +262,8 @@ function reset() {
noticeType: undefined,
noticeContent: undefined,
status: "0",
publishStatus: "0"
publishStatus: "0",
priority: "2"
};
proxy.resetForm("noticeRef");
}