diff --git a/package.json b/package.json
index 266e74b..282ebf5 100644
--- a/package.json
+++ b/package.json
@@ -22,7 +22,7 @@
"cron-parser": "^2.10.0",
"dayjs": "^1.8.0",
"dom-align": "1.12.0",
- "echarts": "^4.9.0",
+ "echarts": "^5.4.2",
"enquire.js": "^2.1.6",
"js-cookie": "^2.2.0",
"lodash.get": "^4.4.2",
diff --git a/src/components/CustomChart/index.vue b/src/components/CustomChart/index.vue
index 8895695..5bc6792 100644
--- a/src/components/CustomChart/index.vue
+++ b/src/components/CustomChart/index.vue
@@ -1,26 +1,43 @@
-
+
diff --git a/src/views/stationOperation/components/MapPane.vue b/src/views/stationOperation/components/MapPane.vue
index 47166ee..365df62 100644
--- a/src/views/stationOperation/components/MapPane.vue
+++ b/src/views/stationOperation/components/MapPane.vue
@@ -223,19 +223,8 @@
-
-
-
-
- {{ legend.title }}
-
-
-
-
-
-
-
+
@@ -350,33 +339,6 @@ const columns = [
}
]
-const legendList = [
- {
- title: 'SPHDPREL',
- color: '#17a840'
- },
- {
- title: 'SPHDF',
- color: '#0cbfb0'
- },
- {
- title: 'QC',
- color: '#1c82eb'
- },
- {
- title: 'GASBKPHDPREL',
- color: '#d3ad16'
- },
- {
- title: 'GASBKPHDF',
- color: '#db6423'
- },
- {
- title: 'SOH/MET',
- color: '#8852da'
- }
-]
-
// Attribute Configuration 检验规则(自定义,非a-form校验)
const rules = {
cacheTime: {
@@ -441,7 +403,6 @@ export default {
leftPaneShow: true, // 左侧抽屉
- legendList, // 图例列表
statusList: [], // 数据接收状态列表
isGettingStatusList: false,
showChart: true,
@@ -785,12 +746,30 @@ export default {
// 获取数据接收状态列表
async getDataRecieveStatusList() {
try {
- console.log('%c [ ]-777', 'font-size:13px; background:pink; color:#bf2c9f;', this.initialDataRecieveSettings)
this.isGettingStatusList = true
- const res = await getAction('/jeecg-station-operation/stationOperation/getDataReceivingStatus', {
- userId: this.$store.getters.userInfo.id
- })
- console.log('%c [ res ]-640', 'font-size:13px; background:pink; color:#bf2c9f;', res)
+ const { success, result, message } = await getAction(
+ '/jeecg-station-operation/stationOperation/getDataReceivingStatus',
+ {
+ userId: this.$store.getters.userInfo.id
+ }
+ )
+ if (success) {
+ const statusList = []
+ result.forEach(item => {
+ const detectorArr = item.detectors[item.stationId]
+ detectorArr.forEach(detector => {
+ Object.values(detector).forEach(value => {
+ statusList.push({
+ title: `${item.stationCode} ${value.detectorId}`,
+ dataList: value.dataList
+ })
+ })
+ })
+ })
+ this.statusList = statusList
+ } else {
+ this.$message.error(message)
+ }
} catch (error) {
console.error(error)
} finally {
@@ -1203,29 +1182,6 @@ export default {
background-color: rgba(65, 111, 127, 0.5);
}
}
-
- .legend {
- margin: 32px 0;
- display: flex;
- justify-content: center;
-
- &-item {
- color: #ade6ee;
- line-height: 12px;
-
- &:not(:last-child) {
- margin-right: 30px;
- }
-
- &-color {
- display: inline-block;
- width: 12px;
- height: 12px;
- border-radius: 4px;
- margin-right: 6px;
- }
- }
- }
}
.fullscreen {
diff --git a/src/views/stationOperation/components/RealTimeDataChart.vue b/src/views/stationOperation/components/RealTimeDataChart.vue
index d55b311..fd3333f 100644
--- a/src/views/stationOperation/components/RealTimeDataChart.vue
+++ b/src/views/stationOperation/components/RealTimeDataChart.vue
@@ -1,113 +1,326 @@
-
-
-
-
-
+
+
+
+
+
+ {{ legend.title }}
+
+
+
+
+
-
+