From 40525f5b499b122f80f254d59663bd47faab53e0 Mon Sep 17 00:00:00 2001 From: pan <380711010@qq.com> Date: Sun, 1 Sep 2024 10:57:25 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=96=87=E6=A1=A3=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E6=9D=83=E9=99=90=E8=B0=83=E6=95=B4=202=E3=80=81=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=9D=83=E9=99=90=E8=B0=83=E6=95=B4=203=E3=80=81?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=B8=AD=E5=BF=83=204=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=A2=84=E8=A7=88=E5=85=B3=E9=97=AD=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E6=97=B6=E8=A7=86=E5=B1=8F=E6=92=AD=E6=94=BE=E6=9A=82=E5=81=9C?= =?UTF-8?q?=E4=B8=8D=E4=BA=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/document/index.vue | 25 +- src/views/statistic/index.vue | 4 +- src/views/tool/downloadFileDetail.vue | 306 ++++++++++++++++++ src/views/tool/index.vue | 40 ++- src/views/tool/toolDetail.vue | 7 +- .../workflowList/addWorkflow/tool_release.vue | 7 +- 6 files changed, 373 insertions(+), 16 deletions(-) create mode 100644 src/views/tool/downloadFileDetail.vue diff --git a/src/views/document/index.vue b/src/views/document/index.vue index 7685c98..021c663 100644 --- a/src/views/document/index.vue +++ b/src/views/document/index.vue @@ -175,7 +175,7 @@ v-hasPermi="['document:remove']" >删除 下载 @@ -213,8 +213,8 @@ - - + + @@ -275,6 +275,8 @@ import editDocument from "./editDocument"; import uploadProgress from "./uploadProgress"; import { w3cwebsocket as WebSocket } from 'websocket'; import Treeselect from "@riophae/vue-treeselect"; +import { addCount } from "@/api/tool/downloadCount"; + export default { name: "Document", components: { iFrame, editDocument, uploadProgress, Treeselect}, @@ -331,6 +333,9 @@ export default { docSource: '', docStatus: '', docCategoryId: '', + createById: this.$store.getters.userId, + permissionCheck: true, + downloadCheck:true }, // 表单参数 form: { @@ -447,9 +452,9 @@ export default { }) }, handlePreview(row){ + this.viewDialogOpen = true; this.previewUrl = process.env.VUE_APP_TOOL_TECH_FILE_VIEW_API + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(process.env.VUE_APP_BASE_API + row.docUrl)); this.viewDialogTitle = '文档在线预览' - this.viewDialogOpen = true; }, // 多选框选中数据 handleSelectionChange(selection) { @@ -539,6 +544,15 @@ export default { let self = this self.loadingDownload = true this.$download.resource(row.docUrl); + //保存下载记录 + if(row.toolId){ + let formData = { + toolId: row.toolId + } + addCount(formData).then(res => { + console.info("res==========", res) + }); + } setTimeout(()=>{ self.loadingDownload = false },1000) @@ -596,6 +610,9 @@ export default { excludeFields:excludeFields, }, `文档资源信息数据_${new Date().getTime()}.xlsx`) }, + handleBeforeClose() { + this.viewDialogOpen = false + } } }; diff --git a/src/views/statistic/index.vue b/src/views/statistic/index.vue index 5ae676c..dde0ced 100644 --- a/src/views/statistic/index.vue +++ b/src/views/statistic/index.vue @@ -117,9 +117,9 @@ @close="detailDrawerOpen = false" > - + - + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + diff --git a/src/views/tool/index.vue b/src/views/tool/index.vue index ab6afff..b842dcd 100644 --- a/src/views/tool/index.vue +++ b/src/views/tool/index.vue @@ -121,7 +121,7 @@
+ + + + + + + + diff --git a/src/views/workflowList/addWorkflow/tool_release.vue b/src/views/workflowList/addWorkflow/tool_release.vue index 29aa52c..eea848e 100644 --- a/src/views/workflowList/addWorkflow/tool_release.vue +++ b/src/views/workflowList/addWorkflow/tool_release.vue @@ -283,8 +283,8 @@ - - + + @@ -882,6 +882,9 @@ export default { self.loadingDownload = false },1000) }, + handleBeforeClose() { + this.viewDialogOpen = false + } }, };