|
@@ -12,12 +12,12 @@
|
|
|
</div>
|
|
|
<div class="article-meta">
|
|
|
<div class="left">
|
|
|
- <span>投诉地区:北京市-大兴区</span>
|
|
|
- <span>投诉类型:公安</span>
|
|
|
+ <span class="left_place">投诉地区:北京市-大兴区</span>
|
|
|
+ <span class="left_type"> 投诉类型:公安</span>
|
|
|
</div>
|
|
|
<span class="happenTime">发生日期:2023-08-01 10:00:00</span>
|
|
|
</div>
|
|
|
- <el-divider> </el-divider>
|
|
|
+ <div class="line"></div>
|
|
|
<div class="detail_title">
|
|
|
<div class="title">
|
|
|
事件描述:
|
|
@@ -27,7 +27,7 @@
|
|
|
<div class="article-author">
|
|
|
<div class="article_box">
|
|
|
<div class="article_panel" :class="{ collapsed: !isExpanded }">
|
|
|
- <div v-html="dataInfo.content"></div>
|
|
|
+ <div>{{ dataInfo.content }}</div>
|
|
|
</div>
|
|
|
<span class="article_panel_btn" v-if="showReadMoreBtn && !isExpanded"
|
|
|
@click="toggleExpand">
|
|
@@ -37,15 +37,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div>我的要求:</div>
|
|
|
+ <div class="detail_title">
|
|
|
+ <div class="title">
|
|
|
+ 我的要求:
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="background-color">
|
|
|
<div class="article-author">
|
|
|
<div class="article_box">
|
|
|
- <div class="article_panel" :class="{ collapsed: !isExpanded }">
|
|
|
- <div v-html="dataInfo.content"></div>
|
|
|
+ <div class="article_panel1" :class="{ collapsed: !isExpanded1 }">
|
|
|
+ <div>{{ dataInfo.want }}</div>
|
|
|
</div>
|
|
|
- <span class="article_panel_btn" v-if="showReadMoreBtn && !isExpanded"
|
|
|
- @click="toggleExpand">
|
|
|
+ <span class="article_panel_btn" v-if="showReadMoreBtn1 && !isExpanded1"
|
|
|
+ @click="toggleExpand1">
|
|
|
阅读全文
|
|
|
<i class="el-icon-arrow-down"></i>
|
|
|
</span>
|
|
@@ -57,30 +61,20 @@
|
|
|
<div class="box_1 clearfix">
|
|
|
<div class="box_in">附件:</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <!-- <div class="comment-list">
|
|
|
- <div class="comment_li" v-for="(per_obj, keys) in replyList" :key="keys">
|
|
|
- <el-avatar class="comment_li_img" :src="per_obj.avatar" />
|
|
|
- <div class="comment_li_name">{{ per_obj.nickname }}:</div>
|
|
|
- <div class="comment_li_text">
|
|
|
- {{ per_obj.content }}
|
|
|
- </div>
|
|
|
- <div class="comment_li_time">{{ per_obj.created_at }}</div>
|
|
|
+ <div class="comment-list" v-if="dataInfo.file">
|
|
|
+ <div class="comment_li">
|
|
|
+ {{ dataInfo.file }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="comment-list" v-else>
|
|
|
+ <div class="comment_empty">
|
|
|
+ <img src="@/assets/notice/empty.png" alt="" class="empty_img">
|
|
|
+ 暂无附件内容
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
- <!-- <div class="alignBox">
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-pagination :current-page="getApiData.page" @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange" :page-size="5"
|
|
|
- layout="total, prev, pager, next, jumper" :total="allCount"></el-pagination>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<div class="comment-actions">
|
|
|
<el-button type="info" @click="goBack">返回</el-button>
|
|
|
- <!-- <el-button type="info" plain>信息按钮</el-button> -->
|
|
|
- <!-- <el-button type="primary" @click="viewGroupChat">查看群聊</el-button> -->
|
|
|
+ <el-button type="primary">确认</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -112,6 +106,8 @@ export default {
|
|
|
dataInfo: {},
|
|
|
isExpanded: false, // btn添加展开状态
|
|
|
showReadMoreBtn: false,
|
|
|
+ isExpanded1: false, // btn添加展开状态
|
|
|
+ showReadMoreBtn1: false,
|
|
|
//1.列表和分页相关 start ------------------------------------------------------------>
|
|
|
tableDivTitle: "通知详情",
|
|
|
getApiData: {
|
|
@@ -136,27 +132,24 @@ export default {
|
|
|
this.getTopicReplyList();
|
|
|
},
|
|
|
toggleExpand() { // 添加切换方法
|
|
|
-
|
|
|
this.isExpanded = true;
|
|
|
},
|
|
|
+ toggleExpand1() { // 添加切换方法
|
|
|
+ this.isExpanded1 = true;
|
|
|
+ },
|
|
|
checkPanelHeight() {
|
|
|
this.$nextTick(() => {
|
|
|
const panel = this.$el.querySelector('.article_panel');
|
|
|
if (panel) {
|
|
|
- this.showReadMoreBtn = panel.scrollHeight > 270;
|
|
|
+ this.showReadMoreBtn = panel.scrollHeight > 400;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const panel1 = this.$el.querySelector('.article_panel1');
|
|
|
+ if (panel1) {
|
|
|
+ this.showReadMoreBtn1 = panel1.scrollHeight > 400;
|
|
|
}
|
|
|
});
|
|
|
- },
|
|
|
- getDataINfo() {
|
|
|
- getTopicDataInfo({
|
|
|
- id: self.id
|
|
|
- }).then(data => {
|
|
|
- // this.loading=false;
|
|
|
- console.log("返回数据", data.data);
|
|
|
- this.dataInfo = data.data;
|
|
|
- console.log("赋值:", self.dataInfo)
|
|
|
-
|
|
|
- })
|
|
|
},
|
|
|
getTopicReplyList() {
|
|
|
getTopicReply({
|
|
@@ -183,10 +176,10 @@ export default {
|
|
|
|
|
|
getMainData() {
|
|
|
let data = {
|
|
|
- id: 41
|
|
|
+ id: this.$route.query.id
|
|
|
};
|
|
|
- this.$store.dispatch('news/getNoticeInfo', data).then(res => {
|
|
|
- console.log('详情数据', res);
|
|
|
+ this.$store.dispatch('news/getComplaintInfo', data).then(res => {
|
|
|
+ console.log('详情数据121', res);
|
|
|
this.dataInfo = res.data;
|
|
|
})
|
|
|
},
|
|
@@ -194,7 +187,7 @@ export default {
|
|
|
mounted() {
|
|
|
// 1.获取详情数据
|
|
|
self.id = this.$route.query.id + '';
|
|
|
- this.getDataINfo();
|
|
|
+ // this.getDataINfo();
|
|
|
this.getTopicReplyList();
|
|
|
this.checkPanelHeight();
|
|
|
// 可选:如果你需要监听(一般只在调试时用)
|
|
@@ -204,19 +197,16 @@ export default {
|
|
|
beforeDestroy() {
|
|
|
emitter.off('view-group-chat', this.handleViewGroupChat);
|
|
|
},
|
|
|
- // watch: {
|
|
|
- // 'dataInfo.content': function () {
|
|
|
- // this.checkPanelHeight();
|
|
|
- // }
|
|
|
- // }
|
|
|
+ watch: {
|
|
|
+ 'dataInfo.content': function () {
|
|
|
+ this.checkPanelHeight();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
.article-detail {
|
|
|
- // padding: 24px;
|
|
|
- // background: #f5f7fa;
|
|
|
- min-height: 100vh;
|
|
|
|
|
|
.article-card {
|
|
|
margin-bottom: 24px;
|
|
@@ -245,6 +235,14 @@ export default {
|
|
|
|
|
|
.left {
|
|
|
float: left;
|
|
|
+
|
|
|
+ .left_place {
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .left_type {
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.article-link {
|
|
@@ -257,12 +255,19 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .line {
|
|
|
+ height: 1px;
|
|
|
+ background: #E1E1E1;
|
|
|
+ margin-top: 24px;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
.detail_title {
|
|
|
height: 40px;
|
|
|
line-height: 40px;
|
|
|
border-bottom: 1px solid #E1E1E1;
|
|
|
- margin-bottom: 40px;
|
|
|
+ margin: 30px 0px;
|
|
|
+
|
|
|
|
|
|
.title {
|
|
|
width: 103px;
|
|
@@ -283,7 +288,6 @@ export default {
|
|
|
font-size: 18px;
|
|
|
color: #6A82F3;
|
|
|
text-align: center;
|
|
|
- // margin-right: 16px;
|
|
|
display: block;
|
|
|
line-height: 30px;
|
|
|
}
|
|
@@ -291,7 +295,6 @@ export default {
|
|
|
}
|
|
|
|
|
|
.comment-section {
|
|
|
- // padding: 24px 32px;
|
|
|
background: #fff;
|
|
|
border-radius: 8px;
|
|
|
|
|
@@ -299,9 +302,6 @@ export default {
|
|
|
font-weight: bold;
|
|
|
font-size: 22px;
|
|
|
color: #5570F1;
|
|
|
- // font-size: 16px;
|
|
|
- // font-weight: bold;
|
|
|
- // color: #333;
|
|
|
margin-bottom: 8px;
|
|
|
text-align: left;
|
|
|
}
|
|
@@ -325,48 +325,28 @@ export default {
|
|
|
min-height: 200px;
|
|
|
|
|
|
.comment_li {
|
|
|
+ padding: 0px 30px;
|
|
|
+ height: 84px;
|
|
|
+ line-height: 84px;
|
|
|
background: #FAFAFA;
|
|
|
border: solid 1px #E1E1E1;
|
|
|
overflow: hidden;
|
|
|
margin-bottom: 20px;
|
|
|
+ color: #333333;
|
|
|
}
|
|
|
|
|
|
- .comment_li_img {
|
|
|
- float: left;
|
|
|
- width: 52px;
|
|
|
- height: 52px;
|
|
|
- border-radius: 50%;
|
|
|
- margin: 30px 0px 30px 30px;
|
|
|
- }
|
|
|
-
|
|
|
- .comment_li_name {
|
|
|
- float: left;
|
|
|
- margin: 44px 0px 44px 20px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- line-height: 24px;
|
|
|
- }
|
|
|
-
|
|
|
- .comment_li_text {
|
|
|
- float: left;
|
|
|
- margin: 45px 0px 11px 20px;
|
|
|
- color: #333;
|
|
|
- font-size: 16px;
|
|
|
- line-height: 24px;
|
|
|
- font-weight: bold;
|
|
|
- max-width: 1000px;
|
|
|
- }
|
|
|
+ .comment_empty {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 26px;
|
|
|
+ color: #ccc;
|
|
|
+ font-weight: 500;
|
|
|
+ padding: 40px 0px;
|
|
|
|
|
|
- .comment_li_time {
|
|
|
- float: right;
|
|
|
- margin: 44px 30px 44px 0px;
|
|
|
- color: #999;
|
|
|
- font-size: 16px;
|
|
|
- line-height: 24px;
|
|
|
+ .empty_img {
|
|
|
+ vertical-align: -25px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
.comment-item {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -471,9 +451,8 @@ export default {
|
|
|
}
|
|
|
|
|
|
.background-color {
|
|
|
- min-height: 617px;
|
|
|
background: #f0f2f5;
|
|
|
- padding: 10px 20px 0px 20px;
|
|
|
+ padding: 10px 20px;
|
|
|
}
|
|
|
|
|
|
.clearfix::after {
|
|
@@ -506,7 +485,8 @@ export default {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
-.article_panel {
|
|
|
+.article_panel,
|
|
|
+.article_panel1 {
|
|
|
transition: max-height 0.3s;
|
|
|
overflow: hidden;
|
|
|
position: relative;
|
|
@@ -523,7 +503,6 @@ export default {
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
- // height: 36px;
|
|
|
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 80%);
|
|
|
pointer-events: none;
|
|
|
}
|