diff --git a/.env.development b/.env.development index eb0e48a..a282f97 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 工具管理与技术交流平台 +VUE_APP_TITLE = 技术交流平台 # 开发环境配置 ENV = 'development' @@ -7,11 +7,11 @@ ENV = 'development' VUE_APP_CONTEXT_PATH = '/tool-tech' # 工具与技术交流管理系统/开发环境 -VUE_APP_BASE_API = '/tool-tech-admin' +VUE_APP_BASE_API = 'http://localhost:8080/tool-tech-admin' VUE_APP_WS_URL = 'ws://localhost:8080/tool-tech-admin/websocket' # 文档在线预览服务 -VUE_APP_TOOL_TECH_FILE_VIEW_API = '/tool-tech-file-view' +VUE_APP_TOOL_TECH_FILE_VIEW_API = 'http://127.0.0.1:8012/tool-tech-file-view' # 流程管理服务地址 VUE_APP_WORKFLOW_MANAGE_URL = '/ebpm-process-manage' diff --git a/.env.production b/.env.production index 033f914..0fc4d3c 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 工具管理与技术交流平台 +VUE_APP_TITLE = 技术交流平台 # 生产环境配置 ENV = 'production' diff --git a/.env.staging b/.env.staging index 628655f..036b27c 100644 --- a/.env.staging +++ b/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 工具管理与技术交流平台 +VUE_APP_TITLE = 技术交流平台 NODE_ENV = production diff --git a/package.json b/package.json index 965ed5b..e59a278 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,6 @@ "js-base64": "^3.7.7", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", - "jszip": "3.10.1", "nprogress": "0.2.0", "quill": "1.3.7", "screenfull": "5.0.2", @@ -56,7 +55,13 @@ "vue-meta": "2.4.0", "vue-router": "3.4.9", "vuex": "3.6.0", - "websocket": "^1.0.35" + "websocket": "^1.0.35", + "jszip": "3.10.1", + "jszip-utils": "0.1.0", + "file-save": "0.2.0", + "pizzip": "3.1.7", + "docxtemplater": "3.50.0", + "docxtemplater-image-module-free": "1.1.1" }, "devDependencies": { "@vue/cli-plugin-babel": "4.4.6", diff --git a/public/document.docx b/public/document.docx new file mode 100644 index 0000000..fbb77ff --- /dev/null +++ b/public/document.docx @@ -0,0 +1,21 @@ +{#list} + {resName} + 文档编号 +{docCode} + 文档名称 +{docName} + 文档类别 +{docTypeName} + 负责人 +{docPrincipals} + 归属单位 +{docRespDeptName} + 文档来源 +{docSourceName} + 关联工具 +{toolName} + 上传状态 +{statusName} + 创建时间 +{createTime} +{/list} diff --git a/public/tool.docx b/public/tool.docx new file mode 100644 index 0000000..3ced47f --- /dev/null +++ b/public/tool.docx @@ -0,0 +1,27 @@ +{#list} + {resName} + 工具名称 +{toolName} + 工具类别 +{toolTypeName} + 工具来源 +{toolSourceName} + 负责人 +{toolPrincipalsName} + 归属单位 +{toolRespDeptName} + 状态 +{statusName} + 工具用途 +{toolUse} + 测评情况 +{testSituation} + 功能描述 +{functionDesc} + 适用条件 +{applyCondition} + 操作说明 +{operateExplain} + 备注 +{remark} +{/list} diff --git a/src/api/document/document.js b/src/api/document/document.js index a86601b..65ca21b 100644 --- a/src/api/document/document.js +++ b/src/api/document/document.js @@ -61,4 +61,14 @@ export function getStatistics(query) { method: 'get', params: query }) -} \ No newline at end of file +} + + +// 查询【请填写功能名称】列表 +export function listAllDoc(query) { + return request({ + url: '/document/all/list', + method: 'get', + params: query + }) +} diff --git a/src/api/tool/tool.js b/src/api/tool/tool.js index 6b1c674..5fde9c7 100644 --- a/src/api/tool/tool.js +++ b/src/api/tool/tool.js @@ -69,3 +69,12 @@ export function getStatistics(query) { params: query }) } + +// get导出word字段 +export function exportWordList(query) { + return request({ + url: '/tool/export/word/list', + method: 'get', + params: query + }) +} diff --git a/src/components/FileUpload/optimizeUpload.vue b/src/components/FileUpload/optimizeUpload.vue index 1ae5a24..daa5c9a 100644 --- a/src/components/FileUpload/optimizeUpload.vue +++ b/src/components/FileUpload/optimizeUpload.vue @@ -1,5 +1,5 @@ diff --git a/src/views/document/index.vue b/src/views/document/index.vue index 35ccd7d..16fbe3a 100644 --- a/src/views/document/index.vue +++ b/src/views/document/index.vue @@ -1,7 +1,7 @@