修改分享列表页 详情打开方式

This commit is contained in:
yulixing 2019-06-10 13:48:48 +08:00
parent 20c8b4d5d8
commit e3f46948de

View File

@ -43,6 +43,7 @@
style="width: 100%"
class="table mgt-20 mgb-20"
@selection-change="tableSelectionChange"
@row-click="rowClick"
>
<el-table-column v-if="batch.show" type="selection" width="55"/>
<el-table-column prop="gameName" label="游戏" show-overflow-tooltip sortable/>
@ -54,7 +55,7 @@
sortable
:formatter="formatType"
/>
<el-table-column label="分享图" show-overflow-tooltip sortable width="200">
<el-table-column label="分享图" show-overflow-tooltip sortable width="260">
<template slot-scope="scope">
<img :src="scope.row.share_image" width="30" height="30" style="vertical-align: middle">
<span>{{ scope.row.share_word }}</span>
@ -318,6 +319,9 @@ export default {
editShare(row) {
this.$router.push(`/games/details/${this.uid}/share/edit?id=${row._id}`)
},
rowClick(row, column, event) {
this.$router.push(`/games/details/${this.uid}/share/edit?id=${row._id}`)
},
// pagination
sizeChange(val) {
this.pageSize = val