Showing
2 changed files
with
5 additions
and
5 deletions
| @@ -64,10 +64,10 @@ export default { | @@ -64,10 +64,10 @@ export default { | ||
| 64 | displayButtons() { | 64 | displayButtons() { |
| 65 | const f = this.statusFlags | 65 | const f = this.statusFlags |
| 66 | return [ | 66 | return [ |
| 67 | - { ...this.buttons[0], visible: f.canEdit }, | ||
| 68 | - { ...this.buttons[1], visible: true }, | ||
| 69 | - { ...this.buttons[2], visible: f.canAudit }, | ||
| 70 | - { ...this.buttons[3], visible: f.canCancel }, | 67 | + { ...this.buttons[0], visible: f.canEdit && this.$auth.hasPermi('order-manage:revoke-list:modify') }, |
| 68 | + { ...this.buttons[1], visible: this.$auth.hasPermi('order-manage:revoke-list:review') }, | ||
| 69 | + { ...this.buttons[2], visible: f.canAudit && this.$auth.hasPermi('order-manage:revoke-list:approve') }, | ||
| 70 | + { ...this.buttons[3], visible: f.canCancel && this.$auth.hasPermi('order-manage:revoke-list:cancel') }, | ||
| 71 | ] | 71 | ] |
| 72 | } | 72 | } |
| 73 | }, | 73 | }, |
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <uni-search-bar v-model="searchKeyword" radius="6" placeholder="请输入订货单位或订单编号" clearButton="auto" | 5 | <uni-search-bar v-model="searchKeyword" radius="6" placeholder="请输入订货单位或订单编号" clearButton="auto" |
| 6 | cancelButton="none" bgColor="#F3F3F3" textColor="rgba(0,0,0,0.4)" @confirm="onSearchConfirm" | 6 | cancelButton="none" bgColor="#F3F3F3" textColor="rgba(0,0,0,0.4)" @confirm="onSearchConfirm" |
| 7 | @input="onSearchInput" /> | 7 | @input="onSearchInput" /> |
| 8 | - <image class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" /> | 8 | + <image v-if="$auth.hasPermi('order-manage:revoke-list:add')" class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" /> |
| 9 | <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" /> | 9 | <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" /> |
| 10 | </view> | 10 | </view> |
| 11 | </view> | 11 | </view> |