|
@@ -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,7 +13,7 @@
|
|
|
/>
|
|
|
</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
|
|
@@ -23,20 +23,20 @@
|
|
|
<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">
|
|
|
- <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>
|
|
|
|
|
|
|
|
@@ -95,28 +95,28 @@ export default {
|
|
|
tableColumn: [],
|
|
|
pstableColumn: [
|
|
|
{
|
|
|
- key: "time", label: "时间"
|
|
|
+ key: "time", label: this.$t("时间")
|
|
|
}, {
|
|
|
- key: "realValue", label: "实际功率"
|
|
|
+ key: "realValue", label: this.$t("实际功率")
|
|
|
},
|
|
|
{
|
|
|
- key: "ableValue", label: "可用功率"
|
|
|
+ key: "ableValue", label: this.$t("可用功率")
|
|
|
},
|
|
|
{
|
|
|
- key: "theoryValue", label: "理论功率"
|
|
|
+ key: "theoryValue", label: this.$t("理论功率")
|
|
|
},
|
|
|
{
|
|
|
- key: "openCapacity", label: "开机容量"
|
|
|
+ key: "openCapacity", label: this.$t("开机容量")
|
|
|
},
|
|
|
{
|
|
|
- key: "capacity", label: "装机容量"
|
|
|
+ key: "capacity", label: this.$t("装机容量")
|
|
|
}
|
|
|
],
|
|
|
tableData: [],
|
|
|
styleStr: {},
|
|
|
styleTableStr: {},
|
|
|
verificationResults: [],
|
|
|
- persent: "暂无数据",
|
|
|
+ persent: this.$t("暂无数据"),
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
|
// formatter: this.dateFormat, width: "180"
|
|
@@ -144,7 +144,7 @@ export default {
|
|
|
get() {
|
|
|
|
|
|
if (this.equipmentId == undefined) {
|
|
|
- this.$message.warning("请选择设备")
|
|
|
+ this.$message.warning(this.$t("请选择设备"))
|
|
|
return
|
|
|
}
|
|
|
this.loading = true
|
|
@@ -169,7 +169,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getEquipments() {
|
|
|
- this.persent = '暂无数据'
|
|
|
+ this.persent = this.$t('暂无数据')
|
|
|
this.tableData = []
|
|
|
|
|
|
this.fieldData = this.pstableColumn
|
|
@@ -270,14 +270,18 @@ 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 => {
|
|
|
- this.$message.success("已重置!")
|
|
|
+ if (res.data == true){
|
|
|
+ this.$message.success(this.$t("重置成功"))
|
|
|
+ }else {
|
|
|
+ this.$message.info(this.$t("重置失败"))
|
|
|
+ }
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -302,7 +306,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,
|