Commit ea6f8612cda51ec67129722dc9364bf92902be1b

Authored by 史婷婷
1 parent ee81300c

feat: 外贸标准合同-列表&详情-按钮权限

... ... @@ -211,12 +211,12 @@ export default {
211 211 const t = this.detail.standardApproved || false
212 212 const e = this.detail.standardShowExamine || false
213 213 return [
214   - { ...this.buttons[0], visible: (s === 'DRAFT') },
215   - { ...this.buttons[1], visible: (s === 'DRAFT') },
216   - { ...this.buttons[2], visible: (s !== 'DELETED' && t !== 'AUDIT' && t !== 'PASS') },
217   - { ...this.buttons[3], visible: (s === 'STANDARD') },
218   - { ...this.buttons[4], visible: (s === 'STANDARD' && e && t === 'AUDIT') },
219   - { ...this.buttons[5], visible: (s === 'STANDARD') }
  214 + { ...this.buttons[0], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:foreign-trade-standard-contract:modifyx')) },
  215 + { ...this.buttons[1], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:foreign-trade-standard-contract:delete')) },
  216 + { ...this.buttons[2], visible: (s !== 'DELETED' && t !== 'AUDIT' && t !== 'PASS' && this.$auth.hasPermi('contract-manage:foreign-trade-standard-contract:upload')) },
  217 + { ...this.buttons[3], visible: (s === 'STANDARD' && this.$auth.hasPermi('contract-manage:foreign-trade-standard-contract:upload-seal')) },
  218 + { ...this.buttons[4], visible: (s === 'STANDARD' && e && t === 'AUDIT' && this.$auth.hasPermi('contract-manage:foreign-trade-standard-contract:approve')) },
  219 + { ...this.buttons[5], visible: (s === 'STANDARD' && this.$auth.hasPermi('contract-manage:foreign-trade-standard-contract:review')) }
220 220 ]
221 221 }
222 222 },
... ...
... ... @@ -14,7 +14,7 @@
14 14 @input="onSearchInput"
15 15 />
16 16 <view class="tool-icons">
17   - <image class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
  17 + <image v-if="$auth.hasPermi('contract-manage:foreign-trade-standard-contract:add')" class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
18 18 <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" />
19 19 </view>
20 20 </view>
... ...