diff --git a/src/api/tool/iperf.ts b/src/api/tool/iperf.ts new file mode 100644 index 00000000..5b5e146c --- /dev/null +++ b/src/api/tool/iperf.ts @@ -0,0 +1,20 @@ +import { request } from '@/plugins/http-fetch'; + +// iperf 版本信息 +export function iperfV(data: Record) { + return request({ + url: '/tool/iperf/v', + method: 'get', + params: data, + }); +} + +// iperf 软件安装 +export function iperfI(data: Record) { + return request({ + url: '/tool/iperf/i', + method: 'post', + data: data, + timeout: 60_000, + }); +} diff --git a/src/api/tool/ping.ts b/src/api/tool/ping.ts new file mode 100644 index 00000000..b897604e --- /dev/null +++ b/src/api/tool/ping.ts @@ -0,0 +1,10 @@ +import { request } from '@/plugins/http-fetch'; + +// ping 网元端版本信息 +export function pingV(data: Record) { + return request({ + url: '/tool/ping/v', + method: 'get', + params: data, + }); +} diff --git a/src/views/tool/iperf/index.vue b/src/views/tool/iperf/index.vue index a4987aa7..8a0d95a8 100644 --- a/src/views/tool/iperf/index.vue +++ b/src/views/tool/iperf/index.vue @@ -1,17 +1,17 @@ diff --git a/src/views/tool/ping/index.vue b/src/views/tool/ping/index.vue index a4987aa7..182601a7 100644 --- a/src/views/tool/ping/index.vue +++ b/src/views/tool/ping/index.vue @@ -1,17 +1,17 @@