|
@@ -2,7 +2,7 @@
|
|
|
<div class="chart-container">
|
|
|
<div class="filter">
|
|
|
<div class="startTime">
|
|
|
- <span class="timeText">选择日期</span>
|
|
|
+ <span class="timeText">{{ this.$t('选择日期') }}</span>
|
|
|
<el-date-picker
|
|
|
v-model="datatime"
|
|
|
:clearable="false"
|
|
@@ -13,8 +13,8 @@
|
|
|
/>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <span class="timeText">设备选择</span>
|
|
|
- <el-select v-model="equipmentId" placeholder="请选择" @change="persent = '暂无数据'">
|
|
|
+ <span class="timeText">{{ this.$t('设备选择') }}</span>
|
|
|
+ <el-select v-model="equipmentId" placeholder="请选择" @change="persent = this.$t('暂无数据')">
|
|
|
<el-option
|
|
|
v-for="item in equipments"
|
|
|
:key="item.id"
|
|
@@ -24,7 +24,7 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="timeQuery">
|
|
|
- <el-button :loading="loading" size="small" @click="get">查询</el-button>
|
|
|
+ <el-button :loading="loading" size="small" @click="get">{{this.$t('查询') }}</el-button>
|
|
|
</div>
|
|
|
<div class="timeQuery" style="margin-left: 20px">
|
|
|
<el-popover
|
|
@@ -34,23 +34,23 @@
|
|
|
<el-transfer
|
|
|
v-model="fieldValue"
|
|
|
:data="fieldData"
|
|
|
- :titles="['隐藏', '显示']">
|
|
|
+ :titles="[this.$t('隐藏'), this.$t('显示')]">
|
|
|
</el-transfer>
|
|
|
<div style="text-align: right; margin: 0">
|
|
|
- <el-button size="mini" type="text" @click="visible = false">取消</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="addOrUpdateFieldValue">确定</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="visible = false">{{this.$t('取消') }}</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="addOrUpdateFieldValue">{{this.$t('确定') }}</el-button>
|
|
|
</div>
|
|
|
- <el-button slot="reference" size="small">显示设置</el-button>
|
|
|
+ <el-button slot="reference" size="small">{{this.$t('显示设置') }}</el-button>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="timeQuery" style="margin-left: 20px">
|
|
|
- <p style="font-size: 16px;color: red">系统判断当前数据可用率:{{ this.persent }}</p>
|
|
|
+ <p style="font-size: 16px;color: red">{{this.$t('系统判断当前数据可用率') }}:{{ this.persent }}</p>
|
|
|
</div>
|
|
|
<div class="timeQuery" style="margin-left: 20px">
|
|
|
- <el-button slot="reference" size="small" @click="resetCache">参照重置</el-button>
|
|
|
+ <el-button slot="reference" size="small" @click="resetCache">{{this.$t('参照重置') }}</el-button>
|
|
|
</div>
|
|
|
<div class="timeQuery" style="margin-left: 20px">
|
|
|
- <el-button slot="reference" size="small" @click="exportDataEvent">导出数据</el-button>
|
|
|
+ <el-button slot="reference" size="small" @click="exportDataEvent">{{this.$t('导出')}}</el-button>
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -109,56 +109,56 @@ export default {
|
|
|
tableColumn: [],
|
|
|
turtableColumn: [
|
|
|
{
|
|
|
- key: "time", label: "时间"
|
|
|
+ key: "time", label: this.$t("时间")
|
|
|
},
|
|
|
{
|
|
|
- key: "activePower", label: "有功"
|
|
|
+ key: "activePower", label: this.$t("有功")
|
|
|
},
|
|
|
{
|
|
|
- key: "reactivePower", label: "无功"
|
|
|
+ key: "reactivePower", label: this.$t("无功")
|
|
|
},
|
|
|
{
|
|
|
- key: "powerFactor", label: "功率因数"
|
|
|
+ key: "powerFactor", label: this.$t("功率因数")
|
|
|
},
|
|
|
{
|
|
|
- key: "voltage", label: "电压"
|
|
|
+ key: "voltage", label: this.$t("电压")
|
|
|
},
|
|
|
{
|
|
|
- key: "electricalCurrent", label: "电流"
|
|
|
+ key: "electricalCurrent", label: this.$t("电流")
|
|
|
},
|
|
|
{
|
|
|
- key: "dayElectricQuantity", label: "当日发电量"
|
|
|
+ key: "dayElectricQuantity", label: this.$t("当日发电量")
|
|
|
},
|
|
|
{
|
|
|
- key: "dayGridConnectedHours", label: "当日并网小时"
|
|
|
+ key: "dayGridConnectedHours", label: this.$t("当日并网小时")
|
|
|
},
|
|
|
{
|
|
|
- key: "windWheelRatedSpeed", label: "转速"
|
|
|
+ key: "windWheelRatedSpeed", label: this.$t("转速")
|
|
|
},
|
|
|
{
|
|
|
- key: "ws", label: "风速"
|
|
|
+ key: "ws", label: this.$t("风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wd", label: "风向"
|
|
|
+ key: "wd", label: this.$t("风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "t", label: "温度"
|
|
|
+ key: "t", label: this.$t("温度")
|
|
|
},
|
|
|
{
|
|
|
- key: "pitchAngle", label: "桨距角"
|
|
|
+ key: "pitchAngle", label: this.$t("桨距角")
|
|
|
},
|
|
|
{
|
|
|
- key: "cumulativeGeneratedEnergy", label: "累计发电量"
|
|
|
+ key: "cumulativeGeneratedEnergy", label: this.$t("累积发电量")
|
|
|
},
|
|
|
{
|
|
|
- key: "status", label: "状态"
|
|
|
+ key: "status", label: this.$t("状态")
|
|
|
},
|
|
|
],
|
|
|
tableData: [],
|
|
|
styleStr: {},
|
|
|
styleTableStr: {},
|
|
|
verificationResults: [],
|
|
|
- persent: "暂无数据",
|
|
|
+ persent: this.$t("暂无数据"),
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
|
// formatter: this.dateFormat, width: "180"
|
|
@@ -185,7 +185,7 @@ export default {
|
|
|
methods: {
|
|
|
get() {
|
|
|
if (this.equipmentId == undefined) {
|
|
|
- this.$message.warning("请选择设备")
|
|
|
+ this.$message.warning(this.$t("请选择设备"))
|
|
|
return
|
|
|
}
|
|
|
this.loading = true
|
|
@@ -210,7 +210,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getEquipments() {
|
|
|
- this.persent = '暂无数据'
|
|
|
+ this.persent = this.$t('暂无数据')
|
|
|
this.tableData = []
|
|
|
this.fieldData = this.turtableColumn
|
|
|
|
|
@@ -308,17 +308,17 @@ export default {
|
|
|
|
|
|
},
|
|
|
resetCache() {
|
|
|
- this.$confirm('重置后将重新进行时间轴类校验,是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ this.$confirm(this.$t("重置后将重新进行时间轴类校验,是否继续?"), this.$t('提示'), {
|
|
|
+ confirmButtonText: this.$t('确定'),
|
|
|
+ cancelButtonText: this.$t('取消'),
|
|
|
customClass: 'btn-custom-cancel',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
this.$axios.get("dataCheck/resetCache/" + this.eqType + "/" + this.equipmentId).then(res => {
|
|
|
if (res.data == true){
|
|
|
- this.$message.success("重置成功!")
|
|
|
+ this.$message.success(this.$t("重置成功"))
|
|
|
}else {
|
|
|
- this.$message.info("结果未重置成功。")
|
|
|
+ this.$message.info(this.$t("重置失败"))
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -346,7 +346,7 @@ export default {
|
|
|
exportDataEvent() {
|
|
|
setTimeout(() => {
|
|
|
this.$refs.table.exportData({
|
|
|
- filename: '风机数据校验结果' + this.formatISOStringToYYYYMMDDHHMMSS(this.datatime).slice(0, -9),
|
|
|
+ filename: this.$t('风机数据校验结果') + this.formatISOStringToYYYYMMDDHHMMSS(this.datatime).slice(0, -9),
|
|
|
type: 'csv',
|
|
|
isHeader: true,
|
|
|
isFooter: true,
|