shilei 4 months ago
commit 40c5169cbc

@ -2,18 +2,18 @@
<div>
<el-card shadow="hover" :body-style="{ paddingBottom: '0' }">
<el-form :model="endTime" ref="queryForm" :inline="true">
<el-form-item label="日期">
<el-date-picker v-model="endTime" type="date" clearable placeholder="日期" format="YYYY-MM-DD" value-format="YYYY-MM-DD" :size="size" />
<el-form-item :label="$t('message.direct_current.Date')">
<el-date-picker v-model="endTime" type="date" clearable :placeholder="$t('message.direct_current.Date')" format="YYYY-MM-DD" value-format="YYYY-MM-DD" :size="size" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> </el-button>
<el-button icon="ele-Refresh" @click="handleQuery_reset"> </el-button>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> {{$t('message.direct_current.Querying')}} </el-button>
<el-button icon="ele-Refresh" @click="handleQuery_reset"> {{$t('message.direct_current.Reset')}} </el-button>
</el-form-item>
</el-form>
</el-card>
<div class="fat_demo">
<div class="card_item" v-for="(item, index) in dataSource" :span="2" :key="index">
<span style="color: #1890ff; font-weight: 600">{{ item.code }}号交流电能表</span>
<span style="color: #1890ff; font-weight: 600">No{{ item.code }}{{$t('message.direct_current.Ac_power_meter')}}</span>
<img class="img_card" src="../../../assets/img/ammeter.png" />
<span style="color: #1890ff; font-size: 12px; font-weight: 600">
千瓦时

@ -2,18 +2,18 @@
<div>
<el-card shadow="hover" :body-style="{ paddingBottom: '0' }">
<el-form :model="endTime" ref="queryForm" :inline="true">
<el-form-item label="日期">
<el-date-picker v-model="endTime" type="date" clearable placeholder="日期" format="YYYY-MM-DD" value-format="YYYY-MM-DD" :size="size" />
<el-form-item label="$t('message.direct_current.Date')">
<el-date-picker v-model="endTime" type="date" clearable placeholder="$t('message.direct_current.Date')" format="YYYY-MM-DD" value-format="YYYY-MM-DD" :size="size" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> </el-button>
<el-button icon="ele-Refresh" @click="handleQuery_reset"> </el-button>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> {{$t('message.direct_current.Querying')}} </el-button>
<el-button icon="ele-Refresh" @click="handleQuery_reset"> {{$t('message.direct_current.Reset')}} </el-button>
</el-form-item>
</el-form>
</el-card>
<div class="fat_demo">
<div class="card_item" v-for="(item, index) in dataSource" :span="2" :key="index">
<span style="color: #1890ff; font-weight: 600">{{ item.code }}号直流电能表</span>
<span style="color: #1890ff; font-weight: 600">No{{ item.code }}{{$t('message.direct_current.Dc_power_meter')}} </span>
<img class="img_card" src="../../../assets/img/ammeter.png" />
<span style="color: #1890ff; font-size: 12px; font-weight: 600">
千瓦时

@ -2,14 +2,18 @@
<div class="sys-tenant-container">
<el-card shadow="hover" :body-style="{ paddingBottom: '0' }">
<el-form :model="state.queryParams" ref="queryForm" :inline="true">
<el-form-item label="设备编码">
<el-input v-model="state.queryParams.equipCode" placeholder="请输入" clearable />
</el-form-item>
<el-form-item>
<label class="label"> {{$t('message.un_repair_info.Device_code')}}</label>
<el-input v-model="state.queryParams.equipCode" :placeholder="$t('message.un_repair_info.Please_enter')" clearable />
</el-form-item>
<!-- <el-form-item :label="$t('message.un_repair_info.Device_code')">
<el-input v-model="state.queryParams.equipCode" :placeholder="$t('message.un_repair_info.Please_enter')" clearable />
</el-form-item> -->
<el-form-item>
<el-button-group>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> </el-button>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> {{$t('message.un_repair_info.Querying')}} </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> {{$t('message.un_repair_info.Reset')}} </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> {{$t('message.un_repair_info.Export')}} </el-button>
</el-button-group>
</el-form-item>
<el-form-item>
@ -21,21 +25,21 @@
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<el-table :data="state.tenantData" style="width: 100%" v-loading="state.loading" border ref="tableRef" @selection-change="handleSelectionChange">
<el-table-column type="index" label="序号" width="55" align="center" fixed />
<el-table-column label="设备类型编码" align="center" show-overflow-tooltip>
<el-table-column type="index" :label="$t('message.un_repair_info.Serial_number')" width="55" align="center" fixed />
<el-table-column :label="$t('message.un_repair_info.Device_type_encoding')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.equipTypeCode === 0"> </el-tag>
<el-tag v-if="scope.row.equipTypeCode === 0"> {{$t('message.un_repair_info.Electric_charging_machine')}} </el-tag>
<el-tag v-if="scope.row.equipTypeCode === 3"> PLC </el-tag>
<el-tag v-if="scope.row.equipTypeCode === 4"> BMS </el-tag>
<el-tag v-if="scope.row.equipTypeCode === 4"> {{$t('message.un_repair_info.BMS_battery')}} </el-tag>
</template>
</el-table-column>
<el-table-column prop="equipCode" label="设备编码" align="center" show-overflow-tooltip />
<el-table-column prop="errorCode" label="报警编码" align="center" show-overflow-tooltip />
<el-table-column prop="errorLevel" label="报警等级" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="errorMsg" label="报警描述" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="processMethod" label="处理方法" align="center" show-overflow-tooltip />
<el-table-column prop="startTime" label="开始时间" align="center" show-overflow-tooltip />
<el-table-column prop="processTime" label="处理时间" align="center" show-overflow-tooltip />
<el-table-column prop="equipCode" :label="$t('message.un_repair_info.Device_code')" align="center" show-overflow-tooltip />
<el-table-column prop="errorCode" :label="$t('message.un_repair_info.Alarm_code')" align="center" show-overflow-tooltip />
<el-table-column prop="errorLevel" :label="$t('message.un_repair_info.Alarm_level')" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="errorMsg" :label="$t('message.un_repair_info.Alarm_description')" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="processMethod" :label="$t('message.un_repair_info.Processing_method')" align="center" show-overflow-tooltip />
<el-table-column prop="startTime" :label="$t('message.un_repair_info.Start_time')" align="center" show-overflow-tooltip />
<el-table-column prop="processTime" :label="$t('message.un_repair_info.Processing_time')" align="center" show-overflow-tooltip />
</el-table>
<el-pagination
v-model:currentPage="state.tableParams.pageNum"
@ -60,7 +64,8 @@ import { downloadByData, getFileName } from '/@/utils/download';
import { getAPI } from '/@/utils/axios-utils';
import { SysEquipAlarmLogApi } from '/@/api-services/api'; //zz
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const tableRef = ref<RefType>();
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);
};

@ -2,14 +2,18 @@
<div class="sys-tenant-container">
<el-card shadow="hover" :body-style="{ paddingBottom: '0' }">
<el-form :model="state.queryParams" ref="queryForm" :inline="true">
<el-form-item label="设备编码">
<el-input v-model="state.queryParams.equipCode" placeholder="请输入" clearable />
</el-form-item>
<el-form-item>
<label class="label"> {{$t('message.un_repair_info.Device_code')}}</label>
<el-input v-model="state.queryParams.equipCode" :placeholder="$t('message.un_repair_info.Please_enter')" clearable />
</el-form-item>
<!-- <el-form-item :label="$t('message.un_repair_info.Device_code')">
<el-input v-model="state.queryParams.equipCode" :placeholder="$t('message.un_repair_info.Please_enter')" clearable />
</el-form-item> -->
<el-form-item>
<el-button-group>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> </el-button>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> {{$t('message.un_repair_info.Querying')}} </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> {{$t('message.un_repair_info.Reset')}} </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> {{$t('message.un_repair_info.Export')}} </el-button>
</el-button-group>
</el-form-item>
<el-form-item>
@ -21,20 +25,20 @@
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<el-table :data="state.tenantData" style="width: 100%" v-loading="state.loading" border ref="tableRef" @selection-change="handleSelectionChange">
<el-table-column type="index" label="序号" width="55" align="center" fixed />
<el-table-column label="设备类型编码" align="center" show-overflow-tooltip>
<el-table-column type="index" :label="$t('message.un_repair_info.Serial_number')" width="55" align="center" fixed />
<el-table-column :label="$t('message.un_repair_info.Device_type_encoding')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.equipTypeCode === 0"> </el-tag>
<el-tag v-if="scope.row.equipTypeCode === 0"> {{$t('message.un_repair_info.Electric_charging_machine')}} </el-tag>
<el-tag v-if="scope.row.equipTypeCode === 3"> PLC </el-tag>
<el-tag v-if="scope.row.equipTypeCode === 4"> BMS </el-tag>
<el-tag v-if="scope.row.equipTypeCode === 4"> {{$t('message.un_repair_info.BMS_battery')}} </el-tag>
</template>
</el-table-column>
<el-table-column prop="equipCode" label="设备编码" align="center" show-overflow-tooltip />
<el-table-column prop="errorCode" label="报警编码" align="center" show-overflow-tooltip />
<el-table-column prop="startTime" label="开始时间" align="center" show-overflow-tooltip />
<el-table-column prop="errorLevel" label="报警等级" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="errorMsg" label="报警描述" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="processMethod" label="处理方法" align="center" show-overflow-tooltip />
<el-table-column prop="equipCode" :label="$t('message.un_repair_info.Device_code')" align="center" show-overflow-tooltip />
<el-table-column prop="errorCode" :label="$t('message.un_repair_info.Alarm_code')" align="center" show-overflow-tooltip />
<el-table-column prop="startTime" :label="$t('message.un_repair_info.Start_time')" align="center" show-overflow-tooltip />
<el-table-column prop="errorLevel" :label="$t('message.un_repair_info.Alarm_level')" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="errorMsg" :label="$t('message.un_repair_info.Alarm_description')" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="processMethod" :label="$t('message.un_repair_info.Processing_method')" align="center" show-overflow-tooltip />
</el-table>
<el-pagination
v-model:currentPage="state.tableParams.pageNum"
@ -59,7 +63,8 @@ import { downloadByData, getFileName } from '/@/utils/download';
import { getAPI } from '/@/utils/axios-utils';
import { SysEquipAlarmLogApi } from '/@/api-services/api'; //zz
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const tableRef = ref<RefType>();
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);
};

@ -7,21 +7,21 @@
<el-col class="left" :span="24">
<img src="../../../assets/imgs/电灯.png" alt="" />
<p>
当前状态
<el-tag type="info" v-if="isStatus == 0"></el-tag>
<el-tag type="success" v-else-if="isStatus == 1000">打开</el-tag>
<el-tag type="warning" v-else-if="isStatus == 1010">关闭</el-tag>
{{ $t('message.ac.Current_state')}}
<el-tag type="info" v-if="isStatus == 0">{{ $t('message.ac.stateless')}}</el-tag>
<el-tag type="success" v-else-if="isStatus == 1000">{{ $t('message.ac.Open')}}</el-tag>
<el-tag type="warning" v-else-if="isStatus == 1010">{{ $t('message.ac.Close')}}</el-tag>
</p>
<div class="op">
<el-popconfirm title="确定要设置启动吗?" @confirm="turnOn">
<el-popconfirm :title="$t('message.ac.Are_you_sure_you_want_to_set_startup')" @confirm="turnOn">
<template #reference>
<el-button type="primary">打开</el-button>
<el-button type="primary">{{ $t('message.ac.Open')}}</el-button>
</template>
</el-popconfirm>
<el-popconfirm title="确定要设置启动吗?" @confirm="turnOff">
<el-popconfirm :title="$t('message.ac.Are_you_sure_you_want_to_set_startup')" @confirm="turnOff">
<template #reference>
<el-button type="primary" class="down">关闭</el-button>
<el-button type="primary" class="down">{{ $t('message.ac.Close')}}</el-button>
</template>
</el-popconfirm>
</div>
@ -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();
});

@ -3,14 +3,14 @@
<el-row type="flex" justify="center" class="ac-list">
<el-col class="charge-bg-fan" :span="6" v-loading="loading">
<div class="ac">
<h1>风机控制</h1>
<h1>{{$t('message.fan.Fan_control')}}</h1>
<img src="../../../assets/img/fan_gray.png" style="margin-top: 8px" />
<!-- <img v-else-if="item.status == 1" src="@/assets/img/fan_blue.gif" /> -->
<p style="margin-top: 10px">
当前状态
<el-tag type="info" v-if="status_fan == 0"></el-tag>
<el-tag type="success" v-if="status_fan == 1000"></el-tag>
<el-tag type="warning" v-if="status_fan == 1010"></el-tag>
{{$t('message.fan.Current_state')}}
<el-tag type="info" v-if="status_fan == 0">{{$t('message.fan.stateless')}}</el-tag>
<el-tag type="success" v-if="status_fan == 1000">{{$t('message.fan.Open')}}</el-tag>
<el-tag type="warning" v-if="status_fan == 1010">{{$t('message.fan.Close')}}</el-tag>
</p>
<!-- <div class="check_dis">
<span>温度阈值</span>
@ -43,7 +43,8 @@ import { ElMessageBox, ElMessage } from 'element-plus';
import { getAPI } from '/@/utils/axios-utils';
import { SysMonitorApi } from '/@/api-services/api';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const loading = ref(false);
const status_fan = ref(0);
onMounted(async () => {
@ -52,6 +53,7 @@ onMounted(async () => {
const handleQuery = async () => {
const response = await getAPI(SysMonitorApi).apiAirBlowerStatusGet();
// console.log(response,"zzzzzz")
status_fan.value = response.data.data;
};
@ -60,9 +62,9 @@ const ExhaustFanOn = async (cmd) => {
const response = await getAPI(SysMonitorApi).apiAirBlowerControlGet(cmd);
// 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'));
}
handleQuery();
loading.value = false;

@ -1,14 +1,15 @@
<template>
<div v-loading="put_loading" element-loading-text="移仓中...">
<div v-loading="put_loading" :element-loading-text="$t('message.warehouses.Transfer_in_warehouse')">
<el-row class="ac-list" :gutter="40" type="flex" justify="center">
<el-col :span="10">
<div class="ac">
<!-- -->
<el-row class="info" :gutter="10" type="flex" align="middle">
<el-col class="left" :span="10">
<img src="../../../assets/imgs/null_box.png" alt="" />
<p style="margin-top: 5px">待转移电池,请点击选择...</p>
<p style="margin-top: 5px">{{$t('message.warehouses.To_transfer_battery_please_click_Select')}}</p>
<div class="op">
<el-button class="down_btn" @click="handle_drawer"></el-button>
<el-button class="down_btn" @click="handle_drawer">{{$t('message.warehouses.Select')}}</el-button>
</div>
</el-col>
<el-col class="left" :span="4">
@ -16,8 +17,8 @@
</el-col>
<el-col class="left" :span="10">
<img src="../../../assets/imgs/蓄电池组.png" alt="" />
<p>仓位:消防仓</p>
<span>(换电通道)</span>
<p>{{$t('message.warehouses.Position_of_position')}}:{{$t('message.warehouses.Fire_shelter')}}</p>
<span>{{$t('message.warehouses.Current_change_channel')}}</span>
</el-col>
</el-row>
<div class="op"></div>
@ -25,18 +26,18 @@
</el-col>
</el-row>
<!-- -->
<el-drawer v-model="drawer" title="可转移仓位" direction="ltr">
<el-drawer v-model="drawer" :title="$t('message.warehouses.Transferable_positions')" direction="ltr">
<!-- direction="direction" -->
<div class="fat_list">
<div v-for="(item, index) in batter_list" :key="index" :class="item.class" @click="handlecheck(item.no, item.exists)">
<!-- <img :src="battery_true" alt="" /> -->
<img :src="item.exists == 1 ? battery_true : battery_false" alt="" />
<span>{{ item.name }}</span>
<span>仓位编号: {{ item.no }}</span>
<span>{{$t('message.warehouses.Position_number')}}: {{ item.no }}</span>
</div>
</div>
<div class="bot_istrue">
<el-button class="btn" @click="handleremove"></el-button>
<el-button class="btn" @click="handleremove">{{$t('message.warehouses.Confirmation_warehouse_relocation')}}</el-button>
</div>
</el-drawer>
</div>
@ -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: '',
});
});
}

@ -1,11 +1,11 @@
<template>
<div class="sys-tenant-container">
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<h2>电能表小时值直流图表</h2>
<h2>{{$t('message.emeter_real_energy_value.Meter_hour_value_DC_chart')}}</h2>
<div id="charts_content" ref="homeLineRef"></div>
</el-card>
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<h2>电能表小时值交流图表</h2>
<h2> {{$t('message.emeter_real_energy_value.Meter_hour_value_AC_chart')}}</h2>
<div id="charts_content_EQM" ref="homeLineRef_EQM"></div>
</el-card>
</div>

@ -1,11 +1,11 @@
<template>
<div class="sys-tenant-container">
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<h2>电能表分钟值直流图表</h2>
<h2>{{$t('message.emeter_real_energy_value.Meter_minute_value_DC_chart')}}</h2>
<div id="charts_content" ref="homeLineRef"></div>
</el-card>
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<h2>电能表分钟值交流图表</h2>
<h2>{{$t('message.emeter_real_energy_value.Meter_minute_value_AC_chart')}}</h2>
<div id="charts_content_EQM" ref="homeLineRef_EQM"></div>
</el-card>
</div>
@ -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);

@ -1,21 +1,21 @@
<template>
<div class="sys-tenant-container">
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<h2>电能表累计值图表(本月)</h2>
<h2>{{$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')+")"}}</h2>
<div id="charts_content" ref="homeLineRef"></div>
</el-card>
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<h2>电能表累计值数据(本月)</h2>
<h2>{{$t('message.emeter_total_energy_value.Energy_meter_cumulative_value_data')+"("+$t('message.emeter_total_energy_value.This_month')+")"}}</h2>
<el-table :data="state.tenantData_Eme" style="width: 100%; margin-top: 10px" v-loading="state.loading_Eme" border ref="tableRef_eme">
<!-- <el-table-column type="selection" width="55" fixed> </el-table-column> -->
<el-table-column type="index" label="序号" width="55" align="center" fixed />
<el-table-column prop="code" label="电表编码" align="center" show-overflow-tooltip />
<el-table-column prop="value" label="千瓦时(kwh)" align="center" show-overflow-tooltip />
<el-table-column type="index" :label="$t('message.emeter_total_energy_value.Serial_number')" width="55" align="center" fixed />
<el-table-column prop="code" :label="$t('message.emeter_total_energy_value.Electricity_meter_code')" align="center" show-overflow-tooltip />
<el-table-column prop="value" :label="$t('message.emeter_total_energy_value.Kilowatt_hour')" align="center" show-overflow-tooltip />
<!-- <el-table-column prop="uploadTime" label="充电机上报时间" align="center" show-overflow-tooltip /> -->
<el-table-column label="电能表类型" align="center" show-overflow-tooltip>
<el-table-column :label="$t('message.emeter_total_energy_value.Type_of_energy_meter')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag type="success" v-if="scope.row.type == 0"></el-tag>
<el-tag type="info" v-else></el-tag>
<el-tag type="success" v-if="scope.row.type == 0">{{$t('message.emeter_total_energy_value.Direct_current_meter')}}</el-tag>
<el-tag type="info" v-else>{{$t('message.emeter_total_energy_value.Alternating_current_table')}}</el-tag>
</template>
</el-table-column>
</el-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',

Loading…
Cancel
Save