|
@@ -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
|
},
|