From d6fde5d5047496b087f7675b7494886a410e5ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=86=89=E5=86=89?= Date: Tue, 18 Nov 2025 18:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=8E=A7=E7=9C=8B=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E7=AE=A1=E7=90=86=E6=B7=BB=E5=8A=A0=E6=96=B0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E3=80=81=E6=9C=8D=E5=8A=A1=E5=99=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=B7=BB=E5=8A=A0=E6=89=A7=E8=A1=8C=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、监控看板_前端开发并联调 2、脚本管理页面_前端开发并联调 3、服务器脚本模块执行结果查看_前端开发并联调 --- src/api/disRevenue/resource.js | 8 ++ src/components/echartsList/line.vue | 7 +- src/components/table/index.vue | 79 ++++++----- src/router/index.js | 15 +++ .../businessScript/businessScript.vue | 7 +- .../earnManage/businessScript/details.vue | 1 + .../resource/monitorBoard/monitorBoard.vue | 24 +++- .../monitorBoard/monitorBoardView.vue | 126 ++++++++++++------ src/views/resource/serverRegister/handle.vue | 3 +- .../resource/serverScriptStrat/details.vue | 2 +- .../resource/serverScriptStrat/resultView.vue | 70 ++++++++++ .../serverScriptStrat/serverScriptStrat.vue | 23 +++- 12 files changed, 274 insertions(+), 91 deletions(-) create mode 100644 src/views/resource/serverScriptStrat/resultView.vue diff --git a/src/api/disRevenue/resource.js b/src/api/disRevenue/resource.js index c149699..5ba013b 100644 --- a/src/api/disRevenue/resource.js +++ b/src/api/disRevenue/resource.js @@ -362,6 +362,14 @@ export function getScriptResultBySn(data) { data: data }) } +// 执行结果详情列表 +export function getScriptResultList(data) { + return request({ + url: '/rocketmq/remote/getScriptResultByScriptId', + method: 'post', + data: data + }) +} // 获取资源分组列表 export function getResGroupList() { return request({ diff --git a/src/components/echartsList/line.vue b/src/components/echartsList/line.vue index ff1f2d3..01f61d3 100644 --- a/src/components/echartsList/line.vue +++ b/src/components/echartsList/line.vue @@ -87,7 +87,8 @@ }, methods: { getList(title, dataXY) { - const lineDataListIntance = echarts.init(document.getElementById('lineChart' + this.num)); + let that = this; + const lineDataListIntance = echarts.init(document.getElementById('lineChart' + that.num)); let titleList = [{text: title, x: '50%', y: '3%', textAlign: 'center',textStyle: {fontSize: 16}}]; if (dataXY && dataXY.titleSubtext) { titleList.push(dataXY.titleSubtext); @@ -203,6 +204,10 @@ this.positionYAxisSelector(lineDataListIntance); } }); + lineDataListIntance.off('click'); + lineDataListIntance.on("click", function(params) { + that.$emit("chartClickModel", {params: params}); + }); }, positionYAxisSelector(chartInstance) { const selector = document.querySelector('.yaxis-selector' + this.num); diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 65e2878..00ca598 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -25,7 +25,26 @@