From fd165faf6a8a6500da2ebbae2a77fafdc139d5a0 Mon Sep 17 00:00:00 2001 From: 18650502300 <18650502300@163.com> Date: Thu, 12 Sep 2024 16:30:33 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AE=9A=E4=BD=8D=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/area.js | 6 +- src/api/system/dept.js | 2 +- src/api/system/locationLog.js | 44 +++ src/router/index.js | 16 +- src/views/index.vue | 4 +- src/views/system/area/areaSet.vue | 12 +- src/views/system/area/index.vue | 16 +- src/views/system/article/index.vue | 6 +- src/views/system/articleClassify/index.vue | 2 +- src/views/system/dept/index.vue | 28 +- src/views/system/device/index.vue | 43 ++- src/views/system/fee/index.vue | 12 +- src/views/system/flow/index.vue | 10 +- src/views/system/locationLog/index.vue | 379 +++++++++++++++++++++ src/views/system/model/index.vue | 29 +- src/views/system/order/index.vue | 89 +++-- src/views/system/reconciliation/index.vue | 4 +- src/views/system/user/index.vue | 24 +- src/views/system/withdraw/index.vue | 8 +- src/views/system/withdrawAudit/index.vue | 8 +- 20 files changed, 628 insertions(+), 114 deletions(-) create mode 100644 src/api/system/locationLog.js create mode 100644 src/views/system/locationLog/index.vue diff --git a/src/api/system/area.js b/src/api/system/area.js index b7beddb..daae54d 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -87,7 +87,7 @@ export function optionselect() { }) } -// 根据运营商id获取运营商列表 +// 根据代理商id获取代理商列表 export function selectAreaListByDeptId(deptId) { return request({ url: '/system/area/selectAreaListByDeptId/'+deptId, @@ -95,14 +95,14 @@ export function selectAreaListByDeptId(deptId) { }) } -// 根据运营区id获取运营商 +// 根据运营区id获取代理商 export function selectDeptByAreaId(areaId) { return request({ url: '/system/area/selectDeptByAreaId/'+areaId, method: 'get' }) } -// 根据运营区id获取运营商 +// 根据运营区id获取代理商 export function getleaderboard(type,timeLimit) { return request({ url: '/index/admim/leaderboard?type='+type+'&timeLimit='+timeLimit, diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 29a11fd..1efe5c6 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -66,7 +66,7 @@ export function getBalance(){ method: 'get' }) } -// 查询运营商信息 +// 查询代理商信息 export function getDeptByToken(deptId){ return request({ url: '/system/dept/getDept', diff --git a/src/api/system/locationLog.js b/src/api/system/locationLog.js new file mode 100644 index 0000000..f8ee0c2 --- /dev/null +++ b/src/api/system/locationLog.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询定位日志列表 +export function listLocationLog(query) { + return request({ + url: '/system/locationLog/list', + method: 'get', + params: query + }) +} + +// 查询定位日志详细 +export function getLocationLog(locationId) { + return request({ + url: '/system/locationLog/' + locationId, + method: 'get' + }) +} + +// 新增定位日志 +export function addLocationLog(data) { + return request({ + url: '/system/locationLog', + method: 'post', + data: data + }) +} + +// 修改定位日志 +export function updateLocationLog(data) { + return request({ + url: '/system/locationLog', + method: 'put', + data: data + }) +} + +// 删除定位日志 +export function delLocationLog(locationId) { + return request({ + url: '/system/locationLog/' + locationId, + method: 'delete' + }) +} diff --git a/src/router/index.js b/src/router/index.js index 0c115a8..94dfbf2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -200,7 +200,7 @@ export const dynamicRoutes = [ path: 'index/:owner', component: () => import('@/views/system/dept'), name: 'Data', - meta: { title: '运营商列表', activeMenu: '/system/dept' } + meta: { title: '代理商列表', activeMenu: '/system/dept' } } ] }, @@ -330,6 +330,20 @@ export const dynamicRoutes = [ } ] }, + { + path: '/system/locationLog', + component: Layout, + hidden: true, + permissions: ['system:locationLog:query'], + children: [ + { + path: 'index/:mac', + component: () => import('@/views/system/locationLog'), + name: 'Data', + meta: { title: '定位日志', activeMenu: '/system/locationLog' } + } + ] + }, { path: '/tool/gen-edit', component: Layout, diff --git a/src/views/index.vue b/src/views/index.vue index ed72206..278dc27 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -3,7 +3,7 @@
-
运营商数
+
代理商数
{{ StatisticsInfo.operatorCount }}
独立小程序:{{ StatisticsInfo.appCount }}
- +
{{ index + 1 }}
diff --git a/src/views/system/area/areaSet.vue b/src/views/system/area/areaSet.vue index 420dc4a..1a91403 100644 --- a/src/views/system/area/areaSet.vue +++ b/src/views/system/area/areaSet.vue @@ -25,19 +25,19 @@ - +
- - + + - +