From 7319ab1ce998a7d13f0192a4ccaf92d4a02929f8 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 11 十二月 2024 14:33:43 +0800
Subject: [PATCH] 电路试验上传文件报错
---
src/components/view/notice-detail.vue | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/components/view/notice-detail.vue b/src/components/view/notice-detail.vue
index 0c67cb0..47320a7 100644
--- a/src/components/view/notice-detail.vue
+++ b/src/components/view/notice-detail.vue
@@ -1,8 +1,8 @@
<template>
<div class="notice-detail-page">
<div class="notice-detail-head">
- <h4 style="margin-bottom: 16px;">{{ noticeInfo.theme }} <el-tag style="margin-left: 10px;" :type="options.find(m=>m.value==noticeInfo.messageType).type" v-if="options.find(m=>m.value==noticeInfo.messageType)">{{ options.find(m=>m.value==noticeInfo.messageType).label }}</el-tag></h4>
- <p style="font-size: 12px;color: #999;margin-bottom: 20px;">
+ <h4 style="margin-bottom: 16px;text-align:left;" v-if="noticeInfo.theme">{{ noticeInfo.theme }} <el-tag style="margin-left: 10px;" :type="options.find(m=>m.value==noticeInfo.messageType).type" v-if="options.find(m=>m.value==noticeInfo.messageType)">{{ options.find(m=>m.value==noticeInfo.messageType).label }}</el-tag></h4>
+ <p style="font-size: 12px;color: #999;margin-bottom: 20px;text-align:left;">
<!-- <span>娑堟伅绫诲瀷锛氬鎵� </span> -->
<span>鍙戦�佷汉锛歿{ noticeInfo.createUser }} </span>
<span> </span>
@@ -10,7 +10,7 @@
<span> </span>
<span>鍙戜欢鏃堕棿锛歿{ noticeInfo.createTime }}</span>
</p>
- <div class="notice-detail-head-content">
+ <div class="notice-detail-head-content" style="text-align:left;">
<label>鍐呭锛�</label>
<div>{{ noticeInfo.content }}</div>
</div>
@@ -41,15 +41,11 @@
options:[]
}
},
- created(){
- this.noticeInfo = JSON.parse(sessionStorage.getItem("noticeInfo"));
- },
mounted(){
- this.noticeInfo = JSON.parse(sessionStorage.getItem("noticeInfo"));
+ this.noticeInfo = JSON.parse(localStorage.getItem("noticeInfo"));
this.$bus.$on("change", (msg) => {
this.noticeInfo = JSON.parse(msg);
- console.log(this.noticeInfo);
- sessionStorage.setItem("noticeInfo", msg);
+ localStorage.setItem("noticeInfo", msg);
});
this.getTypeDicts()
},
@@ -69,7 +65,11 @@
<style scoped>
.notice-detail-page{
height: calc(100% - 30px);
+ overflow-y: auto;
padding: 16px 0;
+}
+.notice-detail-page::-webkit-scrollbar {
+ width: 0;
}
.notice-detail-head{
background: #fff;
@@ -83,9 +83,9 @@
box-sizing: border-box;
padding: 8px 20px 20px;
background: rgba(0,0,0, 0.03);
- box-shadow: 0 0 10px 10px #fff;
+ /* box-shadow: 0 0 10px 10px #fff; */
border-radius: 4px;
- height: calc(100% - 192px - 22px);
+ min-height: calc(100% - 192px - 22px);
}
.notice-detail-head-content div{
border-radius: 8px;
@@ -98,6 +98,6 @@
}
.notice-content{
- height: 100%;
+ height: 600px;
}
</style>
--
Gitblit v1.9.3