Prechádzať zdrojové kódy

修改气象站、测风塔数据查询

xusl 1 týždeň pred
rodič
commit
a16e88f877

+ 41 - 0
ipfcst/ipfcst/ipfcst-reportquery/src/main/frontend/i18n/langs/en/resourceData.js

@@ -0,0 +1,41 @@
+// 上报查询
+export default {
+    '设备选择':'Equipment Selection',
+    '系统判断当前数据可用率':'System Checks Current Data Availability Ratio',
+    '暂无数据':'No Data',
+    '10米高风速':'ws10',
+    '30米高风速':'ws30',
+    '50米高风速':'ws50',
+    '60米高风速':'ws60',
+    '70米高风速':'ws70',
+    '80米高风速':'ws80',
+    '90米高风速':'ws90',
+    '100米高风速':'ws100',
+    '轮毂高风速':'wsHubHeight',
+    '10米高风向':'wd10',
+    '30米高风向':'wd30',
+    '50米高风向':'wd50',
+    '60米高风向':'wd60',
+    '70米高风向':'wd70',
+    '80米高风向':'wd80',
+    '90米高风向':'wd90',
+    '100米高风向':'wd100',
+    '轮毂高风向':'wdHubHeight',
+    '温度':'T',
+    '湿度':'RH',
+    '气压':'P',
+    '参照重置':'Reference Reset',
+    '重置后将重新进行时间轴类校验,是否继续?':'After resetting, the timeline class verification will be performed again. Do you want to continue?',
+    '重置成功':'Reset Success',
+    '重置失败':'Reset Failed',
+    '显示':'Display',
+    '测风塔数据校验结果':'Windtower Data Result',
+    '气象站数据校验结果':'Weatherstation Data Result',
+    '显示设置修改成功':'Display Set Success',
+    '总辐射':'GlobalR',
+    '直接辐射':'DirectR',
+    '散射辐射':'DiffuseR',
+    '斜面辐射':'ObliqueR',
+    '组件温度':'cellT',
+    '请选择设备':'Please select a device',
+}

+ 41 - 0
ipfcst/ipfcst/ipfcst-reportquery/src/main/frontend/i18n/langs/zh/resourceData.js

@@ -0,0 +1,41 @@
+// 实时预测查询
+export default {
+    '设备选择':'设备选择',
+    '系统判断当前数据可用率':'系统判断当前数据可用率',
+    '暂无数据':'暂无数据',
+    '10米高风速':'10米高风速',
+    '30米高风速':'30米高风速',
+    '50米高风速':'50米高风速',
+    '60米高风速':'60米高风速',
+    '70米高风速':'70米高风速',
+    '80米高风速':'80米高风速',
+    '90米高风速':'90米高风速',
+    '100米高风速':'100米高风速',
+    '轮毂高风速':'轮毂高风速',
+    '10米高风向':'10米高风向',
+    '30米高风向':'30米高风向',
+    '50米高风向':'50米高风向',
+    '60米高风向':'60米高风向',
+    '70米高风向':'70米高风向',
+    '80米高风向':'80米高风向',
+    '90米高风向':'90米高风向',
+    '100米高风向':'100米高风向',
+    '轮毂高风向':'轮毂高风向',
+    '温度':'温度',
+    '湿度':'湿度',
+    '气压':'气压',
+    '参照重置':'参照重置',
+    '重置后将重新进行时间轴类校验,是否继续?':'重置后将重新进行时间轴类校验,是否继续?',
+    '重置成功':'重置成功',
+    '重置失败':'重置失败',
+    '显示':'显示',
+    '测风塔数据校验结果':'测风塔数据校验结果',
+    '气象站数据校验结果':'气象站数据校验结果',
+    '显示设置修改成功':'显示设置修改成功',
+    '总辐射':'总辐射',
+    '直接辐射':'直接辐射',
+    '散射辐射':'散射辐射',
+    '斜面辐射':'斜面辐射',
+    '组件温度':'组件温度',
+    '请选择设备':'请选择设备',
+}

+ 34 - 34
ipfcst/ipfcst/ipfcst-reportquery/src/main/frontend/views/datacheck/weatherstation/index.vue

@@ -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,44 +109,44 @@ export default {
       tableColumn: [],
       weatableColumn: [
         {
-          key: "time", label: "时间"
+          key: "time", label: this.$t("时间")
         },
         {
-          key: "globalR", label: "总辐射"
+          key: "globalR", label: this.$t("总辐射")
         },
         {
-          key: "directR", label: "直接辐射"
+          key: "directR", label: this.$t("直接辐射")
         },
         {
-          key: "diffuseR", label: "散射辐射"
+          key: "diffuseR", label: this.$t("散射辐射")
         },
         {
-          key: "obliqueR", label: "斜面辐射"
+          key: "obliqueR", label: this.$t("斜面辐射")
         },
         {
-          key: "ws", label: "风速"
+          key: "ws", label: this.$t("风速")
         },
         {
-          key: "wd", label: "风向"
+          key: "wd", label: this.$t("风向")
         },
         {
-          key: "airT", label: "环境温度"
+          key: "airT", label: this.$t("环境温度")
         },
         {
-          key: "p", label: "气压"
+          key: "p", label: this.$t("气压")
         },
         {
-          key: "rh", label: "湿度"
+          key: "rh", label: this.$t("湿度")
         },
         {
-          key: "cellT", label: "组件温度"
+          key: "cellT", label: this.$t("组件温度")
         }
       ],
       tableData: [],
       styleStr: {},
       styleTableStr: {},
       verificationResults: [],
-      persent: "暂无数据",
+      persent: this.$t("暂无数据"),
       pageSize: 10,
       currentPage: 1,
       // formatter: this.dateFormat, width: "180"
@@ -174,7 +174,7 @@ export default {
     get() {
 
       if (this.equipmentId == undefined) {
-        this.$message.warning("请选择设备")
+        this.$message.warning(this.$t("请选择设备"))
         return
       }
       this.loading = true
@@ -199,7 +199,7 @@ export default {
       })
     },
     getEquipments() {
-      this.persent = '暂无数据'
+      this.persent = this.$t('暂无数据')
       this.tableData = []
 
       this.fieldData = this.weatableColumn
@@ -232,7 +232,7 @@ export default {
         this.fieldValue = res.data.showCode.split(",")
         this.pushTableColumn()
         this.visible = false
-        this.$message.success("显示设置修改成功")
+        this.$message.success(this.$t("显示设置修改成功"))
       })
     },
     pushTableColumn() {
@@ -297,17 +297,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("重置成功")
-          } else {
-            this.$message.info("结果未重置成功。")
+          if (res.data == true){
+            this.$message.success(this.$t("重置成功"))
+          }else {
+            this.$message.info(this.$t("重置失败"))
           }
         })
       })
@@ -335,7 +335,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,

+ 44 - 44
ipfcst/ipfcst/ipfcst-reportquery/src/main/frontend/views/datacheck/windtower/index.vue

@@ -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,