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 +++++++++++++++++++++++++++++++++++------------- 1 files changed, 35 insertions(+), 13 deletions(-) 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