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

This commit is contained in:
sj
2022-11-30 14:22:49 +08:00
parent faea52e6f9
commit a2082879ef
+10 -3
View File
@@ -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'