diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 77c91e7..b3b1a93 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -71,6 +71,10 @@ li { color: #585858; border-left: 3px solid #9278ff; } +.el-upload-list{ + width: 100%; + max-width: 400px; +} .page { position: relative; padding: 24px; diff --git a/src/setting.js b/src/setting.js index f3e4440..0d504f8 100644 --- a/src/setting.js +++ b/src/setting.js @@ -9,8 +9,8 @@ let jumpPath = `${location.origin}/judgmentPoint` let host = `${location.origin}:9000/` if (isDev) { jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统 - // host = 'http://121.37.12.51:9000/' - host = 'http://192.168.31.151:9000/'// 榕 + host = 'http://121.37.12.51:9000/' + // host = 'http://192.168.31.151:9000/'// 榕 // host = 'http://192.168.31.137:9000/'// 赓 } else if (isPro) { jumpPath = "http://www.huorantech.cn/judgmentPoint/"; diff --git a/src/utils/api.js b/src/utils/api.js index 5310b78..6fdeeeb 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -9,7 +9,7 @@ export default { logins: `users/users/user/login`, //登录 verification: `${host}users/users/user/captcha`,// 验证码图片 保留host bindPhoneOrEmail: `users/users/userAccount/bindPhoneOrEmail`,// 绑定手机 - sendPhoneOrEmailCode: `${host1}users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码 + sendPhoneOrEmailCode: `users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码 getUserRolesPermissionMenu: `users/user-role/getUserRolesPermissionMenu`, staffTemplate: `http://www.huorantech.cn/template/%E6%89%B9%E9%87%8F%E5%AF%BC%E5%85%A5%E5%91%98%E5%B7%A5%E6%A8%A1%E6%9D%BF.xlsx`, // 后台账号模板 @@ -268,10 +268,10 @@ export default { modifyPartnerAccount: `nakadai/partnerAccount/modifyPartnerAccount`, partnerAccountDetail: `nakadai/partnerAccount/partnerAccountDetail`, partnerAccountList: `nakadai/partnerAccount/partnerAccountList`, - savePartnerAccount: `${host1}nakadai/partnerAccount/savePartnerAccount`, + savePartnerAccount: `nakadai/partnerAccount/savePartnerAccount`, generateInvitationCode: `nakadai/partnerAccount/generateInvitationCode`, generationQrCode: `nakadai/partnerAccount/generationQrCode`, - queryUserInfoByPhone: `${host1}nakadai/partner-team/queryUserInfoByPhone`, + queryUserInfoByPhone: `nakadai/partner-team/queryUserInfoByPhone`, getAllTeam: `nakadai/partnerClassification/getAllTeam`, partnerRemoval: `nakadai/partnerAccount/partnerRemoval`, generateTransferCode: `nakadai/partnerAccount/generateTransferCode`, @@ -306,6 +306,7 @@ export default { addAnnouncement: `occupationlab/contest/announcement/addAnnouncement`, amendmentAnnouncement: `occupationlab/contest/announcement/amendmentAnnouncement`, deleteAnnouncement: `occupationlab/contest/announcement/deleteAnnouncement`, + disableAnnouncement: `occupationlab/contest/announcement/disableAnnouncement`, queryAnnouncementByContestId: `occupationlab/contest/announcement/queryAnnouncementByContestId`, queryAnnouncementDetails: `occupationlab/contest/announcement/queryAnnouncementDetails`, deleteAnnouncementAnnex: `occupationlab/contestAnnouncementAnnex/delete`, diff --git a/src/views/match/add/index.vue b/src/views/match/add/index.vue index cf595aa..6ca210a 100644 --- a/src/views/match/add/index.vue +++ b/src/views/match/add/index.vue @@ -116,7 +116,6 @@ :on-error="uploadError" :before-upload="beforeUpload" :on-success="uploadAnnexSuccess" - :before-remove="beforeRemove" :limit="5" :on-exceed="handleExceedAnnex" :action="this.api.fileupload" @@ -372,7 +371,14 @@ export default { }, // 附件上传前 beforeUpload(file) { - this.fileName = file.name + const isLt2M = file.size / 1024 / 1024 < 10 + if (!isLt2M) util.warningMsg('请上传小于10MB的附件!') + if (isLt2M) { + this.fileName = file.name + return true + } else { + return false + } }, uploadError(err, file, fileList) { this.$message({ @@ -395,10 +401,7 @@ export default { }).catch(res => {}) }, handleAnnexRemove(file, fileList) { - debugger - this.$del(`${this.api.fileDeletion}?keys=${this.coverUrl}`).then(res => { - this.carouselUrl = '' - }).catch(res => {}) + this.$del(`${this.api.fileDeletion}?keys=${file.url}`).then(res => {}).catch(res => {}) }, // 预览附件 previewFile(item) { diff --git a/src/views/match/list/index.vue b/src/views/match/list/index.vue index c609769..5818eae 100644 --- a/src/views/match/list/index.vue +++ b/src/views/match/list/index.vue @@ -103,6 +103,7 @@