This commit is contained in:
luoshiwen 2023-02-28 16:18:39 +08:00
parent 1bae6a255c
commit 330499b5f4
2 changed files with 21 additions and 17 deletions
node_modules/.cache/babel-loader
src/views/bounced

File diff suppressed because one or more lines are too long

View File

@ -37,8 +37,7 @@
:echartArr="o.presentationForm" :title="o.componentName.split('_')[0]" :echartArr="o.presentationForm" :title="o.componentName.split('_')[0]"
:chartName="o.combinationName" :typeValue="typeCycleTimeData" :chartName="o.combinationName" :typeValue="typeCycleTimeData"
:startEndData="{ start: o.startSectionNames, end: o.endSectionNames }" :startEndData="{ start: o.startSectionNames, end: o.endSectionNames }"
:historyData="o.cycleTimeData />
" />
<!-- 周期统计的组件 --> <!-- 周期统计的组件 -->
<typeChart ref="typeChartRef2" style="width: 100%;" <typeChart ref="typeChartRef2" style="width: 100%;"
@ -47,8 +46,7 @@
:dataArr="o.cycleStatisticsData" :echartArr="o.presentationForm" :dataArr="o.cycleStatisticsData" :echartArr="o.presentationForm"
:title="o.componentName.split('_')[0]" :chartName="o.combinationName" :title="o.componentName.split('_')[0]" :chartName="o.combinationName"
:typeValue="typeCycleStatistics" :typeValue="typeCycleStatistics"
:startEndData="{ start: o.startSectionNames, end: o.endSectionNames }" :startEndData="{ start: o.startSectionNames, end: o.endSectionNames }" />
:historyData="o.cycleStatisticsData" />
</el-collapse-item> </el-collapse-item>
</div> </div>
</el-collapse> </el-collapse>
@ -221,13 +219,13 @@ export default {
// //
// //
getRef(data,timeMode) { getRef(data, timeMode) {
console.log(timeMode); console.log(timeMode);
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
let refItem = data[i] let refItem = data[i]
if (data.length != 0 && refItem.dataArr != undefined && refItem.dataArr.length != 0) { if (data.length != 0 && refItem.dataArr != undefined && refItem.dataArr.length != 0) {
if (refItem.echartArr.includes('时间曲线图')) { if (refItem.echartArr.includes('时间曲线图')) {
refItem.$refs.lineChartRef.drawLine(refItem.dataArr,refItem.componentName.split('_')[0],timeMode) refItem.$refs.lineChartRef.drawLine(refItem.dataArr, refItem.componentName.split('_')[0], timeMode)
} }
if (refItem.echartArr.includes('数值')) { if (refItem.echartArr.includes('数值')) {
refItem.getDataArr(refItem.dataArr) refItem.getDataArr(refItem.dataArr)
@ -243,6 +241,9 @@ export default {
if (refItem.echartArr.includes('均值图') && refItem.$refs.avgChartRef != undefined) { if (refItem.echartArr.includes('均值图') && refItem.$refs.avgChartRef != undefined) {
refItem.$refs.avgChartRef.drawBar(refItem.dataArr[0]) refItem.$refs.avgChartRef.drawBar(refItem.dataArr[0])
} }
if (refItem.componentName.includes('OD') && refItem.$refs.ODChartRef != undefined && refItem.dataArr[0].ob_data.length != 0) {
refItem.$refs.ODChartRef.drawThermalChart(refItem.dataArr[0].ob_data, refItem.startEndData)
}
} }
} }
} }
@ -274,27 +275,27 @@ export default {
// var thatNN = this; // var thatNN = this;
ele.cycleStatisticsData.forEach(item => { ele.cycleStatisticsData.forEach(item => {
if (item.type_data != null) { if (item.type_data != null) {
this.typeCycleStatistics = item; this.typeCycleStatistics = item;
} }
}) })
if (this.$refs.typeChartRef2 != undefined) { if (this.$refs.typeChartRef2 != undefined) {
// // // //
this.getRef(this.$refs.typeChartRef2,ele.timeMode) this.getRef(this.$refs.typeChartRef2, ele.timeMode)
} }
}) })
} }
if (ele.timeMode == '周期时刻') { if (ele.timeMode == '周期时刻') {
this.$nextTick(()=>{ this.$nextTick(() => {
ele.cycleStatisticsData.forEach(item => { ele.cycleStatisticsData.forEach(item => {
if (item.type_data != null) { if (item.type_data != null) {
this.typeCycleStatistics = item; this.typeCycleStatistics = item;
} }
// thatN.$nextTick(() => { // thatN.$nextTick(() => {
}) })
if (this.$refs.typeChartRef1 != undefined) { if (this.$refs.typeChartRef1 != undefined) {
// // // //
this.getRef(this.$refs.typeChartRef1,ele.timeMode) this.getRef(this.$refs.typeChartRef1, ele.timeMode)
} }
}) })
@ -353,6 +354,9 @@ export default {
// //
itemTypeChart.$refs.pieChartRef.drawPie(itemTypeChart.dataArr[0]) itemTypeChart.$refs.pieChartRef.drawPie(itemTypeChart.dataArr[0])
} }
if (itemTypeChart.componentName.includes('OD') && itemTypeChart.$refs.ODChartRef != undefined && itemTypeChart.dataArr[0].ob_data.length != 0) {
itemTypeChart.$refs.ODChartRef.drawThermalChart(itemTypeChart.dataArr[0].ob_data, itemTypeChart.startEndData)
}
} }
} }
@ -376,7 +380,7 @@ export default {
if (newVal != undefined && newVal.length != 0 && this.sectionData) { if (newVal != undefined && newVal.length != 0 && this.sectionData) {
var thatN = this; var thatN = this;
thatN.classify.forEach((ele, index) => { thatN.classify.forEach((ele, index) => {
newVal.forEach(item => { newVal.forEach(item => {
if (ele.analogAreaComponentId == item.component_id && ele.timeMode == '周期时刻') { if (ele.analogAreaComponentId == item.component_id && ele.timeMode == '周期时刻') {
if (ele.cycleTimeData.length == 10) { if (ele.cycleTimeData.length == 10) {
@ -429,7 +433,7 @@ export default {
} else { } else {
var _thatN = this var _thatN = this
_thatN.classify.forEach((ele, index) => { _thatN.classify.forEach((ele, index) => {
// newVal.forEach(item => { // newVal.forEach(item => {
if (ele.timeMode == '周期时刻') { if (ele.timeMode == '周期时刻') {
if (ele.cycleTimeData.length == 10) { if (ele.cycleTimeData.length == 10) {