|
@@ -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" @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,76 +109,76 @@ export default {
|
|
|
tableColumn: [],
|
|
|
towtableColumn: [
|
|
|
{
|
|
|
- key: "time", label: "时间"
|
|
|
+ key: "time", label: this.$t("时间")
|
|
|
},
|
|
|
{
|
|
|
- key: "wsInst10", label: "10米高风速"
|
|
|
+ key: "wsInst10", label: this.$t("10米高风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wsInst30", label: "30米高风速"
|
|
|
+ key: "wsInst30", label: this.$t("30米高风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wsInst50", label: "50米高风速"
|
|
|
+ key: "wsInst50", label: this.$t("50米高风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wsInst60", label: "60米高风速"
|
|
|
+ key: "wsInst60", label: this.$t("60米高风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wsInst70", label: "70米高风速"
|
|
|
+ key: "wsInst70", label: this.$t("70米高风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wsInst80", label: "80米高风速"
|
|
|
+ key: "wsInst80", label: this.$t("80米高风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wsInst90", label: "90米高风速"
|
|
|
+ key: "wsInst90", label: this.$t("90米高风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wsInst100", label: "100米高风速"
|
|
|
+ key: "wsInst100", label: this.$t("100米高风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wsInstHubHeight", label: "轮毂高风速"
|
|
|
+ key: "wsInstHubHeight", label: this.$t("轮毂高风速")
|
|
|
},
|
|
|
{
|
|
|
- key: "wdInst10", label: "10米高风向"
|
|
|
+ key: "wdInst10", label: this.$t("10米高风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "wdInst30", label: "30米高风向"
|
|
|
+ key: "wdInst30", label: this.$t("30米高风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "wdInst50", label: "50米高风向"
|
|
|
+ key: "wdInst50", label: this.$t("50米高风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "wdInst60", label: "60米高风向"
|
|
|
+ key: "wdInst60", label: this.$t("60米高风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "wdInst70", label: "70米高风向"
|
|
|
+ key: "wdInst70", label: this.$t("70米高风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "wdInst80", label: "80米高风向"
|
|
|
+ key: "wdInst80", label: this.$t("80米高风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "wdInst90", label: "90米高风向"
|
|
|
+ key: "wdInst90", label: this.$t("90米高风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "wdInst100", label: "100米高风向"
|
|
|
+ key: "wdInst100", label: this.$t("100米高风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "wdInstHubHeight", label: "轮毂高风向"
|
|
|
+ key: "wdInstHubHeight", label: this.$t("轮毂高风向")
|
|
|
},
|
|
|
{
|
|
|
- key: "tInst", label: "温度"
|
|
|
+ key: "tInst", label: this.$t("温度")
|
|
|
},
|
|
|
{
|
|
|
- key: "rhInst", label: "湿度"
|
|
|
+ key: "rhInst", label: this.$t("湿度")
|
|
|
},
|
|
|
{
|
|
|
- key: "paInst", label: "气压"
|
|
|
+ key: "paInst", label: this.$t("气压")
|
|
|
},
|
|
|
],
|
|
|
tableData: [],
|
|
|
styleStr: {},
|
|
|
styleTableStr: {},
|
|
|
- persent: "暂无数据",
|
|
|
+ persent: this.$t("暂无数据"),
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
|
// formatter: this.dateFormat, width: "180"
|
|
@@ -206,7 +206,7 @@ export default {
|
|
|
get() {
|
|
|
|
|
|
if (this.equipmentId == undefined) {
|
|
|
- this.$message.warning("请选择设备")
|
|
|
+ this.$message.warning(this.$t("请选择设备"))
|
|
|
return
|
|
|
}
|
|
|
this.loading = true
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
|
|
|
this.$axios("/dataCheck/getData/" + this.eqType + "/" + this.equipmentId + "/" + startTime + "/" + endTime).then(res => {
|
|
|
this.tableData = res.data.data
|
|
|
- this.persent = res.data.persent
|
|
|
+ this.persent = this.$t(res.data.persent)
|
|
|
this.loading = false
|
|
|
})
|
|
|
|
|
@@ -230,7 +230,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getEquipments() {
|
|
|
- this.persent = '暂无数据'
|
|
|
+ this.persent = this.$t('暂无数据')
|
|
|
this.tableData = []
|
|
|
this.fieldData = []
|
|
|
|
|
@@ -264,7 +264,7 @@ export default {
|
|
|
this.fieldValue = res.data.showCode.split(",")
|
|
|
this.pushTableColumn()
|
|
|
this.visible = false
|
|
|
- this.$message.success("显示设置修改成功!")
|
|
|
+ this.$message.success(this.$t("显示设置修改成功"))
|
|
|
})
|
|
|
},
|
|
|
pushTableColumn() {
|
|
@@ -328,17 +328,17 @@ export default {
|
|
|
this.pageSize = pageSize
|
|
|
},
|
|
|
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("重置失败"))
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -366,7 +366,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,
|