This commit is contained in:
geting 2024-11-20 10:25:22 +08:00
commit abd23e8f5a
9 changed files with 27 additions and 3 deletions

View File

@ -46,4 +46,6 @@ public class SysFaultRecordingDesc {
@TableField("updated_time")
private Date updatedTime;
@TableField("unit")
private String unit;
}

View File

@ -20,4 +20,9 @@ public class SysFaultRecordingExcel implements Serializable {
@ExcelProperty(value = "中文描述",index = 1)
private String description;
/**
* 单位
*/
@ExcelProperty(value = "单位",index = 2)
private String unit;
}

View File

@ -101,6 +101,7 @@ public class FaultRecorderServiceImpl implements FaultRecorderService {
SheetInfoBean sheetDTO = new SheetInfoBean();
map.put("variable", "英文名称");
map.put("description", "中文描述");
map.put("unit","单位");
sheetDTO.setSheetName(theoreticalPowerCurve.getMadeinfactory());
sheetDTO.setFieldAndAlias(map);
sheetDTO.setCollection(sysFaultRecordingDescList);

View File

@ -20,4 +20,9 @@ public class SysRunLogExcel implements Serializable {
@ExcelProperty(value = "中文描述",index = 1)
private String description;
/**
* 单位
*/
@ExcelProperty(value = "单位",index = 2)
private String unit;
}

View File

@ -1,5 +1,6 @@
package com.das.modules.plc.domain;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
@ -46,4 +47,9 @@ public class SysRunLogDesc {
@TableField("updated_time")
private Date updatedTime;
/**
* 单位
*/
@TableField("unit")
private String unit;
}

View File

@ -122,6 +122,7 @@ public class PlcLogsServiceImpl implements PlcLogService {
SheetInfoBean sheetDTO = new SheetInfoBean();
map.put("variable", "英文名称");
map.put("description", "中文描述");
map.put("unit","单位");
sheetDTO.setSheetName(theoreticalPowerCurve.getMadeinfactory());
sheetDTO.setFieldAndAlias(map);
sheetDTO.setCollection(sysFaultRecordingDescList);

View File

@ -69,7 +69,7 @@
:data="tableData"
:header-row-style="tableHaderStyle"
@selectionChange="selectTable"
max-height="100%"
class="tableClass"
>
<el-table-column type="selection" width="55"></el-table-column>
<template v-for="item in tableColumn" :key="item.prop">
@ -619,6 +619,10 @@ getBlongLineList()
.mainPart {
width: 100%;
height: calc(100% - 60px);
.tableClass{
width: 100%;
height: 100%;
}
.tableColumnClick {
text-decoration: underline;
color: #00a4ff;

View File

@ -478,7 +478,7 @@ const createSeriesData = () => {
} else {
const color = getRandomDarkColor()
const data = {
name: item,
name: fileKeyEnums?.[item] ?? item,
type: 'line',
barWidth: 20,
itemStyle: {

View File

@ -483,7 +483,7 @@ const createSeriresData = () => {
} else {
const color = getRandomDarkColor()
const data = {
name: item,
name: fileKeyEnums[item],
type: 'line',
barWidth: 20,
itemStyle: {