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