Browse Source

问题修改

sunzehao 2 months ago
parent
commit
4a27763077

+ 0 - 3
src/views/IntegratedAlarm/reliability/partsTemperatureAnalyse/index2.vue

@@ -66,9 +66,6 @@
               </span>
             </template>
           </el-table-column> -->
-            <el-table-column prop="code" label="功率" width="90" align="center" />
-            <el-table-column prop="code" label="转速" width="90" align="center" />
-            <el-table-column prop="code" label="风速" width="90" align="center" />
           <!-- <el-table-column
             prop="windSpeed"
             width="50"

+ 25 - 23
src/views/SandTable/SandTable.vue

@@ -41,21 +41,21 @@
                         <RadarPieChart height="18vh" :list="warnChartDataZC" :title="warnPC ? '预警频次情况' : '预警时长情况'" />
                     </template>
                 </PanelSandToolbar>
-                <PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime('left')" style="cursor: pointer">
+                <PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime('WT2000D121H85')" style="cursor: pointer">
                     <template v-slot:tools>
                         <div class="exchange">
-                            <span :class="probSwitch === 'z' ? 'white' : 'gray'" @click="changeProbSwitch('z')">周</span>
+                            <span :class="probSwitch === 'z' ? 'white' : 'gray'" @click.stop="changeProbSwitch('z')">周</span>
                             <i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
-                            <span :class="probSwitch === 'y' ? 'white' : 'gray'" @click="changeProbSwitch('y')">月</span>
+                            <span :class="probSwitch === 'y' ? 'white' : 'gray'" @click.stop="changeProbSwitch('y')">月</span>
                             <i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
-                            <span :class="probSwitch === 'n' ? 'white' : 'gray'" @click="changeProbSwitch('n')">年</span>
+                            <span :class="probSwitch === 'n' ? 'white' : 'gray'" @click.stop="changeProbSwitch('n')">年</span>
                         </div>
                     </template>
                     <template v-slot:toolsL>
                         <div class="exchange">
-                            <span :class="probPC ? 'white' : 'gray'" @click="changeProbPC('left')">频次</span>
+                            <span :class="probPC ? 'white' : 'gray'" @click.stop="changeProbPC('left')">频次</span>
                             <i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
-                            <span :class="probPC ? 'gray' : 'white'" @click="changeProbPC('left')">时长</span>
+                            <span :class="probPC ? 'gray' : 'white'" @click.stop="changeProbPC('left')">时长</span>
                         </div>
                     </template>
                     <template v-slot:default>
@@ -99,21 +99,21 @@
                         <RadarPieChart height="18vh" :list="warnChartDataLH" :title="warnPC2 ? '预警频次情况' : '预警时长情况'" />
                     </template>
                 </PanelSandToolbar>
-                <PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime('right')">
+                <PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime('UP2000-130')">
                     <template v-slot:tools>
                         <div class="exchange">
-                            <span :class="probSwitch2 === 'z' ? 'white' : 'gray'" @click="changeProbSwitch2('z')">周</span>
+                            <span :class="probSwitch2 === 'z' ? 'white' : 'gray'" @click.stop="changeProbSwitch2('z')">周</span>
                             <i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
-                            <span :class="probSwitch2 === 'y' ? 'white' : 'gray'" @click="changeProbSwitch2('y')">月</span>
+                            <span :class="probSwitch2 === 'y' ? 'white' : 'gray'" @click.stop="changeProbSwitch2('y')">月</span>
                             <i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
-                            <span :class="probSwitch2 === 'n' ? 'white' : 'gray'" @click="changeProbSwitch2('n')">年</span>
+                            <span :class="probSwitch2 === 'n' ? 'white' : 'gray'" @click.stop="changeProbSwitch2('n')">年</span>
                         </div>
                     </template>
                     <template v-slot:toolsL>
                         <div class="exchange">
-                            <span :class="probPC2 ? 'white' : 'gray'" @click="changeProbPC('right')">频次</span>
+                            <span :class="probPC2 ? 'white' : 'gray'" @click.stop="changeProbPC('right')">频次</span>
                             <i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
-                            <span :class="probPC2 ? 'gray' : 'white'" @click="changeProbPC('right')">时长</span>
+                            <span :class="probPC2 ? 'gray' : 'white'" @click.stop="changeProbPC('right')">时长</span>
                         </div>
                     </template>
                     <template v-slot:default>
@@ -129,7 +129,7 @@
                     class="cur"
                     style="width: 100%; height: 100%"
                     ></div>
-                    <div class="hidBtn" @click="clickTime('left')"></div>
+                    <div class="hidBtn" @click="clickTime('WT2000D121H85')"></div>
                 </div>
                 <div class="monthPower">
                     <div
@@ -137,7 +137,7 @@
                     class="cur"
                     style="width: 100%; height: 100%"
                     ></div>
-                    <div class="hidBtn" @click="clickTime('right')"></div>
+                    <div class="hidBtn" @click="clickTime('UP2000-130')"></div>
                 </div>
             </div>
 
@@ -631,7 +631,7 @@
             },
             changeRadio(val) {
                 if (val === 1) {
-                    if (this.noTimeType === "left") {
+                    if (this.noTimeType === "WT2000D121H85") {
                         this.getShutdownEventByDay("WT2000D121H85", this.radioTime)
                         this.getShutdownEventByMap("WT2000D121H85", this.radioTime)
                     } else {
@@ -639,7 +639,7 @@
                         this.getShutdownEventByMap("UP2000-130", this.radioTime)
                     }
                 } else {
-                    if (this.noTimeType === "left") {
+                    if (this.noTimeType === "WT2000D121H85") {
                         this.getShutdownEventByMonth("WT2000D121H85", this.radioTime)
                         this.getShutdownEventByMap("WT2000D121H85", this.radioTime)
                     } else {
@@ -869,13 +869,15 @@
                 apiGetqueryShutdownEvent2ByMap(params).then(res =>{
                     if (res && res.data) {
                         let result = []
-                        res.data.forEach(it =>{
-                            let obj = {
-                                name: it.name,
-                                value: it.times
-                            }
-                            result.push(obj)
-                        })
+                        for (let i in res.data) {
+                            res.data[i].forEach(it =>{
+                                let obj = {
+                                    name: it.name,
+                                    value: it.times
+                                }
+                                result.push(obj)
+                            })
+                        }
                         if (modelIds === "WT2000D121H85") {
                             that.probChartData = result
                         } else {