From 85ab452fafe177dedb6a5fdeb8b7f0c3802494b4 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 29 Nov 2023 19:07:51 +0800 Subject: [PATCH] fix --- src/components/upload/index.vue | 2 +- src/components/upload/upload.js | 2 +- src/setting.js | 2 +- src/views/match/add/index.vue | 2 +- src/views/match/add/step1.vue | 7 +++++-- src/views/match/add/step2.vue | 8 ++++---- src/views/match/add/step3.vue | 2 +- src/views/match/manage/matchRank.vue | 16 ++++++++++------ 8 files changed, 24 insertions(+), 17 deletions(-) diff --git a/src/components/upload/index.vue b/src/components/upload/index.vue index a33f14a..313635f 100644 --- a/src/components/upload/index.vue +++ b/src/components/upload/index.vue @@ -102,7 +102,7 @@ export default { this.uploading = true this.showFiles = false // 上传到阿里云oss - const { name } = await this.client.multipartUpload(file.name, file, { + const { name } = await this.client.multipartUpload(Date.now() + '.' + Util.getFileExt(file.name), file, { progress: this.handleProgress }); diff --git a/src/components/upload/upload.js b/src/components/upload/upload.js index 6960f2a..02566ed 100644 --- a/src/components/upload/upload.js +++ b/src/components/upload/upload.js @@ -17,7 +17,7 @@ export default { return new Promise(async (resolve, reject) => { try { // 上传到阿里云oss - const res = await client.multipartUpload(file.name, file); + const res = await client.multipartUpload(Date.now() + '.' + Util.getFileExt(file.name), file); resolve({ format: Util.getFileExt(file.name), name: file.name, diff --git a/src/setting.js b/src/setting.js index b8ddb3a..28506aa 100644 --- a/src/setting.js +++ b/src/setting.js @@ -13,7 +13,7 @@ if (isDev) { sandPath = `http://${location.hostname}:9520` host = 'http://121.37.12.51/' // host = 'https://huorantech.cn/' - // host = 'http://192.168.31.217:9000/'// 榕 + host = 'http://192.168.31.217:9000/'// 榕 // host = 'http://192.168.31.51:9000/'// 赓 } else if (isPro) { jumpPath = 'https://www.huorantech.cn/judgmentPoint/' diff --git a/src/views/match/add/index.vue b/src/views/match/add/index.vue index f211f49..2796fae 100644 --- a/src/views/match/add/index.vue +++ b/src/views/match/add/index.vue @@ -90,7 +90,7 @@ @click="save(1)">发布 保存并下一步 + @click="save(0, 2)">保存并下一步 小时,公布(阶段)比赛成绩。 -
是否公布成绩详情:

{{ item.teamScore }}

{{ item.teamCalculationMethodName }}

-

权重:

-

{{ item.pointWeight }}%

+