From 4dda1f6c996b493477dd7e48714b87e84e25063c Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 10 三月 2025 09:08:48 +0800 Subject: [PATCH] 1、调整车间看板页面设备编号背景色随设备状态变化 2、调整车间看板页面设备编号与设备图片之间的距离 3、调整车间看板页面布局方式,将左侧图表区域宽度固定,若内容超出屏幕则增加横向滚动条 --- src/views/mdc/base/modules/DeviceLog/LogInfo.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/mdc/base/modules/DeviceLog/LogInfo.vue b/src/views/mdc/base/modules/DeviceLog/LogInfo.vue index 5bf1df3..6031da0 100644 --- a/src/views/mdc/base/modules/DeviceLog/LogInfo.vue +++ b/src/views/mdc/base/modules/DeviceLog/LogInfo.vue @@ -24,6 +24,7 @@ <a-space> <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button> <a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button> + <a-button type="primary" icon="download" @click="handleExport">瀵煎嚭</a-button> </a-space> </a-col> </a-row> @@ -165,7 +166,7 @@ import AlarmLogList from './AlarmLogList' import WorkChartModel from './WorkChartModel' import WorkHistoryModel from './WorkHistoryModel' - import { getAction } from '@/api/manage' + import { downFile, getAction } from '@/api/manage' export default { components: { @@ -199,7 +200,8 @@ url: { getBaseTree: '/mdc/mdcequipment/loadTree', getEquipmentByPid: '/mdc/mdcEquipment/getEquipmentByPid', - list: '/mdc/mdcEquipmentRunningSection/logList' + list: '/mdc/mdcEquipmentRunningSection/logList', + exportXlsUrl: '/mdc/mdcEquipmentRunningSection/exportLogXls' }, ProStartId: '' } @@ -342,6 +344,11 @@ } }) + }, + + handleExport(){ + this.$refs.logList.queryParam=Object.assign({},this.queryParams,this.$refs.logList.queryParam) + this.$refs.logList.handleExportXls('璁惧鏃ュ織') } }, created() { -- Gitblit v1.9.3