修复下架商品点击跳转偶尔失灵问题
This commit is contained in:
@@ -47,10 +47,14 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column v-if="checkPermission(['admin','YXSTOREPRODUCT_ALL','YXSTOREPRODUCT_EDIT','YXSTOREPRODUCT_DELETE'])" label="操作" width="150px" align="center">
|
<el-table-column v-if="checkPermission(['admin','YXSTOREPRODUCT_ALL','YXSTOREPRODUCT_EDIT','YXSTOREPRODUCT_DELETE'])" label="操作" width="150px" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button v-permission="['admin','YXSTOREPRODUCT_ALL','YXSTOREPRODUCT_EDIT']" size="mini" type="primary" icon="el-icon-edit">
|
<el-button v-permission="['admin','YXSTOREPRODUCT_ALL','YXSTOREPRODUCT_EDIT']"
|
||||||
<router-link :to="'/bxg/shop/goodsEdit/'+scope.row.id">
|
size="mini"
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="toUpdateURL(scope.row.id)" >
|
||||||
|
<!-- <router-link :to="'/bxg/shop/goodsEdit/'+scope.row.id">-->
|
||||||
编辑
|
编辑
|
||||||
</router-link>
|
<!-- </router-link>-->
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-popover
|
<el-popover
|
||||||
:ref="scope.row.id"
|
:ref="scope.row.id"
|
||||||
@@ -104,6 +108,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
toUpdateURL(id){
|
||||||
|
this.$router.push({ path: '/bxg/shop/goodsEdit/'+id })
|
||||||
|
},
|
||||||
checkPermission,
|
checkPermission,
|
||||||
beforeInit() {
|
beforeInit() {
|
||||||
this.url = 'bxg/api/yxStoreProduct'
|
this.url = 'bxg/api/yxStoreProduct'
|
||||||
|
|||||||
Reference in New Issue
Block a user