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