diff --git a/package-lock.json b/package-lock.json index 590a685..a3724ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9436,6 +9436,11 @@ "minimist": "^1.2.5" } }, + "moment": { + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==" + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", diff --git a/package.json b/package.json index a55f15c..3236599 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "js-cookie": "^2.2.1", "jspdf": "^2.5.1", "mavon-editor": "^2.10.4", + "moment": "^2.29.4", "tinymce": "^6.7.3", "vue": "^2.7.10", "vue-cropperjs": "^3.0.0", diff --git a/src/api/index.js b/src/api/index.js index 403493a..eb737fc 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -19,6 +19,11 @@ export default { fileUploadNakadai: `${host}nakadai/nakadai/oss/fileUpload`, refreshPageNotification : `nakadai/message/refreshPageNotification`, getUserInfo : `users/users/userInfo/getUserInfo`, + getCurrentTime : `competition/competition/management/getCurrentTime`, + + // 阿里云文件/视频管理 + getPlayAuth: `${uploadURL}oss/manage/getPlayAuth`, // 获取播放凭证 + getPlayAuthNakadai: `nakadai/nakadai/oss/getPlayAuth`, // 获取播放凭证 platformLogList: `nakadai/nakadai/log/platformLogList`, logNotification: `nakadai/nakadai/log/logNotification`, @@ -180,12 +185,6 @@ export default { collectionActivity: `occupationlab/occupationlab/activity/collectionActivity`, concernedActivity: `occupationlab/occupationlab/activity/concernedActivity`, - // 阿里云文件/视频管理 - fileDeletion: `${uploadURL}oss/manage/fileDeletion`, // 删除OSS文件 - fileupload: `${uploadURL}oss/manage/fileupload`, // 文件上传 - getPlayAuth: `${uploadURL}oss/manage/getPlayAuth`, // 获取播放凭证 - getPlayAuthNakadai: `nakadai/nakadai/oss/getPlayAuth`, // 获取播放凭证 - queryProvince: `nakadai/nakadai/province/queryProvince`, //查询省份 queryCity: `nakadai/nakadai/city/queryCity`, //查询城市 querySchool: `nakadai/nakadai/school/querySchool`, //根据学校名称查询学校信息 diff --git a/src/components/quill/index.vue b/src/components/quill/index.vue index 45473bf..6bf6297 100644 --- a/src/components/quill/index.vue +++ b/src/components/quill/index.vue @@ -1,17 +1,22 @@ 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/libs/util.js b/src/libs/util.js index 9e9ea28..4f1351d 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -181,7 +181,7 @@ const util = { }); } } - } + }, }; export default util; \ No newline at end of file diff --git a/src/pages/activity/manage/add/index.vue b/src/pages/activity/manage/add/index.vue index a239e08..898188c 100644 --- a/src/pages/activity/manage/add/index.vue +++ b/src/pages/activity/manage/add/index.vue @@ -1,401 +1,447 @@ @@ -482,7 +528,8 @@ $upload-lg-height: 150px; /deep/ .d-inline-block { width: 216px; - .el-select, .el-input { + .el-select, + .el-input { width: 100%; } } @@ -501,7 +548,7 @@ $upload-lg-height: 150px; .remove { width: 16px; height: 16px; - background: url("../../../../assets/img/close.png") 0 0/cover no-repeat; + background: url('../../../../assets/img/close.png') 0 0 / cover no-repeat; cursor: pointer; } } @@ -531,40 +578,40 @@ $upload-lg-height: 150px; } } .range-check { - display: inline-block; - margin: 0 0 10px 10px; + display: inline-block; + margin: 0 0 10px 10px; } /deep/.range-cas { - .el-tag { - display: none; - } + .el-tag { + display: none; + } } .input-center { - display: flex; - align-items: center; - width: 216px; - white-space: nowrap; - .el-input { - margin-right: 5px; - } + display: flex; + align-items: center; + width: 216px; + white-space: nowrap; + .el-input { + margin-right: 5px; + } } .el-steps { - justify-content: center; + justify-content: center; } /deep/.req { - .el-form-item__label { - &:before { - content: '*'; - margin-right: 5px; - font-size: 18px; - vertical-align: middle; - color: #f00; + .el-form-item__label { + &:before { + content: '*'; + margin-right: 5px; + font-size: 18px; + vertical-align: middle; + color: #f00; + } } - } } .btns { - display: flex; - justify-content: center; - text-align: center; + display: flex; + justify-content: center; + text-align: center; } \ No newline at end of file diff --git a/src/pages/activity/manage/manage/noticeDetail.vue b/src/pages/activity/manage/manage/noticeDetail.vue index 37a6d52..7aaf8c4 100644 --- a/src/pages/activity/manage/manage/noticeDetail.vue +++ b/src/pages/activity/manage/manage/noticeDetail.vue @@ -1,174 +1,168 @@ @@ -255,7 +249,8 @@ $upload-lg-height: 150px; /deep/ .d-inline-block { width: 216px; - .el-select, .el-input { + .el-select, + .el-input { width: 100%; } } @@ -275,7 +270,7 @@ $upload-lg-height: 150px; .remove { width: 16px; height: 16px; - background: url("../../../../assets/img/close.png") 0 0/cover no-repeat; + background: url('../../../../assets/img/close.png') 0 0 / cover no-repeat; cursor: pointer; } } diff --git a/src/pages/match/details/index.vue b/src/pages/match/details/index.vue index 9fc2724..bcb8320 100644 --- a/src/pages/match/details/index.vue +++ b/src/pages/match/details/index.vue @@ -23,7 +23,7 @@ {{ end }}

-

{{ form.competitionRegistration ? '已报名' : '未报名' }}

@@ -690,7 +690,7 @@