Commit 51fd067c authored by Mac's avatar Mac
parents 2dfa6129 f4416096
...@@ -2,21 +2,21 @@ ...@@ -2,21 +2,21 @@
<div class="informationEvalution"> <div class="informationEvalution">
<div class="head-title"> <div class="head-title">
资讯评价 资讯评价
<el-button style="float:right;margin-left:10px" @click="CommonJump('addZixunPj')" size="small" <!-- <el-button style="float:right;margin-left:10px" @click="CommonJump('addZixunPj')" size="small" type="primary">新增评价
type="primary">新增评价</el-button> </el-button> -->
</div> </div>
<div class="content"> <div class="content">
<div style="margin-bottom:20px"> <div style="margin-bottom:20px">
<span>评价类型</span> <span>评价类型</span>
<el-select style="margin:0 10px" class="w100" @change="msg.pageIndex=1,getList()" v-model="msg.CommentGrade" size="small" <el-select style="margin:0 10px" class="w100" @change="msg.pageIndex=1,getList()" v-model="msg.CommentGrade"
placeholder="请选择"> size="small" placeholder="请选择">
<el-option label="全部评价" :value="0"></el-option> <el-option label="全部评价" :value="0"></el-option>
<el-option v-for="item in templateList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in templateList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
<span>所属平台</span> <span>所属平台</span>
<el-select class="w100" @change="msg.pageIndex=1,getList()" style="margin-right: 10px;" v-model="msg.PlatformSource" size="small" <el-select class="w100" @change="msg.pageIndex=1,getList()" style="margin-right: 10px;"
placeholder="请选择"> v-model="msg.PlatformSource" size="small" placeholder="请选择">
<el-option label="全平台" :value="0"></el-option> <el-option label="全平台" :value="0"></el-option>
<el-option v-for="item in platList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in platList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
...@@ -55,21 +55,21 @@ ...@@ -55,21 +55,21 @@
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="Name" label="详情" width="200"> <el-table-column prop="Name" label="详情">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.row.Content" placement="top"> <el-tooltip class="item" effect="dark" :content="scope.row.Content" placement="top">
<span>{{scope.row.Content}}</span> <span>{{scope.row.Content}}</span>
</el-tooltip> </el-tooltip>
<!-- <div> <div>
<div v-for="(item,index) in scope.row.CommentImgList" :key="index" @click="OpenImg(scope.row)" <div v-for="(item,index) in scope.row.CommentImgList" :key="index" @click="OpenImg(item)"
style="margin: 10px; display: inline-block; cursor: pointer;"> style="margin: 10px; display: inline-block; cursor: pointer;">
<div class="backImg" <div class="backImg"
:style="{backgroundImage:'url(' + domainManager().ImageUrl+item + ')',backgroundSize:'cover'}"></div> :style="{backgroundImage:'url(' + domainManager().ImageUrl+item + ')',backgroundSize:'cover'}"></div>
</div> </div>
</div> --> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="CommentGradeName" label="评价回复"> <!-- <el-table-column prop="CommentGradeName" label="评价回复">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.Reply}}</span> <span>{{scope.row.Reply}}</span>
</template> </template>
...@@ -86,32 +86,39 @@ ...@@ -86,32 +86,39 @@
<el-tag v-if="scope.row.Is_Show==1" size="mini" type="success">显示</el-tag> <el-tag v-if="scope.row.Is_Show==1" size="mini" type="success">显示</el-tag>
<el-tag v-if="scope.row.Is_Show==2" size="mini" type="warning">隐藏</el-tag> <el-tag v-if="scope.row.Is_Show==2" size="mini" type="warning">隐藏</el-tag>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column width="220" prop="address" label="操作"> <el-table-column width="220" prop="address" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="评价回复" placement="top"> <!-- <el-tooltip class="item" effect="dark" content="评价回复" placement="top">
<img @click="EditTemplate(scope.row)" style="margin-right:10px" src="../../assets/img/userman/reply.png" <img @click="EditTemplate(scope.row)" style="margin-right:10px" src="../../assets/img/userman/reply.png"
alt=""> alt="">
</el-tooltip> </el-tooltip> -->
<el-tooltip class="item" effect="dark" content="删除" placement="top"> <el-tooltip class="item" effect="dark" content="删除" placement="top">
<img @click="setBatch(scope.row,6)" style="margin-right:10px" src="../../assets/img/userman/del.png" <img @click="setBatch(scope.row,6)" style="margin-right:10px" src="../../assets/img/userman/del.png"
alt=""> alt="">
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="隐藏" placement="top"> <!-- <el-tooltip class="item" effect="dark" content="隐藏" placement="top">
<img @click="setBatch(scope.row,2)" v-if="scope.row.Is_Show==1" style="margin-right:10px" <img @click="setBatch(scope.row,2)" v-if="scope.row.Is_Show==1" style="margin-right:10px"
src="../../assets/img/userman/icon-hidden.png" alt=""> src="../../assets/img/userman/icon-hidden.png" alt="">
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="显示" placement="top"> <el-tooltip class="item" effect="dark" content="显示" placement="top">
<img @click="setBatch(scope.row,3)" v-if="scope.row.Is_Show==2" style="margin-right:10px" <img @click="setBatch(scope.row,3)" v-if="scope.row.Is_Show==2" style="margin-right:10px"
src="../../assets/img/userman/icon-show.png" alt=""> src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip> </el-tooltip> -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination style="text-align:right" background @current-change="handleCurrentChange" :page-size="msg.pageSize" :current-page.sync="msg.pageIndex" <el-pagination style="text-align:right" background @current-change="handleCurrentChange" :page-size="msg.pageSize"
layout="prev, pager, next" :total="total"> :current-page.sync="msg.pageIndex" layout="prev, pager, next" :total="total">
</el-pagination> </el-pagination>
</div> </div>
<!-- 查看图片 -->
<el-dialog :visible.sync="seeimgDig" width="45%">
<div>
<img :src="imgSrc" style="width:100%;max-width:100%;" alt="">
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -119,25 +126,25 @@ ...@@ -119,25 +126,25 @@
export default { export default {
data() { data() {
return { return {
loading:false, loading: false,
msgVal: '', msgVal: '',
msgId: '', msgId: '',
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize : 15, pageSize: 15,
CommentGrade: 0, CommentGrade: 0,
PlatformSource: 0, PlatformSource: 0,
ArticleName:'', //咨询标题 ArticleName: '', //咨询标题
Content:'', //评价内容 Content: '', //评价内容
StartTime:'', //评价时间 StartTime: '', //评价时间
EndTime:'', //评价时间 EndTime: '', //评价时间
UserName:'', //用户昵称 UserName: '', //用户昵称
ArticleId:0 //资讯id ArticleId: 0 //资讯id
}, },
templateList: [], //评价类型 templateList: [], //评价类型
platList:[], //所属平台 platList: [], //所属平台
total: 0, total: 0,
tableData:[], tableData: [],
addMsg: { addMsg: {
Id: 0, Id: 0,
Name: '', Name: '',
...@@ -161,6 +168,8 @@ ...@@ -161,6 +168,8 @@
//日期 //日期
dateList: [], dateList: [],
SelectList: [], SelectList: [],
seeimgDig:false,
imgSrc:'',
} }
}, },
created() { created() {
...@@ -195,8 +204,8 @@ ...@@ -195,8 +204,8 @@
}); });
}, },
OpenImg(item) { OpenImg(item) {
// this.imgSrc = 'https://cdnimg.iotweixin.com/uploads/mall1285/20200316/586d61c616082de7c3a7d1d778104785.jpg'; this.imgSrc = item
// this.seeimgDig = true; this.seeimgDig = true;
}, },
TableSelectChange(val) { TableSelectChange(val) {
this.SelectList = val; this.SelectList = val;
...@@ -251,11 +260,11 @@ ...@@ -251,11 +260,11 @@
this.msg.StartTime = ''; this.msg.StartTime = '';
this.msg.EndTime = ''; this.msg.EndTime = '';
} }
this.loading=true; this.loading = true;
this.apipost("/api/Education/GetArticleCommentPageList", this.msg, res => { this.apipost("/api/Education/GetArticleCommentPageList", this.msg, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(res,'数据'); console.log(res, '数据');
this.total = res.data.data.count; this.total = res.data.data.count;
let pageData = res.data.data.pageData; let pageData = res.data.data.pageData;
this.tableData = pageData; this.tableData = pageData;
...@@ -306,13 +315,38 @@ ...@@ -306,13 +315,38 @@
} }
}) })
}, },
EditTemplate(){ EditTemplate() {
}, },
setBatch(){ setBatch(item, index) {
let msg = {
CommentIds: item.ID,
Type: index,
} }
if (index == 6) {
this.delComent(msg);
}
},
delComent(msg) {
let that = this;
that.$confirm("确认删除?", '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.apipost("/api/Education/SetArticleCommentBatch", msg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.Success(res.data.message)
this.getList();
} else {
this.Error(res.data.message)
}
})
}).catch(() => {
});
},
}, },
}; };
......
...@@ -53,7 +53,10 @@ ...@@ -53,7 +53,10 @@
<p v-if="scope.row.IsComment==1"></p> <p v-if="scope.row.IsComment==1"></p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="CommentNum" label="留言数"> <el-table-column label="留言数">
<template slot-scope="scope">
<span style="color:#409EFF;text-decoration:underline;cursor:pointer;" @click="CommonJump('informationEvalution')">{{scope.row.CommentNum}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="BrowseNum" label="实际浏览数"> <el-table-column prop="BrowseNum" label="实际浏览数">
</el-table-column> </el-table-column>
......
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