|
...
|
...
|
@@ -204,11 +204,11 @@ export default { |
|
204
|
204
|
const t = this.detail.standardApproved || false
|
|
205
|
205
|
const e = this.detail.standardShowExamine || false
|
|
206
|
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
|
},
|
...
|
...
|
|