From 93db68014f2928ad8390de9fdbc1a1da9a92b5ce Mon Sep 17 00:00:00 2001 From: hepp <854778157@qq.com> Date: Mon, 5 Aug 2024 19:45:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/statistic/statistic.js | 47 ++++ src/views/message/index.vue | 6 +- src/views/statistic/DownStatDetail.vue | 87 +++++++ src/views/statistic/index.vue | 305 ++++++++++++++++--------- src/views/tool/index.vue | 24 +- 5 files changed, 342 insertions(+), 127 deletions(-) create mode 100644 src/api/statistic/statistic.js create mode 100644 src/views/statistic/DownStatDetail.vue diff --git a/src/api/statistic/statistic.js b/src/api/statistic/statistic.js new file mode 100644 index 0000000..940be57 --- /dev/null +++ b/src/api/statistic/statistic.js @@ -0,0 +1,47 @@ +import request from '@/utils/request' + +/** + * 查询工具下载统计列表 + * @returns + */ +export function getToolDownStat(params) { + return Promise.resolve({ + total: 5, + rows: [ + { toolId: '1', toolCode: 'gdd-9jeh', toolName: '阿嘎', toolDownNum: 90 }, + { toolId: '2', toolCode: 'tt', toolName: 'd', toolDownNum: 56 }, + { toolId: '3', toolCode: '22', toolName: '1', toolDownNum: 9 }, + { toolId: '4', toolCode: 'rtgg', toolName: '22', toolDownNum: 5 }, + { toolId: '5', toolCode: 'rtgg', toolName: '333', toolDownNum: 21 }, + { toolId: '6', toolCode: '77', toolName: '77', toolDownNum: 71 } + ], + code: 200, + msg: '操作成功' + }) +} + +/** + * 根据工具id查询统计详情数据 + * @returns + */ +export function getToolDownDetailStatistics(params) { + return Promise.resolve({ + total: 15, + rows: [ + { toolId: '1', userName: '测试1', donwTime: '2024-08-05 12:31:59', toolDownNum: 1 }, + { toolId: '1', userName: '测试2', donwTime: '2024-08-05 12:31:59', toolDownNum: 5 }, + { toolId: '1', userName: '测试3', donwTime: '2024-08-05 12:31:59', toolDownNum: 1 }, + { toolId: '1', userName: '测试4', donwTime: '2024-08-05 12:31:59', toolDownNum: 1 }, + { toolId: '1', userName: '测试5', donwTime: '2024-08-05 12:31:59', toolDownNum: 7 }, + { toolId: '1', userName: '测试6', donwTime: '2024-08-05 12:31:59', toolDownNum: 1 }, + { toolId: '1', userName: '测试7', donwTime: '2024-08-05 12:31:59', toolDownNum: 1 }, + { toolId: '1', userName: '测试8', donwTime: '2024-08-05 12:31:59', toolDownNum: 2 }, + { toolId: '1', userName: '测试9', donwTime: '2024-08-05 12:31:59', toolDownNum: 9 }, + { toolId: '1', userName: '测试10', donwTime: '2024-08-05 12:31:59', toolDownNum: 3 } + ], + code: 200, + msg: '操作成功' + }) +} + + diff --git a/src/views/message/index.vue b/src/views/message/index.vue index a2ea3a3..8e4a34a 100644 --- a/src/views/message/index.vue +++ b/src/views/message/index.vue @@ -158,9 +158,9 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - this.tableList = []; - this.resetForm("queryForm"); - this.handleQuery(); + this.tableList = [] + this.resetForm("queryForm") + this.handleQuery() }, // 节点单击事件 handleNodeClick(data) { diff --git a/src/views/statistic/DownStatDetail.vue b/src/views/statistic/DownStatDetail.vue new file mode 100644 index 0000000..a8c7067 --- /dev/null +++ b/src/views/statistic/DownStatDetail.vue @@ -0,0 +1,87 @@ + + diff --git a/src/views/statistic/index.vue b/src/views/statistic/index.vue index 099f4fa..91f277f 100644 --- a/src/views/statistic/index.vue +++ b/src/views/statistic/index.vue @@ -1,121 +1,150 @@ diff --git a/src/views/tool/index.vue b/src/views/tool/index.vue index b700518..e881265 100644 --- a/src/views/tool/index.vue +++ b/src/views/tool/index.vue @@ -1,7 +1,7 @@