|
|
|
@ -11,8 +11,8 @@
|
|
|
|
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
|
|
|
|
<div class="table-operator">
|
|
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('评论')">导出</a-button>
|
|
|
|
|
<a-button @click="handleAdd" v-has="'erp:bbs:add'" type="primary" icon="plus">新增</a-button>
|
|
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('评价')">导出</a-button>
|
|
|
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
|
|
|
<a-button type="primary" icon="import">导入</a-button>
|
|
|
|
|
</a-upload>
|
|
|
|
@ -68,7 +68,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
|
|
|
<a v-has="'erp:bbs:edit'" @click="handleEdit(record)">编辑</a>
|
|
|
|
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
|
|
|
<a-dropdown>
|
|
|
|
@ -79,7 +79,7 @@
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
<a-menu-item>
|
|
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
|
|
|
<a>删除</a>
|
|
|
|
|
<a v-has="'erp:bbs:delete'">删除</a>
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
</a-menu>
|
|
|
|
@ -108,7 +108,7 @@
|
|
|
|
|
},
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
description: '评论管理页面',
|
|
|
|
|
description: '评价管理页面',
|
|
|
|
|
// 表头
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
@ -127,9 +127,35 @@
|
|
|
|
|
dataIndex: 'content'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title:'用户id',
|
|
|
|
|
title:'评论时间',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'userId'
|
|
|
|
|
dataIndex: 'createTime'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title:'物流打分',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'deliveryScore'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title:'商品打分',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'qualityScore'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title:'服务打分',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'serviceScore'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title:'推荐打分',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'suggestScore'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title:'图片url',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'url',
|
|
|
|
|
scopedSlots: {customRender: 'imgSlot'}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title:'产品',
|
|
|
|
@ -181,7 +207,12 @@
|
|
|
|
|
getSuperFieldList(){
|
|
|
|
|
let fieldList=[];
|
|
|
|
|
fieldList.push({type:'string',value:'content',text:'内容',dictCode:''})
|
|
|
|
|
fieldList.push({type:'string',value:'userId',text:'用户id',dictCode:''})
|
|
|
|
|
fieldList.push({type:'datetime',value:'createTime',text:'评论时间'})
|
|
|
|
|
fieldList.push({type:'string',value:'deliveryScore',text:'物流打分,满分5星',dictCode:''})
|
|
|
|
|
fieldList.push({type:'string',value:'qualityScore',text:'商品打分,满分5星',dictCode:''})
|
|
|
|
|
fieldList.push({type:'string',value:'erviceScore',text:'服务打分,满分5星',dictCode:''})
|
|
|
|
|
fieldList.push({type:'string',value:'suggestScore',text:'是否推荐打分,满分5星',dictCode:''})
|
|
|
|
|
fieldList.push({type:'string',value:'url',text:'图片url',dictCode:''})
|
|
|
|
|
fieldList.push({type:'string',value:'goodsName',text:'产品',dictCode:''})
|
|
|
|
|
fieldList.push({type:'string',value:'remark',text:'备注',dictCode:''})
|
|
|
|
|
fieldList.push({type:'string',value:'userName',text:'评论人',dictCode:''})
|
|
|
|
|