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 @@ - - + + - - - - - - - + + + + + + + (); 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 @@ - - + + - - - - - - + + + + + + (); 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')}}

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