Browse Source

修复下架商品点击跳转偶尔失灵问题

master
sj 2 years ago
parent
commit
a2082879ef
  1. 13
      src/views/bxg/shop/goods/index2.vue

13
src/views/bxg/shop/goods/index2.vue

@ -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'

Loading…
Cancel
Save