From b641f7a31fd4920ee8d9d661193fdbbd6ff95b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=86=89=E5=86=89?= Date: Mon, 24 Nov 2025 18:35:12 +0800 Subject: [PATCH] =?UTF-8?q?MTRAgent=E7=AE=A1=E7=90=86=E3=80=81MTR=E6=8E=A2?= =?UTF-8?q?=E6=B5=8B=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、MTRAgent管理模块联调form表单、丢包趋势图表 2、MTR探测策略联调列表、表单等功能 --- .env.development | 2 +- .env.production | 2 +- .env.staging | 4 +- README.md | 58 +++++----- src/api/disRevenue/resource.js | 63 +++++++++++ src/components/form/index.vue | 7 ++ src/views/resource/mtrAgent/lossRateChart.vue | 80 +++++++++++--- src/views/resource/mtrAgent/mtrAgent.vue | 19 ++-- src/views/resource/mtrAgent/mtrAgentView.vue | 6 +- src/views/resource/mtrProbe/mtrProbe.vue | 20 ++-- src/views/resource/mtrProbe/mtrProbeView.vue | 102 +++++++++++------- 11 files changed, 254 insertions(+), 109 deletions(-) diff --git a/.env.development b/.env.development index 7bc928d..4454b17 100644 --- a/.env.development +++ b/.env.development @@ -4,7 +4,7 @@ VUE_APP_TITLE = SAAS综合管理平台 # 开发环境配置 ENV = 'development' -# 若依管理系统/开发环境 +# SAAS管理系统/开发环境 VUE_APP_BASE_API = '/dev-api' # 路由懒加载 diff --git a/.env.production b/.env.production index c88c843..6cc6118 100644 --- a/.env.production +++ b/.env.production @@ -4,5 +4,5 @@ VUE_APP_TITLE = SAAS综合管理平台 # 生产环境配置 ENV = 'production' -# 若依管理系统/生产环境 +# SAAS管理系统/生产环境 VUE_APP_BASE_API = 'http://172.16.15.102:8080' diff --git a/.env.staging b/.env.staging index 0d50388..99e4d23 100644 --- a/.env.staging +++ b/.env.staging @@ -8,5 +8,5 @@ NODE_ENV = production # 测试环境配置 ENV = 'staging' -# 若依管理系统/测试环境 -VUE_APP_BASE_API = '/stage-api' +# SAAS管理系统/测试环境 +VUE_APP_BASE_API = 'http://172.16.15.51:8080' diff --git a/README.md b/README.md index ad24b68..74c4858 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,30 @@ -## 开发 - -```bash -# 克隆项目 -git clone https://gitee.com/y_project/RuoYi-Vue - -# 进入项目目录 -cd ruoyi-ui - -# 安装依赖 -npm install - -# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 -npm install --registry=https://registry.npmmirror.com - -# 启动服务 -npm run dev -``` - -浏览器访问 http://localhost:80 - -## 发布 - -```bash -# 构建测试环境 -npm run build:stage - -# 构建生产环境 -npm run build:prod +## 开发 + +```bash +# 克隆项目 +git clone https://gitee.com/y_project/RuoYi-Vue + +# 进入项目目录 +cd profitManage + +# 安装依赖 +npm install + +# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 +npm install --registry=https://registry.npmmirror.com + +# 启动服务 +npm run dev +``` + +浏览器访问 http://localhost:80 + +## 发布 + +```bash +# 构建测试环境 +npm run build:stage + +# 构建生产环境 +npm run build:prod ``` \ No newline at end of file diff --git a/src/api/disRevenue/resource.js b/src/api/disRevenue/resource.js index 1634ac1..48a7fd6 100644 --- a/src/api/disRevenue/resource.js +++ b/src/api/disRevenue/resource.js @@ -1125,3 +1125,66 @@ export function lossRateByMtr(data) { data: data }) } +// 根据mtrClientId获取所有clientId +export function mtrCToClientIds(data) { + return request({ + url: '/mtragent/mtrClientRegistration/getClientIdByMtrClientId', + method: 'post', + data: data + }) +} +// 标识 +export function logicalNodeAll() { + return request({ + url: '/mtragent/mtrClientRegistration/getAllLogicalNode', + method: 'get' + }) +} +// 所有 mtrclientId +export function allMtrClientIdData(data) { + return request({ + url: '/mtragent/mtrClientRegistration/getAllMtrMsg', + method: 'post', + data: data + }) +} + +/** --------------MTR探测策略--------------- */ +// 查询列表 +export function listMtrPolicy(query) { + return request({ + url: '/mtragent/mtrPolicyConfig/list', + method: 'post', + data: query + }) +} +// 新增 +export function addMtrPolicy(data) { + return request({ + url: '/mtragent/mtrPolicyConfig', + method: 'post', + data: data + }) +} +// 修改 +export function updateMtrPolicy(data) { + return request({ + url: '/mtragent/mtrPolicyConfig', + method: 'put', + data: data + }) +} +// 查询详细 +export function getMtrPolicyt(Id) { + return request({ + url: '/mtragent/mtrPolicyConfig/' + Id, + method: 'get' + }) +} +// 删除 +export function delMtrPolicy(Ids) { + return request({ + url: '/mtragent/mtrPolicyConfig/' + Ids, + method: 'delete' + }) +} diff --git a/src/components/form/index.vue b/src/components/form/index.vue index f878bff..ca31340 100644 --- a/src/components/form/index.vue +++ b/src/components/form/index.vue @@ -12,6 +12,7 @@ v-else :key="config && config.key ? `${config && config.key}-${key}` : `${key}`" :prop="key" + :class="formVal && formVal.labelWidthNull ? 'labelWidthNullSty' : ''" :required="formVal.required">