补充一般:重要程度

This commit is contained in:
WindowBird 2025-11-19 15:28:32 +08:00
parent 753dc1a044
commit 21708135c8
4 changed files with 19 additions and 2 deletions

View File

@ -89,6 +89,7 @@
<text class="announcement-title">{{ announcement.title }}</text>
<view class="announcement-tags">
<view class="announcement-tag tag-pinned" v-if="announcement.top">置顶</view>
<view class="announcement-tag tag-general" v-if="announcement.level === '1'">一般</view>
<view class="announcement-tag tag-important" v-if="announcement.level === '2'">重要</view>
<view class="announcement-tag tag-urgent" v-if="announcement.level === '3'">紧急</view>
</view>
@ -847,6 +848,10 @@ const getTagCustomStyle = (status) => {
background-color: #f56c6c;
}
.tag-general {
background-color: #4caf50;
}
.tag-important {
background-color: #ff9800;
}

View File

@ -1,6 +1,6 @@
<template>
<view class="notice-create-page">
<scroll-view class="content-scroll" scroll-y>
<view class="content-scroll" >
<view class="form-card">
<view class="section-title">公告信息</view>
@ -117,7 +117,7 @@
至少选择接收用户或接收部门中的任意一项
</view>
</view>
</scroll-view>
</view>
<view class="submit-bar">
<uv-button

View File

@ -9,6 +9,7 @@
</text>
<view class="notice-tags">
<view v-if="noticeDetail.top" class="notice-tag tag-pinned">置顶</view>
<view v-if="noticeDetail.level === '1'" class="notice-tag tag-general">一般</view>
<view v-if="noticeDetail.level === '2'" class="notice-tag tag-important">重要</view>
<view v-if="noticeDetail.level === '3'" class="notice-tag tag-urgent">紧急</view>
</view>
@ -383,6 +384,10 @@ const previewAttachment = (attach) => {
background-color: #f56c6c;
}
.tag-general {
background-color: #4caf50;
}
.tag-important {
background-color: #ff9800;
}

View File

@ -134,6 +134,7 @@
</text>
<view class="notice-tags">
<view v-if="notice.top" class="notice-tag tag-pinned">置顶</view>
<view v-if="notice.level === '1'" class="notice-tag tag-general">一般</view>
<view v-if="notice.level === '2'" class="notice-tag tag-important">重要</view>
<view v-if="notice.level === '3'" class="notice-tag tag-urgent">紧急</view>
</view>
@ -166,6 +167,7 @@
</text>
<view class="notice-tags">
<view v-if="notice.top" class="notice-tag tag-pinned">置顶</view>
<view v-if="notice.level === '1'" class="notice-tag tag-general">一般</view>
<view v-if="notice.level === '2'" class="notice-tag tag-important">重要</view>
<view v-if="notice.level === '3'" class="notice-tag tag-urgent">紧急</view>
</view>
@ -269,6 +271,7 @@ const searchForm = ref({
//
const levelOptions = [
{ label: '全部', value: '' },
{ label: '一般', value: '1' },
{ label: '重要', value: '2' },
{ label: '紧急', value: '3' }
];
@ -754,6 +757,10 @@ onBeforeUnmount(() => {
background-color: #f56c6c;
}
.tag-general {
background-color: #4caf50;
}
.tag-important {
background-color: #ff9800;
}