| | |
| | | |
| | | <div class='table-operator'> |
| | | <a-button @click='handleAdd' type='primary' icon='plus'>新增</a-button> |
| | | |
| | | |
| | | <a-popconfirm |
| | | :title='`确定要提交吗?`' |
| | | @confirm='handleSubmit'> |
| | | <a-button type='primary' icon='check' |
| | | v-if="selectedRowKeys.length > 0 && (selectionRows[0].auditStatus ==='0' || selectionRows[0].auditStatus==='3')"> |
| | | 提交 |
| | | </a-button> |
| | | </a-popconfirm> |
| | | |
| | | |
| | | <a-popconfirm |
| | | :title='`确定要撤回吗?`' |
| | | @confirm='handleRevocation'> |
| | | <a-button v-if="selectedRowKeys.length > 0 && selectionRows[0].auditStatus==='1'" |
| | | type='primary' icon='rollback'>撤回 |
| | | </a-button> |
| | | </a-popconfirm> |
| | | |
| | | <a-button @click='handleSubmit' type='primary' icon='check' |
| | | v-if="selectedRowKeys.length > 0 && (selectionRows[0].auditStatus ==='0' || selectionRows[0].auditStatus==='3')"> |
| | | 提交 |
| | | </a-button> |
| | | <a-button v-if="selectedRowKeys.length > 0 && selectionRows[0].auditStatus==='1'" |
| | | @click='handleRevocation' type='primary' icon='rollback'>撤回 |
| | | </a-button> |
| | | </div> |
| | | <!-- table区域-begin --> |
| | | <div> |
| | |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <a v-if="record.auditStatus === '0'" @click='handleEdit(record)'>编辑</a> |
| | | <a v-if="record.auditStatus === '0' || record.auditStatus === '3'" @click='handleEdit(record)'>编辑</a> |
| | | <a v-if="record.auditStatus === '1'" @click='handleApprove(record)'>审批</a> |
| | | |
| | | <a-divider v-if="record.auditStatus === '0'" type='vertical' /> |
| | | <a-dropdown v-if="record.auditStatus === '0'"> |
| | | <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> |
| | | <a-divider |
| | | v-if="record.auditStatus == '0' || record.auditStatus == '3' || record.auditStatus == '1'" |
| | | 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 == '0'||record.auditStatus == '3'"> |
| | | <a-popconfirm |
| | | title='确定删除吗?' |
| | | @confirm='() => handleDelete(record.id)' |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | |