Merge branch 'main' of https://git.jsspisoft.com/ry-das
This commit is contained in:
commit
abd23e8f5a
@ -46,4 +46,6 @@ public class SysFaultRecordingDesc {
|
|||||||
@TableField("updated_time")
|
@TableField("updated_time")
|
||||||
private Date updatedTime;
|
private Date updatedTime;
|
||||||
|
|
||||||
|
@TableField("unit")
|
||||||
|
private String unit;
|
||||||
}
|
}
|
||||||
|
@ -20,4 +20,9 @@ public class SysFaultRecordingExcel implements Serializable {
|
|||||||
@ExcelProperty(value = "中文描述",index = 1)
|
@ExcelProperty(value = "中文描述",index = 1)
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单位
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "单位",index = 2)
|
||||||
|
private String unit;
|
||||||
}
|
}
|
||||||
|
@ -101,6 +101,7 @@ public class FaultRecorderServiceImpl implements FaultRecorderService {
|
|||||||
SheetInfoBean sheetDTO = new SheetInfoBean();
|
SheetInfoBean sheetDTO = new SheetInfoBean();
|
||||||
map.put("variable", "英文名称");
|
map.put("variable", "英文名称");
|
||||||
map.put("description", "中文描述");
|
map.put("description", "中文描述");
|
||||||
|
map.put("unit","单位");
|
||||||
sheetDTO.setSheetName(theoreticalPowerCurve.getMadeinfactory());
|
sheetDTO.setSheetName(theoreticalPowerCurve.getMadeinfactory());
|
||||||
sheetDTO.setFieldAndAlias(map);
|
sheetDTO.setFieldAndAlias(map);
|
||||||
sheetDTO.setCollection(sysFaultRecordingDescList);
|
sheetDTO.setCollection(sysFaultRecordingDescList);
|
||||||
|
@ -20,4 +20,9 @@ public class SysRunLogExcel implements Serializable {
|
|||||||
@ExcelProperty(value = "中文描述",index = 1)
|
@ExcelProperty(value = "中文描述",index = 1)
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单位
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "单位",index = 2)
|
||||||
|
private String unit;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.das.modules.plc.domain;
|
package com.das.modules.plc.domain;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
@ -46,4 +47,9 @@ public class SysRunLogDesc {
|
|||||||
@TableField("updated_time")
|
@TableField("updated_time")
|
||||||
private Date updatedTime;
|
private Date updatedTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单位
|
||||||
|
*/
|
||||||
|
@TableField("unit")
|
||||||
|
private String unit;
|
||||||
}
|
}
|
||||||
|
@ -122,6 +122,7 @@ public class PlcLogsServiceImpl implements PlcLogService {
|
|||||||
SheetInfoBean sheetDTO = new SheetInfoBean();
|
SheetInfoBean sheetDTO = new SheetInfoBean();
|
||||||
map.put("variable", "英文名称");
|
map.put("variable", "英文名称");
|
||||||
map.put("description", "中文描述");
|
map.put("description", "中文描述");
|
||||||
|
map.put("unit","单位");
|
||||||
sheetDTO.setSheetName(theoreticalPowerCurve.getMadeinfactory());
|
sheetDTO.setSheetName(theoreticalPowerCurve.getMadeinfactory());
|
||||||
sheetDTO.setFieldAndAlias(map);
|
sheetDTO.setFieldAndAlias(map);
|
||||||
sheetDTO.setCollection(sysFaultRecordingDescList);
|
sheetDTO.setCollection(sysFaultRecordingDescList);
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
:data="tableData"
|
:data="tableData"
|
||||||
:header-row-style="tableHaderStyle"
|
:header-row-style="tableHaderStyle"
|
||||||
@selectionChange="selectTable"
|
@selectionChange="selectTable"
|
||||||
max-height="100%"
|
class="tableClass"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55"></el-table-column>
|
<el-table-column type="selection" width="55"></el-table-column>
|
||||||
<template v-for="item in tableColumn" :key="item.prop">
|
<template v-for="item in tableColumn" :key="item.prop">
|
||||||
@ -619,6 +619,10 @@ getBlongLineList()
|
|||||||
.mainPart {
|
.mainPart {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 60px);
|
height: calc(100% - 60px);
|
||||||
|
.tableClass{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
.tableColumnClick {
|
.tableColumnClick {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
color: #00a4ff;
|
color: #00a4ff;
|
||||||
|
@ -478,7 +478,7 @@ const createSeriesData = () => {
|
|||||||
} else {
|
} else {
|
||||||
const color = getRandomDarkColor()
|
const color = getRandomDarkColor()
|
||||||
const data = {
|
const data = {
|
||||||
name: item,
|
name: fileKeyEnums?.[item] ?? item,
|
||||||
type: 'line',
|
type: 'line',
|
||||||
barWidth: 20,
|
barWidth: 20,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
|
@ -483,7 +483,7 @@ const createSeriresData = () => {
|
|||||||
} else {
|
} else {
|
||||||
const color = getRandomDarkColor()
|
const color = getRandomDarkColor()
|
||||||
const data = {
|
const data = {
|
||||||
name: item,
|
name: fileKeyEnums[item],
|
||||||
type: 'line',
|
type: 'line',
|
||||||
barWidth: 20,
|
barWidth: 20,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
|
Loading…
Reference in New Issue
Block a user