From dd9940e78efd4a3fb242dfd3de08ce137c2f307b Mon Sep 17 00:00:00 2001 From: pan <380711010@qq.com> Date: Thu, 5 Sep 2024 22:35:43 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=96=B0=E5=A2=9E=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=92=8C=E5=B7=A5=E5=85=B7=E7=BB=9F=E8=AE=A1=202=E3=80=81?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4=203=E3=80=81=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8B=E8=BD=BD=E5=88=86=E9=A1=B5=EF=BC=88=E8=BF=98?= =?UTF-8?q?=E6=9C=89=E4=B8=80=E9=83=A8=E5=88=86=E6=B2=A1=E6=9C=89=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tool/downloadCount.js | 10 ++ src/views/document/downloadFileDetail.vue | 9 ++ src/views/document/editDocument.vue | 26 +++- src/views/document/index.vue | 12 +- src/views/filestatistic/index.vue | 140 +++++++++++++++++- src/views/statistic/index.vue | 14 +- src/views/tool/downloadFileDetail.vue | 10 +- src/views/tool/index.vue | 10 +- src/views/tool/toolDetail.vue | 10 +- .../workflowList/addWorkflow/tool_release.vue | 2 +- 10 files changed, 211 insertions(+), 32 deletions(-) diff --git a/src/api/tool/downloadCount.js b/src/api/tool/downloadCount.js index 517e36b..61b48a6 100644 --- a/src/api/tool/downloadCount.js +++ b/src/api/tool/downloadCount.js @@ -9,6 +9,16 @@ export function listCount(query) { }) } +// 查询工具下载统计列表 +export function listDocCount(query) { + return request({ + url: '/system/count/doc/list', + method: 'get', + params: query + }) +} + + // 根据详情统计 export function userDownList(query) { return request({ diff --git a/src/views/document/downloadFileDetail.vue b/src/views/document/downloadFileDetail.vue index 63027ba..e2c4a3b 100644 --- a/src/views/document/downloadFileDetail.vue +++ b/src/views/document/downloadFileDetail.vue @@ -4,6 +4,7 @@ + + @@ -70,6 +78,7 @@ replyContent: [], isPreviewDisable: false, attFileType: "zip,rar,7z", + total: 0 } }, created(){ diff --git a/src/views/document/editDocument.vue b/src/views/document/editDocument.vue index bb9c9c8..242f428 100644 --- a/src/views/document/editDocument.vue +++ b/src/views/document/editDocument.vue @@ -173,6 +173,13 @@ 下载 + @@ -359,6 +366,11 @@ pageNum: 1, pageSize: 10, }, + queryParams: { + pageNum: 1, + pageSize: 10, + }, + total: 0 } }, @@ -587,7 +599,7 @@ self.$set(fileData, "size", fileData.fileSize) self.dataFile.push(fileData) */ - self.getAttachemntList() + self.getAttachmentList() }); }) }, @@ -615,7 +627,7 @@ type:'success',  //类型是成功 duration:1200,  //显示时间, 毫秒。设为 0 则不会自动关闭,建议1200 }); - self.getAttachemntList() + self.getAttachmentList() }).catch(err =>{ this.discussionContent = null console.error("handleDiscussions==err==", err) @@ -623,10 +635,10 @@ }); }) }, - getAttachemntList() { + getAttachmentList() { let self = this - this.$set(this.docQueryParams,'del',"0") - this.$set(this.docQueryParams,'businessId',this.form.docId) + this.$set(this.queryParams,'del',"0") + this.$set(this.queryParams,'businessId',this.form.docId) listAttachment({businessId:this.form.docId}).then(res => { self.attachmentList = res.rows; self.total = res.total; @@ -682,7 +694,7 @@ duration:1200,  //显示时间, 毫秒。设为 0 则不会自动关闭,建议1200 }); self.cancelReplySon(parentIndex, repIndex) - self.getAttachemntList() + self.getAttachmentList() }).catch(err =>{ console.error("submitReplySon==err==", err) self.$modal.msgError("发布失败"); @@ -718,7 +730,7 @@ duration:1200,  //显示时间, 毫秒。设为 0 则不会自动关闭,建议1200 }); self.cancelReply(index) - self.getAttachemntList() + self.getAttachmentList() }).catch(err =>{ console.error("handleDiscussions==err==", err) self.$modal.msgError("发布失败"); diff --git a/src/views/document/index.vue b/src/views/document/index.vue index 46bb70a..dd00dfb 100644 --- a/src/views/document/index.vue +++ b/src/views/document/index.vue @@ -121,16 +121,16 @@ - - - + + + · - - - + + + diff --git a/src/views/filestatistic/index.vue b/src/views/filestatistic/index.vue index 104ab4f..6c2cdc4 100644 --- a/src/views/filestatistic/index.vue +++ b/src/views/filestatistic/index.vue @@ -7,7 +7,7 @@
文档来源统计
+ + + + +
文档下载统计
+
+ + + + +
+
+ + + + + + + + + + +
+
+
+
+ + + + + + + + + + + +
diff --git a/src/views/statistic/index.vue b/src/views/statistic/index.vue index bf1a97d..0b67ab7 100644 --- a/src/views/statistic/index.vue +++ b/src/views/statistic/index.vue @@ -49,12 +49,13 @@ + -
工具下载
+
工具下载统计
- + @@ -72,7 +80,7 @@ replyContent: [], isPreviewDisable: false, attFileType: "zip,rar,7z", - + total: 0 } }, created(){ diff --git a/src/views/tool/index.vue b/src/views/tool/index.vue index 1cd05cd..4df0b82 100644 --- a/src/views/tool/index.vue +++ b/src/views/tool/index.vue @@ -95,15 +95,15 @@
- - - + + + - - + +