|
@@ -15,8 +15,7 @@
|
|
<td>气压公式:{{ props.row.pressure }}</td>
|
|
<td>气压公式:{{ props.row.pressure }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td>全波总辐射公式:{{ props.row.lwr }}</td>
|
|
|
|
- <td>总辐射公式:{{ props.row.swr }}</td>
|
|
|
|
|
|
+ <td>总辐射公式:{{ props.row.globalRadiation }}</td>
|
|
<td>直辐射公式:{{ props.row.directRadiation }}</td>
|
|
<td>直辐射公式:{{ props.row.directRadiation }}</td>
|
|
<td>散辐射公式:{{ props.row.diffuseRadiation }}</td>
|
|
<td>散辐射公式:{{ props.row.diffuseRadiation }}</td>
|
|
</tr>
|
|
</tr>
|
|
@@ -41,16 +40,14 @@
|
|
<tr>
|
|
<tr>
|
|
<td>100米风速公式:{{ props.row.ws100 }}</td>
|
|
<td>100米风速公式:{{ props.row.ws100 }}</td>
|
|
<td>100米风向公式:{{ props.row.wd100 }}</td>
|
|
<td>100米风向公式:{{ props.row.wd100 }}</td>
|
|
- <td>170米风速公式:{{ props.row.ws170 }}</td>
|
|
|
|
- <td>170米风向公式:{{ props.row.wd170 }}</td>
|
|
|
|
|
|
+ <td>轮毂高风速公式:{{ props.row.wsHubHeight }}</td>
|
|
|
|
+ <td>轮毂高风向公式:{{ props.row.wdHubHeight }}</td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-<!-- <el-table-column prop="fileName" align="center" label="文件名关键字" width="200px"></el-table-column>-->
|
|
|
|
- <el-table-column prop="dataType" align="center" label="数据类型" width="100px"
|
|
|
|
- :formatter="formatDataType"></el-table-column>
|
|
|
|
- <el-table-column prop="preTime" align="center" label="预测时间公式"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="dataType" align="center" label="数据类型" width="100px" :formatter="formatDataType"></el-table-column>
|
|
|
|
+ <el-table-column prop="time" align="center" label="预测时间公式"></el-table-column>
|
|
<!-- <el-table-column prop="stationCode" align="center" label="场站编号"></el-table-column>-->
|
|
<!-- <el-table-column prop="stationCode" align="center" label="场站编号"></el-table-column>-->
|
|
<el-table-column label="操作" align="center" width="150px">
|
|
<el-table-column label="操作" align="center" width="150px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -86,14 +83,6 @@
|
|
<div class="grid-content bg-purple">
|
|
<div class="grid-content bg-purple">
|
|
<el-form v-model="form" ref="form" :key="timer">
|
|
<el-form v-model="form" ref="form" :key="timer">
|
|
<el-row :gutter="16">
|
|
<el-row :gutter="16">
|
|
-<!-- <el-col :span="8">-->
|
|
|
|
-<!-- <el-form-item prop="fileName" label-width="110px">-->
|
|
|
|
-<!-- <span slot="label">-->
|
|
|
|
-<!-- <font color="red">*</font>文件名关键字-->
|
|
|
|
-<!-- </span>-->
|
|
|
|
-<!-- <el-input v-model="form.fileName" @focus="clearformula"></el-input>-->
|
|
|
|
-<!-- </el-form-item>-->
|
|
|
|
-<!-- </el-col>-->
|
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-form-item prop="dataType" label-width="110px">
|
|
<el-form-item prop="dataType" label-width="110px">
|
|
<span slot="label">
|
|
<span slot="label">
|
|
@@ -101,7 +90,7 @@
|
|
</span>
|
|
</span>
|
|
<el-select v-model="form.dataType" clearable @focus="clearformula">
|
|
<el-select v-model="form.dataType" clearable @focus="clearformula">
|
|
<el-option
|
|
<el-option
|
|
- v-for="item in this.dataType"
|
|
|
|
|
|
+ v-for="item in this.dataTypes"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
:value="item.value"/>
|
|
:value="item.value"/>
|
|
@@ -109,12 +98,12 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
- <el-form-item prop="preTime" label-width="110px" class="formulaColor">
|
|
|
|
|
|
+ <el-form-item prop="time" label-width="110px" class="formulaColor">
|
|
<span slot="label">
|
|
<span slot="label">
|
|
<font color="red">*</font>预测时间公式
|
|
<font color="red">*</font>预测时间公式
|
|
</span>
|
|
</span>
|
|
- <el-input v-model="form.preTime" readonly
|
|
|
|
- @click.native="ftck(form.preTime,'form.preTime','(预测时间)')"></el-input>
|
|
|
|
|
|
+ <el-input v-model="form.time" readonly
|
|
|
|
+ @click.native="ftck(form.time,'form.time','(预测时间)')"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -165,21 +154,12 @@
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="16">
|
|
<el-row :gutter="16">
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
- <el-form-item prop="lwr" label-width="110px" class="formulaColor">
|
|
|
|
- <span slot="label">
|
|
|
|
- 全波总辐射公式
|
|
|
|
- </span>
|
|
|
|
- <el-input v-model="form.lwr" readonly
|
|
|
|
- @click.native="ftck(form.lwr,'form.lwr','(全波总辐射)')"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <el-form-item prop="swr" label-width="110px" class="formulaColor">
|
|
|
|
|
|
+ <el-form-item prop="globalRadiation" label-width="110px" class="formulaColor">
|
|
<span slot="label">
|
|
<span slot="label">
|
|
总辐射公式
|
|
总辐射公式
|
|
</span>
|
|
</span>
|
|
- <el-input v-model="form.swr" readonly
|
|
|
|
- @click.native="ftck(form.swr,'form.swr','(总辐射)')"></el-input>
|
|
|
|
|
|
+ <el-input v-model="form.globalRadiation" readonly
|
|
|
|
+ @click.native="ftck(form.globalRadiation,'form.globalRadiation','(总辐射)')"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
@@ -339,21 +319,21 @@
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="16">
|
|
<el-row :gutter="16">
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
- <el-form-item prop="ws170" label-width="110px" class="formulaColor">
|
|
|
|
|
|
+ <el-form-item prop="wsHubHeight" label-width="110px" class="formulaColor">
|
|
<span slot="label">
|
|
<span slot="label">
|
|
- 170米风速
|
|
|
|
|
|
+ 100米风速
|
|
</span>
|
|
</span>
|
|
- <el-input v-model="form.ws170" readonly
|
|
|
|
- @click.native="ftck(form.ws170,'form.ws170','(170米风速)')"></el-input>
|
|
|
|
|
|
+ <el-input v-model="form.wsHubHeight" readonly
|
|
|
|
+ @click.native="ftck(form.wsHubHeight,'form.wsHubHeight','(轮毂高风速)')"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
- <el-form-item prop="wd170" label-width="110px" class="formulaColor">
|
|
|
|
|
|
+ <el-form-item prop="wdHubHeight" label-width="110px" class="formulaColor">
|
|
<span slot="label">
|
|
<span slot="label">
|
|
- 170米风向
|
|
|
|
|
|
+ 100米风向
|
|
</span>
|
|
</span>
|
|
- <el-input v-model="form.wd170" readonly
|
|
|
|
- @click.native="ftck(form.wd170,'form.wd170','(170米风向)')"></el-input>
|
|
|
|
|
|
+ <el-input v-model="form.wdHubHeight" readonly
|
|
|
|
+ @click.native="ftck(form.wdHubHeight,'form.wdHubHeight','(轮毂高风向)')"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -430,13 +410,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-
|
|
|
|
export default {
|
|
export default {
|
|
name: "index",
|
|
name: "index",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// stationCodeList: [],
|
|
// stationCodeList: [],
|
|
- dataType: [
|
|
|
|
|
|
+ dataTypes: [
|
|
{value: 's', label: '时间单行'},
|
|
{value: 's', label: '时间单行'},
|
|
{value: 'm', label: '时间多行'}
|
|
{value: 'm', label: '时间多行'}
|
|
],
|
|
],
|
|
@@ -460,15 +439,14 @@ export default {
|
|
info: '',
|
|
info: '',
|
|
visible: false,
|
|
visible: false,
|
|
form: {
|
|
form: {
|
|
- fileName: '',
|
|
|
|
- preTime: '',
|
|
|
|
|
|
+ // fileName: '',
|
|
|
|
+ time: '',
|
|
dataType: 'm',
|
|
dataType: 'm',
|
|
// stationCode: '',
|
|
// stationCode: '',
|
|
t: '',
|
|
t: '',
|
|
rh: '',
|
|
rh: '',
|
|
pressure: '',
|
|
pressure: '',
|
|
- lwr: '',
|
|
|
|
- swr: '',
|
|
|
|
|
|
+ globalRadiation: '',
|
|
directRadiation: '',
|
|
directRadiation: '',
|
|
diffuseRadiation: '',
|
|
diffuseRadiation: '',
|
|
ws10: '',
|
|
ws10: '',
|
|
@@ -485,8 +463,8 @@ export default {
|
|
wd90: '',
|
|
wd90: '',
|
|
ws100: '',
|
|
ws100: '',
|
|
wd100: '',
|
|
wd100: '',
|
|
- ws170: '',
|
|
|
|
- wd170: ''
|
|
|
|
|
|
+ wsHubHeight: '',
|
|
|
|
+ wdHubHeight: ''
|
|
},
|
|
},
|
|
pfform: {
|
|
pfform: {
|
|
rownumber: '',
|
|
rownumber: '',
|
|
@@ -505,22 +483,19 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
formatDataType(row, column) {
|
|
formatDataType(row, column) {
|
|
let belongTo = '未知类型'
|
|
let belongTo = '未知类型'
|
|
- for (let i = 0; i < this.dataType.length; i++) {
|
|
|
|
- if (row.dataType === this.dataType[i].value) {
|
|
|
|
- belongTo = this.dataType[i].label
|
|
|
|
|
|
+ for (let i = 0; i < this.dataTypes.length; i++) {
|
|
|
|
+ if (row.dataType === this.dataTypes[i].value) {
|
|
|
|
+ belongTo = this.dataTypes[i].label
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return belongTo
|
|
return belongTo
|
|
},
|
|
},
|
|
getTableList() {
|
|
getTableList() {
|
|
this.tableLoading = true
|
|
this.tableLoading = true
|
|
- const page = this.page
|
|
|
|
-
|
|
|
|
- // 获取列表
|
|
|
|
this.$axios.get("/parsingNwp/page", {
|
|
this.$axios.get("/parsingNwp/page", {
|
|
params: {
|
|
params: {
|
|
- currentPage: page.currentPage,
|
|
|
|
- pageSize: page.pageSize
|
|
|
|
|
|
+ currentPage: this.page.currentPage,
|
|
|
|
+ pageSize: this.page.pageSize
|
|
}
|
|
}
|
|
}).then(response => {
|
|
}).then(response => {
|
|
this.tableData = response.data.records
|
|
this.tableData = response.data.records
|
|
@@ -532,7 +507,7 @@ export default {
|
|
},
|
|
},
|
|
// getElectricFieldList() {
|
|
// getElectricFieldList() {
|
|
// // 获取所有场站
|
|
// // 获取所有场站
|
|
- // this.$axios("/parsingInfo/getElectricField").then(response => {
|
|
|
|
|
|
+ // fetchElectricFieldList().then(response => {
|
|
// this.stationCodeList = response.data
|
|
// this.stationCodeList = response.data
|
|
// this.tableLoading = false
|
|
// this.tableLoading = false
|
|
// }).catch((e) => {
|
|
// }).catch((e) => {
|
|
@@ -541,55 +516,77 @@ export default {
|
|
// },
|
|
// },
|
|
destoryformula() {
|
|
destoryformula() {
|
|
// 清空公式区字段
|
|
// 清空公式区字段
|
|
- if (this.tempformulasign == 'form.preTime') {
|
|
|
|
- this.form.preTime = ''
|
|
|
|
- } else if (this.tempformulasign == 'form.t') {
|
|
|
|
|
|
+ if (this.tempformulasign == 'form.time') {
|
|
|
|
+ this.form.time = ''
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.t') {
|
|
this.form.t = ''
|
|
this.form.t = ''
|
|
- } else if (this.tempformulasign == 'form.rh') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.rh') {
|
|
this.form.rh = ''
|
|
this.form.rh = ''
|
|
- } else if (this.tempformulasign == 'form.pressure') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.pressure') {
|
|
this.form.pressure = ''
|
|
this.form.pressure = ''
|
|
- } else if (this.tempformulasign == 'form.lwr') {
|
|
|
|
- this.form.lwr = ''
|
|
|
|
- } else if (this.tempformulasign == 'form.swr') {
|
|
|
|
- this.form.swr = ''
|
|
|
|
- } else if (this.tempformulasign == 'form.directRadiation') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.globalRadiation') {
|
|
|
|
+ this.form.globalRadiation = ''
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.directRadiation') {
|
|
this.form.directRadiation = ''
|
|
this.form.directRadiation = ''
|
|
- } else if (this.tempformulasign == 'form.diffuseRadiation') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.diffuseRadiation') {
|
|
this.form.diffuseRadiation = ''
|
|
this.form.diffuseRadiation = ''
|
|
- } else if (this.tempformulasign == 'form.ws10') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws10') {
|
|
this.form.ws10 = ''
|
|
this.form.ws10 = ''
|
|
- } else if (this.tempformulasign == 'form.wd10') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd10') {
|
|
this.form.wd10 = ''
|
|
this.form.wd10 = ''
|
|
- } else if (this.tempformulasign == 'form.ws30') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws30') {
|
|
this.form.ws30 = ''
|
|
this.form.ws30 = ''
|
|
- } else if (this.tempformulasign == 'form.wd30') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd30') {
|
|
this.form.wd30 = ''
|
|
this.form.wd30 = ''
|
|
- } else if (this.tempformulasign == 'form.ws50') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws50') {
|
|
this.form.ws50 = ''
|
|
this.form.ws50 = ''
|
|
- } else if (this.tempformulasign == 'form.wd50') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd50') {
|
|
this.form.wd50 = ''
|
|
this.form.wd50 = ''
|
|
- } else if (this.tempformulasign == 'form.ws70') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws70') {
|
|
this.form.ws70 = ''
|
|
this.form.ws70 = ''
|
|
- } else if (this.tempformulasign == 'form.wd70') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd70') {
|
|
this.form.wd70 = ''
|
|
this.form.wd70 = ''
|
|
- } else if (this.tempformulasign == 'form.ws80') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws80') {
|
|
this.form.ws80 = ''
|
|
this.form.ws80 = ''
|
|
- } else if (this.tempformulasign == 'form.wd80') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd80') {
|
|
this.form.wd80 = ''
|
|
this.form.wd80 = ''
|
|
- } else if (this.tempformulasign == 'form.ws90') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws90') {
|
|
this.form.ws90 = ''
|
|
this.form.ws90 = ''
|
|
- } else if (this.tempformulasign == 'form.wd90') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd90') {
|
|
this.form.wd90 = ''
|
|
this.form.wd90 = ''
|
|
- } else if (this.tempformulasign == 'form.ws100') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws100') {
|
|
this.form.ws100 = ''
|
|
this.form.ws100 = ''
|
|
- } else if (this.tempformulasign == 'form.wd100') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd100') {
|
|
this.form.wd100 = ''
|
|
this.form.wd100 = ''
|
|
- } else if (this.tempformulasign == 'form.ws170') {
|
|
|
|
- this.form.ws170 = ''
|
|
|
|
- } else if (this.tempformulasign == 'form.wd170') {
|
|
|
|
- this.form.wd170 = ''
|
|
|
|
}
|
|
}
|
|
|
|
+ else if (this.tempformulasign == 'form.wsHubHeight') {
|
|
|
|
+ this.form.wsHubHeight = ''
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wdHubHeight') {
|
|
|
|
+ this.form.wdHubHeight = ''
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
this.clearformula()
|
|
this.clearformula()
|
|
},
|
|
},
|
|
clearformula() {
|
|
clearformula() {
|
|
@@ -623,7 +620,7 @@ export default {
|
|
this.editinfo = editname
|
|
this.editinfo = editname
|
|
},
|
|
},
|
|
genformula() {
|
|
genformula() {
|
|
- if (this.tempformulasign == '') {
|
|
|
|
|
|
+ if (this.tempformulasign==''){
|
|
this.$message.warning('请先选定左侧公式项')
|
|
this.$message.warning('请先选定左侧公式项')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -650,77 +647,89 @@ export default {
|
|
resultStr = resultStr + '<=>' + this.pfform.timeformat
|
|
resultStr = resultStr + '<=>' + this.pfform.timeformat
|
|
}
|
|
}
|
|
// 将生成的公式赋值到左侧表格中
|
|
// 将生成的公式赋值到左侧表格中
|
|
- if (this.tempformulasign == 'form.preTime') {
|
|
|
|
- this.form.preTime = resultStr
|
|
|
|
- } else if (this.tempformulasign == 'form.t') {
|
|
|
|
|
|
+ if (this.tempformulasign == 'form.time') {
|
|
|
|
+ this.form.time = resultStr
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.t') {
|
|
this.form.t = resultStr
|
|
this.form.t = resultStr
|
|
- } else if (this.tempformulasign == 'form.rh') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.rh') {
|
|
this.form.rh = resultStr
|
|
this.form.rh = resultStr
|
|
- } else if (this.tempformulasign == 'form.pressure') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.pressure') {
|
|
this.form.pressure = resultStr
|
|
this.form.pressure = resultStr
|
|
- } else if (this.tempformulasign == 'form.lwr') {
|
|
|
|
- this.form.lwr = resultStr
|
|
|
|
- } else if (this.tempformulasign == 'form.swr') {
|
|
|
|
- this.form.swr = resultStr
|
|
|
|
- } else if (this.tempformulasign == 'form.directRadiation') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.globalRadiation') {
|
|
|
|
+ this.form.globalRadiation = resultStr
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.directRadiation') {
|
|
this.form.directRadiation = resultStr
|
|
this.form.directRadiation = resultStr
|
|
- } else if (this.tempformulasign == 'form.diffuseRadiation') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.diffuseRadiation') {
|
|
this.form.diffuseRadiation = resultStr
|
|
this.form.diffuseRadiation = resultStr
|
|
- } else if (this.tempformulasign == 'form.ws10') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws10') {
|
|
this.form.ws10 = resultStr
|
|
this.form.ws10 = resultStr
|
|
- } else if (this.tempformulasign == 'form.wd10') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd10') {
|
|
this.form.wd10 = resultStr
|
|
this.form.wd10 = resultStr
|
|
- } else if (this.tempformulasign == 'form.ws30') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws30') {
|
|
this.form.ws30 = resultStr
|
|
this.form.ws30 = resultStr
|
|
- } else if (this.tempformulasign == 'form.wd30') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd30') {
|
|
this.form.wd30 = resultStr
|
|
this.form.wd30 = resultStr
|
|
- } else if (this.tempformulasign == 'form.ws50') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws50') {
|
|
this.form.ws50 = resultStr
|
|
this.form.ws50 = resultStr
|
|
- } else if (this.tempformulasign == 'form.wd50') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd50') {
|
|
this.form.wd50 = resultStr
|
|
this.form.wd50 = resultStr
|
|
- } else if (this.tempformulasign == 'form.ws70') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws70') {
|
|
this.form.ws70 = resultStr
|
|
this.form.ws70 = resultStr
|
|
- } else if (this.tempformulasign == 'form.wd70') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd70') {
|
|
this.form.wd70 = resultStr
|
|
this.form.wd70 = resultStr
|
|
- } else if (this.tempformulasign == 'form.ws80') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws80') {
|
|
this.form.ws80 = resultStr
|
|
this.form.ws80 = resultStr
|
|
- } else if (this.tempformulasign == 'form.wd80') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd80') {
|
|
this.form.wd80 = resultStr
|
|
this.form.wd80 = resultStr
|
|
- } else if (this.tempformulasign == 'form.ws90') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws90') {
|
|
this.form.ws90 = resultStr
|
|
this.form.ws90 = resultStr
|
|
- } else if (this.tempformulasign == 'form.wd90') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd90') {
|
|
this.form.wd90 = resultStr
|
|
this.form.wd90 = resultStr
|
|
- } else if (this.tempformulasign == 'form.ws100') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.ws100') {
|
|
this.form.ws100 = resultStr
|
|
this.form.ws100 = resultStr
|
|
- } else if (this.tempformulasign == 'form.wd100') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wd100') {
|
|
this.form.wd100 = resultStr
|
|
this.form.wd100 = resultStr
|
|
- } else if (this.tempformulasign == 'form.ws170') {
|
|
|
|
- this.form.ws170 = resultStr
|
|
|
|
- } else if (this.tempformulasign == 'form.wd170') {
|
|
|
|
- this.form.wd170 = resultStr
|
|
|
|
}
|
|
}
|
|
|
|
+ else if (this.tempformulasign == 'form.wsHubHeight') {
|
|
|
|
+ this.form.wsHubHeight = resultStr
|
|
|
|
+ }
|
|
|
|
+ else if (this.tempformulasign == 'form.wdHubHeight') {
|
|
|
|
+ this.form.wdHubHeight = resultStr
|
|
|
|
+ }
|
|
|
|
+
|
|
this.timer = new Date().getTime()
|
|
this.timer = new Date().getTime()
|
|
this.clearformula()
|
|
this.clearformula()
|
|
},
|
|
},
|
|
/*保存*/
|
|
/*保存*/
|
|
handleSave(formName) {
|
|
handleSave(formName) {
|
|
- if (!this.form.preTime || !this.form.dataType
|
|
|
|
- // !this.form.fileName || || this.form.stationCode == ""
|
|
|
|
|
|
+ if (
|
|
|
|
+ // !this.form.fileName ||
|
|
|
|
+ !this.form.time || !this.form.dataType
|
|
|
|
+ // || this.form.stationCode==""
|
|
) {
|
|
) {
|
|
this.$message.warning('填写必填项');
|
|
this.$message.warning('填写必填项');
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
- // const data = this.form.stationCode
|
|
|
|
- // let data1 = "";
|
|
|
|
- // for (let n = 0; n < data.length; n++) {
|
|
|
|
- // for (let j = 0; j < this.stationCodeList.length; j++) {
|
|
|
|
- // if (data[n] == this.stationCodeList[j]["stationCode"]) {
|
|
|
|
- // data1 = data1 + this.stationCodeList[j]["stationCode"] + ","
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // data1 = data1.substr(0, data1.length - 1)
|
|
|
|
- // this.form.stationCode = data1
|
|
|
|
if (this.saveFlag === 1) {
|
|
if (this.saveFlag === 1) {
|
|
this.$axios.post("/parsingNwp", this.form).then(response => {
|
|
this.$axios.post("/parsingNwp", this.form).then(response => {
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
@@ -748,15 +757,14 @@ export default {
|
|
this.saveFlag = 1
|
|
this.saveFlag = 1
|
|
this.info = ''
|
|
this.info = ''
|
|
this.form = {
|
|
this.form = {
|
|
- fileName: '',
|
|
|
|
- preTime: '',
|
|
|
|
|
|
+ // fileName: '',
|
|
|
|
+ time: '',
|
|
dataType: 'm',
|
|
dataType: 'm',
|
|
// stationCode: '',
|
|
// stationCode: '',
|
|
t: '',
|
|
t: '',
|
|
rh: '',
|
|
rh: '',
|
|
pressure: '',
|
|
pressure: '',
|
|
- lwr: '',
|
|
|
|
- swr: '',
|
|
|
|
|
|
+ globalRadiation: '',
|
|
directRadiation: '',
|
|
directRadiation: '',
|
|
diffuseRadiation: '',
|
|
diffuseRadiation: '',
|
|
ws10: '',
|
|
ws10: '',
|
|
@@ -773,8 +781,8 @@ export default {
|
|
wd90: '',
|
|
wd90: '',
|
|
ws100: '',
|
|
ws100: '',
|
|
wd100: '',
|
|
wd100: '',
|
|
- ws170: '',
|
|
|
|
- wd170: ''
|
|
|
|
|
|
+ wsHubHeight: '',
|
|
|
|
+ wdHubHeight: ''
|
|
}
|
|
}
|
|
this.clearformula()
|
|
this.clearformula()
|
|
this.visible = true
|
|
this.visible = true
|
|
@@ -782,7 +790,7 @@ export default {
|
|
/*上报对象编辑*/
|
|
/*上报对象编辑*/
|
|
handleEdit(row) {
|
|
handleEdit(row) {
|
|
this.saveFlag = 2
|
|
this.saveFlag = 2
|
|
- let newRow = Object.assign({}, row)
|
|
|
|
|
|
+ let newRow = Object.assign({},row)
|
|
// let tempStationCode = newRow.stationCode.split(',')
|
|
// let tempStationCode = newRow.stationCode.split(',')
|
|
this.form = newRow
|
|
this.form = newRow
|
|
// this.form.stationCode = tempStationCode
|
|
// this.form.stationCode = tempStationCode
|