Commit 849ea7df authored by zhengke's avatar zhengke

修改

parent 1f9a6379
...@@ -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>
...@@ -89,27 +89,27 @@ ...@@ -89,27 +89,27 @@
</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>
</div> </div>
...@@ -119,25 +119,25 @@ ...@@ -119,25 +119,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: '',
...@@ -251,11 +251,11 @@ ...@@ -251,11 +251,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 +306,38 @@ ...@@ -306,13 +306,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(() => {
});
},
}, },
}; };
......
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