Compare commits

..

No commits in common. "edf113de5a6d2876792075a37c7225d87a4346f7" and "749aaa7b285a47467f397e765c6e3f0719585291" have entirely different histories.

4 changed files with 14 additions and 18 deletions

View File

@ -41,7 +41,7 @@ const selectDevTowerDataRunList = (proId,deviceSn) => {
}); });
}; };
// 查询塔基预警数据 // 查询塔基实时数据
const findDevTowerDataWarningDatas = (query) => { const findDevTowerDataWarningDatas = (query) => {
return request({ return request({
url: `manage/bgscreen/tower/findDevTowerDataWarningDatas`, url: `manage/bgscreen/tower/findDevTowerDataWarningDatas`,

View File

@ -12,7 +12,7 @@
<div>A相电压</div> <div>A相电压</div>
<p v-cloak> <p v-cloak>
{{ runData.voltageA }} {{ runData.voltageA }}
<span>V</span> <span></span>
</p> </p>
</div> </div>
</div> </div>
@ -26,7 +26,7 @@
<div>B相电压</div> <div>B相电压</div>
<p v-cloak> <p v-cloak>
{{ runData.voltageB }} {{ runData.voltageB }}
<span>V</span> <span></span>
</p> </p>
</div> </div>
</div> </div>
@ -40,7 +40,7 @@
<div>C相电压</div> <div>C相电压</div>
<p v-cloak> <p v-cloak>
{{ runData.voltageC }} {{ runData.voltageC }}
<span>V</span> <span></span>
</p> </p>
</div> </div>
</div> </div>
@ -191,9 +191,9 @@
</div> </div>
<div class="afoot-content"> <div class="afoot-content">
<div class="afoot-overflow process-afoot-overflow" style="height: 530px" id="afootOverflow" @mouseout="listMinMouseout" @mouseover="listMinMouseover"> <div class="afoot-overflow process-afoot-overflow" style="height: 530px" id="afootOverflow" @mouseout="listMinMouseout" @mouseover="listMinMouseover">
<div v-if="warningData.length == 0" class="not-data"></div> <div v-if="warningDataList.length == 0" class="not-data"></div>
<template v-if="warningData.length > 0"> <template v-if="warningDataList.length > 0">
<div :key="i" :class="forIndex == i ? 'afoot-con-for active' : 'afoot-con-for '" v-for="(item, i) in warningData"> <div :key="i" :class="forIndex == i ? 'afoot-con-for active' : 'afoot-con-for '" v-for="(item, i) in warningDataList">
<div class="afoot-machinery-nam" v-cloak>{{ item.warningType }}</div> <div class="afoot-machinery-nam" v-cloak>{{ item.warningType }}</div>
<div class="afoot-machinery-info"> <div class="afoot-machinery-info">
<div class="afoot-machinery-data"> <div class="afoot-machinery-data">
@ -229,9 +229,9 @@ export default {
warningDataList: [], warningDataList: [],
forIndex: 0, forIndex: 0,
warningInterval: undefined, warningInterval: undefined,
dpi: '',
chartKey: 0, chartKey: 0,
chartHeight: 220, chartHeight: 220,
project:{},
} }
}, },
mounted() { mounted() {

View File

@ -1,5 +1,6 @@
package com.yanzhu.device.mapper; package com.yanzhu.device.mapper;
import com.yanzhu.device.domain.DevTowerDataRound;
import com.yanzhu.device.domain.DevTowerDataWarning; import com.yanzhu.device.domain.DevTowerDataWarning;
import java.util.List; import java.util.List;

View File

@ -247,15 +247,16 @@ public class ProPlanScheduleServiceImpl implements IProPlanScheduleService
if(res>0){ if(res>0){
ProPlan entity = proPlanMapper.selectProPlanByParams(plan.getProjectId(),plan.getParentId()); ProPlan entity = proPlanMapper.selectProPlanByParams(plan.getProjectId(),plan.getParentId());
if(entity!=null){ if(entity!=null){
if(entity.getStartDate()==null){ if(plan.getFinishDate()!=null){
entity.setStartDate(entity.getUpdateTime()); entity.setFinishDate(plan.getFinishDate());
entity.setUpdateTime(plan.getUpdateTime()); entity.setUpdateTime(plan.getUpdateTime());
if(entity.getStartDate()==null){
entity.setStartDate(entity.getUpdateTime());
}
} }
List<ProPlan> belows = proPlanMapper.selectProPlanBelows(entity.getProjectId(),entity.getTaskId()); List<ProPlan> belows = proPlanMapper.selectProPlanBelows(entity.getProjectId(),entity.getTaskId());
Float Finished = 0.0F; Float Finished = 0.0F;
int totalTaskDuation = 0; int totalTaskDuation = 0;
boolean planFinishDate = true;
try { try {
if(belows.size()>0){ if(belows.size()>0){
for(ProPlan item:belows){ for(ProPlan item:belows){
@ -265,11 +266,8 @@ public class ProPlanScheduleServiceImpl implements IProPlanScheduleService
if(sNode>=100){ if(sNode>=100){
Finished += Convert.toFloat(item.getTaskDuation(),0.0F); Finished += Convert.toFloat(item.getTaskDuation(),0.0F);
}else{ }else{
planFinishDate = false;
Finished += Convert.toFloat(item.getTaskDuation()*(sNode/100)); Finished += Convert.toFloat(item.getTaskDuation()*(sNode/100));
} }
}else{
planFinishDate = false;
} }
} }
} }
@ -286,9 +284,6 @@ public class ProPlanScheduleServiceImpl implements IProPlanScheduleService
entity.setScheduleNode(String.format("%.2f", _cn)); entity.setScheduleNode(String.format("%.2f", _cn));
} }
} }
if(planFinishDate && plan.getFinishDate()!=null){
entity.setFinishDate(plan.getFinishDate());
}
// 更新总进度 // 更新总进度
if(entity.getTaskOutlineLevel()==1L){ if(entity.getTaskOutlineLevel()==1L){
proPlanScheduleMapper.updateProPlanTotalSchedule(entity.getProjectId(),entity.getScheduleNode()); proPlanScheduleMapper.updateProPlanTotalSchedule(entity.getProjectId(),entity.getScheduleNode());