|
@@ -2,7 +2,7 @@
|
|
|
<div class="chart-container">
|
|
|
<div class="filter">
|
|
|
<div class="timeQuery">
|
|
|
- <el-button size="small" :loading="loading" @click="insert">新增</el-button>
|
|
|
+ <el-button size="small" :loading="loading" @click="insert">{{ this.$t('新增') }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -22,30 +22,30 @@
|
|
|
:cell-style="styleTableStr"
|
|
|
align="center"
|
|
|
:data="tableData">
|
|
|
- <vxe-table-column field="name" title="自定义报表名称" width="12%"></vxe-table-column>
|
|
|
- <vxe-table-column field="dq" title="短期配置(点位)" width="8%"></vxe-table-column>
|
|
|
- <vxe-table-column field="cdq" title="超短期配置(点位)" width="8%"></vxe-table-column>
|
|
|
- <vxe-table-column field="rp" title="实际功率配置" :formatter="rpFormat" width="14%"></vxe-table-column>
|
|
|
- <vxe-table-column field="nwp" title="nwp配置" :formatter="nwpFormat" width="14%"></vxe-table-column>
|
|
|
- <vxe-table-column field="env" title="实时环境数据配置" :formatter="envFormat" width="14%"></vxe-table-column>
|
|
|
- <vxe-table-column field="interval" title="时间间隔" :formatter="intervalFormat" width="12%"></vxe-table-column>
|
|
|
+ <vxe-table-column field="name" :title="this.$t('自定义报表名称')" width="12%"></vxe-table-column>
|
|
|
+ <vxe-table-column field="dq" :title="this.$t('短期配置(点位)')" width="8%"></vxe-table-column>
|
|
|
+ <vxe-table-column field="cdq" :title="this.$t('超短期配置(点位)')" width="8%"></vxe-table-column>
|
|
|
+ <vxe-table-column field="rp" :title="this.$t('实际功率配置')" :formatter="rpFormat" width="14%"></vxe-table-column>
|
|
|
+ <vxe-table-column field="nwp" :title="this.$t('nwp配置')" :formatter="nwpFormat" width="14%"></vxe-table-column>
|
|
|
+ <vxe-table-column field="env" :title="this.$t('实时环境数据配置')" :formatter="envFormat" width="14%"></vxe-table-column>
|
|
|
+ <vxe-table-column field="interval" :title="this.$t('时间间隔')" :formatter="intervalFormat" width="12%"></vxe-table-column>
|
|
|
<!-- <vxe-table-column field="isUpdate" title="是否修改" min-width="60"></vxe-table-column> -->
|
|
|
- <vxe-table-column field="timingRealTime" title="是否定时查询" :formatter="yesOrNoFormat"
|
|
|
+ <vxe-table-column field="timingRealTime" :title="this.$t('是否定时查询')" :formatter="yesOrNoFormat"
|
|
|
width="8%"></vxe-table-column>
|
|
|
- <vxe-table-column width="150px" align="center" title="操作">
|
|
|
+ <vxe-table-column width="150px" align="center" :title="this.$t('操作')">
|
|
|
<template v-slot="{ row }">
|
|
|
<el-button
|
|
|
style="padding: 3px 4px 3px 4px;margin: 2px"
|
|
|
size="mini"
|
|
|
icon="el-icon-edit"
|
|
|
- @click="editRowEvent(row)">编辑
|
|
|
+ @click="editRowEvent(row)">{{this.$t('编辑')}}
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="danger"
|
|
|
style="padding: 3px 4px 3px 4px;margin: 2px"
|
|
|
size="mini"
|
|
|
icon="el-icon-delete"
|
|
|
- @click="remove(row)">删除
|
|
|
+ @click="remove(row)">{{this.$t('删除')}}
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
@@ -62,7 +62,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
- title="导出内容配置"
|
|
|
+ :title="this.$t('导出')"
|
|
|
:visible.sync="dialogVisible"
|
|
|
width="50%">
|
|
|
<div class="drag-box-item">
|
|
@@ -70,8 +70,8 @@
|
|
|
style="margin-top: 20px;margin-right: 20px">
|
|
|
<el-row style="gutter:30" class="row-bg el-row-two" justify="space-between">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="短期:" prop="dq" label-width="150px" style="min-width: 110px">
|
|
|
- <el-select v-model="form.dq" filterable placeholder="请选择" style="width: 100%">
|
|
|
+ <el-form-item :label="this.$t('短期')" prop="dq" label-width="150px" style="min-width: 110px">
|
|
|
+ <el-select v-model="form.dq" filterable style="width: 100%">
|
|
|
<el-option
|
|
|
v-for="item in this.dqOptions"
|
|
|
:key="item.value"
|
|
@@ -81,8 +81,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="超短期:" prop="cdq" label-width="150px" style="min-width: 110px">
|
|
|
- <el-select v-model="form.cdq" filterable placeholder="请选择" style="width: 100%">
|
|
|
+ <el-form-item :label="this.$t('超短期')" prop="cdq" label-width="150px" style="min-width: 110px">
|
|
|
+ <el-select v-model="form.cdq" filterable style="width: 100%">
|
|
|
<el-option
|
|
|
v-for="item in this.cdqOptions"
|
|
|
:key="item.value"
|
|
@@ -94,8 +94,8 @@
|
|
|
</el-row>
|
|
|
<el-row style="gutter:30" class="row-bg el-row-two" justify="space-between">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="nwp点位:" prop="nwpPoint" label-width="150px" style="min-width: 110px">
|
|
|
- <el-select v-model="form.nwpPoint" filterable placeholder="请选择" style="width: 100%">
|
|
|
+ <el-form-item :label="this.$t('nwp点位')" prop="nwpPoint" label-width="150px" style="min-width: 110px">
|
|
|
+ <el-select v-model="form.nwpPoint" filterable style="width: 100%">
|
|
|
<el-option
|
|
|
v-for="item in this.dqOptions"
|
|
|
:key="item.value"
|
|
@@ -105,8 +105,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="nwp属性:" prop="nwpField" label-width="150px" style="min-width: 110px">
|
|
|
- <el-select v-model="form.nwpField" clearable multiple filterable placeholder="请选择" style="width: 100%">
|
|
|
+ <el-form-item :label="this.$t('nwp属性')" prop="nwpField" label-width="150px" style="min-width: 110px">
|
|
|
+ <el-select v-model="form.nwpField" clearable multiple filterable style="width: 100%">
|
|
|
<el-option
|
|
|
v-for="item in this.nwpOptions"
|
|
|
:key="item.value"
|
|
@@ -118,8 +118,8 @@
|
|
|
</el-row>
|
|
|
<el-row style="gutter:30" class="row-bg el-row-two" justify="space-between">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="实际功率:" prop="rp" label-width="150px" style="min-width: 110px">
|
|
|
- <el-select v-model="form.rp" clearable multiple filterable placeholder="请选择" style="width: 100%">
|
|
|
+ <el-form-item :label="this.$t('实际功率')" prop="rp" label-width="150px" style="min-width: 110px">
|
|
|
+ <el-select v-model="form.rp" clearable multiple filterable style="width: 100%">
|
|
|
<el-option
|
|
|
v-for="item in this.rpOptions"
|
|
|
:key="item.value"
|
|
@@ -129,7 +129,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="环境数据:" prop="env" label-width="150px" style="min-width: 110px">
|
|
|
+ <el-form-item :label="this.$t('环境数据')" prop="env" label-width="150px" style="min-width: 110px">
|
|
|
<el-cascader
|
|
|
:options="eqOptions"
|
|
|
:props="props"
|
|
@@ -140,8 +140,8 @@
|
|
|
</el-row>
|
|
|
<el-row style="gutter:30" class="row-bg el-row-two" justify="space-between">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="时间间隔:" prop="interval" label-width="150px" style="min-width: 110px">
|
|
|
- <el-select v-model="form.interval" filterable placeholder="请选择" style="width: 100%">
|
|
|
+ <el-form-item :label="this.$t('时间间隔')" prop="interval" label-width="150px" style="min-width: 110px">
|
|
|
+ <el-select v-model="form.interval" filterable style="width: 100%">
|
|
|
<el-option
|
|
|
v-for="item in this.intervalOptions"
|
|
|
:key="item.value"
|
|
@@ -151,8 +151,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="是否定时:" prop="timingRealTime" label-width="150px" style="min-width: 110px">
|
|
|
- <el-select v-model="form.timingRealTime" filterable placeholder="请选择" style="width: 100%">
|
|
|
+ <el-form-item :label="this.$t('是否定时')" prop="timingRealTime" label-width="150px" style="min-width: 110px">
|
|
|
+ <el-select v-model="form.timingRealTime" filterable style="width: 100%">
|
|
|
<el-option
|
|
|
v-for="item in this.yesOrNoOptions"
|
|
|
:key="item.value"
|
|
@@ -164,16 +164,16 @@
|
|
|
</el-row>
|
|
|
<el-row style="gutter:30" class="row-bg el-row-two" justify="space-between">
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="自定义报表名称:" prop="name" label-width="150px" style="min-width: 110px">
|
|
|
- <el-input v-model="form.name" placeholder="必填项" maxlength="32"/>
|
|
|
+ <el-form-item :label="this.$t('自定义报表名称')" prop="name" label-width="150px" style="min-width: 110px">
|
|
|
+ <el-input v-model="form.name" :placeholder="this.$t('必填项')" maxlength="32"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="cancel" style="color: #1f2d3d">取 消</el-button>
|
|
|
- <el-button type="primary" style="color: #1f2d3d" @click="save(form,'form')">保 存</el-button>
|
|
|
+ <el-button @click="cancel" style="color: #1f2d3d">{{this.$t('取消')}}</el-button>
|
|
|
+ <el-button type="primary" style="color: #1f2d3d" @click="save(form,'form')">{{this.$t('确定')}}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
@@ -197,7 +197,7 @@ export default {
|
|
|
}
|
|
|
const nameRule = (rule, value, callback) => {
|
|
|
if (this.form.name == null || this.form.name == '') {
|
|
|
- callback(new Error('自定义表名不能为空!!!'))
|
|
|
+ callback(new Error(this.$t('自定义表名不能为空')))
|
|
|
} else {
|
|
|
for (let i = 0; i < this.tableData.length; i++) {
|
|
|
if (this.form.id == '' || this.form.id == undefined) {
|
|
@@ -229,92 +229,92 @@ export default {
|
|
|
|
|
|
dqOptions: [
|
|
|
{value: '', label: ''},
|
|
|
- {value: '1', label: '第1天'},
|
|
|
- {value: '2', label: '第2天'},
|
|
|
- {value: '3', label: '第3天'}
|
|
|
+ {value: '1', label: this.$t('第1天')},
|
|
|
+ {value: '2', label: this.$t('第2天')},
|
|
|
+ {value: '3', label: this.$t('第3天')}
|
|
|
],
|
|
|
cdqOptions: [
|
|
|
{value: '', label: ''},
|
|
|
- {value: '1', label: '第1点'},
|
|
|
- {value: '2', label: '第2点'},
|
|
|
- {value: '3', label: '第3点'},
|
|
|
- {value: '4', label: '第4点'},
|
|
|
- {value: '5', label: '第5点'},
|
|
|
- {value: '6', label: '第6点'},
|
|
|
- {value: '7', label: '第7点'},
|
|
|
- {value: '8', label: '第8点'},
|
|
|
- {value: '9', label: '第9点'},
|
|
|
- {value: '10', label: '第10点'},
|
|
|
- {value: '11', label: '第11点'},
|
|
|
- {value: '12', label: '第12点'},
|
|
|
- {value: '13', label: '第13点'},
|
|
|
- {value: '14', label: '第14点'},
|
|
|
- {value: '15', label: '第15点'},
|
|
|
- {value: '16', label: '第16点'},
|
|
|
+ {value: '1', label: this.$t('第1点')},
|
|
|
+ {value: '2', label: this.$t('第2点')},
|
|
|
+ {value: '3', label: this.$t('第3点')},
|
|
|
+ {value: '4', label: this.$t('第4点')},
|
|
|
+ {value: '5', label: this.$t('第5点')},
|
|
|
+ {value: '6', label: this.$t('第6点')},
|
|
|
+ {value: '7', label: this.$t('第7点')},
|
|
|
+ {value: '8', label: this.$t('第8点')},
|
|
|
+ {value: '9', label: this.$t('第9点')},
|
|
|
+ {value: '10', label: this.$t('第10点')},
|
|
|
+ {value: '11', label: this.$t('第11点')},
|
|
|
+ {value: '12', label: this.$t('第12点')},
|
|
|
+ {value: '13', label: this.$t('第13点')},
|
|
|
+ {value: '14', label: this.$t('第14点')},
|
|
|
+ {value: '15', label: this.$t('第15点')},
|
|
|
+ {value: '16', label: this.$t('第16点')},
|
|
|
],
|
|
|
nwpOptions: [
|
|
|
- {value: 't', label: '温度'},
|
|
|
- {value: 'rh', label: '湿度'},
|
|
|
- {value: 'pressure', label: '气压'},
|
|
|
- {value: 'swr', label: '短波辐射'},
|
|
|
- {value: 'lwr', label: '长波辐射'},
|
|
|
- {value: 'directRadiation', label: '直辐射'},
|
|
|
- {value: 'diffuseRadiation', label: '散辐射'},
|
|
|
- {value: 'senf', label: '热感通量'},
|
|
|
- {value: 'ws10', label: '10米风速'},
|
|
|
- {value: 'ws20', label: '20米风速'},
|
|
|
- {value: 'ws30', label: '30米风速'},
|
|
|
- {value: 'ws40', label: '40米风速'},
|
|
|
- {value: 'ws50', label: '50米风速'},
|
|
|
- {value: 'ws60', label: '60米风速'},
|
|
|
- {value: 'ws70', label: '70米风速'},
|
|
|
- {value: 'ws80', label: '80米风速'},
|
|
|
- {value: 'ws90', label: '90米风速'},
|
|
|
- {value: 'ws100', label: '100米风速'},
|
|
|
- {value: 'ws110', label: '110米风速'},
|
|
|
- {value: 'ws120', label: '120米风速'},
|
|
|
- {value: 'ws130', label: '130米风速'},
|
|
|
- {value: 'ws140', label: '140米风速'},
|
|
|
- {value: 'ws150', label: '150米风速'},
|
|
|
- {value: 'ws160', label: '160米风速'},
|
|
|
- {value: 'ws170', label: '170米风速'},
|
|
|
- {value: 'ws180', label: '180米风速'},
|
|
|
- {value: 'ws190', label: '190米风速'},
|
|
|
- {value: 'ws200', label: '200米风速'},
|
|
|
- {value: 'wd10', label: '10米风向'},
|
|
|
- {value: 'wd20', label: '20米风向'},
|
|
|
- {value: 'wd30', label: '30米风向'},
|
|
|
- {value: 'wd40', label: '40米风向'},
|
|
|
- {value: 'wd50', label: '50米风向'},
|
|
|
- {value: 'wd60', label: '60米风向'},
|
|
|
- {value: 'wd70', label: '70米风向'},
|
|
|
- {value: 'wd80', label: '80米风向'},
|
|
|
- {value: 'wd90', label: '90米风向'},
|
|
|
- {value: 'wd100', label: '100米风向'},
|
|
|
- {value: 'wd110', label: '110米风向'},
|
|
|
- {value: 'wd120', label: '120米风向'},
|
|
|
- {value: 'wd130', label: '130米风向'},
|
|
|
- {value: 'wd140', label: '140米风向'},
|
|
|
- {value: 'wd150', label: '150米风向'},
|
|
|
- {value: 'wd160', label: '160米风向'},
|
|
|
- {value: 'wd170', label: '170米风向'},
|
|
|
- {value: 'wd180', label: '180米风向'},
|
|
|
- {value: 'wd190', label: '190米风向'},
|
|
|
- {value: 'wd200', label: '200米风向'},
|
|
|
+ {value: 't', label: this.$t('温度')},
|
|
|
+ {value: 'rh', label: this.$t('湿度')},
|
|
|
+ {value: 'pressure', label: this.$t('气压')},
|
|
|
+ {value: 'swr', label: this.$t('短波辐射')},
|
|
|
+ {value: 'lwr', label: this.$t('长波辐射')},
|
|
|
+ {value: 'directRadiation', label: this.$t('直辐射')},
|
|
|
+ {value: 'diffuseRadiation', label: this.$t('散辐射')},
|
|
|
+ {value: 'senf', label: this.$t('热感通量')},
|
|
|
+ {value: 'ws10', label: this.$t('10米风速')},
|
|
|
+ {value: 'ws20', label: this.$t('20米风速')},
|
|
|
+ {value: 'ws30', label: this.$t('30米风速')},
|
|
|
+ {value: 'ws40', label: this.$t('40米风速')},
|
|
|
+ {value: 'ws50', label: this.$t('50米风速')},
|
|
|
+ {value: 'ws60', label: this.$t('60米风速')},
|
|
|
+ {value: 'ws70', label: this.$t('70米风速')},
|
|
|
+ {value: 'ws80', label: this.$t('80米风速')},
|
|
|
+ {value: 'ws90', label: this.$t('90米风速')},
|
|
|
+ {value: 'ws100', label: this.$t('100米风速')},
|
|
|
+ {value: 'ws110', label: this.$t('110米风速')},
|
|
|
+ {value: 'ws120', label: this.$t('120米风速')},
|
|
|
+ {value: 'ws130', label: this.$t('130米风速')},
|
|
|
+ {value: 'ws140', label: this.$t('140米风速')},
|
|
|
+ {value: 'ws150', label: this.$t('150米风速')},
|
|
|
+ {value: 'ws160', label: this.$t('160米风速')},
|
|
|
+ {value: 'ws170', label: this.$t('170米风速')},
|
|
|
+ {value: 'ws180', label: this.$t('180米风速')},
|
|
|
+ {value: 'ws190', label: this.$t('190米风速')},
|
|
|
+ {value: 'ws200', label: this.$t('200米风速')},
|
|
|
+ {value: 'wd10', label: this.$t('10米风向')},
|
|
|
+ {value: 'wd20', label: this.$t('20米风向')},
|
|
|
+ {value: 'wd30', label: this.$t('30米风向')},
|
|
|
+ {value: 'wd40', label: this.$t('40米风向')},
|
|
|
+ {value: 'wd50', label: this.$t('50米风向')},
|
|
|
+ {value: 'wd60', label: this.$t('60米风向')},
|
|
|
+ {value: 'wd70', label: this.$t('70米风向')},
|
|
|
+ {value: 'wd80', label: this.$t('80米风向')},
|
|
|
+ {value: 'wd90', label: this.$t('90米风向')},
|
|
|
+ {value: 'wd100', label: this.$t('100米风向')},
|
|
|
+ {value: 'wd110', label: this.$t('110米风向')},
|
|
|
+ {value: 'wd120', label: this.$t('120米风向')},
|
|
|
+ {value: 'wd130', label: this.$t('130米风向')},
|
|
|
+ {value: 'wd140', label: this.$t('140米风向')},
|
|
|
+ {value: 'wd150', label: this.$t('150米风向')},
|
|
|
+ {value: 'wd160', label: this.$t('160米风向')},
|
|
|
+ {value: 'wd170', label: this.$t('170米风向')},
|
|
|
+ {value: 'wd180', label: this.$t('180米风向')},
|
|
|
+ {value: 'wd190', label: this.$t('190米风向')},
|
|
|
+ {value: 'wd200', label: this.$t('200米风向')},
|
|
|
],
|
|
|
rpOptions: [
|
|
|
- {value: 'realValue', label: '实际功率'},
|
|
|
- {value: 'ableValue', label: '可用功率'},
|
|
|
- {value: 'theoryValue', label: '理论功率'}
|
|
|
+ {value: 'realValue', label: this.$t('实际功率')},
|
|
|
+ {value: 'ableValue', label: this.$t('可用功率')},
|
|
|
+ {value: 'theoryValue', label: this.$t('理论功率')}
|
|
|
],
|
|
|
intervalOptions: [
|
|
|
- {value: 1, label: '1分钟'},
|
|
|
- {value: 5, label: '5分钟'},
|
|
|
- {value: 15, label: '15分钟'}
|
|
|
+ {value: 1, label: this.$t('1分钟')},
|
|
|
+ {value: 5, label: this.$t('5分钟')},
|
|
|
+ {value: 15, label: this.$t('15分钟')}
|
|
|
],
|
|
|
yesOrNoOptions: [
|
|
|
- {value: '1', label: '是'},
|
|
|
- {value: '0', label: '否'},
|
|
|
+ {value: '1', label: this.$t('是')},
|
|
|
+ {value: '0', label: this.$t('否')},
|
|
|
],
|
|
|
electricField: {},
|
|
|
equipments: [],
|
|
@@ -324,8 +324,8 @@ export default {
|
|
|
// rp: '',
|
|
|
// eq: '',
|
|
|
// env: '',
|
|
|
- interval: [{required: true, message: '不能为空', trigger: 'blur'}],
|
|
|
- timingRealTime: [{required: true, message: '不能为空', trigger: 'blur'}],
|
|
|
+ interval: [{required: true, message: this.$t('不能为空'), trigger: 'blur'}],
|
|
|
+ timingRealTime: [{required: true, message: this.$t('不能为空'), trigger: 'blur'}],
|
|
|
name: [{required: true, validator: nameRule}]
|
|
|
},
|
|
|
equipmentAttributes: []
|
|
@@ -531,7 +531,7 @@ export default {
|
|
|
this.$XModal.confirm(`您确定要删除?`).then(type => {
|
|
|
if (type === 'confirm') {
|
|
|
this.$axios.delete('/customReportForm/' + row.id).then(response => {
|
|
|
- this.$XModal.message({status: 'warning', message: "删除成功!!!"})
|
|
|
+ this.$XModal.message({status: 'warning', message: this.$t('删除成功')})
|
|
|
this.getAll()
|
|
|
})
|
|
|
}
|