From 4f866fd70ced2303ade0af832518fc20f1f28663 Mon Sep 17 00:00:00 2001
From: kclf <1195754634@qq.com>
Date: Tue, 6 Dec 2022 19:15:06 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=91=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/drawers/NoticePub.vue | 43 +++++++++++++++++++++++++---
1 file changed, 39 insertions(+), 4 deletions(-)
diff --git a/src/components/drawers/NoticePub.vue b/src/components/drawers/NoticePub.vue
index 28929cb6..c14707d9 100644
--- a/src/components/drawers/NoticePub.vue
+++ b/src/components/drawers/NoticePub.vue
@@ -14,8 +14,8 @@
公告内容
-
- {{ noticeContent }}
+
+ {{ noticeContent ? noticeContent : "暂无公告" }}
编辑
@@ -23,9 +23,13 @@
-
- {{ noticeContent }}
+
+
预览:
+
+ {{ noticeContent }}
+
+
编辑:
{
console.log("公告获取项目", res.data.data.projectInfo);
state.projectInfo = res.data.data.projectInfo;
+ state.noticeContent = state.projectInfo.notice;
});
};
@@ -183,5 +188,35 @@ export default {
margin-right: 10px;
}
}
+ .txt-content {
+ margin: 24px 0 32px;
+ text-indent: 2em;
+ font-size: 14px;
+ font-family: PingFangSC-Regular, PingFang SC;
+ font-weight: 400;
+ color: #000000;
+ line-height: 22px;
+ }
+ .txt-contain {
+ margin-bottom: 18px;
+ display: flex;
+ span {
+ display: inline-block;
+ width: 50px;
+ }
+ .txt-content-tip {
+ width: calc(100% - 50px);
+ font-size: 14px;
+ font-family: PingFangSC-Regular, PingFang SC;
+ font-weight: 400;
+ color: #000000;
+ line-height: 22px;
+ display: -webkit-box;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ -webkit-box-orient: vertical;
+ word-break: break-all;
+ }
+ }
}
\ No newline at end of file