From 99178bfe7b0df48ef06814cc56889120557c1ea0 Mon Sep 17 00:00:00 2001 From: 鲁尚清 <lushangqing@honggroup.com.cn> Date: Mon, 24 Jan 2022 21:12:24 +0800 Subject: [PATCH] 详情表格组件配置表头功能,页面嵌入到iframe中的弹框优化 --- report-ui/src/api/platform.js | 3258 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- report-ui/src/views/report/bigscreen/designer/designerComponents/configureIndicators.vue | 286 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ report-ui/src/views/report/bigscreen/designer/designerComponents/dynamicForm.vue | 12 +++++++++++- report-ui/src/views/report/bigscreen/designer/tools/echartsConfigJson/monitorConfigJson/monitor-detail-table.js | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- report-ui/src/views/report/bigscreen/designer/widget/monitor/detailTable.vue | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------- 5 files changed, 3720 insertions(+), 39 deletions(-) create mode 100644 report-ui/src/views/report/bigscreen/designer/designerComponents/configureIndicators.vue diff --git a/report-ui/src/api/platform.js b/report-ui/src/api/platform.js index 5a5d5ca..7c919d8 100644 --- a/report-ui/src/api/platform.js +++ b/report-ui/src/api/platform.js @@ -18,7 +18,1251 @@ export function getHealth(data) { method: 'get', }) } -export function getDetailTableData(){ +export function getDetailTableData(param){ + let params=param; + let tableData=''; + + let detailTableData1={ + "code": 0, + "msg": "", + "count": 6, + "data": [{ + "header": [{ + "id": "KPI7AC1664E", + "name": "文件系统挂载", + "unit": "" + }, { + "id": "KPI449F5365", + "name": "文件系统使用率", + "unit": "%" + }, { + "id": "KPIA91F44E7", + "name": "文件系统总大小", + "unit": "GB" + }, { + "id": "KPI98306224", + "name": "文件系统已使用大小", + "unit": "GB" + }, { + "id": "KPIE25925F7", + "name": "文件系统空闲大小", + "unit": "GB" + }, { + "id": "KPI77C28BBA", + "name": "卷名称", + "unit": "" + }, { + "id": "KPIF74D9D2B", + "name": "最近采集时间", + "unit": "" + }], + "content": [ + [{ + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI7AC1664E", + "kpiName": "文件系统挂载", + "flag": "fs-", + "kpiValue": "/ ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI449F5365", + "kpiName": "文件系统使用率", + "flag": "fs-", + "kpiValue": "83%", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "percent", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIA91F44E7", + "kpiName": "文件系统总大小", + "flag": "fs-", + "kpiValue": "98.30 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 2, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI98306224", + "kpiName": "文件系统已使用大小", + "flag": "fs-", + "kpiValue": "13.69 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 1, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIE25925F7", + "kpiName": "文件系统空闲大小", + "flag": "fs-", + "kpiValue": "79.61 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI77C28BBA", + "kpiName": "卷名称", + "flag": "fs-", + "kpiValue": "/dev/vda1 ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIF74D9D2B", + "kpiName": "最近采集时间", + "flag": "fs-", + "kpiValue": "2022-01-17 08:51:11 ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }], + [{ + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI7AC1664E", + "kpiName": "文件系统挂载", + "flag": "fs-run", + "kpiValue": "/run ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI449F5365", + "kpiName": "文件系统使用率", + "flag": "fs-run", + "kpiValue": "92%", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "percent", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIA91F44E7", + "kpiName": "文件系统总大小", + "flag": "fs-run", + "kpiValue": "7.76 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 2, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI98306224", + "kpiName": "文件系统已使用大小", + "flag": "fs-run", + "kpiValue": "0.00 BIT", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 1, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIE25925F7", + "kpiName": "文件系统空闲大小", + "flag": "fs-run", + "kpiValue": "7.76 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI77C28BBA", + "kpiName": "卷名称", + "flag": "fs-run", + "kpiValue": "tmpfs ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIF74D9D2B", + "kpiName": "最近采集时间", + "flag": "fs-run", + "kpiValue": "2022-01-17 08:51:11 ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }], + [{ + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI7AC1664E", + "kpiName": "文件系统挂载", + "flag": "fs-dev", + "kpiValue": "/dev ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI449F5365", + "kpiName": "文件系统使用率", + "flag": "fs-dev", + "kpiValue": "0%", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "percent", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIA91F44E7", + "kpiName": "文件系统总大小", + "flag": "fs-dev", + "kpiValue": "7.75 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 2, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI98306224", + "kpiName": "文件系统已使用大小", + "flag": "fs-dev", + "kpiValue": "0.00 BIT", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 1, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIE25925F7", + "kpiName": "文件系统空闲大小", + "flag": "fs-dev", + "kpiValue": "7.75 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI77C28BBA", + "kpiName": "卷名称", + "flag": "fs-dev", + "kpiValue": "devtmpfs ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIF74D9D2B", + "kpiName": "最近采集时间", + "flag": "fs-dev", + "kpiValue": "2022-01-17 08:51:11 ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }], + [{ + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI7AC1664E", + "kpiName": "文件系统挂载", + "flag": "fs-runuser0", + "kpiValue": "/run/user/0 ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI449F5365", + "kpiName": "文件系统使用率", + "flag": "fs-runuser0", + "kpiValue": "0%", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "percent", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIA91F44E7", + "kpiName": "文件系统总大小", + "flag": "fs-runuser0", + "kpiValue": "1.55 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 2, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI98306224", + "kpiName": "文件系统已使用大小", + "flag": "fs-runuser0", + "kpiValue": "0.00 BIT", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 1, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIE25925F7", + "kpiName": "文件系统空闲大小", + "flag": "fs-runuser0", + "kpiValue": "1.55 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI77C28BBA", + "kpiName": "卷名称", + "flag": "fs-runuser0", + "kpiValue": "tmpfs ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIF74D9D2B", + "kpiName": "最近采集时间", + "flag": "fs-runuser0", + "kpiValue": "2022-01-17 08:51:11 ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }], + [{ + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI7AC1664E", + "kpiName": "文件系统挂载", + "flag": "fs-runuser1000", + "kpiValue": "/run/user/1000 ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI449F5365", + "kpiName": "文件系统使用率", + "flag": "fs-runuser1000", + "kpiValue": "0%", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "percent", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIA91F44E7", + "kpiName": "文件系统总大小", + "flag": "fs-runuser1000", + "kpiValue": "1.55 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 2, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI98306224", + "kpiName": "文件系统已使用大小", + "flag": "fs-runuser1000", + "kpiValue": "0.00 BIT", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 1, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIE25925F7", + "kpiName": "文件系统空闲大小", + "flag": "fs-runuser1000", + "kpiValue": "1.55 GB", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "gb", + "kpiIdent": "1", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPI77C28BBA", + "kpiName": "卷名称", + "flag": "fs-runuser1000", + "kpiValue": "tmpfs ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "none", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }, { + "id": null, + "collectorId": null, + "batchNo": null, + "taskId": null, + "taskName": null, + "resId": null, + "resName": null, + "templateId": null, + "templateName": null, + "directiveId": null, + "directiveName": null, + "kpiId": "KPIF74D9D2B", + "kpiName": "最近采集时间", + "flag": "fs-runuser1000", + "kpiValue": "2022-01-17 08:51:11 ", + "collTime": null, + "duration": null, + "createTime": null, + "ipAddr": null, + "kpiUnit": "", + "kpiIdent": "0", + "isWarning": 0, + "isTrend": 0, + "kpiLevel": 0, + "resTypeExtend": null, + "osExtend": null, + "ip": null, + "version": null, + "resType": null, + "message": null, + "ext": null, + "canCA": true, + "inCAing": false + }] + ], + "page": 1, + "total": 6 + }], + "map": null, + "success": true, + "obj": null, + "object": null, + "str": null, + "totalRow": null + } let detailTableData={ "code": 0, "msg": "", @@ -1264,7 +2508,15 @@ export function getDetailTableData(){ "str": null, "totalRow": null } - return detailTableData; + if(params.kpiId=='KPI7AC1664E,KPI449F5365,KPIA91F44E7,KPI98306224,KPI77C28BBA'){ + console.log("a1") + tableData=detailTableData1; + }else{ + console.log("a2") + tableData=detailTableData; + + } + return tableData; } export function getDetailTableDataNoPage(){ @@ -2989,3 +4241,2005 @@ export function getDetailTableDataNoPage(){ } return detailTaleData; } + +export function getKpiPage(){ + let kpiPageData={ + "code": 0, + "msg": "", + "count": 796, + "data": [ + { + "kpiId": "KPI7AC1664E", + "kpiName": "文件系统挂载", + "kpiType": "PC服务器,小型机分区,虚拟机", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "文件系统挂载", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1544149368000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, + { + "kpiId": "KPI449F5365", + "kpiName": "文件系统使用率", + "kpiType": "PC服务器,小型机分区,虚拟机", + "kpiDataType": "number", + "kpiUnit": "%", + "remark": "文件系统使用率", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "1", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1544149368000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "\"%\"", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, + { + "kpiId": "KPIA91F44E7", + "kpiName": "文件系统总大小", + "kpiType": "PC服务器,小型机分区,虚拟机", + "kpiDataType": "number", + "kpiUnit": "GB", + "remark": "文件系统总大小(GB)", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "1", + "syncFlag": "0", + "isWarning": 2, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1544149368000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": -1, + "unitGroupId": "storage", + "kpiTotal": null, + "resId": null, + "unit": "GB", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, + { + "kpiId": "KPI98306224", + "kpiName": "文件系统已使用大小", + "kpiType": "oracle,PC服务器,小型机分区,虚拟机", + "kpiDataType": "number", + "kpiUnit": "GB", + "remark": "文件系统已使用大小(GB)", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "1", + "syncFlag": "0", + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1544149368000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": -1, + "unitGroupId": "storage", + "kpiTotal": null, + "resId": null, + "unit": "GB", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, + { + "kpiId": "KPI77C28BBA", + "kpiName": "卷名称", + "kpiType": "PC服务器,小型机分区,虚拟机", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "文件系统名称", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1544149368000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, + { + "kpiId": "KPI4EFF9873", + "kpiName": "所属平台", + "kpiType": "宿主机,虚拟机,资源池", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": null, + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1627620669000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI1F5D2F9D", + "kpiName": "缓存已使用大小", + "kpiType": "PC服务器,虚拟机", + "kpiDataType": "number", + "kpiUnit": "无", + "remark": "缓存已使用大小", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1608745200000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "GB", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIAEA0D167", + "kpiName": "RTT最小", + "kpiType": "mysql,oracle,PC服务器,weblogic,交换机,网络链路,虚拟机,路由器", + "kpiDataType": "number", + "kpiUnit": "无", + "remark": null, + "kpiCategory": "1", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": "0", + "isWarning": null, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": null, + "kpiLevelStr": null, + "createTime": 1607439713000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI91A1DA5E", + "kpiName": "丢包率", + "kpiType": "mysql,oracle,PC服务器,VMWARE,weblogic,交换机,网络链路,虚拟机", + "kpiDataType": "number", + "kpiUnit": "%", + "remark": null, + "kpiCategory": "1", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": "0", + "isWarning": null, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": null, + "kpiLevelStr": null, + "createTime": 1607439713000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "\"%\"", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIC9459CE7", + "kpiName": "RTT最大", + "kpiType": "mysql,oracle,PC服务器,weblogic,交换机,网络链路,虚拟机,路由器", + "kpiDataType": "number", + "kpiUnit": "无", + "remark": null, + "kpiCategory": "1", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": "0", + "isWarning": null, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": null, + "kpiLevelStr": null, + "createTime": 1607439713000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIB471F777", + "kpiName": "RTT平均", + "kpiType": "mysql,oracle,PC服务器,VMWARE,weblogic,交换机,网络链路,虚拟机,路由器", + "kpiDataType": "number", + "kpiUnit": "无", + "remark": null, + "kpiCategory": "1", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": "0", + "isWarning": null, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": null, + "kpiLevelStr": null, + "createTime": 1607439713000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI10DAA677", + "kpiName": "PING详情", + "kpiType": "mysql,oracle,PC服务器,weblogic,交换机,网络链路,虚拟机,路由器", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": null, + "kpiCategory": "1", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1607439366000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIB9361011", + "kpiName": "HOST", + "kpiType": "kafka", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "kafka_topic", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1594118863000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI22396974", + "kpiName": "LAG", + "kpiType": "kafka", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "kafka_topic", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 1, + "kpiLevelStr": null, + "createTime": 1594118803000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI2C39DE64", + "kpiName": "LOG_END_OFFSET", + "kpiType": "kafka", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "kafka_topic", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1594118738000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIC596D903", + "kpiName": "CURRENT_OFFSET", + "kpiType": "kafka", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "kafka_topic", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1594118676000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI85144455", + "kpiName": "PARTITION", + "kpiType": "kafka", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "kafka_topic", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1594118565000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI2DA12ADC", + "kpiName": "TOPIC", + "kpiType": "kafka", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "kafka_topic", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1594118381000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI720909A4", + "kpiName": "GROUP", + "kpiType": "kafka", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "kafka_topic", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": "0", + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1594117793000, + "ignoreCnt": null, + "isTrend": null, + "sort": -1, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI49388E5F", + "kpiName": "华为云平台信息", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585736210000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI144CD0F0", + "kpiName": "硬盘可回收大小", + "kpiType": "STORAGE_TAPELIBRARY", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "硬盘可回收大小", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI2167AC28", + "kpiName": "硬盘总大小", + "kpiType": "STORAGE_TAPELIBRARY", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "硬盘总大小", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI4385EB28", + "kpiName": "带库健康状态", + "kpiType": "STORAGE_TAPELIBRARY", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "2", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI89EA8E8A", + "kpiName": "物理库状态", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "2", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI473DD57E", + "kpiName": "逻辑库名称", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI1A7A09B9", + "kpiName": "IE门状态", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "2", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIA160CCDE", + "kpiName": "硬盘空闲大小", + "kpiType": "STORAGE_TAPELIBRARY", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "硬盘空闲大小", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI5258FAE8", + "kpiName": "盒带总负载", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIB880EA96", + "kpiName": "硬盘空闲率", + "kpiType": "STORAGE_TAPELIBRARY", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "硬盘空闲率", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI12C2B0A2", + "kpiName": "存储槽位数量", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIADDC3E75", + "kpiName": "SCSI状态", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "2", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIF985A467", + "kpiName": "驱动类型", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI372C572A", + "kpiName": "清理状态", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "2", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIB181D4B6", + "kpiName": "IE 槽位数量", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIFCB6FE4F", + "kpiName": "物理驱动数量", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI05DE9280", + "kpiName": "主门状态", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "2", + "syncFlag": null, + "isWarning": 1, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585638555000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI1303E638", + "kpiName": "修改时间", + "kpiType": "HUAWEI_CLOUD_COLONY", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585636108000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI5BBB001D", + "kpiName": "访问状态", + "kpiType": "HUAWEI_CLOUD_COLONY", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "访问状态", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "2", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585635971000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIA68BF2AA", + "kpiName": "资源池类型", + "kpiType": "HUAWEI_CLOUD_COLONY", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "资源池类型", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585631944000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIF1BCADFA", + "kpiName": "磁盘种类", + "kpiType": "ALI_CLOUD_ECS", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": null, + "flag": null, + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585382986000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI84B916DA", + "kpiName": "数据库类型", + "kpiType": "ALI_CLOUD_RDS", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIB7AD65A8", + "kpiName": "虚拟交换机", + "kpiType": "ALI_CLOUD_ECS", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIF562F75C", + "kpiName": "服务地址", + "kpiType": "ALI_CLOUD_SLB", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI14BF4140", + "kpiName": "端口每秒流出数据量", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "kb/s", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "\"kb/s\"", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI3B14C524", + "kpiName": "读取次数", + "kpiType": "ALI_CLOUD_OSS", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIA41238D5", + "kpiName": "地址类型", + "kpiType": "ALI_CLOUD_SLB", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPID3CE40D8", + "kpiName": "区域", + "kpiType": "ALI_CLOUD_ECS,ALI_CLOUD_OSS,ALI_CLOUD_SLB", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI3BAFF902", + "kpiName": "负载均衡ID", + "kpiType": "ALI_CLOUD_SLB", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIE227F80D", + "kpiName": "负载均衡名称", + "kpiType": "ALI_CLOUD_SLB", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI6E994D22", + "kpiName": "IP地址(私有)", + "kpiType": "ALI_CLOUD_ECS", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI1782D6AF", + "kpiName": "实例ID", + "kpiType": "ALI_CLOUD_ECS,ALI_CLOUD_RDS", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI31ECC0E6", + "kpiName": "项目", + "kpiType": "ALI_CLOUD_OSS,ALI_CLOUD_ECS,ALI_CLOUD_SLB", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIDFBEC5C5", + "kpiName": "端口每秒流入数据包数", + "kpiType": null, + "kpiDataType": "string", + "kpiUnit": "个", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "1", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "个", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPI8BB9C6D6", + "kpiName": "专有网络ID", + "kpiType": "ALI_CLOUD_ECS,ALI_CLOUD_RDS", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }, { + "kpiId": "KPIBCE6AF4F", + "kpiName": "计量方式", + "kpiType": "ALI_CLOUD_SLB", + "kpiDataType": "string", + "kpiUnit": "无", + "remark": "", + "kpiCategory": "0", + "viewWay": "", + "flag": "", + "kpiIdent": "0", + "syncFlag": null, + "isWarning": 0, + "kpiPower": null, + "isWarningStr": null, + "kpiLevel": 0, + "kpiLevelStr": null, + "createTime": 1585199332000, + "ignoreCnt": 0, + "isTrend": 0, + "sort": null, + "unitGroupId": null, + "kpiTotal": null, + "resId": null, + "unit": "", + "typeNum": null, + "policyNum": "0", + "expression": null, + "standardValue": null, + "baselineId": null, + "policy": null, + "analysisExpr": null, + "kpiValue": null, + "relId": null, + "levelList": null, + "canCA": null + }], + "map": null, + "success": true, + "obj": null, + "object": null, + "str": null, + "totalRow": null + } + return kpiPageData; +} diff --git a/report-ui/src/views/report/bigscreen/designer/designerComponents/configureIndicators.vue b/report-ui/src/views/report/bigscreen/designer/designerComponents/configureIndicators.vue new file mode 100644 index 0000000..a11862a --- /dev/null +++ b/report-ui/src/views/report/bigscreen/designer/designerComponents/configureIndicators.vue @@ -0,0 +1,286 @@ +<template> + <div> + <el-button + type="primary" + size="small" + plain + @click="handleAddClick" + >配置表头</el-button + > +<!-- <el-table :data="formData" style="width: 100%"> + <el-table-column prop="name" label="名称" width="60" /> + <el-table-column prop="key" label="key值" width="70" /> + <el-table-column prop="width" label="宽度" width="50" /> + <el-table-column label="操作" width="100"> + <template slot-scope="scope"> + <div class="button-group"> + <el-button + type="text" + size="small" + @click="handleDeleteClick(scope.$index, scope.row)" + >删除</el-button + > + </div> + </template> + </el-table-column> + </el-table>--> + + <el-dialog + title="性能指标" + :visible.sync="dialogVisible" + width="60%" + :before-close="handleClose" + > + <div class="table-search"> + <el-input v-model="keyword" placeholder="请输入指标名称" clearable /> + <el-button @click="searchKpi" class="search-btn" type="primary">搜索</el-button> + </div> + <el-table :data="tableData" height="350" style="width: 100%" ref="multipleTableRef" @selection-change="handleSelectionChange" + :row-key="(row) => { return row.kpiId }" + > + <el-table-column type="selection" width="55" :reserve-selection="true" /> + <el-table-column prop="kpiName" label="指标名称" width="180" /> + <el-table-column prop="kpiId" label="指标ID" width="180" /> + <el-table-column prop="kpiCategory" label="指标分类" > + <template #default="scope">{{ scope.row.kpiCategory==0?'基本指标':'性能指标' }}</template> + </el-table-column> + <el-table-column prop="kpiUnit" label="指标单位" width="180" /> + <el-table-column prop="kpiPower" label="指标权限" width="180" > + <template #default="scope">{{ scope.row.kpiPower=='hard'?'硬件':scope.row.kpiPower=='soft'?'系统':'公共' }}</template> + </el-table-column> + <el-table-column prop="policyNum" label="告警策略" width="180" > + <template #default="scope">{{ scope.row.policyNum>0?'':'暂无' }}</template> + </el-table-column> + </el-table> + <!-- 分页 --> + <div style='text-align: left;background-color: white'> + <el-pagination + v-if="currentPage" + @size-change="handleSizeChange" + @prev-click="prePage" + @next-click="nextPage" + @current-change="handleCurrentChange" + :current-page="currentPage" + :page-sizes="pageSizes" + :page-size="pageSize" + :total="total"> + </el-pagination> + </div> + <span slot="footer" class="dialog-footer"> + <el-button size="mini" @click="dialogVisible = false">取 消</el-button> + <el-button size="mini" type="primary" @click="handleSaveClick" + >确 定</el-button + > + </span> + </el-dialog> + </div> +</template> +<script> +import {getKpiPage} from "@/api/platform"; +import {formatDate} from "../../../../../filter"; +export default { + model: { + prop: "formData", + event: "input" + }, + props: { + formData: Array + }, + data() { + return { + keyword:'', + currentPage:1, + pageSize:10, + pageSizes:[10,50,100, 200, 300, 400], + total:0, + layout:false, + dialogVisible: false, + rowFormData: { + name: "", + key: "", + width: "" + }, + flag: true, // true 新增, false 编辑 + indexEditor: -1, // 编辑第几个数据 + tableData: [], + multipleSelection:[] + }; + }, + methods: { + //搜索指标 + searchKpi(){ + this.getKpi(); + }, + //获取性能指标列表 + getKpi(){ + let datas=getKpiPage(); + if(datas.success){ + this.tableData=datas.data; + + } + }, + //回显数据 + setCheckedData(){ + if(this.multipleSelection && this.multipleSelection.length>0){ + this.tableData.map(item=>{ + this.multipleSelection.map(v=>{ + if(item.kpiId==v.kpiId){ + setTimeout(()=>{ + this.$refs.multipleTableRef.toggleRowSelection(item) + },300) + } + }) + }) + } + }, + //多选操作 + handleSelectionChange(val) { + this.multipleSelection = val + }, + // 每页展示多少条 + handleSizeChange(val){ + // 切换页码重置初始页 + this.currentPage = 1 + // console.log(`每页 ${val} 条`) + //props.pageSize = val; + this.pageSize = val; + this.getKpi(); + }, + + // 切换页码 + handleCurrentChange(val){ + // console.log(`当前页: ${val}`) + //props.currentPage = val; + this.currentPage = val; + this.getKpi(); + }, + // 切换页码 + prePage(val) { + // console.log(`当前页: ${val}`) + // props.currentPage = val - 1; + this.currentPage = val-1; + this.getKpi(); + }, + + // 切换页码 + nextPage(val){ + // console.log(`当前页: ${val}`) + // props.currentPage = val + 1; + this.currentPage = val+1; + this.getKpi(); + }, + // 配置性能指标 + handleAddClick() { + this.rowFormData = {}; + this.flag = true; + this.dialogVisible = true; + this.getKpi(); + + }, + // 编辑 + handleEditorClick(index, row) { + this.flag = false; + this.rowFormData = this.deepClone(row); + this.indexEditor = index; + this.dialogVisible = true; + }, + // 关闭 + handleClose() { + this.dialogVisible = false; + }, + // 保存 + handleSaveClick() { + if (this.flag) { + // 新增 + // this.formData.push(this.rowFormData); + let arr=[] + this.multipleSelection.map(item=>{ + arr.push({name:item.kpiName,key:item.kpiId,width:'50%'}) + }) + this.formData=arr; + console.log("formadata",this.formData) + this.dialogVisible = false; + } else { + // 编辑 + this.formData[this.indexEditor] = this.rowFormData; + this.$set(this.formData, this.indexEditor, this.rowFormData); + this.dialogVisible = false; + } + this.$emit("input", this.formData); + this.$emit("change", this.formData); + }, + // 删除 + handleDeleteClick(index,row) { + this.formData.splice(index, 1); + this.setTableChecked(row.key); + this.$emit("input", this.formData); + this.$emit("change", this.formData); + }, + //设置表格选中状态 + setTableChecked(kpiId){ + let indexId=''; + this.multipleSelection.map((item,index)=>{ + if(kpiId==item.kpiId){ + indexId=index; + } + }) + this.multipleSelection.splice(indexId, 1); + console.log("*/*/*",this.multipleSelection) + this.tableData.map(item=>{ + if(item.kpiId==kpiId){ + setTimeout(()=>{ + this.$refs.multipleTableRef.toggleRowSelection(item) + },300) + } + }) + } + } +}; +</script> +<style lang="scss" scoped> +/deep/::-webkit-scrollbar-track-piece { + background-color: transparent; +} +/deep/ .el-table__body-wrapper::-webkit-scrollbar { + width: 0; // 横向滚动条 + height: 8px; // 纵向滚动条 必写 +} +// 滚动条的滑块 +/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb { + border-radius: 5px; + background-color: rgba(144, 146, 152, 0.3); +} +/deep/.el-table, +/deep/.el-table__expanded-cell, +/deep/.el-table th, +/deep/.el-table tr { + background-color: transparent !important; + color: #859094 !important; + font-size: 12px !important; +} +/deep/.el-table td, +/deep/.el-table th.is-leaf { + border-bottom: none; + line-height: 26px; +} +/deep/.el-table tbody tr:hover { + background-color: #263445 !important; +} +/deep/.el-table tbody tr:hover > td { + background-color: #263445 !important; +} +/deep/.el-table::before { + height: 0; +} +.button-group .el-button { + padding: 0; +} +.table-search{ + display: flex; + align-items: center; + .search-btn{ + margin-left: 10px; + + } +} +</style> diff --git a/report-ui/src/views/report/bigscreen/designer/designerComponents/dynamicForm.vue b/report-ui/src/views/report/bigscreen/designer/designerComponents/dynamicForm.vue index 91e5946..944cb9b 100644 --- a/report-ui/src/views/report/bigscreen/designer/designerComponents/dynamicForm.vue +++ b/report-ui/src/views/report/bigscreen/designer/designerComponents/dynamicForm.vue @@ -139,6 +139,12 @@ :dict-key="item.dictKey" @change="changed($event, item.name)" /> + <configureIndicators + v-if="item.type == 'dynamic-detail-table' && inputShow[item.name]" + v-model="formData[item.name]" + :chart-type="item.chartType" + @change="changed($event, item.name)" + /> <dynamic-add-table v-if="item.type == 'dynamic-add-table' && inputShow[item.name]" v-model="formData[item.name]" @@ -276,6 +282,9 @@ import dynamicComponents from "./dynamicComponents.vue"; import customColorComponents from "./customColorComponents"; import dynamicAddTable from "./dynamicAddTable.vue"; import customUpload from "./customUpload.vue"; + +import configureIndicators from "./configureIndicators.vue"; + export default { name: "DynamicForm", components: { @@ -284,7 +293,8 @@ export default { dynamicComponents, customColorComponents, dynamicAddTable, - customUpload + customUpload, + configureIndicators }, model: { prop: "value", diff --git a/report-ui/src/views/report/bigscreen/designer/tools/echartsConfigJson/monitorConfigJson/monitor-detail-table.js b/report-ui/src/views/report/bigscreen/designer/tools/echartsConfigJson/monitorConfigJson/monitor-detail-table.js index 7f7c294..722f40b 100644 --- a/report-ui/src/views/report/bigscreen/designer/tools/echartsConfigJson/monitorConfigJson/monitor-detail-table.js +++ b/report-ui/src/views/report/bigscreen/designer/tools/echartsConfigJson/monitorConfigJson/monitor-detail-table.js @@ -273,17 +273,18 @@ export const monitorDetailTable = { }, ], { - type: 'dynamic-add-table', + type: 'dynamic-detail-table', label: '', name: 'dynamicAddTable', required: false, + chartType:'detail-table', placeholder: '', value: [ - {name: '文件系统挂载', key: 'fileAddress', width: '50%',kpiIdent:0,isWarning:0}, - {name: '文件系统使用率', key: 'fileUseRate', width: '50%',isWarning:1,kpiIdent:0}, - {name: '文件系统总大小', key: 'fileSize', width: '50%',kpiIdent:1,isWarning:0}, - {name: '文件系统已使用大小', key: 'fileSizeUsed', width: '50%',kpiIdent:1,isWarning:0}, - {name: '卷名称', key: 'fileAddressName', width: '50%',kpiIdent:0,isWarning:0}, + {name: '文件系统挂载', key: 'KPI7AC1664E', width: '50%',isStatic:true}, + {name: '文件系统使用率', key: 'KPI449F5365', width: '50%',isStatic:true}, + {name: '文件系统总大小', key: 'KPIA91F44E7', width: '50%',isStatic:true}, + {name: '文件系统已使用大小', key: 'KPI98306224', width: '50%',isStatic:true}, + {name: '卷名称', key: 'KPI77C28BBA', width: '50%',isStatic:true}, ] } ], @@ -324,11 +325,102 @@ export const monitorDetailTable = { relactiveDom: 'dataType', relactiveDomValue: 'staticData', value: [ - {fileAddress: '/', fileUseRate: '99%', fileSize: '196.74',fileSizeUsed:'184',fileAddressName:'/dev/vda1'}, - {fileAddress: '/dev', fileUseRate: '0%', fileSize: '15.74',fileSizeUsed:'0.00',fileAddressName:'devtmpfs'}, - {fileAddress: '/run', fileUseRate: '1%', fileSize: '15.32',fileSizeUsed:'0.14',fileAddressName:'tmpfs'}, - {fileAddress: '/run/user/0', fileUseRate: '0%', fileSize: '3.74',fileSizeUsed:'10',fileAddressName:'tmpfs'}, - {fileAddress: '/run/user/0001', fileUseRate: '2', fileSize: '3.69',fileSizeUsed:'1.23',fileAddressName:'tmpfs'}, + { + header: [ + { + id: "KPI7AC1664E", + name: "文件系统挂载", + unit: "" + }, { + id: "KPI449F5365", + name: "文件系统使用率", + unit: "%" + }, { + id: "KPIA91F44E7", + name: "文件系统总大小", + unit: "" + }, { + id: "KPI98306224", + name: "文件系统已使用大小", + unit: "" + },{ + id: "KPI77C28BBA", + name: "卷名称", + unit: "" + }, { + id: "KPIF74D9D2B", + name: "最近采集时间", + unit: "" + } + ], + content:[ + [ + { + kpiId: "KPI7AC1664E", + kpiName: "文件系统挂载", + flag: "inode-", + kpiValue: "/ ", + kpiUnit: "none", + kpiIdent: "0", + isWarning: 0, + isTrend: 0, + kpiLevel: 0, + }, + { + kpiId: "KPI449F5365", + kpiName: "文件系统使用率", + flag: "inode-", + kpiValue: "3%", + kpiUnit: "percent", + kpiIdent: "1", + isWarning: 0, + isTrend: 0, + kpiLevel: 0, + }, + { + kpiId: "KPIA91F44E7", + kpiName: "文件系统总大小", + flag: "inode-", + kpiValue: "6553600 ", + kpiUnit: "none", + kpiIdent: "1", + isWarning: 0, + isTrend: 0, + kpiLevel: 0, + }, { + kpiId: "KPI98306224", + kpiName: "文件系统已使用大小", + flag: "inode-", + kpiValue: "81699 ", + kpiUnit: "none", + kpiIdent: "1", + isWarning: 0, + isTrend: 0, + kpiLevel: 0, + }, { + kpiId: "KPI77C28BBA", + kpiName: "卷名称", + flag: "inode-", + kpiValue: "/dev/vda1 ", + kpiUnit: "none", + kpiIdent: "0", + isWarning: 0, + isTrend: 0, + kpiLevel: 0, + }, { + kpiId: "KPIF74D9D2B", + kpiName: "最近采集时间", + flag: "inode-", + kpiValue: "2022-01-17 08:51:18 ", + kpiUnit: "", + kpiIdent: "0", + isWarning: 0, + isTrend: 0, + kpiLevel: 0, + } + ], + ] + } ], }, diff --git a/report-ui/src/views/report/bigscreen/designer/widget/monitor/detailTable.vue b/report-ui/src/views/report/bigscreen/designer/widget/monitor/detailTable.vue index 54d4096..944a163 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/monitor/detailTable.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/monitor/detailTable.vue @@ -28,9 +28,9 @@ :style="[bodyTableStyle, bodyTable(index),tableFiledWidth(idx),tableRowHeight()]" > <span @click="clickListName(item[itemChild.key])" :style="colorStyle(item[itemChild.key].kpiValue)" - :class="['listName',{'listName-link':item[itemChild.key].kpiIdent==1 || item[itemChild.key].isWarning==1}]"> + :class="['listName',{'listName-link':item[itemChild.key] && (item[itemChild.key].kpiIdent==1 || item[itemChild.key].isWarning==1)}]"> {{ item[itemChild.key].kpiValue}} </span> - <div class="basic-img" v-if="item[itemChild.key].kpiIdent==1 || item[itemChild.key].isWarning==1"> + <div class="basic-img" v-if="item[itemChild.key] && (item[itemChild.key].kpiIdent==1 || item[itemChild.key].isWarning==1)"> <el-popover ref="popoverMenu" placement="right" trigger="click" :auto-close="200"> <template #reference> <img class="info-img" src="@/assets/images/healthStatus/icon_row_menu.png" alt="" @click.stop="pressingTimes(index,idx)"> @@ -84,9 +84,10 @@ :key="idx" :style="[bodyTableStyle, bodyTable(index),tableFiledWidth(idx),tableRowHeight()]" > - <span @click="clickListName(item[itemChild.key])" :style="colorStyle(item[itemChild.key].kpiValue)" :class="['listName',{'listName-link':item[itemChild.key].kpiIdent==1 || item[itemChild.key].isWarning==1}]"> - {{ item[itemChild.key].kpiValue }}</span> - <div class="basic-img" v-if="item[itemChild.key].kpiIdent==1 || item[itemChild.key].isWarning==1"> + <span @click="clickListName(item[itemChild.key])" :style="colorStyle(item[itemChild.key].kpiValue)" + :class="['listName',{'listName-link':item[itemChild.key] && (item[itemChild.key].kpiIdent==1 || item[itemChild.key].isWarning==1)}]"> + {{ item[itemChild.key]?item[itemChild.key].kpiValue:'' }}</span> + <div class="basic-img" v-if="item[itemChild.key] && (item[itemChild.key].kpiIdent==1 || item[itemChild.key].isWarning==1)"> <el-popover ref="popoverMenu" placement="right" trigger="click" :auto-close="200"> <template #reference> <img class="info-img" src="@/assets/images/healthStatus/icon_row_menu.png" alt="" @click.stop="pressingTimes(index,idx)"> @@ -136,7 +137,6 @@ > </div> </div> - </div> <!-- <template #footer> @@ -300,7 +300,7 @@ export default { this.handlerHead(); this.handlerData(); this.visConfig(); - this.handlerDetailData(); + // this.handlerDetailData(); window.addEventListener("scroll", this.handleScroll, true); //监听滚动事件 }, visConfig(){ @@ -325,7 +325,6 @@ export default { let ybNum=rollSet.ybNum?rollSet.ybNum:80; let zyNum=rollSet.zyNum?rollSet.zyNum:85; let yzNum=rollSet.yzNum?rollSet.yzNum:95; - console.log("color",ybNum,rollSet.zcColor) if(val){ let value=val.split("%") if(value && value.length>1){ @@ -364,22 +363,34 @@ export default { this.selectNum = 1; } - let scroll=window.pageYOffset; + // let scroll=window.pageYOffset; + let scroll=document.documentElement.scrollTop; let documentHeight=document.documentElement.clientHeight; - console.log("123",documentHeight,scroll) - this.heightStyle="height:"+(documentHeight+scroll)+'px;'; - this.marginStyle+="margin-top:"+(scroll+30)+'px;'; + // let documentHeight=document.body.scrollHeight; + if (self != top) { + //嵌入到监控系统iframe中弹框位置样式 + this.heightStyle="height:"+(documentHeight+210)+'px;top:'+scroll+'px'; + if(scroll<600){ + this.marginStyle+="margin-top:"+(110)+'px;'; + + }else{ + this.marginStyle+="margin-top:"+(210)+'px;'; + } + }else{ + //ajreport中弹框位置样式 + this.heightStyle="height:"+(documentHeight+scroll)+'px;'; + this.marginStyle+="margin-top:"+(scroll+100)+'px;'; + } }, handleHeadContent(headTable,flg){ - let data = headTable.data[0]; + let data = headTable; let head = data.header; let content = data.content; let colArr = []; let fisttd = ""; let datas=[]; - head.map((v) => { fisttd = v.id; let columnObj = { @@ -394,13 +405,17 @@ export default { if (ccv.kpiValue || ccv.kpiValue === 0) { kpi[ccv.kpiId] = ccv; } else { - kpi[ccv.kpiId] = {}; + kpi[ccv.kpiId] = { + kpiValue: "", + kpiUnit: "", + kpiIdent: "0", + isWarning: 0, + }; } }) datas.push(kpi); }) - console.log("col",colArr) if(flg=='all'){ this.headerAll=colArr; this.listAll=datas; @@ -408,25 +423,45 @@ export default { this.list=datas; this.header=colArr; } - console.log("datas",datas) - }, - handlerDetailData(){ - let headTable = getDetailTableData(); + handlerDetailData(valData){ + let kpiArr=[] + let kpiIdStr=''; + if(this.header && this.header.length>0){ + this.header.map(item=>{ + if(item.isStatic){ + + }else{ + kpiArr.push(item.key) + } + }) + } + if(kpiArr && kpiArr.length>0){ + kpiIdStr=kpiArr.join(','); + } + let param={ + kpiId:kpiIdStr + } + let headTable = valData; + if(kpiIdStr){ + //根据kpiId集合获取表格数据 + let tableData=getDetailTableData(param); + headTable=tableData.data[0]; + } + this.handleHeadContent(headTable) }, //打开更多表格 handlerDetailDataNoPage(){ let headTable =getDetailTableDataNoPage(); - this.handleHeadContent(headTable,'all'); + this.handleHeadContent(headTable.data[0],'all'); this.widthStyle=''; // this.setDialog('table'); this.tableVisible=true; }, //打开弹框 setDialog(name,flg){ - console.log("123",name,flg) /* if(flg=='dialog'){ this.tableVisible=true; @@ -440,7 +475,6 @@ export default { }, //点击表格内容名称事件 clickListName(obj){ - console.log("obj",obj) let trendsParams=obj; // this.trendSrc='http://127.0.0.1:8088/vue3/index.html#/vue3/pieDetailLine?resId=08586dba3a5b4a01ad88e8878eed6d53&kpiId=KPI7054BC34&flag=cpu&ident=1&trend=1&name=CPU%E4%BD%BF%E7%94%A8%E7%8E%87x&access_token=6e14ca48-4d05-42cf-b232-97981035824f' this.trendSrc='https://192.168.0.69:8088/#/user/login/redirect=%2F'; @@ -451,6 +485,7 @@ export default { handlerHead() { const head = this.optionsSetUp.dynamicAddTable; this.header = head; + // this.headerAll=head; }, handlerData() { const tableData = this.optionsData; @@ -458,8 +493,12 @@ export default { ? this.handlerStaticData(tableData.staticData) : this.handlerDynamicData(tableData.dynamicData, tableData.refreshTime); }, - handlerStaticData(data) { - this.list = data; + handlerStaticData(headTable) { + + this.handlerDetailData(headTable[0]); + + // this.handleHeadContent(headTable[0]) + // this.list = data; }, handlerDynamicData(data, refreshTime) { if (!data) return; -- libgit2 0.24.0