From 357f824e89baf23ec33e5374b4db436cf63a06d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E8=B4=A4=E9=87=91?= <1960116313@qq.com> Date: Tue, 19 Jul 2022 18:15:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/communication/flowpool.js | 14 + src/api/wel/administrator.js | 74 ++ src/api/wel/buser.js | 50 ++ .../communicationmanage/flowpool/flowpool.vue | 132 +++- .../targetflowpool/targetflowpool.vue | 71 +- src/views/wel/component/Administrator.vue | 708 +++++++++++++++++- src/views/wel/component/Buser.vue | 524 +++++++++++++ src/views/wel/component/clientside.vue | 683 +++++++++-------- src/views/wel/index.vue | 14 +- 9 files changed, 1862 insertions(+), 408 deletions(-) create mode 100644 src/api/wel/buser.js create mode 100644 src/views/wel/component/Buser.vue diff --git a/src/api/communication/flowpool.js b/src/api/communication/flowpool.js index 736d7ae..71f8d3d 100644 --- a/src/api/communication/flowpool.js +++ b/src/api/communication/flowpool.js @@ -47,3 +47,17 @@ export const update = (row) => { }) } +//同步流量池 +export const syncFlowPool = () => { + return request({ + url: '/api/iot-sim/flowpool/syncFlowPool', + method: 'get', + }) +} +//同步流量池使用量 +export const syncFlowPoolUsage = () => { + return request({ + url: '/api/iot-sim/flowpool/syncFlowPoolUsage', + method: 'get', + }) +} diff --git a/src/api/wel/administrator.js b/src/api/wel/administrator.js index d6b6b9f..0e847be 100644 --- a/src/api/wel/administrator.js +++ b/src/api/wel/administrator.js @@ -1,4 +1,5 @@ import request from '@/router/axios'; +// ----- 卡状态start //卡总数 export const cardTotal = () => { return request({ @@ -21,3 +22,76 @@ export const cardStatus = () => { method: 'get', }) } +// ----- 卡状态end +// ----- 元流量池监控start + +export const getFlowPool = () => { + return request({ + url: '/api/iot-sim/home/getFlowPool', + method: 'get', + }) +} +// ----- 元流量池监控end +// -----设备接入总数start +export const getDeviceNum = () => { + return request({ + url: '/api/iot-sim/home/getDeviceNum', + method: 'get', + }) +} +// ----- 设备接入总数end +// -----日使用排名、月使用排名start +export const getUsage = (type) => { + return request({ + url: '/api/iot-sim/home/getUsage', + method: 'get', + params: { + type + } + }) +} +// ----- 日使用排名、月使用排名end + + +// -----日收款、月收款start +export const getMoney = (type) => { + return request({ + url: '/api/iot-sim/home/getMoney', + method: 'get', + params: { + type + } + }) +} +// ----- 日收款、月收款排名end +// -----:佣金申请数量 结算佣金数量start 1:佣金申请数量 2:结算佣金数量 +export const getWithdrawal = (type) => { + return request({ + url: '/api/iot-sim/home/getWithdrawal', + method: 'get', + params: { + type + } + }) +} +// ----- 佣金申请数量 结算佣金数量end +// -----:echars使用量 start +export const getMonthUsage = () => { + return request({ + url: '/api/iot-sim/home/getMonthUsage', + method: 'get', + + }) +} +// ----- echars使用量 end +// -----本月订单 本日订单 1:今天 5:本月 +export const getOrderNum = (type) => { + return request({ + url: '/api/iot-sim/home/getOrderNum', + method: 'get', + params: { + type + } + }) +} +// ----- 本月订单 本日订单end diff --git a/src/api/wel/buser.js b/src/api/wel/buser.js new file mode 100644 index 0000000..98f0fd9 --- /dev/null +++ b/src/api/wel/buser.js @@ -0,0 +1,50 @@ +import request from '@/router/axios'; +//运营商卡数量 +export const getOperatorCardNum = () => { + return request({ + url: '/api/iot-sim/home/getOperatorCardNum', + method: 'get', + }) +} +//卡状态 +export const cardStatus = () => { + return request({ + url: '/api/iot-sim/home/getSimStatus', + method: 'get', + }) +} +// ----- 流量池监控start +export const getFlowPool = () => { + return request({ + url: '/api/iot-sim/home/getPoolMonitoring', + method: 'get', + }) +} +// -----:echars使用量 start +export const getTotalUsage = () => { + return request({ + url: '/api/iot-sim/home/getTotalUsage', + method: 'get', + + }) +} +// -----日使用排名、月使用排名start +export const getUsage = (type) => { + return request({ + url: '/api/iot-sim/home/getUsage', + method: 'get', + params: { + type + } + }) +} +// ----- 日使用排名、月使用排名end +//剩余量 + +export const getCardSurplus = () => { + return request({ + url: '/api/iot-sim/home/getCardSurplus', + method: 'get', + + }) +} diff --git a/src/views/communicationmanage/flowpool/flowpool.vue b/src/views/communicationmanage/flowpool/flowpool.vue index fae650e..0b74282 100644 --- a/src/views/communicationmanage/flowpool/flowpool.vue +++ b/src/views/communicationmanage/flowpool/flowpool.vue @@ -19,19 +19,23 @@ @refresh-change="refreshChange" @on-load="onLoad" > -