Commit 188fff25 authored by anxixi's avatar anxixi

话题问题修改

parent ff53809f
......@@ -52,7 +52,7 @@
<div class="content_right" v-if="hotlist&&hotlist.length>0">
<p><span>&nbsp;</span>精彩内容 <i @click="gocontentall" style="position: absolute;right: 0px;top: 0px;font-size: 14px;font-weight: normal;cursor: pointer;">查看更多 > </i></p>
<div class="hto_content">
<div style="cursor: pointer;width: 100%;" v-for="(item,index) in hotlist" :key="index" @click="gocontent(item,true)">
<div style="cursor: pointer;width: 100%;" v-for="(item,index) in hotlist" :key="index" @click="goindustry(item)">
<p class="imgInfo" style="width: 80px;height: 56px;" :style="{backgroundImage:'url('+(item.contentCoverUrl?item.contentCoverUrl:item.contentUrl?item.contentUrl.split(',')[0]:'')+')'}">
<!-- <img :src="item.contentCoverUrl?item.contentCoverUrl:item.contentUrl?item.contentUrl.split(',')[0]:''" alt="图片">-->
......@@ -140,6 +140,10 @@
return false;
});
},
goindustry(row){
globalMsg.$emit('maiDianFunc',({type:'report-article-report-right-list',articleId:row.contentId}));
window.open(this.publicFun.getCurrentHrefEnv()+"#/contentdetail?id="+row.contentId+'&newnpen=true');
},
gocontent(row,state){
if(this.isstate){
if(state){
......
......@@ -12,7 +12,7 @@
</p>
<p class="ellipsisFont2" style="height: 40px;" @click="$router.push({path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})">{{item.channelTitle}}</p>
<p class="ellipsisFont1" @click="$router.push({path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})">{{$t('activityInfo.timeZone')}}{{item.versionType==0?$t('pubactivities.beijingtime'):item.timeZoneName}}</p>
<span @click="$router.push({path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})">{{item.channelStartTime}} {{$t('adminDash.zhi')}} {{item.channelEndTime}}</span>
<span @click="$router.push({path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})">{{item.channelStartTime}} - {{item.channelEndTime}}</span>
<span @click="$router.push({path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})"> &nbsp;<i v-if="item.channelCityStr" class="iconfont icon-dingwei"></i> {{item.channelCityStr}}</span>
<div class="gendisplay">
<p class="ellipsisFont1">{{item.channelLabel}}</p>
......
......@@ -65,6 +65,9 @@
parameters:{
articleId:data.articleId,
rDeviceId:data.rDeviceId,
channelId:data.channelId,
topicId:data.topicId,
topicDiscussId:data.topicDiscussId,
rEmpId:data.rEmpId,
rTargetType:data.rTargetType
},
......
......@@ -215,7 +215,7 @@
<span>{{$t('commonTips.downloads')}} {{item.downloadNumber}}</span>
</p>
<p style="width:155px;text-align: right;">
<span @click="gocontentdetail(item)" style="margin-right: 20px">
<span @click="downloaddetail(item)" style="margin-right: 20px">
<i style="font-size: 12px;" class="iconfont icon-download-fill"></i>
{{$t('newprojecttext.download')}}
</span>
......@@ -837,6 +837,7 @@
// globalMsg.$emit('topisInit', false);
// globalMsg.$emit('sendIndex', 5);
window.open(this.publicFun.getCurrentHrefEnv()+"#/topicdetail?id="+row.topicId+'&newnpen=true');
globalMsg.$emit('maiDianFunc',({type:'report-topic-index-recommend',topicId:row.topicId}));
// this.$router.push({path:"/topicdetail",query:{id:row.topicId}});
}else if(state == 2){
globalMsg.$emit('maiDianFunc',({type:'report-article-list',articleId:row.contentId}));
......@@ -845,6 +846,7 @@
globalMsg.$emit('topisInit', false);
globalMsg.$emit('sendIndex', 3);
this.$router.push({path:'/eventdetail',query:{id:row.channelId,ismyevent:0}})
globalMsg.$emit('maiDianFunc',({type:'report-channel-index-recommend',channelId:row.channelId}));
}
},
......@@ -965,12 +967,13 @@
window.open(item.href);
},
//报告下载
gocontentdetail(row){
downloaddetail(row){
this.reportId = row.reportId;
if(!this.publicFun.getCookie("userInfo")){
this.$refs.login.isexpertVisible();
return
}
globalMsg.$emit('maiDianFunc',({type:'report-report-file-read-index',reportId:row.reportId}));
api.getDownloadUrl(row.reportId).then(response => {
if(response.code == 0) {
const elink = document.createElement('a');
......
......@@ -275,6 +275,7 @@
this.$refs.login.isexpertVisible();
return
}
globalMsg.$emit('maiDianFunc',({type:'report-report-file-read',reportId:row.reportId}));
api.getDownloadUrl(row.reportId).then(response => {
if(response.code == 0) {
const elink = document.createElement('a');
......
......@@ -79,6 +79,7 @@
methods: {
todetail(row){
this.$router.push({path:"/topicdetail",query:{id:row.topicId}});
globalMsg.$emit('maiDianFunc',({type:'report-topic-list-index',topicId:row.topicId}));
},
load () {
......
......@@ -38,6 +38,7 @@
<el-input style="width: 240px;margin-left: 20px;" v-model="searchs.topicTitle"
placeholder="请输入关键字"></el-input>
<el-button type="primary" style="width: 140px;margin-left: 20px" @click="searchCik">{{$t('operationjson.search')}}</el-button>
<el-button type="primary" plain style="width: 140px;margin-left: 20px" @click="resetCik">重置</el-button>
</div>
</template>
</el-form-item>
......@@ -120,7 +121,6 @@
numberData: 10, //设置个数
tydata:[],
channelList:[],//频道检索
classifyList:[],//分类检索
dictList:[],
searchs:{
superTopicId:0,
......@@ -196,45 +196,19 @@
this.cur_page = 1;
this.getsearchContents();
},
resetCik(){
this.searchs = {
superTopicId:0,
topicTitle:'',
};
this.$refs.channelchild.stateinit();
this.searchCik();
},
//频道检索
channelData(a){
this.searchs.dataIds = a;
this.searchCik();
},
//分类检索
classifyData(a){
this.searchs.classifyIds = a;
this.searchCik();
},
//
dictData(a){
this.searchs.codes = a;
this.searchCik();
},
//
viewShow(row){
window.open(this.publicFun.getCurrentHrefEnv()+"#/contentdetail?id="+row.contentId+'&newnpen=true');
},
//分类列表条件
getClassifyList(){
api.getClassifyList().then(response => {
if(response.code == 0) {
response.result.forEach( ( item ) => {
item.checked = false;
item.industryName = item.classifyName;
item.industryId = item.classifyId;
item.screenchildList = null;
} );
this.classifyList = response.result;
} else {
this.$message.error(response.msg);
}
})
.catch(error => {
console.log("提交出错");
return false;
});
},
//删除
deleteContent(row){
if(row.subNum != 0){
......@@ -322,7 +296,6 @@
console.log("提交出错");
return false;
});
// this.getClassifyList();
},
}
</script>
......
......@@ -43,6 +43,7 @@
todetail(row){
// this.$router.push({path:"/topicdetail",query:{id:row.topicId}});
window.open(this.publicFun.getCurrentHrefEnv()+"#/topicdetail?id="+row.topicId+'&newnpen=true');
globalMsg.$emit('maiDianFunc',({type:'report-topic-list-right-list',topicId:row.topicId}));
},
topics(){
// this.$router.push({path:'/discussall'})
......
......@@ -397,7 +397,7 @@
</div>
</div>
</div>
<p v-if="item.commentsCount > 5" @click="$router.push({path:'/commentdetail',query:{id:item.topicId,disId:item.id}})" style="line-height: 48px;text-align: center;border-top: 1px solid #E8EAF3;cursor: pointer;">
<p v-if="item.commentsCountStr > 5" @click="tocommentdetail(item)" style="line-height: 48px;text-align: center;border-top: 1px solid #E8EAF3;cursor: pointer;">
还有{{item.commentsCountStr - 5}}条数据,点击查看 <i style="font-size: 12px;" class="iconfont icon-you"></i>
</p>
</div>
......@@ -524,6 +524,11 @@
todetail(row){
this.$router.push({path:"/topicdetail",query:{id:row.contentId}});
},
//讨论详情
tocommentdetail(row){
this.$router.push({path:'/commentdetail',query:{id:row.topicId,disId:row.id}});
globalMsg.$emit('maiDianFunc',({type:'report-topic-discuss-read',topicId:row.topicId,topicDiscussId:row.id}));
},
//表情拼接
emojstate(val,state){
let content = this.discussContent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment