Browse Source

bug--商品规格权限标识修改

master
taochengbo 4 years ago
parent
commit
a1fc3587b6
  1. 6
      src/views/shop/storeProductRule/form.vue
  2. 8
      src/views/shop/storeProductRule/index.vue

6
src/views/shop/storeProductRule/form.vue

@ -73,9 +73,9 @@
return { return {
permission: { permission: {
add: ['admin', 'storeProductRule:add'], add: ['admin', 'yxStoreProductRule:add'],
edit: ['admin', 'storeProductRule:edit'], edit: ['admin', 'yxStoreProductRule:edit'],
del: ['admin', 'storeProductRule:del'] del: ['admin', 'yxStoreProductRule:del']
}, },
rules: { rules: {
ruleName: [ ruleName: [

8
src/views/shop/storeProductRule/index.vue

@ -21,7 +21,7 @@
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.createTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-permission="['admin','storeProductRule:edit','storeProductRule:del']" label="操作" width="150px" align="center"> <el-table-column v-permission="['admin','yxStoreProductRule:edit','yxStoreProductRule:del']" label="操作" width="150px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<udOperation <udOperation
:data="scope.row" :data="scope.row"
@ -56,9 +56,9 @@ export default {
data() { data() {
return { return {
permission: { permission: {
add: ['admin', 'storeProductRule:add'], add: ['admin', 'yxStoreProductRule:add'],
edit: ['admin', 'storeProductRule:edit'], edit: ['admin', 'yxStoreProductRule:edit'],
del: ['admin', 'storeProductRule:del'] del: ['admin', 'yxStoreProductRule:del']
} }
} }
}, },

Loading…
Cancel
Save