|
@@ -14,7 +14,8 @@
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="场站名称">
|
|
<el-form-item label="场站名称">
|
|
- <el-select v-model="stationCode" placeholder="请选择" style="width: 150px" popper-class="cpp-popper">
|
|
|
|
|
|
+ <el-select v-model="stationCode" placeholder="请选择" style="width: 150px" popper-class="cpp-popper"
|
|
|
|
+ @change="changeStationCode">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in stationList"
|
|
v-for="item in stationList"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -119,8 +120,8 @@ export default {
|
|
dataSourcesList: [],
|
|
dataSourcesList: [],
|
|
fileDescribeList: [
|
|
fileDescribeList: [
|
|
{
|
|
{
|
|
- value:'null',
|
|
|
|
- label:'空'
|
|
|
|
|
|
+ value: 'null',
|
|
|
|
+ label: '空'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: 'notNull',
|
|
value: 'notNull',
|
|
@@ -147,6 +148,63 @@ export default {
|
|
tableData: [],
|
|
tableData: [],
|
|
loading: false,
|
|
loading: false,
|
|
electricFieldTypeEnum: '',
|
|
electricFieldTypeEnum: '',
|
|
|
|
+ windFileTypeList: [{
|
|
|
|
+ value: 'dq',
|
|
|
|
+ label: '短期'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'rdq',
|
|
|
|
+ label: '调控后短期'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'cdq',
|
|
|
|
+ label: '超短期'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'rcdq',
|
|
|
|
+ label: '调控后超短期'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'nwp',
|
|
|
|
+ label: 'Nwp'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'cft',
|
|
|
|
+ label: '测风塔'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'fj',
|
|
|
|
+ label: '风机'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'rp',
|
|
|
|
+ label: '实发功率'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'status',
|
|
|
|
+ label: '运行信息'
|
|
|
|
+ }],
|
|
|
|
+ photovoltaicFileTypeList: [{
|
|
|
|
+ value: 'dq',
|
|
|
|
+ label: '短期'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'rdq',
|
|
|
|
+ label: '调控后短期'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'cdq',
|
|
|
|
+ label: '超短期'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'rcdq',
|
|
|
|
+ label: '调控后超短期'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'nwp',
|
|
|
|
+ label: 'Nwp'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'qxz',
|
|
|
|
+ label: '气象站'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'nbq',
|
|
|
|
+ label: '逆变器'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'rp',
|
|
|
|
+ label: '实发功率'
|
|
|
|
+ }, {
|
|
|
|
+ value: 'status',
|
|
|
|
+ label: '运行信息'
|
|
|
|
+ }],
|
|
|
|
+ allFileTypeList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -157,6 +215,9 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ changeStationCode() {
|
|
|
|
+ this.getElectricFieldTypeEnum()
|
|
|
|
+ },
|
|
handlePageChange({currentPage, pageSize}) {
|
|
handlePageChange({currentPage, pageSize}) {
|
|
this.currentPage = currentPage
|
|
this.currentPage = currentPage
|
|
this.pageSize = pageSize
|
|
this.pageSize = pageSize
|
|
@@ -176,7 +237,7 @@ export default {
|
|
const s = (date.getSeconds() < 10 ? '0' : '') + date.getSeconds()
|
|
const s = (date.getSeconds() < 10 ? '0' : '') + date.getSeconds()
|
|
return Y + M + D + h + m + s
|
|
return Y + M + D + h + m + s
|
|
},
|
|
},
|
|
- getDataSourcesEnum(){
|
|
|
|
|
|
+ getDataSourcesEnum() {
|
|
this.$axios.get("/enumSelect/dataSourcesEnum").then(response => {
|
|
this.$axios.get("/enumSelect/dataSourcesEnum").then(response => {
|
|
this.dataSourcesList = response.data
|
|
this.dataSourcesList = response.data
|
|
})
|
|
})
|
|
@@ -184,6 +245,7 @@ export default {
|
|
getStationCode() {
|
|
getStationCode() {
|
|
this.$axios({url: '/electricfield/all', method: 'get'}).then(response => {
|
|
this.$axios({url: '/electricfield/all', method: 'get'}).then(response => {
|
|
this.stationList = response.data
|
|
this.stationList = response.data
|
|
|
|
+ this.stationList.push({value: '未知', label: '未知'})
|
|
if (this.stationList.length > 0) {
|
|
if (this.stationList.length > 0) {
|
|
this.stationCode = this.stationList[0].value
|
|
this.stationCode = this.stationList[0].value
|
|
this.getElectricFieldTypeEnum()
|
|
this.getElectricFieldTypeEnum()
|
|
@@ -195,69 +257,25 @@ export default {
|
|
const param = {
|
|
const param = {
|
|
"stationCode": this.stationCode,
|
|
"stationCode": this.stationCode,
|
|
}
|
|
}
|
|
- this.$axios.get('reportData/getElectricFieldTypeEnum', {params: param}).then(response => {
|
|
|
|
- this.electricFieldTypeEnum = response.data
|
|
|
|
- if (this.electricFieldTypeEnum === 'E1') {
|
|
|
|
- this.fileType = [{
|
|
|
|
- value: 'dq',
|
|
|
|
- label: '短期'
|
|
|
|
- }, {
|
|
|
|
- value: 'rdq',
|
|
|
|
- label: '调控后短期'
|
|
|
|
- }, {
|
|
|
|
- value: 'cdq',
|
|
|
|
- label: '超短期'
|
|
|
|
- }, {
|
|
|
|
- value: 'rcdq',
|
|
|
|
- label: '调控后超短期'
|
|
|
|
- }, {
|
|
|
|
- value: 'nwp',
|
|
|
|
- label: 'Nwp'
|
|
|
|
- }, {
|
|
|
|
- value: 'qxz',
|
|
|
|
- label: '气象站'
|
|
|
|
- }, {
|
|
|
|
- value: 'nbq',
|
|
|
|
- label: '逆变器'
|
|
|
|
- }, {
|
|
|
|
- value: 'rp',
|
|
|
|
- label: '实发功率'
|
|
|
|
- }, {
|
|
|
|
- value: 'status',
|
|
|
|
- label: '运行信息'
|
|
|
|
- }]
|
|
|
|
- } else {
|
|
|
|
- this.fileType = [{
|
|
|
|
- value: 'dq',
|
|
|
|
- label: '短期'
|
|
|
|
- }, {
|
|
|
|
- value: 'rdq',
|
|
|
|
- label: '调控后短期'
|
|
|
|
- }, {
|
|
|
|
- value: 'cdq',
|
|
|
|
- label: '超短期'
|
|
|
|
- }, {
|
|
|
|
- value: 'rcdq',
|
|
|
|
- label: '调控后超短期'
|
|
|
|
- }, {
|
|
|
|
- value: 'nwp',
|
|
|
|
- label: 'Nwp'
|
|
|
|
- }, {
|
|
|
|
- value: 'cft',
|
|
|
|
- label: '测风塔'
|
|
|
|
- }, {
|
|
|
|
- value: 'fj',
|
|
|
|
- label: '风机'
|
|
|
|
- }, {
|
|
|
|
- value: 'rp',
|
|
|
|
- label: '实发功率'
|
|
|
|
- }, {
|
|
|
|
- value: 'status',
|
|
|
|
- label: '运行信息'
|
|
|
|
- }]
|
|
|
|
- }
|
|
|
|
- this.fileTypeName = this.fileType[0].value
|
|
|
|
- this.queryByStationCode()
|
|
|
|
|
|
+ if (this.stationCode != '未知'){
|
|
|
|
+ this.$axios.get('reportData/getElectricFieldTypeEnum', {params: param}).then(response => {
|
|
|
|
+ this.electricFieldTypeEnum = response.data
|
|
|
|
+ if (this.electricFieldTypeEnum === 'E1') {
|
|
|
|
+ this.fileType = this.photovoltaicFileTypeList
|
|
|
|
+ } else {
|
|
|
|
+ this.fileType = this.windFileTypeList
|
|
|
|
+ }
|
|
|
|
+ this.fileTypeName = this.fileType[0].value
|
|
|
|
+ this.queryByStationCode()
|
|
|
|
+ this.getAllFileType()
|
|
|
|
+ })
|
|
|
|
+ }else {
|
|
|
|
+ this.fileType = this.allFileTypeList
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ getAllFileType(){
|
|
|
|
+ this.$axios.get('enumSelect/fileTypeEnum').then(response =>{
|
|
|
|
+ this.allFileTypeList = response.data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
queryByStationCode() {
|
|
queryByStationCode() {
|
|
@@ -300,9 +318,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
changeFileName(row) {
|
|
changeFileName(row) {
|
|
- for (let i = 0; i < this.fileType.length; i++) {
|
|
|
|
- if (row.cellValue === this.fileType[i].value) {
|
|
|
|
- return this.fileType[i].label
|
|
|
|
|
|
+ for (let i = 0; i < this.allFileTypeList.length; i++) {
|
|
|
|
+ if (row.cellValue === this.allFileTypeList[i].value) {
|
|
|
|
+ return this.allFileTypeList[i].label
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|