|
|
@@ -44,17 +44,18 @@
|
|
|
height: '40px',
|
|
|
}"
|
|
|
class="item-label"
|
|
|
- >归属县旗</label
|
|
|
+ >地区</label
|
|
|
>
|
|
|
<el-select
|
|
|
style="width: 100%"
|
|
|
- v-model="searchForm.compId"
|
|
|
- placeholder="归属县旗"
|
|
|
+ v-model="searchForm.regionId"
|
|
|
+ placeholder="地区"
|
|
|
@keydown.enter.native="search()"
|
|
|
@change="getSubList"
|
|
|
clearable
|
|
|
>
|
|
|
- <el-option v-for="item in compList" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
+ <el-option label="全部" value="">全部</el-option>
|
|
|
+ <el-option v-for="item in regionList" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div
|
|
|
@@ -64,7 +65,7 @@
|
|
|
display: 'flex',
|
|
|
}"
|
|
|
>
|
|
|
- <label
|
|
|
+ <!-- <label
|
|
|
:style="{
|
|
|
margin: '0 10px 0 0',
|
|
|
whiteSpace: 'nowrap',
|
|
|
@@ -80,7 +81,7 @@
|
|
|
>
|
|
|
<el-select style="width: 100%" v-model="searchForm.subId" placeholder="变电站" @keydown.enter.native="search()" clearable>
|
|
|
<el-option v-for="item in subList" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
- </el-select>
|
|
|
+ </el-select> -->
|
|
|
</div>
|
|
|
<div
|
|
|
:style="{
|
|
|
@@ -149,7 +150,7 @@
|
|
|
height: '34px',
|
|
|
}"
|
|
|
></span>
|
|
|
- 新增
|
|
|
+ 新增预测参数
|
|
|
</el-button>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
@@ -181,19 +182,28 @@
|
|
|
v-loading="dataListLoading"
|
|
|
>
|
|
|
<el-table-column :resizable="true" :sortable="true" label="序号" type="index" width="50" />
|
|
|
- <el-table-column :resizable="true" :sortable="true" prop="subNm" label="变电站" />
|
|
|
- <el-table-column :resizable="true" :sortable="true" prop="recordDate" label="所属地区" />
|
|
|
- <el-table-column :resizable="true" :sortable="true" prop="recordDate" label="预测类型" />
|
|
|
- <el-table-column :resizable="true" :sortable="true" prop="recordDate" label="预测参数" />
|
|
|
- <el-table-column :resizable="true" :sortable="true" prop="recordDate" label="预测周期" />
|
|
|
- <el-table-column :resizable="true" :sortable="true" prop="recordDate" label="预测开始时间" />
|
|
|
- <el-table-column :resizable="true" :sortable="true" prop="recordDate" label="预测结束时间" />
|
|
|
- <el-table-column :resizable="true" :sortable="true" prop="voltageLevel" label="预测结果">
|
|
|
+ <el-table-column :resizable="true" :sortable="true" prop="region" label="所属地区" />
|
|
|
+ <el-table-column :resizable="true" :sortable="true" prop="substation" label="变电站" />
|
|
|
+ <!-- <el-table-column :resizable="true" :sortable="true" prop="recordDate" label="预测方法" /> -->
|
|
|
+ <el-table-column :resizable="true" :sortable="true" prop="temperatures" label="预测参数" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ "温度"+scope.row.temperatures +"℃"}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :resizable="true" :sortable="true" prop="dimension" label="时间维度">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.dimension=='daily'?'按日':(scope.row.dimension=='monthly'?'按月':'按年')}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :resizable="true" :sortable="true" prop="startTime" label="开始时间" />
|
|
|
+ <el-table-column :resizable="true" :sortable="true" prop="endTime" label="结束时间" />
|
|
|
+ <el-table-column :resizable="true" :sortable="true" prop="result" label="预测结果">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.voltageLevel }}
|
|
|
+ {{ scope.row.result=='0'?'待预测':(scope.row.result=='1'?'成功':'失败')}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :resizable="true" :sortable="true" prop="recordDate" label="执行时间" />
|
|
|
+ <el-table-column :resizable="true" :sortable="true" prop="execTime" label="执行时间" />
|
|
|
+ <el-table-column :resizable="true" :sortable="true" prop="createTime" label="添加时间" />
|
|
|
<el-table-column width="300" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button class="view" type="success" @click="handleForecastingDetail(scope.row.id)">
|
|
|
@@ -201,7 +211,7 @@
|
|
|
class="icon iconfont icon-xihuan"
|
|
|
:style="{ margin: '0 2px', fontSize: '14px', color: '#fff', display: 'none', height: '40px' }"
|
|
|
></span>
|
|
|
- 结果明细
|
|
|
+ 查看结果
|
|
|
</el-button>
|
|
|
<el-button class="edit" type="success" @click="predictHandler(scope.row.id)">
|
|
|
<span
|
|
|
@@ -275,7 +285,7 @@ export default {
|
|
|
showForecastingFlag: false,
|
|
|
searchForm: {
|
|
|
subId: '',
|
|
|
- compId: '',
|
|
|
+ regionId: '',
|
|
|
dateRange: [],
|
|
|
},
|
|
|
dataList: [],
|
|
|
@@ -319,13 +329,13 @@ export default {
|
|
|
},
|
|
|
// 获取公司列表
|
|
|
async getCompList() {
|
|
|
- this.compList = [];
|
|
|
+ this.regionList = [];
|
|
|
const { data } = await this.$http({
|
|
|
url: `/company/lists`,
|
|
|
method: 'get',
|
|
|
});
|
|
|
if (data && data.code === 0) {
|
|
|
- this.compList = data.data.map(item => ({
|
|
|
+ this.regionList = data.data.map(item => ({
|
|
|
label: item.compName,
|
|
|
value: String(item.id),
|
|
|
}));
|
|
|
@@ -348,7 +358,7 @@ export default {
|
|
|
record_date_end: this.searchForm.dateRange[1],
|
|
|
};
|
|
|
this.$http({
|
|
|
- url: '/electric-heating/page',
|
|
|
+ url: '/predict-conf/page',
|
|
|
method: 'get',
|
|
|
params: params,
|
|
|
}).then(({ data }) => {
|
|
|
@@ -395,7 +405,7 @@ export default {
|
|
|
type: 'warning',
|
|
|
}).then(() => {
|
|
|
this.$http({
|
|
|
- url: `/electric-heating/${id}`,
|
|
|
+ url: `/predict-conf/${id}`,
|
|
|
method: 'delete',
|
|
|
}).then(({ data }) => {
|
|
|
if (data && data.code === 0) {
|