Commit ee81300c5b22948be390bdaf1eb95d1dfe7d005d

Authored by 史婷婷
1 parent f81595fe

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

@@ -204,11 +204,11 @@ export default { @@ -204,11 +204,11 @@ export default {
204 const t = this.detail.standardApproved || false 204 const t = this.detail.standardApproved || false
205 const e = this.detail.standardShowExamine || false 205 const e = this.detail.standardShowExamine || false
206 return [ 206 return [
207 - { ...this.buttons[0], visible: (s === 'DRAFT') },  
208 - { ...this.buttons[1], visible: (s === 'DRAFT') },  
209 - { ...this.buttons[2], visible: (s !== 'DELETED' && t !== 'AUDIT' && t !== 'PASS') },  
210 - { ...this.buttons[3], visible: (s === 'STANDARD' && e && t === 'AUDIT') },  
211 - { ...this.buttons[4], visible: (s === 'STANDARD') } 207 + { ...this.buttons[0], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:processed-standard-contract:modify')) },
  208 + { ...this.buttons[1], visible: (s === 'DRAFT' && this.$auth.hasPermi('contract-manage:processed-standard-contract:delete')) },
  209 + { ...this.buttons[2], visible: (s !== 'DELETED' && t !== 'AUDIT' && t !== 'PASS' && this.$auth.hasPermi('contract-manage:processed-standard-contract:upload')) },
  210 + { ...this.buttons[3], visible: (s === 'STANDARD' && e && t === 'AUDIT' && this.$auth.hasPermi('contract-manage:processed-standard-contract:approve')) },
  211 + { ...this.buttons[4], visible: (s === 'STANDARD' && this.$auth.hasPermi('contract-manage:processed-standard-contract:review')) }
212 ] 212 ]
213 } 213 }
214 }, 214 },
@@ -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:processed-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>