From baf140f1668a508a566f8ee04077ea5900090a66 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期二, 21 一月 2025 09:59:49 +0800 Subject: [PATCH] OEE页面新增计算OEE功能 --- src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue b/src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue index 5f19c98..ebcf65f 100644 --- a/src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue +++ b/src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue @@ -28,6 +28,7 @@ <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> <div class="table-operator"> <a-button type="primary" icon="download" @click="handleExportXls('OEE')">瀵煎嚭</a-button> + <a-button type="primary" icon="edit" @click="handleComputeModalOpen">璁$畻</a-button> </div> <!-- table鍖哄煙-begin --> @@ -47,17 +48,20 @@ </template> </a-table> </div> + + <ComputeOeeModal ref="computeOeeModalRef"/> </div> </template> <script> import moment from 'moment' import { JeecgListMixin } from '@/mixins/JeecgListMixin' + import ComputeOeeModal from './ComputeOeeModal' export default { name: 'OEEAnalysisList', mixins: [JeecgListMixin], - components: {}, + components: { ComputeOeeModal }, props: { nodeTree: '', Type: '', nodePeople: '' }, data() { return { @@ -217,11 +221,18 @@ } }, methods: { + handleComputeModalOpen() { + console.log('瑙﹀彂杩涘叆open') + const { $refs } = this + $refs.computeOeeModalRef.visible = true + }, + dateParamChange(v1, v2) { this.queryParam.startTime = v2[0] this.queryParam.endTime = v2[1] this.dates = [v1[0], v1[1]] }, + searchReset() { this.dates = [moment().subtract(1, 'day'), moment()] this.queryParam = { @@ -230,6 +241,7 @@ } this.loadData(1) }, + /** * 褰撴祻瑙堝櫒鍙绐楀彛灏哄鍙戠敓鏀瑰彉鏃惰Е鍙� */ -- Gitblit v1.9.3