fix: hide freight shipping without permission

This commit is contained in:
zhx 2026-07-14 19:04:39 +08:00
parent 3364e53445
commit b6b26079e9

View File

@ -229,7 +229,10 @@
<el-button type="text" @click.native="handleUpdate(scope.row)"
>{{ $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
>
<el-button type="text" @click="showGoldInputBox(scope.row, false)"
@ -477,7 +480,7 @@ export default {
};
},
computed: {
...mapGetters(["permissionsSysOriginPlatforms"])
...mapGetters(['permissionsSysOriginPlatforms', 'buttonPermissions'])
},
created() {
const that = this;