diff --git a/src/views/electricity/alternating_current/index.vue b/src/views/electricity/alternating_current/index.vue
index cb3392f..f325a8c 100644
--- a/src/views/electricity/alternating_current/index.vue
+++ b/src/views/electricity/alternating_current/index.vue
@@ -2,18 +2,18 @@
-
-
+
+
- 查询
- 重置
+ {{$t('message.direct_current.Querying')}}
+ {{$t('message.direct_current.Reset')}}
-
{{ item.code }}号交流电能表
+
No{{ item.code }}{{$t('message.direct_current.Ac_power_meter')}}
千瓦时:
diff --git a/src/views/electricity/direct_current/index.vue b/src/views/electricity/direct_current/index.vue
index 951d237..fad6551 100644
--- a/src/views/electricity/direct_current/index.vue
+++ b/src/views/electricity/direct_current/index.vue
@@ -2,18 +2,18 @@
-
-
+
+
- 查询
- 重置
+ {{$t('message.direct_current.Querying')}}
+ {{$t('message.direct_current.Reset')}}
-
{{ item.code }}号直流电能表
+
No{{ item.code }}{{$t('message.direct_current.Dc_power_meter')}}
千瓦时:
diff --git a/src/views/fault_log/repaired_info/index.vue b/src/views/fault_log/repaired_info/index.vue
index 2a5ca02..4388fc4 100644
--- a/src/views/fault_log/repaired_info/index.vue
+++ b/src/views/fault_log/repaired_info/index.vue
@@ -2,14 +2,18 @@
-
-
-
+
+
+
+
+
- 查询
- 重置
- 导出
+ {{$t('message.un_repair_info.Querying')}}
+ {{$t('message.un_repair_info.Reset')}}
+ {{$t('message.un_repair_info.Export')}}
@@ -21,21 +25,21 @@
-
-
+
+
- 充电机
+ {{$t('message.un_repair_info.Electric_charging_machine')}}
PLC
- BMS电池
+ {{$t('message.un_repair_info.BMS_battery')}}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
();
const state = reactive({
@@ -104,7 +109,8 @@ const handleExport = async () => {
let params = {};
const response = await getAPI(SysEquipAlarmLogApi).apiExportEquipAlarmProcessRecordPost(params, { responseType: 'blob' });
// var fileName = getFileName(response.headers);
- var fileName = '设备已处理故障日志表.xlsx';
+ var fileName = t('message.un_repair_info.The_device_has_been_processed_failure_log_table');
+ // var fileName = '设备已处理故障日志表.xlsx';
downloadByData(response.data as any, fileName);
};
diff --git a/src/views/fault_log/un_repair_info/index.vue b/src/views/fault_log/un_repair_info/index.vue
index 0d3f112..9a99658 100644
--- a/src/views/fault_log/un_repair_info/index.vue
+++ b/src/views/fault_log/un_repair_info/index.vue
@@ -2,14 +2,18 @@
-
-
-
+
+
+
+
+
- 查询
- 重置
- 导出
+ {{$t('message.un_repair_info.Querying')}}
+ {{$t('message.un_repair_info.Reset')}}
+ {{$t('message.un_repair_info.Export')}}
@@ -21,20 +25,20 @@
-
-
+
+
- 充电机
+ {{$t('message.un_repair_info.Electric_charging_machine')}}
PLC
- BMS电池
+ {{$t('message.un_repair_info.BMS_battery')}}
-
-
-
-
-
-
+
+
+
+
+
+
();
const state = reactive({
@@ -102,7 +107,8 @@ const handleExport = async () => {
let params = {};
const response = await getAPI(SysEquipAlarmLogApi).apiExportEquipAlarmRecordPost(params, { responseType: 'blob' });
// var fileName = getFileName(response.headers);
- var fileName = '设备未处理故障日志表.xlsx';
+ var fileName = t('message.un_repair_info.Device_unprocessed_fault_log_table');
+ // var fileName = '设备未处理故障日志表.xlsx';
downloadByData(response.data as any, fileName);
};
diff --git a/src/views/heat/ac/index.vue b/src/views/heat/ac/index.vue
index e1e345e..6aac02b 100644
--- a/src/views/heat/ac/index.vue
+++ b/src/views/heat/ac/index.vue
@@ -7,21 +7,21 @@
- 当前状态:
- 无状态
- 打开
- 关闭
+ {{ $t('message.ac.Current_state')}}:
+ {{ $t('message.ac.stateless')}}
+ {{ $t('message.ac.Open')}}
+ {{ $t('message.ac.Close')}}
-
+
- 打开
+ {{ $t('message.ac.Open')}}
-
+
- 关闭
+ {{ $t('message.ac.Close')}}
@@ -41,7 +41,8 @@ import { ElMessageBox, ElMessage } from 'element-plus';
import { getAPI } from '/@/utils/axios-utils';
import { SysChargingRealReaultApi, SysMonitorApi } from '/@/api-services/api';
-
+import { useI18n } from 'vue-i18n';
+const { t } = useI18n();
onMounted(async () => {
handle_date();
});
diff --git a/src/views/heat/fan/index.vue b/src/views/heat/fan/index.vue
index a58f690..f365aa2 100644
--- a/src/views/heat/fan/index.vue
+++ b/src/views/heat/fan/index.vue
@@ -3,14 +3,14 @@
-
风机控制
+
{{$t('message.fan.Fan_control')}}
- 当前状态:
- 无状态
- 打开
- 关闭
+ {{$t('message.fan.Current_state')}}:
+ {{$t('message.fan.stateless')}}
+ {{$t('message.fan.Open')}}
+ {{$t('message.fan.Close')}}
- 待转移电池,请点击选择...
+ {{$t('message.warehouses.To_transfer_battery_please_click_Select')}}
- 选择
+ {{$t('message.warehouses.Select')}}
@@ -16,8 +17,8 @@
- 仓位:消防仓
- (换电通道)
+ {{$t('message.warehouses.Position_of_position')}}:{{$t('message.warehouses.Fire_shelter')}}
+ {{$t('message.warehouses.Current_change_channel')}}
@@ -25,18 +26,18 @@
-
+
{{ item.name }}
-
仓位编号: {{ item.no }}
+
{{$t('message.warehouses.Position_number')}}: {{ item.no }}
- 确定移仓
+ {{$t('message.warehouses.Confirmation_warehouse_relocation')}}
@@ -50,7 +51,8 @@ import battery_false from '/@/assets/imgs/nobattery.png';
import { getAPI } from '/@/utils/axios-utils';
import { SysChargeMonitorApi, SysMonitorApi } from '/@/api-services/api';
-
+import { useI18n } from 'vue-i18n';
+const { t } = useI18n();
onMounted(async () => {
handle_charg_data();
});
@@ -75,15 +77,15 @@ const handlecheck = async (data, exists) => {
const handleremove = async () => {
// console.log(checkbinno.value, '仓位');
if (checkbinno.value == undefined) {
- ElMessage.error('请选择仓位');
+ ElMessage.error(t('message.warehouses.Please_select_your_position'));
} else if (checkexists.value != 1) {
- ElMessage.error('请选择有电池的仓位');
+ ElMessage.error(t('message.warehouses.Please_select_a_space_with_batteries'));
} else {
drawer.value = false;
- ElMessageBox.confirm('即将进行消防移仓,请车辆驶离!!!', 'Warning', {
- confirmButtonText: '确认',
- cancelButtonText: '取消',
+ ElMessageBox.confirm( t('message.warehouses.Fire_removal_please_move_away'), 'Warning', {
+ confirmButtonText: t('message.warehouses.Confirmation'),
+ cancelButtonText: t('message.warehouses.Cancel'),
type: 'warning',
})
.then(async () => {
@@ -91,16 +93,17 @@ const handleremove = async () => {
const response = await getAPI(SysMonitorApi).apiFireProtectionRelocationPost(checkbinno.value);
// console.log(response, '-----');
if (response.data.isSuccess) {
- ElMessage.success('操作成功');
+ ElMessage.success(t('message.fan.Operation_successful'));
} else {
- ElMessage.error('操作失败');
+ ElMessage.error(t('message.fan.Operation_failed'));
}
put_loading.value = false;
})
.catch(() => {
ElMessage({
type: 'info',
- message: '取消了移仓',
+ message: t('message.warehouses.Cancel_warehouse_move'),
+ // message: '取消了移仓',
});
});
}
diff --git a/src/views/statistic_analysis/emeter_hour_energy_value/index.vue b/src/views/statistic_analysis/emeter_hour_energy_value/index.vue
index e604300..b5355f2 100644
--- a/src/views/statistic_analysis/emeter_hour_energy_value/index.vue
+++ b/src/views/statistic_analysis/emeter_hour_energy_value/index.vue
@@ -1,11 +1,11 @@
- 电能表小时值直流图表
+ {{$t('message.emeter_real_energy_value.Meter_hour_value_DC_chart')}}
- 电能表小时值交流图表
+ {{$t('message.emeter_real_energy_value.Meter_hour_value_AC_chart')}}
diff --git a/src/views/statistic_analysis/emeter_real_energy_value/index.vue b/src/views/statistic_analysis/emeter_real_energy_value/index.vue
index 689c95a..68dacb4 100644
--- a/src/views/statistic_analysis/emeter_real_energy_value/index.vue
+++ b/src/views/statistic_analysis/emeter_real_energy_value/index.vue
@@ -1,11 +1,11 @@
- 电能表分钟值直流图表
+ {{$t('message.emeter_real_energy_value.Meter_minute_value_DC_chart')}}
- 电能表分钟值交流图表
+ {{$t('message.emeter_real_energy_value.Meter_minute_value_AC_chart')}}
@@ -20,6 +20,8 @@ import { SysEmeterTotalEnergyApi } from '/@/api-services/api';
import { storeToRefs } from 'pinia';
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
import * as echarts from 'echarts';
+import { useI18n } from 'vue-i18n';
+const { t } = useI18n();
const storesTagsViewRoutes = useTagsViewRoutes();
const { isTagsViewCurrenFull } = storeToRefs(storesTagsViewRoutes);
diff --git a/src/views/statistic_analysis/emeter_total_energy_value/index.vue b/src/views/statistic_analysis/emeter_total_energy_value/index.vue
index 5baf94c..aafd725 100644
--- a/src/views/statistic_analysis/emeter_total_energy_value/index.vue
+++ b/src/views/statistic_analysis/emeter_total_energy_value/index.vue
@@ -1,21 +1,21 @@
- 电能表累计值图表(本月)
+ {{$t('message.emeter_total_energy_value.Chart_of_accumulated_value_of_electricity_meter_Chart_of_accumulated_value_of_electricity_meter')+"("+$t('message.emeter_total_energy_value.This_month')+")"}}
- 电能表累计值数据(本月)
+ {{$t('message.emeter_total_energy_value.Energy_meter_cumulative_value_data')+"("+$t('message.emeter_total_energy_value.This_month')+")"}}
-
-
-
+
+
+
-
+
- 直流表
- 交流表
+ {{$t('message.emeter_total_energy_value.Direct_current_meter')}}
+ {{$t('message.emeter_total_energy_value.Alternating_current_table')}}
@@ -32,6 +32,8 @@ import { SysEmeterTotalEnergyApi } from '/@/api-services/api';
import { storeToRefs } from 'pinia';
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
import * as echarts from 'echarts';
+import { useI18n } from 'vue-i18n';
+const { t } = useI18n();
const storesTagsViewRoutes = useTagsViewRoutes();
const { isTagsViewCurrenFull } = storeToRefs(storesTagsViewRoutes);
@@ -149,12 +151,18 @@ const state_chart = reactive({
const initLineChart = () => {
state_chart.homeChartOne = markRaw(echarts.init(homeLineRef.value, state_chart.theme));
const option = {
+
backgroundColor: '',
grid: { top: 70, right: 20, bottom: 30, left: 30 },
tooltip: {
trigger: 'axis',
},
- legend: { data: ['直流', '交流'], right: 0 },
+ legend: { data: [ t('message.emeter_total_energy_value.Direct_current'), t('message.emeter_total_energy_value.Alternating_current')],
+
+ right: 0 },
+ // legend: { data: [ '直流', '交流'],
+
+ // right: 0 },
xAxis: {
data: state.seven_x_data,
},
@@ -166,8 +174,12 @@ const initLineChart = () => {
},
],
series: [
+
{
- name: '直流',
+
+ name: t('message.emeter_total_energy_value.Direct_current'),
+ // name: "直流",
+
type: 'bar',
symbolSize: 6,
symbol: 'circle',
@@ -188,7 +200,8 @@ const initLineChart = () => {
},
{
- name: '交流',
+ name: t('message.emeter_total_energy_value.Alternating_current'),
+ // name: '交流',
type: 'bar',
symbolSize: 6,
symbol: 'circle',