From 849142bd23f6b622173b2ef8c42f1da9c1148f31 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Thu, 5 Feb 2026 14:41:28 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E7=AE=80=E5=8E=86=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reviewers/index.vue | 59 ++++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/src/views/reviewers/index.vue b/src/views/reviewers/index.vue index 42c9e458..da4753e5 100644 --- a/src/views/reviewers/index.vue +++ b/src/views/reviewers/index.vue @@ -712,11 +712,12 @@ export default { this.model_cfg.visible = false this.model_cfg.showClose = true console.log(res.Result) - for (let i = 0; res.Result.length > i; i++) { - let item = res.Result[i] - console.log(item) - await this.handleBatchDown(item) - } + this.downloadAllInOneZip(res.Result) + // for (let i = 0; res.Result.length > i; i++) { + // let item = res.Result[i] + // console.log(item) + // await this.handleBatchDown(item) + // } } catch (e) { console.log(e) } @@ -736,6 +737,54 @@ export default { // this.model_cfg.showClose = true // }) }, + async downloadAllInOneZip(arr) { + if (!arr.length) { + return + } + const zip = new JSZip() + const allTasks = [] + arr.forEach((reviewer) => { + if (!reviewer?.FileList?.length) return + + reviewer.FileList.forEach((fileItem) => { + const fileUrl = this.OSSclientConfig.basePath + fileItem.Path + const zipPath = `${reviewer.Name}_${fileItem.FileName}` + + const task = this.getFileData(fileUrl) + .then((response) => { + zip.file(zipPath, response.data, { binary: true }) + }) + .catch((err) => { + console.error(`文件下载失败 [${zipPath}]:`, err) + }); + allTasks.push(task) + }) + }) + + if (allTasks.length === 0) { + console.log('无可下载的文件') + return + } + + try { + await Promise.all(allTasks) + + // 生成 ZIP + const zipBlob = await zip.generateAsync({ + type: 'blob', + compression: 'DEFLATE', + compressionOptions: { level: 9 }, + }) + + // 下载 + saveAs(zipBlob, `CV_${new Date().getTime()}.zip`) + + console.error('ZIP 生成成功') + } catch (err) { + console.error('ZIP 生成失败:', err) + } finally { + } + }, // 查询 handleSelectSearch() { this.searchData.PageIndex = 1 From 0cecb919847e13c11f2e41ce04f37519a8536f5b Mon Sep 17 00:00:00 2001 From: hang <87227557@qq.com> Date: Thu, 5 Feb 2026 19:46:01 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=89=93=E5=8C=85=EF=BC=8C=E5=B9=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=BE=AE=E4=BF=A1=E9=80=9A=E7=9F=A5=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc_vue_drone.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/irc_vue_drone.yml b/irc_vue_drone.yml index 0a20aeec..95884a72 100644 --- a/irc_vue_drone.yml +++ b/irc_vue_drone.yml @@ -45,12 +45,16 @@ server: from_secret: local_pwd steps: -- name: publish-test-irc-vue - commands: - - echo start publish test-irc-vue - - cd /opt/1panel/hang/vue/test-irc - - sh test-irc.sh v${DRONE_BUILD_NUMBER} - + - name: publish-test-irc-web + commands: + - bash /opt/1panel/xc-deploy-new/devops-center/build-vue-then-publish.sh IRC_Web main + - name: notify-wecom + commands: + - bash /opt/1panel/xc-deploy-new/devops-center/drone-notify-wecom.sh "$DRONE_BUILD_STATUS" "$DRONE_REPO_NAME" "$DRONE_BRANCH" "$DRONE_BUILD_NUMBER" "4355b98e-1e72-4678-8dfb-2fc6ad0bf449" "$DRONE_COMMIT_MESSAGE" "$DRONE_COMMIT_AUTHOR" "Test_IRC_WEB" "irc.test.extimaging.com" + when: + status: + - success + - failure trigger: branch: - main From 7691fd12acb8b9530414fc6b9ed1452105816550 Mon Sep 17 00:00:00 2001 From: zhouhang <87227557@qq.com> Date: Thu, 5 Feb 2026 19:55:40 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=85=A8=E5=B1=80=E8=AE=BE=E7=BD=AEgit?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D=E6=B5=8B=E8=AF=95=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=90=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc_vue_drone.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/irc_vue_drone.yml b/irc_vue_drone.yml index 95884a72..7e87dc8f 100644 --- a/irc_vue_drone.yml +++ b/irc_vue_drone.yml @@ -1,32 +1,4 @@ -kind: pipeline -type: ssh -name: ssh-linux-uat-irc-publish -platform: - os: Linux - arch: 386 - -clone: - disable: true #禁用默认克隆 - -server: - host: 47.117.164.182 - user: root - password: - from_secret: local_pwd - -steps: -- name: uat-branch-publish-irc-vue - commands: - - cd /opt/1panel/vue-devops/Uat_IRC/Uat-To-Uat - - sh uat-to-uat.sh v${DRONE_BUILD_NUMBER} - -trigger: - branch: - - uat - ---- - kind: pipeline type: ssh name: ssh-linux-test-irc-publish From 987831ff22d0da5c6846004bf8859bf2054987b7 Mon Sep 17 00:00:00 2001 From: zhouhang <87227557@qq.com> Date: Thu, 5 Feb 2026 20:00:13 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E4=B8=BA=E5=95=A5=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc_vue_drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irc_vue_drone.yml b/irc_vue_drone.yml index 7e87dc8f..f05ca030 100644 --- a/irc_vue_drone.yml +++ b/irc_vue_drone.yml @@ -19,9 +19,11 @@ server: steps: - name: publish-test-irc-web commands: + - echo "$DRONE_COMMIT_AUTHOR" - bash /opt/1panel/xc-deploy-new/devops-center/build-vue-then-publish.sh IRC_Web main - name: notify-wecom commands: + - echo "$DRONE_COMMIT_AUTHOR" - bash /opt/1panel/xc-deploy-new/devops-center/drone-notify-wecom.sh "$DRONE_BUILD_STATUS" "$DRONE_REPO_NAME" "$DRONE_BRANCH" "$DRONE_BUILD_NUMBER" "4355b98e-1e72-4678-8dfb-2fc6ad0bf449" "$DRONE_COMMIT_MESSAGE" "$DRONE_COMMIT_AUTHOR" "Test_IRC_WEB" "irc.test.extimaging.com" when: status: From 9b013059ba40c412837f7aa780899c4728de28e9 Mon Sep 17 00:00:00 2001 From: zhouhang <87227557@qq.com> Date: Thu, 5 Feb 2026 20:03:43 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc_vue_drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irc_vue_drone.yml b/irc_vue_drone.yml index f05ca030..3cbfcb30 100644 --- a/irc_vue_drone.yml +++ b/irc_vue_drone.yml @@ -19,11 +19,11 @@ server: steps: - name: publish-test-irc-web commands: - - echo "$DRONE_COMMIT_AUTHOR" + - echo "$DRONE_COMMIT_MESSAGE" "$DRONE_COMMIT_AUTHOR" - bash /opt/1panel/xc-deploy-new/devops-center/build-vue-then-publish.sh IRC_Web main - name: notify-wecom commands: - - echo "$DRONE_COMMIT_AUTHOR" + - echo $DRONE_COMMIT_AUTHOR "$DRONE_COMMIT_MESSAGE" - bash /opt/1panel/xc-deploy-new/devops-center/drone-notify-wecom.sh "$DRONE_BUILD_STATUS" "$DRONE_REPO_NAME" "$DRONE_BRANCH" "$DRONE_BUILD_NUMBER" "4355b98e-1e72-4678-8dfb-2fc6ad0bf449" "$DRONE_COMMIT_MESSAGE" "$DRONE_COMMIT_AUTHOR" "Test_IRC_WEB" "irc.test.extimaging.com" when: status: From 575840490fb6c982277ffda76c5ac7dbdffbc739 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 5 Feb 2026 20:30:50 +0800 Subject: [PATCH 6/6] =?UTF-8?q?git=20=E5=85=A8=E5=B1=80=E8=AE=BE=E7=BD=AEu?= =?UTF-8?q?serName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc_vue_drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/irc_vue_drone.yml b/irc_vue_drone.yml index 3cbfcb30..da70bd16 100644 --- a/irc_vue_drone.yml +++ b/irc_vue_drone.yml @@ -19,7 +19,6 @@ server: steps: - name: publish-test-irc-web commands: - - echo "$DRONE_COMMIT_MESSAGE" "$DRONE_COMMIT_AUTHOR" - bash /opt/1panel/xc-deploy-new/devops-center/build-vue-then-publish.sh IRC_Web main - name: notify-wecom commands: