index.vue 22.3 KB
Newer Older
1
<template>
yaqizhang's avatar
yaqizhang committed
2 3
  <div class="app-container detail" style="background-color: rgb(238, 241, 245);">
    <div style="padding-top: 10px;background: #fff;height: 100%;">
yaqizhang's avatar
yaqizhang committed
4 5 6 7 8 9 10 11 12 13
        
      <el-row>
        <el-col :span="24" style="padding-left: 15px;">
          <div style="height: 45px;" @click="$router.go(-1)">
            <el-button size="medium" type="text" style="font-size: 18px; color: rgb(7, 63, 112);float: left;">返回
            </el-button>
            <div style="float: left;margin-top: 8px;margin-left: 5px;"><img src="../../../assets/logo/fanhui.png" style="width: 25px;" alt=""></div>
          </div>
        </el-col>
      </el-row>
14

yaqizhang's avatar
yaqizhang committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
      <el-row>
        <el-col :span="16" style="padding: 10px;">
          <div style="height: 100%;">
            <el-table :data="dataListdetail1" style="width: 100%">
              <el-table-column label="设备名称" align="center" prop="deviceName" />
              <el-table-column label="设备编号" align="center" prop="deviceCode" />
              <el-table-column label="设备类型" align="center" prop="deviceType">
                <template slot-scope="scope">
                  <span v-if="scope.row.deviceType == '3'">流量计</span>
                  <span v-if="scope.row.deviceType == '4'">压力表</span>
                </template>
              </el-table-column>
              <el-table-column label="标况累计量" align="center" prop="standardConditionAccumulation" />
            </el-table>
  
            <el-table :data="dataListdetail2" style="width: 100%;margin-top: 20px;">
              <el-table-column label="工况累计量" align="center" prop="workingConditionAccumulation" />
              <el-table-column label="剩余量" align="center" prop="residualQuantity" />
              <el-table-column label="标况流量" align="center" prop="standardConditionFlow" />
              <el-table-column label="工况流量" align="center" prop="workingConditionFlow" />
            </el-table>
  
  
            <el-table :data="dataListdetail3" style="width: 100%;margin-top: 20px;">
              <el-table-column label="温度" align="center" prop="temperature" />
              <el-table-column label="压力" align="center" prop="pressure" />
              <el-table-column label="上报时间" align="center" prop="reportTime" />
              <el-table-column label="设备状态" align="center" prop="deviceStatus">
              </el-table-column>
            </el-table>
          </div>
        </el-col>
        <el-col :span="8" style="padding: 10px;padding-left: 0px;">
          <div id="marbox" style="height: 350px; border: 1px solid rgb(218, 213, 213);margin-top: -45px;">
            <div style="width: 100%;height: 100%" id="container"></div>
          </div>
        </el-col>
      </el-row>
yaqizhang's avatar
yaqizhang committed
53

54

yaqizhang's avatar
yaqizhang committed
55 56 57 58 59 60 61 62
      
      <template v-if="$route.query.deviceType !='0'">
        <el-row  v-if="form.deviceType != '4'">
          <el-col :span="12" style="padding: 10px;">
            <div id="main1" style="height:300px;background-color: rgb(247 247 247);padding: 5px;">
              <div v-if = "form.deviceReportDataList == null" class="div-null">
                <p>暂无数据</p>
              </div>
yaqizhang's avatar
yaqizhang committed
63
            </div>
yaqizhang's avatar
yaqizhang committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
          </el-col>
          <el-col :span="12" style="padding: 10px;">
            <div id="main2" style="height:300px;background-color: rgb(247 247 247);padding: 5px;">
              <div v-if = "form.deviceReportDataList == null" class="div-null">
                <p>暂无数据</p>
              </div>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12" style="padding: 10px;" v-if="form.deviceType != '4'">
            <div id="main3" style="height:300px;background-color: rgb(247 247 247);padding: 5px;">
              <div v-if = "form.deviceReportDataList == null" class="div-null">
                <p>暂无数据</p>
              </div>
            </div>
          </el-col>
          <el-col :span="12" style="padding: 10px;">
            <div id="main4" style="margin-left: 5px;height:300px;background-color: rgb(247 247 247);padding: 5px;">
              <div v-if = "form.deviceReportDataList == null" class="div-null">
                <p>暂无数据</p>
              </div>
            </div>
          </el-col>
        </el-row>
        <!-- <div v-if="form.deviceType != '4'" style="height: 320px;width: 100%;margin-top: 15px;padding: 10px;"> -->
          
        
      <!-- </div> -->
93 94


yaqizhang's avatar
yaqizhang committed
95 96 97 98 99 100
        <!-- <div style="height: 320px;width: 100%;padding: 10px;margin-top: 10px;"> -->
          
         
        <!-- </div> -->
      </template>
      
yaqizhang's avatar
yaqizhang committed
101 102

      
103 104
    </div>

yaqizhang's avatar
yaqizhang committed
105 106 107 108
  </div>
</template>

<script>
109

yaqizhang's avatar
yaqizhang committed
110
  import { realtimeData, getData } from "@/api/dataMonitoring/reportData";
111 112
  import { deviceTree } from "@/api/device/deviceInfo";
  import gaodeMap from "utils/gaodeMap.js";
yaqizhang's avatar
yaqizhang committed
113
  import { map, DEVICE_TYPE } from "utils/gaodeMap.js";
114 115
  import { inspectorList } from "@/api/system/user";
  import echarts from 'echarts';
yaqizhang's avatar
yaqizhang committed
116
  //   Vue.prototype.$echarts = echarts;
117

yaqizhang's avatar
yaqizhang committed
118 119
  export default {
    name: "RealtimeData",
120 121 122 123
    components: {
    },
    data() {
      return {
yaqizhang's avatar
yaqizhang committed
124
        order_list:[],
125
        inspector: [],
yaqizhang's avatar
yaqizhang committed
126
        isDisplay: false,
127 128 129 130 131 132 133 134 135 136
        dialogImageUrl: '',
        dialogVisible: false,
        disabled: false,
        imageUrl: '',
        // 遮罩层
        loading: true,
        // 导出遮罩层
        exportLoading: false,
        // 选中数组
        ids: [],
yaqizhang's avatar
yaqizhang committed
137 138
        // 设备监控表格数据
        dataListdetail: [],
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
        // 非单个禁用
        single: true,
        // 非多个禁用
        multiple: true,
        // 显示搜索条件
        showSearch: true,
        // 总条数
        total: 0,
        // 工单基础信息表格数据
        basicsInfoList: [],
        // feedbackList: [],
        // 弹出层标题
        title: "",
        // 是否显示弹出层
        open: false,
        // 工单状态字典
        typeOptions: [],
yaqizhang's avatar
yaqizhang committed
156
        pickerOptions: [],
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
        // 工单类型字典
        ordertypeOptions: [],
        // 设备树选项
        deviceOptions: [
          {
            label: "设备列表",
            childList: []
          }
        ],
        defaultProps: {
          children: "childList",
          label: "label"
        },
        // 查询参数
        queryParams: {
          pageNum: 1,
          pageSize: 10,
          orderType: null,
          orderName: null,
          orderStatus: null,
          appointInspector: null,
          allotTime: null,
          actualInspector: null,
          actualTime: null,
          remarks: null
        },
        // 表单参数
yaqizhang's avatar
yaqizhang committed
184
        form: [],
185 186 187 188
        activity: {},
        // 表单校验
        rules: {
        },
yaqizhang's avatar
yaqizhang committed
189
        active: 0,
yaqizhang's avatar
yaqizhang committed
190
        deviceId: "",
yaqizhang's avatar
yaqizhang committed
191 192 193 194
        showAndHide: false,
        dataListdetail1: [],
        dataListdetail2: [],
        dataListdetail3: [],
195 196
      };
    },
yaqizhang's avatar
yaqizhang committed
197

198 199 200
    created() {
      // 如果是跳转来的,则接受初始化参数
      // this.user_id = this.$route.query.id; //详细信息页接收参数
yaqizhang's avatar
yaqizhang committed
201
      this.deviceId = +this.$route.query.deviceId;
yaqizhang's avatar
yaqizhang committed
202
      // this.getList();
203 204 205 206 207 208
      this.getDicts("t_order_status").then(response => {
        this.typeOptions = response.data;
      });
      this.getDicts("t_order_type").then(response => {
        this.ordertypeOptions = response.data;
      });
yaqizhang's avatar
yaqizhang committed
209
      // this.getData();
210
    },
yaqizhang's avatar
yaqizhang committed
211 212
    mounted() {
      let gaoMap = new gaodeMap("石家庄");
213
      this.gaoMap = gaoMap;
yaqizhang's avatar
yaqizhang committed
214
      this.getData();
215 216
    },
    methods: {
yaqizhang's avatar
yaqizhang committed
217
      getInspectorList() {
218 219 220 221 222
        this.loading = true;
        inspectorList().then(response => {
          this.inspector = response.data;
          this.loading = false;
        });
yaqizhang's avatar
yaqizhang committed
223

224
      },
yaqizhang's avatar
yaqizhang committed
225
      
yaqizhang's avatar
yaqizhang committed
226
      initData(getData1, getData2, getData3) {
yaqizhang's avatar
yaqizhang committed
227 228
        // 基于准备好的dom,初始化echarts实例
        var myChart1 = echarts.init(document.getElementById('main1'));
yaqizhang's avatar
yaqizhang committed
229
     
yaqizhang's avatar
yaqizhang committed
230 231 232 233

        // 绘制图表
        myChart1.setOption({
          title: {
yaqizhang's avatar
yaqizhang committed
234
            text: '标况流量、工况流量'
yaqizhang's avatar
yaqizhang committed
235 236
          },
          tooltip: {
237
            trigger: 'axis'
yaqizhang's avatar
yaqizhang committed
238 239
          },
          legend: {
yaqizhang's avatar
yaqizhang committed
240
            data: ['标况流量', '工况流量']
241
          },
yaqizhang's avatar
yaqizhang committed
242 243 244
          xAxis: {
            type: 'category',
            // data: this.dataX,
yaqizhang's avatar
yaqizhang committed
245 246
            // data: ['23', '44', '77', '34', '56', '88', '38', '68', '55', '99', '44', '33'],
            data: getData3,
yaqizhang's avatar
yaqizhang committed
247 248 249 250 251 252 253 254
            boundaryGap: false, //控制日期是否在中间显示
            axisLabel: {
              show: true, //是否显示日期
              interval: 0, //强制显示全部 // rotate: 40,//倾斜的角度
              textStyle: {
                color: '#000', //日期的颜色
                fontSize: 12 //字体的大小
              }
255
            },
yaqizhang's avatar
yaqizhang committed
256 257 258
            axisLine: {
              lineStyle: {
                color: '#ccc' // x轴的颜色
259 260 261
              }
            }
          },
yaqizhang's avatar
yaqizhang committed
262 263 264 265 266 267 268 269 270 271 272 273
          yAxis: {
            type: 'value',
            axisLabel: {
              formatter: '{value}',
              textStyle: {
                color: '#000' //数字的颜色
              },
              inside: false //控制数据是否在内侧还是外侧显示
            },
            axisLine: {
              lineStyle: {
                color: '#ccc' // 折线的颜色
274 275
              }
            }
yaqizhang's avatar
yaqizhang committed
276 277 278 279
          },
          series: [
            {
              // data: this.dataY,
yaqizhang's avatar
yaqizhang committed
280 281 282
              name: '标况流量',
              // data: [820, 232, 901, 534, 1290, 330, 1320, 345, 654, 189, 980, 234],
              data: getData1,
yaqizhang's avatar
yaqizhang committed
283 284 285 286 287 288 289 290 291 292 293
              type: 'line',
              symbol: 'circle', //是否显示实心的折线圆点
              smooth: true, //让折线有弧度
              symbolSize: 7, //折线圆点的大小
              itemStyle: {
                normal: {
                  color: '#efc883', //折线点的颜色
                  lineStyle: {
                    color: '#efc883' //折线的颜色
                  },
                  label: { show: true } //是否在折线点上显示数字
294
                }
yaqizhang's avatar
yaqizhang committed
295 296 297 298
              }
            },
            {
              // data: this.dataY,
yaqizhang's avatar
yaqizhang committed
299 300 301
              name: '工况流量',
              // data: [500, 600, 700, 300, 1100, 130, 1200, 820, 932, 901, 934, 1290],
              data: getData2,
yaqizhang's avatar
yaqizhang committed
302 303 304 305 306 307 308 309 310 311 312
              type: 'line',
              symbol: 'circle', //是否显示实心的折线圆点
              smooth: true, //让折线有弧度
              symbolSize: 7, //折线圆点的大小
              itemStyle: {
                normal: {
                  color: '#053B6A', //折线点的颜色
                  lineStyle: {
                    color: '#053B6A' //折线的颜色
                  },
                  label: { show: true } //是否在折线点上显示数字
313
                }
yaqizhang's avatar
yaqizhang committed
314
              }
315
            }
yaqizhang's avatar
yaqizhang committed
316 317 318 319
          ]
        });

      },
yaqizhang's avatar
yaqizhang committed
320 321 322


      drawPieChart(getData4, getData5, getData3) {
yaqizhang's avatar
yaqizhang committed
323 324
        // 基于准备好的dom,初始化echarts实例
        var myChart2 = echarts.init(document.getElementById('main2'));
yaqizhang's avatar
yaqizhang committed
325
       
yaqizhang's avatar
yaqizhang committed
326 327
        // 绘制图表
        myChart2.setOption({
yaqizhang's avatar
yaqizhang committed
328 329 330 331 332 333 334 335 336
          title: {
            text: '标况累积量、工况累积量'
          },
          tooltip: {
            trigger: 'axis'
          },
          legend: {
            data: ['标况累积量', '工况累积量']
          },
yaqizhang's avatar
yaqizhang committed
337 338 339
          xAxis: {
            type: 'category',
            // data: this.dataX,
yaqizhang's avatar
yaqizhang committed
340
            data: getData3,
yaqizhang's avatar
yaqizhang committed
341 342 343 344 345 346 347 348
            boundaryGap: false, //控制日期是否在中间显示
            axisLabel: {
              show: true, //是否显示日期
              interval: 0, //强制显示全部 // rotate: 40,//倾斜的角度
              textStyle: {
                color: '#000', //日期的颜色
                fontSize: 12 //字体的大小
              }
349
            },
yaqizhang's avatar
yaqizhang committed
350 351 352 353
            axisLine: {
              lineStyle: {
                color: '#ccc' // x轴的颜色
              }
354
            }
yaqizhang's avatar
yaqizhang committed
355 356 357 358 359 360 361 362 363 364 365 366 367
          },
          yAxis: {
            type: 'value',
            axisLabel: {
              formatter: '{value}',
              textStyle: {
                color: '#000' //数字的颜色
              },
              inside: false //控制数据是否在内侧还是外侧显示
            },
            axisLine: {
              lineStyle: {
                color: '#ccc' // 折线的颜色
368 369 370
              }
            }
          },
yaqizhang's avatar
yaqizhang committed
371 372 373
          series: [
            {
              // data: this.dataY,
yaqizhang's avatar
yaqizhang committed
374
              name: '标况累积量',
yaqizhang's avatar
yaqizhang committed
375
              data: getData4,
yaqizhang's avatar
yaqizhang committed
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391
              type: 'line',
              symbol: 'circle', //是否显示实心的折线圆点
              smooth: true, //让折线有弧度
              symbolSize: 7, //折线圆点的大小
              itemStyle: {
                normal: {
                  color: '#efc883', //折线点的颜色
                  lineStyle: {
                    color: '#efc883' //折线的颜色
                  },
                  label: { show: true } //是否在折线点上显示数字
                }
              }
            },
            {
              // data: this.dataY,
yaqizhang's avatar
yaqizhang committed
392
              name: '工况累积量',
yaqizhang's avatar
yaqizhang committed
393
              data: getData5,
yaqizhang's avatar
yaqizhang committed
394 395 396 397 398 399 400 401 402 403 404 405
              type: 'line',
              symbol: 'circle', //是否显示实心的折线圆点
              smooth: true, //让折线有弧度
              symbolSize: 7, //折线圆点的大小
              itemStyle: {
                normal: {
                  color: '#053B6A', //折线点的颜色
                  lineStyle: {
                    color: '#053B6A' //折线的颜色
                  },
                  label: { show: true } //是否在折线点上显示数字
                }
406 407
              }
            }
yaqizhang's avatar
yaqizhang committed
408 409 410
          ]
        });
      },
yaqizhang's avatar
yaqizhang committed
411
      main3(getData6, getData3) {
yaqizhang's avatar
yaqizhang committed
412 413
        // 基于准备好的dom,初始化echarts实例
        var myChart3 = echarts.init(document.getElementById('main3'));
yaqizhang's avatar
yaqizhang committed
414
      
yaqizhang's avatar
yaqizhang committed
415 416 417

        // 绘制图表
        myChart3.setOption({
yaqizhang's avatar
yaqizhang committed
418 419 420 421 422 423 424 425 426
          title: {
            text: '温度'
          },
          tooltip: {
            trigger: 'axis'
          },
          legend: {
            data: ['温度']
          },
yaqizhang's avatar
yaqizhang committed
427 428 429
          xAxis: {
            type: 'category',
            // data: this.dataX,
yaqizhang's avatar
yaqizhang committed
430
            data: getData3,
yaqizhang's avatar
yaqizhang committed
431 432 433 434 435 436 437 438 439 440 441 442 443
            boundaryGap: false, //控制日期是否在中间显示
            axisLabel: {
              show: true, //是否显示日期
              interval: 0, //强制显示全部 // rotate: 40,//倾斜的角度
              textStyle: {
                color: '#000', //日期的颜色
                fontSize: 12 //字体的大小
              }
            },
            axisLine: {
              lineStyle: {
                color: '#ccc' // x轴的颜色
              }
444 445
            }
          },
yaqizhang's avatar
yaqizhang committed
446 447 448 449 450 451 452 453
          yAxis: {
            type: 'value',
            axisLabel: {
              formatter: '{value}',
              textStyle: {
                color: '#000' //数字的颜色
              },
              inside: false //控制数据是否在内侧还是外侧显示
454
            },
yaqizhang's avatar
yaqizhang committed
455 456 457 458 459
            axisLine: {
              lineStyle: {
                color: '#ccc' // 折线的颜色
              }
            }
460
          },
yaqizhang's avatar
yaqizhang committed
461 462 463
          series: [
            {
              // data: this.dataY,
yaqizhang's avatar
yaqizhang committed
464
              name: '温度',
yaqizhang's avatar
yaqizhang committed
465
              data: getData6,
yaqizhang's avatar
yaqizhang committed
466 467 468 469 470 471 472 473 474 475 476 477 478
              type: 'line',
              symbol: 'circle', //是否显示实心的折线圆点
              smooth: true, //让折线有弧度
              symbolSize: 7, //折线圆点的大小
              itemStyle: {
                normal: {
                  color: '#efc883', //折线点的颜色
                  lineStyle: {
                    color: '#efc883' //折线的颜色
                  },
                  label: { show: true } //是否在折线点上显示数字
                }
              }
479
            }
yaqizhang's avatar
yaqizhang committed
480 481 482 483
          ]
        });

      },
yaqizhang's avatar
yaqizhang committed
484
      main4(getData7, getData3) {
yaqizhang's avatar
yaqizhang committed
485 486 487 488 489
        // 基于准备好的dom,初始化echarts实例
        var myChart4 = echarts.init(document.getElementById('main4'));

        // 绘制图表
        myChart4.setOption({
yaqizhang's avatar
yaqizhang committed
490 491 492 493 494 495 496 497 498
          title: {
            text: '压力'
          },
          tooltip: {
            trigger: 'axis'
          },
          legend: {
            data: ['压力']
          },
yaqizhang's avatar
yaqizhang committed
499 500 501
          xAxis: {
            type: 'category',
            // data: this.dataX,
yaqizhang's avatar
yaqizhang committed
502
            data: getData3,
yaqizhang's avatar
yaqizhang committed
503 504 505 506 507 508 509 510 511 512 513 514
            boundaryGap: false, //控制日期是否在中间显示
            axisLabel: {
              show: true, //是否显示日期
              interval: 0, //强制显示全部 // rotate: 40,//倾斜的角度
              textStyle: {
                color: '#000', //日期的颜色
                fontSize: 12 //字体的大小
              }
            },
            axisLine: {
              lineStyle: {
                color: '#ccc' // x轴的颜色
515 516 517
              }
            }
          },
yaqizhang's avatar
yaqizhang committed
518 519 520 521 522 523 524 525 526 527 528 529
          yAxis: {
            type: 'value',
            axisLabel: {
              formatter: '{value}',
              textStyle: {
                color: '#000' //数字的颜色
              },
              inside: false //控制数据是否在内侧还是外侧显示
            },
            axisLine: {
              lineStyle: {
                color: '#ccc' // 折线的颜色
530 531
              }
            }
yaqizhang's avatar
yaqizhang committed
532 533 534 535
          },
          series: [
            {
              // data: this.dataY,
yaqizhang's avatar
yaqizhang committed
536
              name: '压力',
yaqizhang's avatar
yaqizhang committed
537
              data: getData7,
yaqizhang's avatar
yaqizhang committed
538 539 540 541 542 543 544 545 546 547 548 549 550
              type: 'line',
              symbol: 'circle', //是否显示实心的折线圆点
              smooth: true, //让折线有弧度
              symbolSize: 7, //折线圆点的大小
              itemStyle: {
                normal: {
                  color: '#efc883', //折线点的颜色
                  lineStyle: {
                    color: '#efc883' //折线的颜色
                  },
                  label: { show: true } //是否在折线点上显示数字
                }
              }
551
            }
yaqizhang's avatar
yaqizhang committed
552 553
          ]
        });
554 555 556 557

      },


yaqizhang's avatar
yaqizhang committed
558

559 560 561 562 563 564 565 566 567 568
      handleRemove(file) {
        console.log(file);
      },
      handlePictureCardPreview(file) {
        this.dialogImageUrl = file.url;
        this.dialogVisible = true;
      },
      handleDownload(file) {
        console.log(file);
      },
yaqizhang's avatar
yaqizhang committed
569
      
yaqizhang's avatar
yaqizhang committed
570
      getData() {
yaqizhang's avatar
yaqizhang committed
571 572 573 574 575 576
        getData(this.deviceId).then(response => {
          const { deviceName, deviceCode, deviceType, standardConditionAccumulation,
            workingConditionAccumulation, residualQuantity, standardConditionFlow, workingConditionFlow, temperature, pressure, reportTime, deviceStatus } = response.data;
          const obj1 = { deviceName, deviceCode, deviceType, standardConditionAccumulation };
          const obj2 = { workingConditionAccumulation, residualQuantity, standardConditionFlow, workingConditionFlow };
          const obj3 = { temperature, pressure, reportTime, deviceStatus };
yaqizhang's avatar
yaqizhang committed
577 578 579
          this.dataListdetail1.push(obj1);
          this.dataListdetail2.push(obj2);
          this.dataListdetail3.push(obj3);
yaqizhang's avatar
yaqizhang committed
580
          this.form = response.data;
yaqizhang's avatar
yaqizhang committed
581 582 583 584 585 586 587 588 589 590 591 592 593
          this.active = parseInt(response.data.orderStatus) + 1;
          this.gaoMap.resetMapCenter([this.form.longitude, this.form.latitude]);
          this.gaoMap.addMarker(DEVICE_TYPE.WORKORDER, this.form)
            console.log("this.form.longitude",this.form.longitude)
          console.log("this.form", this.form)

          // if (this.form.length > 0) {
            
          // }
          // for (var i = 0; i < this.form.length; i++) {
          //   let obj = this.form[i];
          //   this.gaoMap.addMarker(DEVICE_TYPE.WORKORDER, obj)
          // }
yaqizhang's avatar
yaqizhang committed
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624

          var getData1 = [];
          var getData2 = [];
          var getData3 = [];
          var getData4 = [];
          var getData5 = [];
          var getData6 = [];
          var getData7 = [];
          //先进行赋值
          for (let i = 0; i < this.form.deviceReportDataList.length; i++) {
            getData1.push( this.form.deviceReportDataList[i].standardConditionFlow)
            getData2.push(this.form.deviceReportDataList[i].workingConditionFlow)
            getData3.push(this.form.deviceReportDataList[i].reportTime)
            getData4.push(this.form.deviceReportDataList[i].standardConditionAccumulation)
            getData5.push(this.form.deviceReportDataList[i].workingConditionAccumulation)
            getData6.push(this.form.deviceReportDataList[i].temperature)
            getData7.push(this.form.deviceReportDataList[i].pressure)


          }
          this.initData(getData1, getData2, getData3);
          this.drawPieChart(getData4, getData5, getData3);
          this.main3(getData6, getData3);
          this.main4(getData7, getData3);
          console.log(this.form.deviceReportDataList)
          console.log("getData1",getData1)
          console.log("getData2",getData2)
          console.log("getData3",getData3)



yaqizhang's avatar
yaqizhang committed
625 626 627
          
          
          
628

yaqizhang's avatar
yaqizhang committed
629
          if (this.form.orderType == '1') {
630 631
            // 获取设备列表树
            let data = {
yaqizhang's avatar
yaqizhang committed
632 633
              key1: this.form.deviceInfoList,
              key2: this.form.pipeList
634 635 636 637 638 639 640 641 642 643
            };
            deviceTree(data).then(response => {
              this.deviceOptions[0].childList = response.data;
            });
          }
        });
      },

    }
  }
yaqizhang's avatar
yaqizhang committed
644 645
</script>
<style>
yaqizhang's avatar
yaqizhang committed
646 647 648 649 650 651
  .div-null{
    width: 100%;
    height: 300px;
    text-align: center;
    line-height: 250px;
  }
yaqizhang's avatar
yaqizhang committed
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702
  .el-tree-node__content {
    width: 150px;
  }

  .el-divider--horizontal {
    display: block;
    height: 1px;
    width: 100%;
    margin: 20px 0;
  }

  .feedbackTime-div {
    float: left;
    margin-left: 150px;
    margin-top: 10px;
  }

  .feedbackTime {
    height: 120px;
    width: 120px;
    float: left;
    margin-left: 15px;
    margin-top: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .el-card__body {
    padding: 5px 20px 20px 20px;
  }

  .detail .el-form {
    width: 20%;
  }

  .detail .el-form-item {
    margin-bottom: 0px;
  }

  .el-tree {
    margin-top: 5px;
  }

  .avatar-uploader {
    width: 25%;
    float: left;
  }

  .avatar-uploader .el-upload {
703 704 705 706 707 708
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
yaqizhang's avatar
yaqizhang committed
709

710 711 712
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
yaqizhang's avatar
yaqizhang committed
713

714 715 716 717 718 719 720 721
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }
yaqizhang's avatar
yaqizhang committed
722

723 724 725 726 727
  .avatar {
    width: 178px;
    height: 178px;
    display: block;
  }
yaqizhang's avatar
yaqizhang committed
728 729

  li {
730 731 732
    font-size: 15px;
    font-weight: 900;
  }
yaqizhang's avatar
yaqizhang committed
733
</style>