|
@@ -120,34 +120,40 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8" class="pd-l-8">
|
|
|
<panel :title="'演示过程图'" :showLine="false">
|
|
|
- <div class="results" v-if="showTraining">
|
|
|
- <div class="progressTitle">
|
|
|
- <div v-if="!trainingFlag">数据获取中...</div>
|
|
|
- <div v-if="trainingFlag && width < 100">训练中...</div>
|
|
|
- <div v-if="trainingFlag && width === 100">训练完成</div>
|
|
|
- <div class="progressNum">
|
|
|
- 当前进度:{{ width >= 0 ? width : 0 }}%
|
|
|
+ <div class="bodys">
|
|
|
+ <div class="results" v-if="showTraining">
|
|
|
+ <div class="progressTitle">
|
|
|
+ <div v-if="!trainingFlag">数据获取中...</div>
|
|
|
+ <div v-if="trainingFlag && width < 100">训练中...</div>
|
|
|
+ <div v-if="trainingFlag && width === 100">训练完成</div>
|
|
|
+ <div class="progressNum">
|
|
|
+ 当前进度:{{ width >= 0 ? width : 0 }}%
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="box">
|
|
|
+ <div class="progress" :style="`width:${width}%;`"></div>
|
|
|
+ <div class="line"></div>
|
|
|
+ <div class="unprogress" :style="`width:${100 - width}%;`"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="box">
|
|
|
- <div class="progress" :style="`width:${width}%;`"></div>
|
|
|
- <div class="line"></div>
|
|
|
- <div class="unprogress" :style="`width:${100 - width}%;`"></div>
|
|
|
- </div>
|
|
|
+ <LineChart
|
|
|
+ v-if="lossList"
|
|
|
+ id="loss"
|
|
|
+ :dataList="lossList"
|
|
|
+ ></LineChart>
|
|
|
+ <LineChart
|
|
|
+ v-if="accuracyList"
|
|
|
+ id="accuracy"
|
|
|
+ :dataList="accuracyList"
|
|
|
+ ></LineChart>
|
|
|
+ <BarChart
|
|
|
+ v-if="barList.length > 0"
|
|
|
+ id="bar"
|
|
|
+ :baseLine="ceshiList?.BaseLine"
|
|
|
+ @click="showDetials"
|
|
|
+ :barList="barList"
|
|
|
+ ></BarChart>
|
|
|
</div>
|
|
|
- <LineChart v-if="lossList" id="loss" :dataList="lossList"></LineChart>
|
|
|
- <LineChart
|
|
|
- v-if="accuracyList"
|
|
|
- id="accuracy"
|
|
|
- :dataList="accuracyList"
|
|
|
- ></LineChart>
|
|
|
- <BarChart
|
|
|
- v-if="barList.length > 0"
|
|
|
- id="bar"
|
|
|
- :baseLine="ceshiList?.BaseLine"
|
|
|
- @click="showDetials"
|
|
|
- :barList="barList"
|
|
|
- ></BarChart>
|
|
|
</panel>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -396,8 +402,8 @@ export default {
|
|
|
(val) => val.code === item.faultcode
|
|
|
);
|
|
|
item.stationcn = that.options.filter(
|
|
|
- (items) => items.value === item.stationen
|
|
|
- )[0]?.label;
|
|
|
+ (items) => items.value === item.stationen
|
|
|
+ )[0]?.label;
|
|
|
if (array.length > 0) {
|
|
|
array[0].children.push(item);
|
|
|
} else {
|