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 + } }, };