|
@@ -2,19 +2,21 @@
|
|
|
<div class="normal-card">
|
|
|
<div class="title-box">
|
|
|
<div class="title">{{detailData.title}}</div>
|
|
|
- <div class="descript">{{detailData.summary}}</div>
|
|
|
- <div class="info">
|
|
|
- <span class="tag">{{detailData.classname}}</span>
|
|
|
- <span>{{detailData.createdate}}</span>
|
|
|
+ <div>
|
|
|
+ <div class="descript">{{detailData.summary}}</div>
|
|
|
+ <div class="info">
|
|
|
+ <span class="tag">{{detailData.classname}}</span>
|
|
|
+ <span>{{detailData.createdate}}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="text-content" v-if="tool.checkAuth($route.name,'read')">
|
|
|
+ <div class="text-content" v-if="detailData.content != '<p><br></p>'">
|
|
|
<div id="fwb"></div>
|
|
|
</div>
|
|
|
<div class="file-content" v-if="detailData.attinfos && detailData.attinfos.length > 0">
|
|
|
<div class="file-download">
|
|
|
<p class="title">附件下载</p>
|
|
|
- <div class="file-list" v-if="tool.checkAuth($route.name,'read')">
|
|
|
+ <div class="file-list">
|
|
|
<file-item
|
|
|
:isDownLoad="true"
|
|
|
:itemStyle="itemStyle"
|
|
@@ -40,7 +42,7 @@
|
|
|
<div class="comment-panl">
|
|
|
<el-input type="textarea" :rows="4" placeholder="请填写留言" resize="none" :disabled="!commentData.leavemessage == false" v-model="send.content.leavemessage">
|
|
|
</el-input>
|
|
|
- <el-button type="success" size="small" :disabled="!commentData.leavemessage == false" @click.native="sendComment()" v-if="tool.checkAuth($route.name,'insert')">发表</el-button>
|
|
|
+ <el-button type="success" size="small" :disabled="!commentData.leavemessage == false" @click.native="sendComment()">发表</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -48,7 +50,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import FileItem from '@/components/file-block/index'
|
|
|
+import FileItem from '@/components/file-block/index2'
|
|
|
export default {
|
|
|
name: "NoticeDetail",
|
|
|
data () {
|
|
@@ -67,7 +69,7 @@ export default {
|
|
|
"classname": "saletool.notice.notice",
|
|
|
"method": "updateReadRecord",
|
|
|
"content": {
|
|
|
- "sat_noticeid": this.$route.query.sat_noticeid,
|
|
|
+ "sat_noticeid": this.$route.query.id,
|
|
|
"score": 0,
|
|
|
"leavemessage": ""
|
|
|
}
|
|
@@ -113,11 +115,11 @@ export default {
|
|
|
},
|
|
|
//获取详情数据
|
|
|
async getNoticeDetail () {
|
|
|
- this.param.content.sat_noticeid = this.$route.query.sat_noticeid
|
|
|
+ this.param.content.sat_noticeid = this.$route.query.id
|
|
|
let res = await this.$api.requested(this.param)
|
|
|
this.detailData = res.data
|
|
|
this.detailData.attinfos = this.fileType.fileList(this.detailData.attinfos)
|
|
|
- this.compileFWB()
|
|
|
+ this.detailData.content != '<p><br></p>' ? this.compileFWB() : ''
|
|
|
},
|
|
|
//发表
|
|
|
async sendComment () {
|
|
@@ -143,7 +145,7 @@ export default {
|
|
|
"classname": "saletool.notice.notice",
|
|
|
"method": "queryReadRecord",
|
|
|
"content": {
|
|
|
- "sat_noticeid":this.$route.query.sat_noticeid
|
|
|
+ "sat_noticeid":this.$route.query.id
|
|
|
}
|
|
|
})
|
|
|
this.commentData = res.data[0]
|
|
@@ -156,10 +158,9 @@ export default {
|
|
|
"classname": "saletool.notice.notice",
|
|
|
"method": "updateDownloadRecord",
|
|
|
"content": {
|
|
|
- "sat_noticeid":this.$route.query.sat_noticeid
|
|
|
+ "sat_noticeid":this.$route.query.id
|
|
|
}
|
|
|
})
|
|
|
- this.tool.showMessage(res)
|
|
|
}
|
|
|
}
|
|
|
};
|
|
@@ -187,17 +188,21 @@ export default {
|
|
|
.normal-card .title-box {
|
|
|
padding-bottom: 20px;
|
|
|
border-bottom: 1px solid #eeeeee;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
}
|
|
|
.normal-card .title-box .title {
|
|
|
line-height: 24px;
|
|
|
- margin-bottom: 10px;
|
|
|
+ padding-bottom: 10px;
|
|
|
+ font-size: 25px;
|
|
|
+ border-bottom: 1px solid #eeeeee;
|
|
|
}
|
|
|
.normal-card .title-box .descript {
|
|
|
font-size: 14px;
|
|
|
font-family: PingFang SC-Bold, PingFang SC;
|
|
|
- font-weight: bold;
|
|
|
color: #333333;
|
|
|
line-height: 24px;
|
|
|
+ padding-top: 10px;
|
|
|
}
|
|
|
.normal-card .title-box .info {
|
|
|
line-height: 16px;
|
|
@@ -238,9 +243,6 @@ export default {
|
|
|
.normal-card .file-content .title {
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
-.normal-card .file-content .file-download {
|
|
|
- margin-top: 20px;
|
|
|
-}
|
|
|
.normal-card .file-content .file-download .file-list {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|