| | |
| | | </template> |
| | | <template #menu="scope"> |
| | | <el-button type="primary" text size="default" @click.stop="handleAction(scope.row, scope.index)"> |
| | | {{scope.row.taskDefinitionKey === 'teamLeaderTask' ? '派工' : '审批'}} |
| | | {{approveButtonText(scope.row.taskDefinitionKey)}} |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | |
| | | approveButtonText(taskDefinitionKey){ |
| | | let lower = taskDefinitionKey.toLowerCase(); |
| | | if(taskDefinitionKey === 'teamLeaderTask') { |
| | | return '派工' |
| | | }else if(taskDefinitionKey == 'unlockProgramConfirm') { |
| | | //解锁,编制复核 |
| | | return '复核' |
| | | }else if(taskDefinitionKey == 'programMgrConfirm') { |
| | | //固化,程序管理员确认 |
| | | return '确认' |
| | | }else if(lower.indexOf('program')>-1) { |
| | | return '编制' |
| | | }else if(lower.indexOf('check')>-1) { |
| | | return '校对' |
| | | }else if(lower.indexOf('useable')>-1) { |
| | | return '检查' |
| | | }else{ |
| | | return '审批' |
| | | } |
| | | }, |
| | | setApproveBtn (row) { // 设置审批结果的状态 |
| | | // 1.审批界面radio文本修改,普通节点的2个radio文本 通过(approve=Y),不通过(现在的驳回)(approve=N) |
| | | |