fix: hide freight shipping without permission
This commit is contained in:
parent
3364e53445
commit
b6b26079e9
@ -229,7 +229,10 @@
|
|||||||
<el-button type="text" @click.native="handleUpdate(scope.row)"
|
<el-button type="text" @click.native="handleUpdate(scope.row)"
|
||||||
>{{ $t('pages.userFreight.action.edit') }}</el-button
|
>{{ $t('pages.userFreight.action.edit') }}</el-button
|
||||||
>
|
>
|
||||||
<el-button type="text" @click="showGoldInputBox(scope.row, true)"
|
<el-button
|
||||||
|
v-if="buttonPermissions.includes('user:freight:ship')"
|
||||||
|
type="text"
|
||||||
|
@click="showGoldInputBox(scope.row, true)"
|
||||||
>{{ $t('pages.userFreight.action.ship') }}</el-button
|
>{{ $t('pages.userFreight.action.ship') }}</el-button
|
||||||
>
|
>
|
||||||
<el-button type="text" @click="showGoldInputBox(scope.row, false)"
|
<el-button type="text" @click="showGoldInputBox(scope.row, false)"
|
||||||
@ -477,7 +480,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(["permissionsSysOriginPlatforms"])
|
...mapGetters(['permissionsSysOriginPlatforms', 'buttonPermissions'])
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const that = this;
|
const that = this;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user