提交代码

dev_xd
姜玉琦 2025-06-17 23:14:30 +08:00
parent f00b11679f
commit ef92e58eb2
4 changed files with 18 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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