Commit e54fb1692ae9309e6e66e82116597173e58e5833

Authored by 史婷婷
1 parent 6450cb83

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

@@ -206,11 +206,11 @@ export default { @@ -206,11 +206,11 @@ export default {
206 const t = this.detail.standardApproved || '' 206 const t = this.detail.standardApproved || ''
207 const e = this.detail.standardShowExamine || false 207 const e = this.detail.standardShowExamine || false
208 return [ 208 return [
209 - { ...this.buttons[0], visible: (s === 'DRAFT') },  
210 - { ...this.buttons[1], visible: (s === 'DRAFT') },  
211 - { ...this.buttons[2], visible: (s !== 'DELETED' && t !== 'AUDIT' && t !== 'PASS') },  
212 - { ...this.buttons[3], visible: (s === 'STANDARD' && e && t === 'AUDIT') },  
213 - { ...this.buttons[4], visible: (s === 'STANDARD') } 209 + { ...this.buttons[0], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:distribution-standard-contract:modify')) },
  210 + { ...this.buttons[1], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:distribution-standard-contract:delete')) },
  211 + { ...this.buttons[2], visible: (s !== 'DELETED' && t !== 'AUDIT' && t !== 'PASS' && this.$auth.hasPermi('contract-manage:distribution-standard-contract:upload')) },
  212 + { ...this.buttons[3], visible: (s === 'STANDARD' && e && t === 'AUDIT' && this.$auth.hasPermi('contract-manage:distribution-standard-contract:approve')) },
  213 + { ...this.buttons[4], visible: (s === 'STANDARD' && this.$auth.hasPermi('contract-manage:distribution-standard-contract:review')) }
214 ] 214 ]
215 } 215 }
216 }, 216 },
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 @input="onSearchInput" 14 @input="onSearchInput"
15 /> 15 />
16 <view class="tool-icons"> 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:distribution-standard-contract:add')" class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
18 <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" /> 18 <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" />
19 </view> 19 </view>
20 </view> 20 </view>