| | |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('设备三级保养')">导出</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" |
| | | @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导入</a-button> |
| | | </a-upload> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | | <a-icon type="delete" /> |
| | | 删除 |
| | | </a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
| | | <a-button style="margin-left: 8px"> 批量操作 |
| | | <a-icon type="down" /> |
| | | </a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a |
| | | style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">清空</a> |
| | | </div> |
| | | |
| | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: "EamThirdMaintenanceOrderList", |
| | | name: 'EamThirdMaintenanceOrderList', |
| | | mixins:[JeecgListMixin], |
| | | components: { |
| | | EamThirdMaintenanceOrderModal |
| | |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | align: 'center', |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: '删除标记', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'delFlag' |
| | | }, |
| | | { |
| | | title: '工单号', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'orderNum' |
| | | }, |
| | | { |
| | | title: '设备ID', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'equipmentId' |
| | | }, |
| | | { |
| | | title: '标准ID', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'standardId' |
| | | }, |
| | | { |
| | | title: '计划开始时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'planStartTime' |
| | | }, |
| | | { |
| | | title: '计划结束时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'planEndTime' |
| | | }, |
| | | { |
| | | title: '实际开始时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'actualStartTime' |
| | | }, |
| | | { |
| | | title: '实际结束时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'actualEndTime' |
| | | }, |
| | | { |
| | | title: '保养人', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'operator' |
| | | }, |
| | | { |
| | | title: '保养状态', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'maintenanceStatus' |
| | | }, |
| | | { |
| | | title: '创建方式', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'creationMethod' |
| | | }, |
| | | { |
| | | title: '设备管理员确认', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'confirmUser' |
| | | }, |
| | | { |
| | | title: '确认时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'confirmTime' |
| | | }, |
| | | { |
| | | title: '确认状态', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'confirmStatus' |
| | | }, |
| | | { |
| | | title: '照片文件ids;id以逗号分隔', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'imageFiles' |
| | | }, |
| | | { |
| | | title: '备注', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'remark' |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/eamThirdMaintenanceOrder/list", |
| | | delete: "/eam/eamThirdMaintenanceOrder/delete", |
| | | deleteBatch: "/eam/eamThirdMaintenanceOrder/deleteBatch", |
| | | exportXlsUrl: "eam/eamThirdMaintenanceOrder/exportXls", |
| | | importExcelUrl: "eam/eamThirdMaintenanceOrder/importExcel", |
| | | }, |
| | | list: '/eam/eamThirdMaintenanceOrder/list', |
| | | delete: '/eam/eamThirdMaintenanceOrder/delete', |
| | | deleteBatch: '/eam/eamThirdMaintenanceOrder/deleteBatch', |
| | | exportXlsUrl: 'eam/eamThirdMaintenanceOrder/exportXls', |
| | | importExcelUrl: 'eam/eamThirdMaintenanceOrder/importExcel' |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | } |
| | | methods: {} |
| | | } |
| | | </script> |
| | | <style scoped> |