|
@@ -56,7 +56,7 @@
|
|
|
<div class="left-section">
|
|
<div class="left-section">
|
|
|
<!-- 综合数据 -->
|
|
<!-- 综合数据 -->
|
|
|
<div class="panel data-panel">
|
|
<div class="panel data-panel">
|
|
|
- <div class="panel-title" style="cursor: pointer" @click="handelRouterTo('/page-pcs/productionRecords?type=2')">
|
|
|
|
|
|
|
+ <div class="panel-title" style="cursor: pointer" @click="handelRouterTo('/page-pcs/productionRecords')">
|
|
|
<div class="panel-icon"></div>
|
|
<div class="panel-icon"></div>
|
|
|
综合数据
|
|
综合数据
|
|
|
</div>
|
|
</div>
|
|
@@ -128,7 +128,7 @@
|
|
|
v-for="(boiler, index) in boilerData"
|
|
v-for="(boiler, index) in boilerData"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
>
|
|
>
|
|
|
- <div class="param-title">{{ boiler.title }}</div>
|
|
|
|
|
|
|
+ <div class="param-title" style="cursor: pointer" @click="handelRouterTo('', boiler.title)">{{ boiler.title }}</div>
|
|
|
<div class="param-list">
|
|
<div class="param-list">
|
|
|
<div
|
|
<div
|
|
|
class="param-item"
|
|
class="param-item"
|
|
@@ -320,8 +320,19 @@
|
|
|
Object.values(this.charts).forEach((chart) => chart && chart.dispose());
|
|
Object.values(this.charts).forEach((chart) => chart && chart.dispose());
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- handelRouterTo(path) {
|
|
|
|
|
- window.history.pushState(null, '', path);
|
|
|
|
|
|
|
+ handelRouterTo(path, item) {
|
|
|
|
|
+ let url = path;
|
|
|
|
|
+ if(url == '') {
|
|
|
|
|
+ if(item == '锅炉运行参数') {
|
|
|
|
|
+ url = '/page-pcs/boilerOperationRecord'
|
|
|
|
|
+ } else if(item == '生产记录') {
|
|
|
|
|
+ url = '/page-pcs/productionRecords'
|
|
|
|
|
+ } else if(item == '蒸汽质量检查记录') {
|
|
|
|
|
+ url = '/page-pcs/qualityTestRecords'
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ window.history.pushState(null, '', url);
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
energyTabsCahnge(val) {
|
|
energyTabsCahnge(val) {
|
|
|
this.activeEnergyTab = val;
|
|
this.activeEnergyTab = val;
|