| | |
| | | <!-- 操作按钮区域 --> |
| | | <div class='table-operator'> |
| | | <a-button @click='handleAdd' type='primary' icon='plus'>新增</a-button> |
| | | <a-button @click='handleSubmit' type='primary' icon='check' |
| | | v-if="selectedRowKeys.length > 0 && (selectionRows[0].auditStatus==='notSubmitted' || selectionRows[0].auditStatus==='Rejected')"> |
| | | 提交 |
| | | </a-button> |
| | | <a-button v-if="selectedRowKeys.length > 0 && selectionRows[0].auditStatus==='pendingApproval'" |
| | | @click='handleRevocation' type='primary' icon='rollback'>撤回 |
| | | </a-button> |
| | | |
| | | |
| | | <a-popconfirm |
| | | :title='`确定要提交吗?`' |
| | | @confirm='handleSubmit'> |
| | | <a-button type='primary' icon='check' |
| | | v-if="selectedRowKeys.length > 0 && (selectionRows[0].auditStatus==='notSubmitted' || selectionRows[0].auditStatus==='Rejected')"> |
| | | 提交 |
| | | </a-button> |
| | | </a-popconfirm> |
| | | |
| | | |
| | | <a-popconfirm :title='`确定撤回吗?`' @confirm='handleRevocation'> |
| | | <a-button v-if="selectedRowKeys.length > 0 && selectionRows[0].auditStatus==='pendingApproval'" |
| | | type='primary' icon='rollback'>撤回 |
| | | </a-button> |
| | | </a-popconfirm> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | |
| | | </a-button> |
| | | </template> |
| | | |
| | | <!-- <span |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <a v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected'" @click='handleEdit(record)'>编辑</a> |
| | | <a v-if="record.auditStatus === 'pendingApproval'" @click='handleApprove(record)'>审批</a> |
| | | <a-divider v-if="record.auditStatus === 'notSubmitted'|| record.auditStatus === 'Rejected'" type='vertical' /> |
| | | <a-dropdown v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected'"> |
| | | <a class='ant-dropdown-link'>更多 <a-icon type='down' /></a> |
| | | <a-menu slot='overlay'> |
| | | <a-menu-item> |
| | | <a-popconfirm title='确定删除吗?' |
| | | @confirm='() => handleDelete(record.id)'> |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span>--> |
| | | |
| | | <span |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <a v-if="record.auditStatus === 'notSubmitted'" @click='handleEdit(record)'>编辑</a> |
| | | <a v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected'" |
| | | @click='handleEdit(record)'>编辑</a> |
| | | <a v-if="record.auditStatus === 'pendingApproval'" @click='handleApprove(record)'>审批</a> |
| | | <a-divider v-if="record.auditStatus === 'notSubmitted'" type='vertical' /> |
| | | <a-dropdown v-if="record.auditStatus === 'notSubmitted'"> |
| | | <a class='ant-dropdown-link'>更多 <a-icon type='down' /></a> |
| | | <a-menu slot='overlay'> |
| | | <a-menu-item> |
| | | <a-divider |
| | | v-if="record.auditStatus == 'notSubmitted' || record.auditStatus == 'Rejected' || record.auditStatus == 'pendingApproval'" |
| | | type='vertical' |
| | | /> |
| | | <a-dropdown> |
| | | <a class='ant-dropdown-link'>更多 <a-icon type='down' /></a> |
| | | <a-menu slot='overlay'> |
| | | <a-menu-item> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm title='确定删除吗?' |
| | | @confirm='() => handleDelete(record.id)'> |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | |
| | | </a-menu> |
| | | </a-dropdown> |
| | | <a-menu-item v-if="record.auditStatus == 'notSubmitted'||record.auditStatus == 'Rejected'"> |
| | | <a-popconfirm |
| | | title='确定删除吗?' |
| | | @confirm='() => handleDelete(record.id)' |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | </a-table> |
| | | </div> |