| | |
| | | @change='handleTableChange' |
| | | > |
| | | |
| | | <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-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-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | </span>--> |
| | | <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' || 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 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> |
| | | <a-tabs defaultActiveKey='1'> |
| | | <a-tab-pane |