| | |
| | | |
| | | <a-tabs v-model="activeTabKey" @change="handleTabChange"> |
| | | <a-tab-pane tab="设备文档" :key="1"> |
| | | <eam-equipment-attachment-list ref="tabPaneTableListRef1" /> |
| | | <eam-equipment-attachment-list ref="tabPaneTableListRef1"/> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="点检工单" :key="2"> |
| | | <eam-inspection-order-list ref="tabPaneTableListRef2" :isDisplayOperation="false"/> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="周保工单" :key="3"> |
| | | <eam-week-maintenance-order-list ref="tabPaneTableListRef3" :isDisplayOperation="false" /> |
| | | <eam-week-maintenance-order-list ref="tabPaneTableListRef3" :isDisplayOperation="false"/> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="维修工单" :key="4"> |
| | | <eam-repair-order-list ref="tabPaneTableListRef4" :isDisplayOperation="false"/> |
| | |
| | | <!--铭牌弹窗--> |
| | | <nameplate-modal ref="nameplateModalRef" :printedRows="printedRows"/> |
| | | <!--履历弹窗--> |
| | | <resume-drawer ref="resumeDrawerRef"/> |
| | | <resume-drawer ref="resumeDrawerRef" :currentTableRowRecord="currentTableRowRecord"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | treeData: [], |
| | | printedRows: [], |
| | | activeTabKey: 1, |
| | | appHomeUrl: '' |
| | | appHomeUrl: '', |
| | | currentTableRowRecord: {} |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | * @param record 表格行信息 |
| | | */ |
| | | handleOpenResumeDrawer(record) { |
| | | this.currentTableRowRecord = Object.assign({}, record) |
| | | this.$refs.resumeDrawerRef.title = '设备履历' + `(${record.equipmentCode})` |
| | | this.$refs.resumeDrawerRef.dataSource = [] |
| | | this.$refs.resumeDrawerRef.visible = true |
| | | this.$nextTick(() => this.$refs.resumeDrawerRef.getEquipmentResumeByApi()) |
| | | }, |
| | | |
| | | /** |
| | |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | this.selectedRowKeys = selectedRowKeys |
| | | this.selectionRows = selectionRows |
| | | this.$refs['tabPaneTableListRef' + this.activeTabKey].queryParam.equipmentId = null; |
| | | this.$refs['tabPaneTableListRef' + this.activeTabKey].queryParam.equipmentId = null |
| | | this.$refs['tabPaneTableListRef' + this.activeTabKey].dataSource = [] |
| | | this.$refs['tabPaneTableListRef' + this.activeTabKey].onClearSelected() |
| | | if (selectedRowKeys.length === 1) this.loadTabPaneTableData(selectedRowKeys[0]) |