From fe470128a5432662cc3f394280c652c5ab023161 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期三, 28 五月 2025 09:22:59 +0800 Subject: [PATCH] 1、设备TEEP/设备开动率/班次利用率页面新增异常反馈功能 2、设备TEEP页面实现滚动加载(每次滚动加载15条) 3、异常反馈页面增加手动新增反馈异常功能 4、利用率分段与走势分析页面解决重置按钮后请求日期与显示日期不相等问题 --- src/views/mdc/base/modules/openRateTrendAnalysis/openRateTrendAnalysisMain.vue | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/mdc/base/modules/openRateTrendAnalysis/openRateTrendAnalysisMain.vue b/src/views/mdc/base/modules/openRateTrendAnalysis/openRateTrendAnalysisMain.vue index 2b86e83..f9c8fe8 100644 --- a/src/views/mdc/base/modules/openRateTrendAnalysis/openRateTrendAnalysisMain.vue +++ b/src/views/mdc/base/modules/openRateTrendAnalysis/openRateTrendAnalysisMain.vue @@ -201,7 +201,7 @@ XData: [0], YData: [0], isLazyRequest: '',// 鏄惁寮�鍚噿鍔犺浇 - requestAlldataSize: 8,// 鎬诲叡璇锋眰鐨勫垪琛ㄩ」鏁扮洰 + requestAllDataSize: 8,// 鎬诲叡璇锋眰鐨勫垪琛ㄩ」鏁扮洰 everyRequestDataSize: 15,// 姣忔璇锋眰鐨勫垪琛ㄩ」鏁扮洰 toggleSearchStatus: false } @@ -211,7 +211,6 @@ * 鐢熷懡鍛ㄦ湡 鎸傝浇鍓� * */ created() { - this.searchReset() this.queryGroup() this.getDriveTypeByApi() this.initDictData('device_level') @@ -219,6 +218,7 @@ }, mounted() { this.tableScroll = document.querySelector('.table2') + this.searchReset() window.addEventListener('resize', this.handleWindowResize) }, beforeDestroy() { @@ -311,7 +311,7 @@ this.tableHeads = [] this.dataList = [] // 鑻ユ棩鏈熼�夋嫨鍣ㄨ缃殑鏌ヨ璇锋眰鏁伴噺瓒呰繃15鏉″垯寮�鍚噿鍔犺浇 - if (this.requestAlldataSize > 15) { + if (this.requestAllDataSize > 15) { // 寮�鍚噿鍔犺浇鍚庡皢缁撴潫鏃ユ湡璁剧疆涓哄紑濮嬫棩鏈熶箣鍚庣殑14澶╋紝鍗冲厛鏌ヨ15澶╁唴鐨勬暟鎹� this.queryParam.endDate = moment(this.queryParam.startDate).add(this.everyRequestDataSize - 1, 'days').format('YYYYMMDD') this.isLazyRequest = true @@ -356,7 +356,7 @@ this.queryParam.parentId = this.queryParamPeople.parentId this.queryParam.equipmentId = '' } - this.requestAlldataSize = moment.duration(moment(this.queryParam.endDate) - moment(this.queryParam.startDate), 'millisecond').asDays() + 1 + this.requestAllDataSize = moment.duration(moment(this.queryParam.endDate) - moment(this.queryParam.startDate), 'millisecond').asDays() + 1 Object.keys(this.queryParams).forEach(item => { if (Array.isArray(this.queryParams[item])) { @@ -375,6 +375,7 @@ } this.queryParam = {} this.dates = [moment().subtract('days', 8), moment().subtract('days', 1)] + this.requestAllDataSize = this.dates[1].diff(this.dates[0],'days') + 1 this.queryParam.startDate = moment(this.dates[0]).format('YYYYMMDD') this.queryParam.endDate = moment(this.dates[1]).format('YYYYMMDD') this.loadData() -- Gitblit v1.9.3