|
@@ -10,56 +10,57 @@
|
|
|
<template slot-scope="props">
|
|
|
<table style="width: 100%;text-align: left">
|
|
|
<tr>
|
|
|
- <td>温度瞬时公式:{{ props.row.tInst }}</td>
|
|
|
- <td>湿度瞬时公式:{{ props.row.rhInst }}</td>
|
|
|
- <td>气压瞬时公式:{{ props.row.paInst }}</td>
|
|
|
+ <td>温度公式:{{ props.row.t }}</td>
|
|
|
+ <td>湿度公式:{{ props.row.rh }}</td>
|
|
|
+ <td>气压公式:{{ props.row.pa }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<tr>
|
|
|
- <td>10米风速瞬时公式:{{ props.row.wsInst10 }}</td>
|
|
|
- <td>10米风向瞬时公式:{{ props.row.wdInst10 }}</td>
|
|
|
- <td>30米风速瞬时公式:{{ props.row.wsInst30 }}</td>
|
|
|
+ <td>10米风速公式:{{ props.row.ws10 }}</td>
|
|
|
+ <td>10米风向公式:{{ props.row.wd10 }}</td>
|
|
|
+ <td>30米风速公式:{{ props.row.ws30 }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>30米风向瞬时公式:{{ props.row.wdInst30 }}</td>
|
|
|
- <td>50米风速瞬时公式:{{ props.row.wsInst50 }}</td>
|
|
|
- <td>50米风向瞬时公式:{{ props.row.wdInst50 }}</td>
|
|
|
+ <td>30米风向公式:{{ props.row.wd30 }}</td>
|
|
|
+ <td>50米风速公式:{{ props.row.ws50 }}</td>
|
|
|
+ <td>50米风向公式:{{ props.row.wd50 }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>60米风速瞬时公式:{{ props.row.wsInst60 }}</td>
|
|
|
- <td>60米风向瞬时公式:{{ props.row.wdInst60 }}</td>
|
|
|
- <td>70米风速瞬时公式:{{ props.row.wsInst70 }}</td>
|
|
|
+ <td>60米风速公式:{{ props.row.ws60 }}</td>
|
|
|
+ <td>60米风向公式:{{ props.row.wd60 }}</td>
|
|
|
+ <td>70米风速公式:{{ props.row.ws70 }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>70米风向瞬时公式:{{ props.row.wdInst70 }}</td>
|
|
|
- <td>80米风速瞬时公式:{{ props.row.wsInst80 }}</td>
|
|
|
- <td>80米风向瞬时公式:{{ props.row.wdInst80 }}</td>
|
|
|
+ <td>70米风向公式:{{ props.row.wd70 }}</td>
|
|
|
+ <td>80米风速公式:{{ props.row.ws80 }}</td>
|
|
|
+ <td>80米风向公式:{{ props.row.wd80 }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>90米风速瞬时公式:{{ props.row.wsInst90 }}</td>
|
|
|
- <td>90米风向瞬时公式:{{ props.row.wdInst90 }}</td>
|
|
|
- <td>100米风速瞬时公式:{{ props.row.wsInst100 }}</td>
|
|
|
+ <td>90米风速公式:{{ props.row.ws90 }}</td>
|
|
|
+ <td>90米风向公式:{{ props.row.wd90 }}</td>
|
|
|
+ <td>100米风速公式:{{ props.row.ws100 }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>100米风向瞬时公式:{{ props.row.wdInst100 }}</td>
|
|
|
- <td>110米风速瞬时公式:{{ props.row.wsInst110 }}</td>
|
|
|
- <td>110米风向瞬时公式:{{ props.row.wdInst110 }}</td>
|
|
|
+ <td>100米风向公式:{{ props.row.wd100 }}</td>
|
|
|
+ <td>110米风速公式:{{ props.row.ws110 }}</td>
|
|
|
+ <td>110米风向公式:{{ props.row.wd110 }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>120米风速瞬时公式:{{ props.row.wsInst120 }}</td>
|
|
|
- <td>120米风向瞬时公式:{{ props.row.wdInst120 }}</td>
|
|
|
- <td>轮毂风速瞬时公式:{{ props.row.wsInstHubHeight }}</td>
|
|
|
+ <td>120米风速公式:{{ props.row.ws120 }}</td>
|
|
|
+ <td>120米风向公式:{{ props.row.wd120 }}</td>
|
|
|
+ <td>轮毂风速公式:{{ props.row.wsHubHeight }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>轮毂风向瞬时公式:{{ props.row.wdInstHubHeight }}</td>
|
|
|
+ <td>轮毂风向公式:{{ props.row.wdHubHeight }}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</template>
|
|
|
</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="time" align="center" label="预测时间公式" width="300px"></el-table-column>
|
|
|
- <el-table-column prop="stationCode" align="center" label="场站编号"></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="time" 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">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" icon="el-icon-edit" @click="handleEdit(scope.row)">编辑</el-button>
|
|
@@ -92,14 +93,14 @@
|
|
|
<div class="grid-content bg-purple">
|
|
|
<el-form v-model="form" ref="form" :key="timer">
|
|
|
<el-row :gutter="16">
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item prop="fileName" label-width="150px">
|
|
|
- <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-form-item prop="fileName" label-width="150px">-->
|
|
|
+<!-- <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-form-item prop="dataType" label-width="150px">
|
|
|
<span slot="label">
|
|
@@ -115,22 +116,22 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item prop="stationCode" label-width="150px">
|
|
|
- <span slot="label">
|
|
|
- <font color="red">*</font>场站编号
|
|
|
- </span>
|
|
|
- <el-select v-model="form.stationCode" multiple clearable @focus="clearformula" style="width: 100%">
|
|
|
- <el-option
|
|
|
- v-for="item in this.stationCodeList"
|
|
|
- :key="item.stationCode"
|
|
|
- :label="item.stationCode"
|
|
|
- :value="item.stationCode"/>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+<!-- <el-row>-->
|
|
|
+<!-- <el-col :span="24">-->
|
|
|
+<!-- <el-form-item prop="stationCode" label-width="150px">-->
|
|
|
+<!-- <span slot="label">-->
|
|
|
+<!-- <font color="red">*</font>场站编号-->
|
|
|
+<!-- </span>-->
|
|
|
+<!-- <el-select v-model="form.stationCode" multiple clearable @focus="clearformula" style="width: 100%">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="item in this.stationCodeList"-->
|
|
|
+<!-- :key="item.stationCode"-->
|
|
|
+<!-- :label="item.stationCode"-->
|
|
|
+<!-- :value="item.stationCode"/>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- </el-row>-->
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item prop="time" label-width="150px" class="formulaColor">
|
|
@@ -142,244 +143,244 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="tInst" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="t" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 温度瞬时公式
|
|
|
+ 温度公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.tInst" readonly
|
|
|
- @click.native="ftck(form.tInst,'form.tInst','(温度瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.t" readonly
|
|
|
+ @click.native="ftck(form.t,'form.t','(温度)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="rhInst" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="rh" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 湿度瞬时公式
|
|
|
+ 湿度公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.rhInst" readonly
|
|
|
- @click.native="ftck(form.rhInst,'form.rhInst','(湿度瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.rh" readonly
|
|
|
+ @click.native="ftck(form.rh,'form.rh','(湿度)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="paInst" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="pa" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 气压瞬时公式
|
|
|
+ 气压公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.paInst" readonly
|
|
|
- @click.native="ftck(form.paInst,'form.paInst','(气压瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.pa" readonly
|
|
|
+ @click.native="ftck(form.pa,'form.pa','(气压)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst10" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws10" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 10米风速瞬时公式
|
|
|
+ 10米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst10" readonly
|
|
|
- @click.native="ftck(form.wsInst10,'form.wsInst10','(10米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws10" readonly
|
|
|
+ @click.native="ftck(form.ws10,'form.ws10','(10米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst10" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd10" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 10米风向瞬时公式
|
|
|
+ 10米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst10" readonly
|
|
|
- @click.native="ftck(form.wdInst10,'form.wdInst10','(10米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd10" readonly
|
|
|
+ @click.native="ftck(form.wd10,'form.wd10','(10米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst30" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws30" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 30米风速瞬时公式
|
|
|
+ 30米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst30" readonly
|
|
|
- @click.native="ftck(form.wsInst30,'form.wsInst30','(30米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws30" readonly
|
|
|
+ @click.native="ftck(form.ws30,'form.ws30','(30米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst30" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd30" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 30米风向瞬时公式
|
|
|
+ 30米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst30" readonly
|
|
|
- @click.native="ftck(form.wdInst30,'form.wdInst30','(30米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd30" readonly
|
|
|
+ @click.native="ftck(form.wd30,'form.wd30','(30米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst50" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws50" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 50米风速瞬时公式
|
|
|
+ 50米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst50" readonly
|
|
|
- @click.native="ftck(form.wsInst50,'form.wsInst50','(50米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws50" readonly
|
|
|
+ @click.native="ftck(form.ws50,'form.ws50','(50米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst50" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd50" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 50米风向瞬时公式
|
|
|
+ 50米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst50" readonly
|
|
|
- @click.native="ftck(form.wdInst50,'form.wdInst50','(50米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd50" readonly
|
|
|
+ @click.native="ftck(form.wd50,'form.wd50','(50米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst60" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws60" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 60米风速瞬时公式
|
|
|
+ 60米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst60" readonly
|
|
|
- @click.native="ftck(form.wsInst60,'form.wsInst60','(60米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws60" readonly
|
|
|
+ @click.native="ftck(form.ws60,'form.ws60','(60米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst60" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd60" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 60米风向瞬时公式
|
|
|
+ 60米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst60" readonly
|
|
|
- @click.native="ftck(form.wdInst60,'form.wdInst60','(60米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd60" readonly
|
|
|
+ @click.native="ftck(form.wd60,'form.wd60','(60米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst70" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws70" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 70米风速瞬时公式
|
|
|
+ 70米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst70" readonly
|
|
|
- @click.native="ftck(form.wsInst70,'form.wsInst70','(70米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws70" readonly
|
|
|
+ @click.native="ftck(form.ws70,'form.ws70','(70米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst70" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd70" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 70米风向瞬时公式
|
|
|
+ 70米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst70" readonly
|
|
|
- @click.native="ftck(form.wdInst70,'form.wdInst70','(70米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd70" readonly
|
|
|
+ @click.native="ftck(form.wd70,'form.wd70','(70米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst80" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws80" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 80米风速瞬时公式
|
|
|
+ 80米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst80" readonly
|
|
|
- @click.native="ftck(form.wsInst80,'form.wsInst80','(80米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws80" readonly
|
|
|
+ @click.native="ftck(form.ws80,'form.ws80','(80米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst80" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd80" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 80米风向瞬时公式
|
|
|
+ 80米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst80" readonly
|
|
|
- @click.native="ftck(form.wdInst80,'form.wdInst80','(80米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd80" readonly
|
|
|
+ @click.native="ftck(form.wd80,'form.wd80','(80米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst90" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws90" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 90米风速瞬时公式
|
|
|
+ 90米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst90" readonly
|
|
|
- @click.native="ftck(form.wsInst90,'form.wsInst90','(90米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws90" readonly
|
|
|
+ @click.native="ftck(form.ws90,'form.ws90','(90米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst90" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd90" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 90米风向瞬时公式
|
|
|
+ 90米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst90" readonly
|
|
|
- @click.native="ftck(form.wdInst90,'form.wdInst90','(90米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd90" readonly
|
|
|
+ @click.native="ftck(form.wd90,'form.wd90','(90米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst100" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws100" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 100米风速瞬时公式
|
|
|
+ 100米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst100" readonly
|
|
|
- @click.native="ftck(form.wsInst100,'form.wsInst100','(100米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws100" readonly
|
|
|
+ @click.native="ftck(form.ws100,'form.ws100','(100米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst100" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd100" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 100米风向瞬时公式
|
|
|
+ 100米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst100" readonly
|
|
|
- @click.native="ftck(form.wdInst100,'form.wdInst100','(100米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd100" readonly
|
|
|
+ @click.native="ftck(form.wd100,'form.wd100','(100米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst110" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws110" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 110米风速瞬时公式
|
|
|
+ 110米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst110" readonly
|
|
|
- @click.native="ftck(form.wsInst110,'form.wsInst110','(110米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws110" readonly
|
|
|
+ @click.native="ftck(form.ws110,'form.ws110','(110米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst110" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd110" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 110米风向瞬时公式
|
|
|
+ 110米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst110" readonly
|
|
|
- @click.native="ftck(form.wdInst110,'form.wdInst110','(110米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd110" readonly
|
|
|
+ @click.native="ftck(form.wd110,'form.wd110','(110米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInst120" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="ws120" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 120米风速瞬时公式
|
|
|
+ 120米风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInst120" readonly
|
|
|
- @click.native="ftck(form.wsInst120,'form.wsInst120','(120米风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.ws120" readonly
|
|
|
+ @click.native="ftck(form.ws120,'form.ws120','(120米风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInst120" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wd120" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 120米风向瞬时公式
|
|
|
+ 120米风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInst120" readonly
|
|
|
- @click.native="ftck(form.wdInst120,'form.wdInst120','(120米风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wd120" readonly
|
|
|
+ @click.native="ftck(form.wd120,'form.wd120','(120米风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wsInstHubHeight" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wsHubHeight" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 轮毂风速瞬时公式
|
|
|
+ 轮毂风速公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wsInstHubHeight" readonly
|
|
|
- @click.native="ftck(form.wsInstHubHeight,'form.wsInstHubHeight','(轮毂风速瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wsHubHeight" readonly
|
|
|
+ @click.native="ftck(form.wsHubHeight,'form.wsHubHeight','(轮毂风速)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item prop="wdInstHubHeight" label-width="150px" class="formulaColor">
|
|
|
+ <el-form-item prop="wdHubHeight" label-width="150px" class="formulaColor">
|
|
|
<span slot="label">
|
|
|
- 轮毂风向瞬时公式
|
|
|
+ 轮毂风向公式
|
|
|
</span>
|
|
|
- <el-input v-model="form.wdInstHubHeight" readonly
|
|
|
- @click.native="ftck(form.wdInstHubHeight,'form.wdInstHubHeight','(轮毂风向瞬时)')"></el-input>
|
|
|
+ <el-input v-model="form.wdHubHeight" readonly
|
|
|
+ @click.native="ftck(form.wdHubHeight,'form.wdHubHeight','(轮毂风向)')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -460,7 +461,7 @@ export default {
|
|
|
name: "index",
|
|
|
data() {
|
|
|
return {
|
|
|
- stationCodeList: [],
|
|
|
+ // stationCodeList: [],
|
|
|
dataType: [
|
|
|
{value: 's', label: '时间单行'},
|
|
|
{value: 'm', label: '时间多行'}
|
|
@@ -486,35 +487,35 @@ export default {
|
|
|
visible: false,
|
|
|
|
|
|
form: {
|
|
|
- fileName: '',
|
|
|
+ // fileName: '',
|
|
|
time: '',
|
|
|
- dataType: '',
|
|
|
- stationCode: '',
|
|
|
- tInst: '',
|
|
|
- rhInst: '',
|
|
|
- paInst: '',
|
|
|
- wsInst10: '',
|
|
|
- wdInst10: '',
|
|
|
- wsInst30: '',
|
|
|
- wdInst30: '',
|
|
|
- wsInst50: '',
|
|
|
- wdInst50: '',
|
|
|
- wsInst60: '',
|
|
|
- wdInst60: '',
|
|
|
- wsInst70: '',
|
|
|
- wdInst70: '',
|
|
|
- wsInst80: '',
|
|
|
- wdInst80: '',
|
|
|
- wsInst90: '',
|
|
|
- wdInst90: '',
|
|
|
- wsInst100: '',
|
|
|
- wdInst100: '',
|
|
|
- wsInst110: '',
|
|
|
- wdInst110: '',
|
|
|
- wsInst120: '',
|
|
|
- wdInst120: '',
|
|
|
- wsInstHubHeight: '',
|
|
|
- wdInstHubHeight: ''
|
|
|
+ dataType: 's',
|
|
|
+ // stationCode: '',
|
|
|
+ t: '',
|
|
|
+ rh: '',
|
|
|
+ pa: '',
|
|
|
+ ws10: '',
|
|
|
+ wd10: '',
|
|
|
+ ws30: '',
|
|
|
+ wd30: '',
|
|
|
+ ws50: '',
|
|
|
+ wd50: '',
|
|
|
+ ws60: '',
|
|
|
+ wd60: '',
|
|
|
+ ws70: '',
|
|
|
+ wd70: '',
|
|
|
+ ws80: '',
|
|
|
+ wd80: '',
|
|
|
+ ws90: '',
|
|
|
+ wd90: '',
|
|
|
+ ws100: '',
|
|
|
+ wd100: '',
|
|
|
+ ws110: '',
|
|
|
+ wd110: '',
|
|
|
+ ws120: '',
|
|
|
+ wd120: '',
|
|
|
+ wsHubHeight: '',
|
|
|
+ wdHubHeight: ''
|
|
|
},
|
|
|
pfform: {
|
|
|
rownumber: '',
|
|
@@ -527,7 +528,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getElectricFieldList()
|
|
|
+ // this.getElectricFieldList()
|
|
|
this.getTableList()
|
|
|
},
|
|
|
methods: {
|
|
@@ -542,106 +543,85 @@ export default {
|
|
|
},
|
|
|
getTableList() {
|
|
|
this.tableLoading = true
|
|
|
+ const page = this.page
|
|
|
+
|
|
|
// 获取列表
|
|
|
- this.$axios.get("/parsingCft/page",Object.assign({
|
|
|
- current: this.page.currentPage,
|
|
|
- size: this.page.pageSize
|
|
|
- })).then(response => {
|
|
|
- this.tableData = response.data.data.records
|
|
|
- this.page.total = response.data.data.total
|
|
|
- this.tableLoading = false
|
|
|
- }).catch((e) => {
|
|
|
- this.tableLoading = false
|
|
|
- })
|
|
|
- },
|
|
|
- getElectricFieldList() {
|
|
|
- // 获取所有场站
|
|
|
- this.$axios("/parsingInfo/getElectricField").then(response => {
|
|
|
- this.stationCodeList = response.data.data
|
|
|
+ this.$axios.get("/parsingCft/page", {
|
|
|
+ params: {
|
|
|
+ currentPage: page.currentPage,
|
|
|
+ pageSize: page.pageSize
|
|
|
+ }
|
|
|
+ }).then(response => {
|
|
|
+ this.tableData = response.data.records
|
|
|
+ this.page.total = response.data.total
|
|
|
this.tableLoading = false
|
|
|
}).catch((e) => {
|
|
|
this.tableLoading = false
|
|
|
})
|
|
|
},
|
|
|
+ // getElectricFieldList() {
|
|
|
+ // // 获取所有场站
|
|
|
+ // this.$axios("/parsingInfo/getElectricField").then(response => {
|
|
|
+ // this.stationCodeList = response.data
|
|
|
+ // this.tableLoading = false
|
|
|
+ // }).catch((e) => {
|
|
|
+ // this.tableLoading = false
|
|
|
+ // })
|
|
|
+ // },
|
|
|
destoryformula() {
|
|
|
// 清空公式区字段
|
|
|
if (this.tempformulasign == 'form.time') {
|
|
|
this.form.time = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.tInst') {
|
|
|
- this.form.tInst = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.rhInst') {
|
|
|
- this.form.rhInst = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.paInst') {
|
|
|
- this.form.paInst = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst10') {
|
|
|
- this.form.wsInst10 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst10') {
|
|
|
- this.form.wdInst10 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst30') {
|
|
|
- this.form.wsInst30 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst30') {
|
|
|
- this.form.wdInst30 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst50') {
|
|
|
- this.form.wsInst50 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst50') {
|
|
|
- this.form.wdInst50 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst60') {
|
|
|
- this.form.wsInst60 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst60') {
|
|
|
- this.form.wdInst60 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst70') {
|
|
|
- this.form.wsInst70 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst70') {
|
|
|
- this.form.wdInst70 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst80') {
|
|
|
- this.form.wsInst80 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst80') {
|
|
|
- this.form.wdInst80 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst90') {
|
|
|
- this.form.wsInst90 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst90') {
|
|
|
- this.form.wdInst90 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst100') {
|
|
|
- this.form.wsInst100 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst100') {
|
|
|
- this.form.wdInst100 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst110') {
|
|
|
- this.form.wsInst110 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst110') {
|
|
|
- this.form.wdInst110 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst120') {
|
|
|
- this.form.wsInst120 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst120') {
|
|
|
- this.form.wdInst120 = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInstHubHeight') {
|
|
|
- this.form.wsInstHubHeight = ''
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInstHubHeight') {
|
|
|
- this.form.wdInstHubHeight = ''
|
|
|
+ } else if (this.tempformulasign == 'form.t') {
|
|
|
+ this.form.t = ''
|
|
|
+ } else if (this.tempformulasign == 'form.rh') {
|
|
|
+ this.form.rh = ''
|
|
|
+ } else if (this.tempformulasign == 'form.pa') {
|
|
|
+ this.form.pa = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws10') {
|
|
|
+ this.form.ws10 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd10') {
|
|
|
+ this.form.wd10 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws30') {
|
|
|
+ this.form.ws30 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd30') {
|
|
|
+ this.form.wd30 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws50') {
|
|
|
+ this.form.ws50 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd50') {
|
|
|
+ this.form.wd50 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws60') {
|
|
|
+ this.form.ws60 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd60') {
|
|
|
+ this.form.wd60 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws70') {
|
|
|
+ this.form.ws70 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd70') {
|
|
|
+ this.form.wd70 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws80') {
|
|
|
+ this.form.ws80 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd80') {
|
|
|
+ this.form.wd80 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws90') {
|
|
|
+ this.form.ws90 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd90') {
|
|
|
+ this.form.wd90 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws100') {
|
|
|
+ this.form.ws100 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd100') {
|
|
|
+ this.form.wd100 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws110') {
|
|
|
+ this.form.ws110 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd110') {
|
|
|
+ this.form.wd110 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.ws120') {
|
|
|
+ this.form.ws120 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wd120') {
|
|
|
+ this.form.wd120 = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wsHubHeight') {
|
|
|
+ this.form.wsHubHeight = ''
|
|
|
+ } else if (this.tempformulasign == 'form.wdHubHeight') {
|
|
|
+ this.form.wdHubHeight = ''
|
|
|
}
|
|
|
this.clearformula()
|
|
|
},
|
|
@@ -676,7 +656,7 @@ export default {
|
|
|
this.editinfo = editname
|
|
|
},
|
|
|
genformula() {
|
|
|
- if (this.tempformulasign==''){
|
|
|
+ if (this.tempformulasign == '') {
|
|
|
this.$message.warning('请先选定左侧公式项')
|
|
|
return
|
|
|
}
|
|
@@ -705,108 +685,85 @@ export default {
|
|
|
// 将生成的公式赋值到左侧表格中
|
|
|
if (this.tempformulasign == 'form.time') {
|
|
|
this.form.time = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.tInst') {
|
|
|
- this.form.tInst = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.rhInst') {
|
|
|
- this.form.rhInst = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.paInst') {
|
|
|
- this.form.paInst = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst10') {
|
|
|
- this.form.wsInst10 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst10') {
|
|
|
- this.form.wdInst10 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst30') {
|
|
|
- this.form.wsInst30 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst30') {
|
|
|
- this.form.wdInst30 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst50') {
|
|
|
- this.form.wsInst50 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst50') {
|
|
|
- this.form.wdInst50 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst60') {
|
|
|
- this.form.wsInst60 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst60') {
|
|
|
- this.form.wdInst60 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst70') {
|
|
|
- this.form.wsInst70 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst70') {
|
|
|
- this.form.wdInst70 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst80') {
|
|
|
- this.form.wsInst80 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst80') {
|
|
|
- this.form.wdInst80 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst90') {
|
|
|
- this.form.wsInst90 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst90') {
|
|
|
- this.form.wdInst90 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst100') {
|
|
|
- this.form.wsInst100 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst100') {
|
|
|
- this.form.wdInst100 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst110') {
|
|
|
- this.form.wsInst110 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst110') {
|
|
|
- this.form.wdInst110 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInst120') {
|
|
|
- this.form.wsInst120 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInst120') {
|
|
|
- this.form.wdInst120 = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wsInstHubHeight') {
|
|
|
- this.form.wsInstHubHeight = resultStr
|
|
|
- }
|
|
|
- else if (this.tempformulasign == 'form.wdInstHubHeight') {
|
|
|
- this.form.wdInstHubHeight = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.t') {
|
|
|
+ this.form.t = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.rh') {
|
|
|
+ this.form.rh = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.pa') {
|
|
|
+ this.form.pa = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws10') {
|
|
|
+ this.form.ws10 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd10') {
|
|
|
+ this.form.wd10 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws30') {
|
|
|
+ this.form.ws30 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd30') {
|
|
|
+ this.form.wd30 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws50') {
|
|
|
+ this.form.ws50 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd50') {
|
|
|
+ this.form.wd50 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws60') {
|
|
|
+ this.form.ws60 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd60') {
|
|
|
+ this.form.wd60 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws70') {
|
|
|
+ this.form.ws70 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd70') {
|
|
|
+ this.form.wd70 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws80') {
|
|
|
+ this.form.ws80 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd80') {
|
|
|
+ this.form.wd80 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws90') {
|
|
|
+ this.form.ws90 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd90') {
|
|
|
+ this.form.wd90 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws100') {
|
|
|
+ this.form.ws100 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd100') {
|
|
|
+ this.form.wd100 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws110') {
|
|
|
+ this.form.ws110 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd110') {
|
|
|
+ this.form.wd110 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.ws120') {
|
|
|
+ this.form.ws120 = resultStr
|
|
|
+ } else if (this.tempformulasign == 'form.wd120') {
|
|
|
+ this.form.wd120 = 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.clearformula()
|
|
|
},
|
|
|
/*保存*/
|
|
|
handleSave(formName) {
|
|
|
- if (!this.form.fileName || !this.form.time || !this.form.dataType || this.form.stationCode=="") {
|
|
|
+ if (!this.form.time || !this.form.dataType
|
|
|
+ //!this.form.fileName || || this.form.stationCode == ""
|
|
|
+ ) {
|
|
|
this.$message.warning('填写必填项');
|
|
|
return false;
|
|
|
} 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
|
|
|
+ // 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) {
|
|
|
- this.$axios.post("/parsingCft",this.form).then(response => {
|
|
|
+ this.$axios.post("/parsingCft", this.form).then(response => {
|
|
|
this.dialogVisible = false
|
|
|
this.getTableList()
|
|
|
this.tableLoading = false
|
|
|
- this.$message.success(response.data.data)
|
|
|
+ this.$message.success(response.data)
|
|
|
}).catch(() => {
|
|
|
this.tableLoading = false
|
|
|
})
|
|
@@ -815,7 +772,7 @@ export default {
|
|
|
this.dialogVisible = false
|
|
|
this.getTableList()
|
|
|
this.tableLoading = false
|
|
|
- this.$message.success(response.data.data)
|
|
|
+ this.$message.success(response.data)
|
|
|
}).catch(() => {
|
|
|
this.tableLoading = false
|
|
|
})
|
|
@@ -827,17 +784,47 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.saveFlag = 1
|
|
|
this.info = ''
|
|
|
- this.form = {}
|
|
|
+ this.form = {
|
|
|
+ // fileName: '',
|
|
|
+ time: '',
|
|
|
+ dataType: 's',
|
|
|
+ // stationCode: '',
|
|
|
+ t: '',
|
|
|
+ rh: '',
|
|
|
+ pa: '',
|
|
|
+ ws10: '',
|
|
|
+ wd10: '',
|
|
|
+ ws30: '',
|
|
|
+ wd30: '',
|
|
|
+ ws50: '',
|
|
|
+ wd50: '',
|
|
|
+ ws60: '',
|
|
|
+ wd60: '',
|
|
|
+ ws70: '',
|
|
|
+ wd70: '',
|
|
|
+ ws80: '',
|
|
|
+ wd80: '',
|
|
|
+ ws90: '',
|
|
|
+ wd90: '',
|
|
|
+ ws100: '',
|
|
|
+ wd100: '',
|
|
|
+ ws110: '',
|
|
|
+ wd110: '',
|
|
|
+ ws120: '',
|
|
|
+ wd120: '',
|
|
|
+ wsHubHeight: '',
|
|
|
+ wdHubHeight: ''
|
|
|
+ }
|
|
|
this.clearformula()
|
|
|
this.visible = true
|
|
|
},
|
|
|
/*上报对象编辑*/
|
|
|
handleEdit(row) {
|
|
|
this.saveFlag = 2
|
|
|
- let newRow = Object.assign({},row)
|
|
|
- let tempStationCode = newRow.stationCode.split(',')
|
|
|
+ let newRow = Object.assign({}, row)
|
|
|
+ // let tempStationCode = newRow.stationCode.split(',')
|
|
|
this.form = newRow
|
|
|
- this.form.stationCode = tempStationCode
|
|
|
+ // this.form.stationCode = tempStationCode
|
|
|
this.clearformula()
|
|
|
this.visible = true
|
|
|
},
|
|
@@ -848,9 +835,9 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- this.$axios.delete("/parsingCft/"+row.id).then(response => {
|
|
|
+ this.$axios.delete("/parsingCft/" + row.id).then(response => {
|
|
|
this.getTableList()
|
|
|
- this.$message.success(response.data.data)
|
|
|
+ this.$message.success(response.data)
|
|
|
})
|
|
|
})
|
|
|
},
|