From e7dfcbaf4353da26a46566381e304c9d29390c5a Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期四, 17 四月 2025 14:53:32 +0800 Subject: [PATCH] art: 设备管理-设备台账-周保页签 --- src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue | 48 +++++++++++++++++++++++++++++++++++------------- src/views/eam/equipment/EamEquipmentList.vue | 8 ++++++-- 2 files changed, 41 insertions(+), 15 deletions(-) diff --git a/src/views/eam/equipment/EamEquipmentList.vue b/src/views/eam/equipment/EamEquipmentList.vue index c609332..78f9599 100644 --- a/src/views/eam/equipment/EamEquipmentList.vue +++ b/src/views/eam/equipment/EamEquipmentList.vue @@ -173,7 +173,9 @@ <a-tab-pane tab="鐐规宸ュ崟" :key="2"> <eam-inspection-order-list ref="tabPaneTableListRef2" :isDisplayOperation="false"/> </a-tab-pane> - <a-tab-pane tab="鍛ㄦ姤宸ュ崟" :key="3">鍛ㄦ姤宸ュ崟</a-tab-pane> + <a-tab-pane tab="鍛ㄤ繚宸ュ崟" :key="3"> + <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"/> </a-tab-pane> @@ -203,6 +205,7 @@ import EamRepairOrderList from '../repair/EamRepairOrderList' import EamInspectionOrderList from '../maintenance/EamInspectionOrderList' import EamEquipmentAttachmentList from '@views/eam/equipment/EamEquipmentAttachmentList.vue' + import EamWeekMaintenanceOrderList from '@views/eam/maintenance/EamWeekMaintenanceOrderList.vue' export default { name: 'EamEquipmentList', @@ -214,7 +217,8 @@ ResumeDrawer, NameplateModal, EamEquipmentModal, - EamEquipmentAttachmentList + EamEquipmentAttachmentList, + EamWeekMaintenanceOrderList }, data() { return { diff --git a/src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue b/src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue index 7c91771..4cb1e2f 100644 --- a/src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue +++ b/src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue @@ -2,7 +2,7 @@ <a-card :bordered="false"> <!-- 鏌ヨ鍖哄煙 --> - <div class="table-page-search-wrapper"> + <div class="table-page-search-wrapper" v-if="isDisplayOperation"> <a-form layout="inline" @keyup.enter.native="searchQuery"> <a-row :gutter="24"> <a-col :xl="4" :lg="7" :md="8" :sm="24"> @@ -37,7 +37,7 @@ </div> <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> - <div class="table-operator"> + <div class="table-operator" v-if="isDisplayOperation"> <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay"> @@ -45,8 +45,8 @@ <a-icon type="delete" /> 浣滃簾 </a-menu-item> - <a-menu-item key="1" @click="handlerBatchCollect"> - <a-icon type="delete" /> + <a-menu-item key="2" @click="handlerBatchCollect"> + <a-icon type="form" /> 棰嗗彇 </a-menu-item> </a-menu> @@ -58,7 +58,7 @@ <!-- table鍖哄煙-begin --> <div> - <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> + <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;" v-if="isDisplayOperation"> <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> @@ -126,9 +126,16 @@ EamWeekMaintenanceOrderModal, WeekMaintenanceApprovalModal }, + props: { + isDisplayOperation: { + type: Boolean, + default: true + } + }, data() { return { description: '鍛ㄤ繚宸ュ崟绠$悊椤甸潰', + disableMixinCreated: true, // 琛ㄥご columns: [ { @@ -265,14 +272,14 @@ dataIndex: 'remark', width: 60, }, - { - title: '鎿嶄綔', - dataIndex: 'action', - align: 'center', - fixed: 'right', - width: 100, - scopedSlots: { customRender: 'action' } - } + // { + // title: '鎿嶄綔', + // dataIndex: 'action', + // align: 'center', + // fixed: 'right', + // width: 100, + // scopedSlots: { customRender: 'action' } + // } ], url: { list: '/eam/weekMaintenanceOrder/list', @@ -282,6 +289,21 @@ } } }, + created() { + if (!this.isDisplayOperation) { + return + } + const operationColumn = { + title: '鎿嶄綔', + dataIndex: 'action', + align: 'center', + fixed: 'right', + width: 147, + scopedSlots: { customRender: 'action' } + } + this.columns = [...this.columns, operationColumn] + this.loadData(1) + }, computed: {}, methods: { onMaintenanceDateChange: function(value, dateString) { -- Gitblit v1.9.3