|
@@ -5,7 +5,8 @@
|
|
|
<div class="BOXsan">
|
|
|
<div class="YC02" @click="getwgl">
|
|
|
<strong class="texyellow">
|
|
|
- {{ onrelevance ? onrelevance : 0 }}</strong>
|
|
|
+ {{ onrelevance ? onrelevance : 0 }}</strong
|
|
|
+ >
|
|
|
<span>待分析任务</span>
|
|
|
</div>
|
|
|
<div class="YC02" @click="getwfx">
|
|
@@ -23,13 +24,29 @@
|
|
|
<!-- 外部容器设置最大高度和滚动条 -->
|
|
|
<div style="max-height: 400px; overflow-y: auto">
|
|
|
<el-table :data="glData" style="width: 100%">
|
|
|
- <el-table-column prop="fieldName" label="风场名称" width="180"></el-table-column>
|
|
|
- <el-table-column prop="analysisName" label="分析名称"></el-table-column>
|
|
|
- <el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="fieldName"
|
|
|
+ label="风场名称"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="analysisName"
|
|
|
+ label="分析名称"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="createTime"
|
|
|
+ label="创建时间"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button>
|
|
|
+ <el-button
|
|
|
+ @click="handleClick(scope.row)"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ >编辑</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -47,7 +64,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="YChandleClick(scope.row)" type="text" size="small">编辑</el-button>
|
|
|
+ <el-button
|
|
|
+ @click="YChandleClick(scope.row)"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ >编辑</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -65,7 +87,9 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="PDClick(scope.row)" type="text" size="small">编辑</el-button>
|
|
|
+ <el-button @click="PDClick(scope.row)" type="text" size="small"
|
|
|
+ >编辑</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -86,8 +110,13 @@
|
|
|
</h3>
|
|
|
<div>
|
|
|
<p class="titleYC"><span>风场名称</span><span>入库时间</span></p>
|
|
|
- <tabroll :table-data="tableData" :shujuloading="shujuloading" :columns="YCtableColumns"
|
|
|
- :column-widths="YCcolumnWidths" :max-height="140"></tabroll>
|
|
|
+ <tabroll
|
|
|
+ :table-data="tableData"
|
|
|
+ :shujuloading="shujuloading"
|
|
|
+ :columns="YCtableColumns"
|
|
|
+ :column-widths="YCcolumnWidths"
|
|
|
+ :max-height="140"
|
|
|
+ ></tabroll>
|
|
|
|
|
|
<!-- <el-table
|
|
|
:data="tableData"
|
|
@@ -116,13 +145,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <el-dialog title="实时数据采集统计" :visible.sync="lineShow" width="1340px" :before-close="handleClose">
|
|
|
+ <el-dialog
|
|
|
+ title="实时数据采集统计"
|
|
|
+ :visible.sync="lineShow"
|
|
|
+ width="1340px"
|
|
|
+ :before-close="handleClose"
|
|
|
+ >
|
|
|
<el-container>
|
|
|
<el-aside width="300px">
|
|
|
<h1>当日实时数据</h1>
|
|
|
- <el-input placeholder="请输入内容" size="small" v-model="searchvalue" prefix-icon="el-icon-search"></el-input>
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入内容"
|
|
|
+ size="small"
|
|
|
+ v-model="searchvalue"
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
+ ></el-input>
|
|
|
<div class="windbox">
|
|
|
- <div class="windlist" v-for="(item, index) in windList" :key="index">
|
|
|
+ <div
|
|
|
+ class="windlist"
|
|
|
+ v-for="(item, index) in windList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
<h3>{{ item.fieldName }}</h3>
|
|
|
<p>数据类型:{{ item.dataType }}</p>
|
|
|
<p>采集次数:{{ item.collectCount }} 次</p>
|
|
@@ -135,21 +178,37 @@
|
|
|
<p>
|
|
|
风场名称:
|
|
|
<el-select v-model="windvalue" placeholder="请选择" size="small">
|
|
|
- <el-option v-for="item in windoptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ <el-option
|
|
|
+ v-for="item in windoptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</p>
|
|
|
<p>
|
|
|
转换类型:
|
|
|
<el-select v-model="typevalue" placeholder="请选择" size="small">
|
|
|
- <el-option v-for="item in typeoptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ <el-option
|
|
|
+ v-for="item in typeoptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</p>
|
|
|
<p>
|
|
|
时间范围:
|
|
|
- <el-date-picker size="small" v-model="value1" type="daterange" range-separator="至"
|
|
|
- start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
+ <el-date-picker
|
|
|
+ size="small"
|
|
|
+ v-model="value1"
|
|
|
+ type="daterange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
|
</p>
|
|
|
<div>
|
|
@@ -158,13 +217,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <el-table :data="ListtableData" style="width: 100%" class="custom-table">
|
|
|
+ <el-table
|
|
|
+ :data="ListtableData"
|
|
|
+ style="width: 100%"
|
|
|
+ class="custom-table"
|
|
|
+ >
|
|
|
<el-table-column prop="name" label="风场名称"> </el-table-column>
|
|
|
<el-table-column prop="type" label="类型" align="center">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="address" label="采集总天数" align="center" width="150">
|
|
|
+ <el-table-column
|
|
|
+ prop="address"
|
|
|
+ label="采集总天数"
|
|
|
+ align="center"
|
|
|
+ width="150"
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="count" label="采集总条数" align="center" width="180">
|
|
|
+ <el-table-column
|
|
|
+ prop="count"
|
|
|
+ label="采集总条数"
|
|
|
+ align="center"
|
|
|
+ width="180"
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="daytime" label="最近采集时间" align="center">
|
|
|
</el-table-column>
|
|
@@ -178,12 +251,37 @@
|
|
|
<el-dialog title="入库信息" width="70%" :visible.sync="dialogTableVisible">
|
|
|
<el-button size="small" @click="importdata">导入数据</el-button>
|
|
|
<el-table :data="gridData" style="max-height: 400px; overflow: auto">
|
|
|
- <el-table-column property="windFarmName" label="风场名称" show-overflow-tooltip width="150px"></el-table-column>
|
|
|
- <el-table-column property="minuteTimeAreaList" label="SCADA分钟级" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column property="secondTimeAreaList" label="SCADA秒级" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column property="faultTimeAreaList" label="故障数据" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column property="warnTimeAreaList" label="报警数据" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column property="vibrationTimeAreaList" label="振动数据" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="windFarmName"
|
|
|
+ label="风场名称"
|
|
|
+ show-overflow-tooltip
|
|
|
+ width="150px"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="minuteTimeAreaList"
|
|
|
+ label="SCADA分钟级"
|
|
|
+ show-overflow-tooltip
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="secondTimeAreaList"
|
|
|
+ label="SCADA秒级"
|
|
|
+ show-overflow-tooltip
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="faultTimeAreaList"
|
|
|
+ label="故障数据"
|
|
|
+ show-overflow-tooltip
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="warnTimeAreaList"
|
|
|
+ label="报警数据"
|
|
|
+ show-overflow-tooltip
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="vibrationTimeAreaList"
|
|
|
+ label="振动数据"
|
|
|
+ show-overflow-tooltip
|
|
|
+ ></el-table-column>
|
|
|
</el-table>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -363,7 +461,7 @@ export default {
|
|
|
this.getbacklog();
|
|
|
this.ruku();
|
|
|
},
|
|
|
- mounted() { },
|
|
|
+ mounted() {},
|
|
|
methods: {
|
|
|
getbacklog() {
|
|
|
queryWaitTask().then((res) => {
|
|
@@ -375,7 +473,7 @@ export default {
|
|
|
getwgl() {
|
|
|
const arr = {
|
|
|
pageSize: 999,
|
|
|
- analysisState: -1,
|
|
|
+ analysisState: "-1",
|
|
|
};
|
|
|
analysisResultList(arr).then((res) => {
|
|
|
this.glData = res.data.list;
|
|
@@ -419,7 +517,7 @@ export default {
|
|
|
|
|
|
handleClick(row) {
|
|
|
const fieldName = row.fieldName; // 获取当前行的 fieldName 数据
|
|
|
- const analysisState = -1;
|
|
|
+ const analysisState = "-1";
|
|
|
// 打开新窗口
|
|
|
const newWindow = window.open(
|
|
|
"/home/performance/assetssMag?id=195",
|
|
@@ -434,7 +532,7 @@ export default {
|
|
|
YChandleClick(row) {
|
|
|
const fieldName = row.fieldName; // 获取当前行的 fieldName 数据
|
|
|
const errState = 1;
|
|
|
- const analysisState = 30;
|
|
|
+ const analysisState = "30";
|
|
|
// 打开新窗口
|
|
|
const newWindow = window.open(
|
|
|
"/home/performance/assetssMag?id=195",
|