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