| | |
| | | <a v-if="text && text !== ''" @click.stop="handlePreview(record)">预览</a> |
| | | </template> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click.stop="handleEdit(record)">编辑</a> |
| | | <a v-if="record.standardStatus === 'NORMAL'" @click.stop="handleEdit(record)">编辑</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">更多 <a-icon type="down"/></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a-menu-item v-if="record.standardStatus === 'NORMAL'"> |
| | | <a @click.stop="handleUpgrade(record)">升版</a> |
| | | </a-menu-item> |
| | | <a-menu-item v-if="record.standardStatus === 'NORMAL'"> |
| | | <a-popconfirm title="确定作废吗?" @confirm="() => handleAbolish(record.id)"> |
| | | <a>作废</a> |
| | | </a-popconfirm> |
| | |
| | | inspectionXlsDownloadUrl: '导入模板/点检标准导入模板_v1.0.xlsx', |
| | | weekMaintenanceXlsDownloadUrl: '导入模板/周保标准导入模板_v1.0.xlsx', |
| | | abolish: '/eam/maintenanceStandard/abolish', |
| | | |
| | | }, |
| | | fileUrl: '', |
| | | standardId: '-1' |
| | |
| | | } |
| | | }); |
| | | }, |
| | | handleUpgrade(record) { |
| | | //升版 |
| | | this.$refs.modalForm.upgrade(record); |
| | | this.$refs.modalForm.title = "升版"; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | }, |
| | | } |
| | | } |
| | | </script> |