|
@@ -44,50 +44,50 @@
|
|
|
|
|
|
<div class="divTable">
|
|
|
<el-table
|
|
|
- :data="tableData"
|
|
|
- :loading="loading"
|
|
|
- size="mini" height="60vh"
|
|
|
- style="width: 100%;">
|
|
|
+ :data="tableData"
|
|
|
+ :loading="loading"
|
|
|
+ size="mini" height="60vh"
|
|
|
+ style="width: 100%;">
|
|
|
<el-table-column
|
|
|
- prop="time"
|
|
|
- header-align="center"
|
|
|
- align="center"
|
|
|
- label="时间" fixed min-width="50px"
|
|
|
+ prop="time"
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ label="时间" fixed min-width="50px"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="xs"
|
|
|
- header-align="center"
|
|
|
- align="center"
|
|
|
- label="系数" min-width="50px">
|
|
|
+ prop="xs"
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ label="系数" min-width="50px">
|
|
|
<template slot-scope="scope">
|
|
|
<vxe-input type="number" v-model="scope.row.xs" size="small" style="width:100%" min="0"
|
|
|
placeholder="" @change="setValueByManual(scope.row,scope.$index)"></vxe-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="sz"
|
|
|
- header-align="center"
|
|
|
- align="center"
|
|
|
- label="数值" min-width="50px">
|
|
|
+ prop="sz"
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ label="数值" min-width="50px">
|
|
|
<template slot-scope="scope">
|
|
|
<vxe-input type="number" v-model="scope.row.sz" size="small" style="width:100%"
|
|
|
placeholder="" @change="setValueByManual(scope.row,scope.$index)"></vxe-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="ysValue"
|
|
|
- header-align="center"
|
|
|
- align="center"
|
|
|
- label="原始值" min-width="60px">
|
|
|
+ prop="ysValue"
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ label="原始值" min-width="60px">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="tkValue"
|
|
|
- header-align="center"
|
|
|
- align="center"
|
|
|
- label="调控值"
|
|
|
- :max="capacity"
|
|
|
- :min="0" min-width="60px"
|
|
|
+ prop="tkValue"
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ label="调控值"
|
|
|
+ :max="capacity"
|
|
|
+ :min="0" min-width="60px"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -281,7 +281,7 @@ export default {
|
|
|
name: 'inverterinfo',
|
|
|
data() {
|
|
|
return {
|
|
|
- showDeleteButton:true,
|
|
|
+ showDeleteButton: true,
|
|
|
dqEndTime: '',
|
|
|
markLineData: new Array(),
|
|
|
visualMapPieces: new Array(),
|
|
@@ -305,7 +305,7 @@ export default {
|
|
|
},
|
|
|
expireDateOption: {
|
|
|
disabledDate(time) {
|
|
|
- return (time.getTime() > Date.now() + 8.64e7 *10) || (time.getTime() < Date.now())
|
|
|
+ return (time.getTime() > Date.now() + 8.64e7 * 10) || (time.getTime() < Date.now())
|
|
|
}
|
|
|
},
|
|
|
loading: false,
|
|
@@ -404,12 +404,13 @@ export default {
|
|
|
connectNulls: true,
|
|
|
lineStyle: {
|
|
|
normal: {
|
|
|
+ color: 'rgb(0,136,212)',
|
|
|
width: 2
|
|
|
}
|
|
|
},
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
- color: 'rgb(219,50,51)',
|
|
|
+ color: 'rgb(0,136,212)',
|
|
|
borderWidth: 12
|
|
|
}
|
|
|
},
|
|
@@ -426,13 +427,13 @@ export default {
|
|
|
connectNulls: true,
|
|
|
lineStyle: {
|
|
|
normal: {
|
|
|
- color: 'rgb(0,136,212)',
|
|
|
+ color: 'rgb(219,50,51)',
|
|
|
width: 2
|
|
|
}
|
|
|
},
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
- color: 'rgb(0,136,212)',
|
|
|
+ color: 'rgb(219,50,51)',
|
|
|
borderWidth: 50
|
|
|
}
|
|
|
},
|
|
@@ -502,7 +503,7 @@ export default {
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
// 中心侧预测模型选择
|
|
|
- changeForecastModel(dictValue){
|
|
|
+ changeForecastModel(dictValue) {
|
|
|
const item = this.forecastModelList.find(item => item.dictValue == dictValue)
|
|
|
let dictLabel = item ? item.dictLabel : ''
|
|
|
this.currentStrategy = dictLabel
|
|
@@ -531,8 +532,7 @@ export default {
|
|
|
this.modelId = ''
|
|
|
// 中心模型下拉框不可用
|
|
|
this.modelDisabled = true
|
|
|
- }
|
|
|
- else if (radioValue == '2') {
|
|
|
+ } else if (radioValue == '2') {
|
|
|
// 显示删除按钮
|
|
|
this.showDeleteButton = true
|
|
|
this.vradio = '2'
|
|
@@ -541,8 +541,7 @@ export default {
|
|
|
this.modelId = ''
|
|
|
// 中心模型下拉框不可用
|
|
|
this.modelDisabled = true
|
|
|
- }
|
|
|
- else if (radioValue == '3') {
|
|
|
+ } else if (radioValue == '3') {
|
|
|
// 隐藏删除按钮
|
|
|
this.showDeleteButton = false
|
|
|
this.vradio = '3'
|
|
@@ -616,11 +615,10 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
await this.executeTrial()
|
|
|
- if (this.trialData.length==0){
|
|
|
+ if (this.trialData.length == 0) {
|
|
|
this.$message.warning("此策略无数据,不能一键应用!")
|
|
|
return
|
|
|
- }
|
|
|
- else{
|
|
|
+ } else {
|
|
|
// 将列表数据赋值给底层列表
|
|
|
this.tableData = this.trialData
|
|
|
// 将预算的调控曲线赋值给底层曲线上
|
|
@@ -648,8 +646,8 @@ export default {
|
|
|
this.vradio = '1'
|
|
|
this.usualDisabled = true
|
|
|
this.modelDisabled = true
|
|
|
- this.usualId=''
|
|
|
- this.modelId=''
|
|
|
+ this.usualId = ''
|
|
|
+ this.modelId = ''
|
|
|
document.getElementById("currentSelectFunction").style.display = 'none'
|
|
|
},
|
|
|
renderUsual() {
|
|
@@ -738,8 +736,8 @@ export default {
|
|
|
this.$message.warning("调控列表为空,不能调控!")
|
|
|
return
|
|
|
}
|
|
|
- for (let i=0; i<this.tableData.length;i++){
|
|
|
- if (this.tableData[i].tkValue>this.capacity){
|
|
|
+ for (let i = 0; i < this.tableData.length; i++) {
|
|
|
+ if (this.tableData[i].tkValue > this.capacity) {
|
|
|
this.$message.warning("列表中调控值存在超装机容量现象,不能调控!")
|
|
|
return
|
|
|
}
|
|
@@ -824,7 +822,6 @@ export default {
|
|
|
this.refDownData = response.data.refDownData
|
|
|
this.tkData = response.data.tkDataList
|
|
|
this.draData()
|
|
|
-
|
|
|
this.loading = false
|
|
|
}).catch(() => {
|
|
|
this.tableData = []
|