diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue
index 2469565..57fea0b 100644
--- a/src/components/echarts/MyEchart.vue
+++ b/src/components/echarts/MyEchart.vue
@@ -44,7 +44,10 @@ const initChart = () => {
left: 'center',
// textStyle: {
color: '#000',
- fontSize: 18,
+ textStyle: {
+ color: '#000',
+ fontSize: '18'
+ },
// },
...(props.options?.title || null)
},
@@ -69,8 +72,8 @@ const initChart = () => {
...(props.options?.tooltip || null)
},
toolbox: {
- right: 20,
- top: 20,
+ right: 10,
+ top: 0,
feature: {
saveAsImage: {
title: '保存图片'
@@ -81,8 +84,8 @@ const initChart = () => {
...(props.options?.toolbox || null)
},
legend: {
- right: 20,
- top: 0,
+ right: 40,
+ top: 10,
itemGap: 10,
itemStyle: {},
// textStyle: {
diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue
index e4cb664..3563f32 100644
--- a/src/components/table/header/index.vue
+++ b/src/components/table/header/index.vue
@@ -129,7 +129,6 @@ const computedSearchRow = () => {
headerFormSecond.value.$el.appendChild(elFormItem[i])
}
}
- console.log("🚀 ~ computedSearchRow ~ headerFormSecond.value.$el.scrollHeight :", headerFormSecond.value.$el.scrollHeight )
// 判断是否需要折叠
if (headerFormSecond.value.$el.scrollHeight > 0) {
diff --git a/src/views/govern/alarm/Device.vue b/src/views/govern/alarm/Device.vue
index 8efbf3c..fa04a45 100644
--- a/src/views/govern/alarm/Device.vue
+++ b/src/views/govern/alarm/Device.vue
@@ -67,7 +67,11 @@ const tableStore = new TableStore({
{ title: '设备名称', field: 'equipmentName', align: 'center' },
{ title: '工程名称', field: 'engineeringName', align: 'center' },
{ title: '项目名称', field: 'projectName', align: 'center' },
- { title: '告警代码', field: 'code', align: 'center' },
+ { title: '告警代码', field: 'code', align: 'center',formatter: (row: any) => {
+ console.log("🚀 ~ row:", row)
+
+ return row.cellValue ? row.cellValue : '/'
+ }},
{ title: '事件描述', field: 'showName', align: 'center' },
{ title: '发生时刻', field: 'startTime', align: 'center' }
],
diff --git a/src/views/govern/device/control/detail.vue b/src/views/govern/device/control/detail.vue
index df71900..9df88f0 100644
--- a/src/views/govern/device/control/detail.vue
+++ b/src/views/govern/device/control/detail.vue
@@ -120,7 +120,13 @@ const init = () => {
echartsData.value = {
options: {
-
+ legend: {
+ right: 70,
+ top: 5,
+ data: res.data.map((item: any[]) => {
+ return item[0]?.anotherName
+ })
+ },
grid: {
top: '60px',
left: '10px',
@@ -176,11 +182,7 @@ const init = () => {
backgroundColor: 'rgba(0,0,0,0.35)',
borderWidth: 0
},
- legend: {
- data: res.data.map((item: any[]) => {
- return item[0]?.anotherName
- })
- },
+
yAxis: {
name: `单位:(${arr[0].unit == null ? ' / ' : arr[0].unit})`,
type: 'value',
@@ -271,6 +273,7 @@ const init = () => {
if ((echartsData.value.legend = ['A相', 'B相', 'C相'])) {
echartsData.value.color = ['#FFCC00', '#009900', '#CC0000']
}
+
} else {
echartsData.value = null
}
diff --git a/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue b/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue
index 1734742..ea4db17 100644
--- a/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue
+++ b/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue
@@ -12,7 +12,7 @@
-
+