Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is failing Details

main
wangxiaoshuang 2026-02-06 09:40:58 +08:00
commit 0327937f02
2 changed files with 65 additions and 39 deletions

View File

@ -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
@ -45,12 +17,17 @@ 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:
- 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:
- success
- failure
trigger:
branch:
- main

View File

@ -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