no message
Showing
122 changed files
with
486 additions
and
65 deletions
No preview for this file type
| ... | @@ -2,7 +2,7 @@ import request from '@/utils/request' | ... | @@ -2,7 +2,7 @@ import request from '@/utils/request' |
| 2 | 2 | ||
| 3 | export function getMaList(params) { | 3 | export function getMaList(params) { |
| 4 | return request({ | 4 | return request({ |
| 5 | url: `/ztx-match/league/competition/webList`, | 5 | url: `/league/competition/webList`, |
| 6 | method: 'get', | 6 | method: 'get', |
| 7 | params: params | 7 | params: params |
| 8 | }) | 8 | }) |
| ... | @@ -18,7 +18,7 @@ export function getMatchById(params) { | ... | @@ -18,7 +18,7 @@ export function getMatchById(params) { |
| 18 | 18 | ||
| 19 | export function getMySignCptList(query) { | 19 | export function getMySignCptList(query) { |
| 20 | return request({ | 20 | return request({ |
| 21 | url: 'ztx-match/league/competition/getMySignCptList', | 21 | url: '/league/competition/getMySignCptList', |
| 22 | method: 'get', | 22 | method: 'get', |
| 23 | params: query | 23 | params: query |
| 24 | }) | 24 | }) |
| ... | @@ -35,35 +35,35 @@ export function getMySignDetailById(params) { | ... | @@ -35,35 +35,35 @@ export function getMySignDetailById(params) { |
| 35 | // 获取赛事下的已报团队 | 35 | // 获取赛事下的已报团队 |
| 36 | export function getGroupListByCptId(cptId) { | 36 | export function getGroupListByCptId(cptId) { |
| 37 | return request({ | 37 | return request({ |
| 38 | url: `ztx-match/league/group/getGroupListByCptId/${cptId}`, | 38 | url: `/league/group/getGroupListByCptId/${cptId}`, |
| 39 | method: 'get' | 39 | method: 'get' |
| 40 | }) | 40 | }) |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | export function getMyPersonInfoWithcptId(cptId) { | 43 | export function getMyPersonInfoWithcptId(cptId) { |
| 44 | return request({ | 44 | return request({ |
| 45 | url: `ztx-match/systemj/personInfo/getMyPersonInfo/${cptId}`, | 45 | url: `/systemj/personInfo/getMyPersonInfo/${cptId}`, |
| 46 | method: 'get' | 46 | method: 'get' |
| 47 | }) | 47 | }) |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | export function getMyPersonInfo() { | 50 | export function getMyPersonInfo() { |
| 51 | return request({ | 51 | return request({ |
| 52 | url: `/ztx-match/systemj/personInfo/getMyPersonInfo`, | 52 | url: `/systemj/personInfo/getMyPersonInfo`, |
| 53 | method: 'get' | 53 | method: 'get' |
| 54 | }) | 54 | }) |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | export function countryList() { | 57 | export function countryList() { |
| 58 | return request({ | 58 | return request({ |
| 59 | url: `/ztx-match/systemj/country/countryList`, | 59 | url: `/systemj/country/countryList`, |
| 60 | method: 'get' | 60 | method: 'get' |
| 61 | }) | 61 | }) |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | export function saveMyBaseInfo(data) { | 64 | export function saveMyBaseInfo(data) { |
| 65 | return request({ | 65 | return request({ |
| 66 | url: `/ztx-match/systemj/personInfo/saveMyBaseInfo`, | 66 | url: `/systemj/personInfo/saveMyBaseInfo`, |
| 67 | method: 'post', | 67 | method: 'post', |
| 68 | data: data | 68 | data: data |
| 69 | }) | 69 | }) |
| ... | @@ -87,7 +87,7 @@ export function checkRegisterCode(data) { | ... | @@ -87,7 +87,7 @@ export function checkRegisterCode(data) { |
| 87 | 87 | ||
| 88 | export function getMyGroupList() { | 88 | export function getMyGroupList() { |
| 89 | return request({ | 89 | return request({ |
| 90 | url: `/ztx-match/league/group/getMyGroupList`, | 90 | url: `/league/group/getMyGroupList`, |
| 91 | method: 'get' | 91 | method: 'get' |
| 92 | }) | 92 | }) |
| 93 | } | 93 | } |
| ... | @@ -115,6 +115,20 @@ export function saveMyGroup(data) { | ... | @@ -115,6 +115,20 @@ export function saveMyGroup(data) { |
| 115 | data: data | 115 | data: data |
| 116 | }) | 116 | }) |
| 117 | } | 117 | } |
| 118 | export function saveMyGroupForCpt(data) { | ||
| 119 | return request({ | ||
| 120 | url: `/league/group/saveMyGroupForCpt`, | ||
| 121 | method: 'post', | ||
| 122 | data: data | ||
| 123 | }) | ||
| 124 | } | ||
| 125 | export function commitAudit(data) { | ||
| 126 | return request({ | ||
| 127 | url: `/league/group/commitAudit`, | ||
| 128 | method: 'post', | ||
| 129 | data: data | ||
| 130 | }) | ||
| 131 | } | ||
| 118 | 132 | ||
| 119 | // 退出团队 | 133 | // 退出团队 |
| 120 | export function leaveGroup(groupId) { | 134 | export function leaveGroup(groupId) { |
| ... | @@ -127,7 +141,7 @@ export function leaveGroup(groupId) { | ... | @@ -127,7 +141,7 @@ export function leaveGroup(groupId) { |
| 127 | // 根据Id获取人员信息 | 141 | // 根据Id获取人员信息 |
| 128 | export function getPersonInfoById(id) { | 142 | export function getPersonInfoById(id) { |
| 129 | return request({ | 143 | return request({ |
| 130 | url: `ztx-match/systemj/personInfo/${id}`, | 144 | url: `/systemj/personInfo/${id}`, |
| 131 | method: 'get' | 145 | method: 'get' |
| 132 | }) | 146 | }) |
| 133 | } | 147 | } |
| ... | @@ -135,7 +149,7 @@ export function getPersonInfoById(id) { | ... | @@ -135,7 +149,7 @@ export function getPersonInfoById(id) { |
| 135 | // 保存补充信息 | 149 | // 保存补充信息 |
| 136 | export function saveSupplementInfo(data) { | 150 | export function saveSupplementInfo(data) { |
| 137 | return request({ | 151 | return request({ |
| 138 | url: `ztx-match/league/competitionPersonInfo/savePersonInfo`, | 152 | url: `/league/competitionPersonInfo/savePersonInfo`, |
| 139 | method: 'post', | 153 | method: 'post', |
| 140 | data: data | 154 | data: data |
| 141 | }) | 155 | }) |
| ... | @@ -144,14 +158,14 @@ export function saveSupplementInfo(data) { | ... | @@ -144,14 +158,14 @@ export function saveSupplementInfo(data) { |
| 144 | // 获取补充信息 | 158 | // 获取补充信息 |
| 145 | export function getSupplementInfo(id) { | 159 | export function getSupplementInfo(id) { |
| 146 | return request({ | 160 | return request({ |
| 147 | url: `ztx-match/league/competitionPersonInfo/${id}`, | 161 | url: `/league/competitionPersonInfo/${id}`, |
| 148 | method: 'get' | 162 | method: 'get' |
| 149 | }) | 163 | }) |
| 150 | } | 164 | } |
| 151 | 165 | ||
| 152 | export function getMySignInfo(data) { | 166 | export function getMySignInfo(data) { |
| 153 | return request({ | 167 | return request({ |
| 154 | url: `ztx-match/league/sign/getMySignInfo`, | 168 | url: `/league/sign/getMySignInfo`, |
| 155 | method: 'post', | 169 | method: 'post', |
| 156 | data: data | 170 | data: data |
| 157 | }) | 171 | }) |
| ... | @@ -173,7 +187,7 @@ export function getLeveListByGroupId(cptGroupId) { | ... | @@ -173,7 +187,7 @@ export function getLeveListByGroupId(cptGroupId) { |
| 173 | 187 | ||
| 174 | export function saveMyTeam(data) { | 188 | export function saveMyTeam(data) { |
| 175 | return request({ | 189 | return request({ |
| 176 | url: `ztx-match/league/team/saveMyTeam`, | 190 | url: `/league/team/saveMyTeam`, |
| 177 | method: 'post', | 191 | method: 'post', |
| 178 | data: data | 192 | data: data |
| 179 | }) | 193 | }) |
| ... | @@ -181,7 +195,7 @@ export function saveMyTeam(data) { | ... | @@ -181,7 +195,7 @@ export function saveMyTeam(data) { |
| 181 | 195 | ||
| 182 | export function getMyOrderList(params) { | 196 | export function getMyOrderList(params) { |
| 183 | return request({ | 197 | return request({ |
| 184 | url: `/ztx-match/league/signOrder/getMyOrderList`, | 198 | url: `/league/signOrder/getMyOrderList`, |
| 185 | method: 'get', | 199 | method: 'get', |
| 186 | params: params | 200 | params: params |
| 187 | }) | 201 | }) |
| ... | @@ -196,7 +210,7 @@ export function getMySignListFromOrderList(orderId) { | ... | @@ -196,7 +210,7 @@ export function getMySignListFromOrderList(orderId) { |
| 196 | 210 | ||
| 197 | export function getMyOrderDetail(orderId) { | 211 | export function getMyOrderDetail(orderId) { |
| 198 | return request({ | 212 | return request({ |
| 199 | url: `/ztx-match/league/signOrder/getMyOrderDetail/${orderId}`, | 213 | url: `/league/signOrder/getMyOrderDetail/${orderId}`, |
| 200 | method: 'get' | 214 | method: 'get' |
| 201 | }) | 215 | }) |
| 202 | } | 216 | } |
| ... | @@ -219,30 +233,37 @@ export function getVenueDetail(id) { | ... | @@ -219,30 +233,37 @@ export function getVenueDetail(id) { |
| 219 | // 获取团队下的队伍 | 233 | // 获取团队下的队伍 |
| 220 | export function getMyTeamList(cptId, groupId) { | 234 | export function getMyTeamList(cptId, groupId) { |
| 221 | return request({ | 235 | return request({ |
| 222 | url: `ztx-match/league/team/getTeamList/${cptId}/${groupId}`, | 236 | url: `/league/team/getTeamList/${cptId}/${groupId}`, |
| 223 | method: 'get' | 237 | method: 'get' |
| 224 | }) | 238 | }) |
| 225 | } | 239 | } |
| 226 | 240 | ||
| 227 | export function getMyGroupForCpt(groupId, cptId) { | 241 | export function getMyGroupForCpt(groupId, cptId) { |
| 228 | return request({ | 242 | return request({ |
| 229 | url: `ztx-match/league/group/getMyGroupForCpt/${groupId}/${cptId}`, | 243 | url: `/league/group/getMyGroupForCpt/${groupId}/${cptId}`, |
| 230 | method: 'get' | 244 | method: 'get' |
| 231 | }) | 245 | }) |
| 232 | } | 246 | } |
| 233 | 247 | ||
| 234 | export function getMyGroupForCptFilter(groupId, cptId, query) { | 248 | export function getMyGroupForCptFilter(groupId, cptId, query) { |
| 235 | return request({ | 249 | return request({ |
| 236 | url: `ztx-match/league/group/getMyGroupForCptFilter/${groupId}/${cptId}`, | 250 | url: `/league/group/getMyGroupForCptFilter/${groupId}/${cptId}`, |
| 237 | method: 'post', | 251 | method: 'post', |
| 238 | data: query | 252 | data: query |
| 239 | }) | 253 | }) |
| 240 | } | 254 | } |
| 255 | export function getGroupPersonList(query,groupId) { | ||
| 256 | return request({ | ||
| 257 | url: `/systemj/personInfo/getPersonInfoListByGroupIdNoLabel/${groupId}`, | ||
| 258 | method: 'get', | ||
| 259 | params: query | ||
| 260 | }) | ||
| 261 | } | ||
| 241 | 262 | ||
| 242 | // 获取团队报名时已选人员 | 263 | // 获取团队报名时已选人员 |
| 243 | export function getChooseDoneGroupCoachs(cptId, groupId) { | 264 | export function getChooseDoneGroupCoachs(cptId, groupId) { |
| 244 | return request({ | 265 | return request({ |
| 245 | url: `ztx-match/league/unitCompetitionRole/getGroupInfo/${cptId}/${groupId}`, | 266 | url: `/league/unitCompetitionRole/getGroupInfo/${cptId}/${groupId}`, |
| 246 | method: 'get' | 267 | method: 'get' |
| 247 | }) | 268 | }) |
| 248 | } | 269 | } |
| ... | @@ -250,14 +271,14 @@ export function getChooseDoneGroupCoachs(cptId, groupId) { | ... | @@ -250,14 +271,14 @@ export function getChooseDoneGroupCoachs(cptId, groupId) { |
| 250 | // 获取个人报名时已选人员 | 271 | // 获取个人报名时已选人员 |
| 251 | export function getChooseDoneSingleCoachs(cptId) { | 272 | export function getChooseDoneSingleCoachs(cptId) { |
| 252 | return request({ | 273 | return request({ |
| 253 | url: `ztx-match/league/unitCompetitionRole/getPersonInfo/${cptId}`, | 274 | url: `/league/unitCompetitionRole/getPersonInfo/${cptId}`, |
| 254 | method: 'get' | 275 | method: 'get' |
| 255 | }) | 276 | }) |
| 256 | } | 277 | } |
| 257 | 278 | ||
| 258 | export function savePersonForMyGroup(data) { | 279 | export function savePersonForMyGroup(data) { |
| 259 | return request({ | 280 | return request({ |
| 260 | url: `ztx-match/systemj/personInfo/savePersonForMyGroup`, | 281 | url: `/systemj/personInfo/savePersonForMyGroup`, |
| 261 | method: 'post', | 282 | method: 'post', |
| 262 | data: data | 283 | data: data |
| 263 | }) | 284 | }) |
| ... | @@ -265,7 +286,7 @@ export function savePersonForMyGroup(data) { | ... | @@ -265,7 +286,7 @@ export function savePersonForMyGroup(data) { |
| 265 | 286 | ||
| 266 | export function savePersonForMyPerson(data) { | 287 | export function savePersonForMyPerson(data) { |
| 267 | return request({ | 288 | return request({ |
| 268 | url: `ztx-match/systemj/personInfo/savePersonForMyPerson`, | 289 | url: `/systemj/personInfo/savePersonForMyPerson`, |
| 269 | method: 'post', | 290 | method: 'post', |
| 270 | data: data | 291 | data: data |
| 271 | }) | 292 | }) |
| ... | @@ -283,14 +304,14 @@ export function editPersonInfo(params) { | ... | @@ -283,14 +304,14 @@ export function editPersonInfo(params) { |
| 283 | // 人员删除 | 304 | // 人员删除 |
| 284 | export function delPerson(id) { | 305 | export function delPerson(id) { |
| 285 | return request({ | 306 | return request({ |
| 286 | url: `ztx-match/systemj/personInfo/${id}`, | 307 | url: `/systemj/personInfo/${id}`, |
| 287 | method: 'delete' | 308 | method: 'delete' |
| 288 | }) | 309 | }) |
| 289 | } | 310 | } |
| 290 | 311 | ||
| 291 | export function singleSignSavePerson(data) { | 312 | export function singleSignSavePerson(data) { |
| 292 | return request({ | 313 | return request({ |
| 293 | url: `ztx-match/league/unitCompetitionRole/savePersonInfo`, | 314 | url: `/league/unitCompetitionRole/savePersonInfo`, |
| 294 | method: 'post', | 315 | method: 'post', |
| 295 | data: data | 316 | data: data |
| 296 | }) | 317 | }) |
| ... | @@ -298,7 +319,7 @@ export function singleSignSavePerson(data) { | ... | @@ -298,7 +319,7 @@ export function singleSignSavePerson(data) { |
| 298 | 319 | ||
| 299 | export function groupSignSavePerson(data) { | 320 | export function groupSignSavePerson(data) { |
| 300 | return request({ | 321 | return request({ |
| 301 | url: `ztx-match/league/unitCompetitionRole/saveGroupInfo`, | 322 | url: `/league/unitCompetitionRole/saveGroupInfo`, |
| 302 | method: 'post', | 323 | method: 'post', |
| 303 | data: data | 324 | data: data |
| 304 | }) | 325 | }) |
| ... | @@ -326,20 +347,20 @@ export function getCanSignlevelListFromSelectPerson(groupId, personId) { | ... | @@ -326,20 +347,20 @@ export function getCanSignlevelListFromSelectPerson(groupId, personId) { |
| 326 | } | 347 | } |
| 327 | export function delRank(id) { | 348 | export function delRank(id) { |
| 328 | return request({ | 349 | return request({ |
| 329 | url: `ztx-match/league/team/${id}`, | 350 | url: `/league/team/${id}`, |
| 330 | method: 'delete' | 351 | method: 'delete' |
| 331 | }) | 352 | }) |
| 332 | } | 353 | } |
| 333 | export function getCanSignLevelPerson(data) { | 354 | export function getCanSignLevelPerson(data) { |
| 334 | return request({ | 355 | return request({ |
| 335 | url: `ztx-match/league/competitionLevel/getCanSignLevelPerson`, | 356 | url: `/league/competitionLevel/getCanSignLevelPerson`, |
| 336 | method: 'post', | 357 | method: 'post', |
| 337 | data: data | 358 | data: data |
| 338 | }) | 359 | }) |
| 339 | } | 360 | } |
| 340 | export function sportsmanDone(data) { | 361 | export function sportsmanDone(data) { |
| 341 | return request({ | 362 | return request({ |
| 342 | url: `ztx-match/league/sign/signUp`, | 363 | url: `/league/sign/signUp`, |
| 343 | method: 'post', | 364 | method: 'post', |
| 344 | data: data | 365 | data: data |
| 345 | }) | 366 | }) |
| ... | @@ -347,20 +368,20 @@ export function sportsmanDone(data) { | ... | @@ -347,20 +368,20 @@ export function sportsmanDone(data) { |
| 347 | // 删除报名接口 | 368 | // 删除报名接口 |
| 348 | export function deleteSign(id) { | 369 | export function deleteSign(id) { |
| 349 | return request({ | 370 | return request({ |
| 350 | url: `ztx-match/league/sign/deleteSign/${id}`, | 371 | url: `/league/sign/deleteSign/${id}`, |
| 351 | method: 'post' | 372 | method: 'post' |
| 352 | }) | 373 | }) |
| 353 | } | 374 | } |
| 354 | // 选择运动员的补充信息表头 | 375 | // 选择运动员的补充信息表头 |
| 355 | export function getCptExtraInfo(cptId) { | 376 | export function getCptExtraInfo(cptId) { |
| 356 | return request({ | 377 | return request({ |
| 357 | url: `ztx-match/league/competition/getCptExtraInfo/${cptId}`, | 378 | url: `/league/competition/getCptExtraInfo/${cptId}`, |
| 358 | method: 'get' | 379 | method: 'get' |
| 359 | }) | 380 | }) |
| 360 | } | 381 | } |
| 361 | export function recoverMySign(data) { | 382 | export function recoverMySign(data) { |
| 362 | return request({ | 383 | return request({ |
| 363 | url: `ztx-match/league/sign/recoverMySign`, | 384 | url: `/league/sign/recoverMySign`, |
| 364 | method: 'post', | 385 | method: 'post', |
| 365 | data: data | 386 | data: data |
| 366 | }) | 387 | }) |
| ... | @@ -368,21 +389,21 @@ export function recoverMySign(data) { | ... | @@ -368,21 +389,21 @@ export function recoverMySign(data) { |
| 368 | // 生成订单 | 389 | // 生成订单 |
| 369 | export function commitSign(data) { | 390 | export function commitSign(data) { |
| 370 | return request({ | 391 | return request({ |
| 371 | url: `ztx-match/league/sign/commitSign`, | 392 | url: `/league/sign/commitSign`, |
| 372 | method: 'post', | 393 | method: 'post', |
| 373 | data: data | 394 | data: data |
| 374 | }) | 395 | }) |
| 375 | } | 396 | } |
| 376 | export function getTotalFee(data) { | 397 | export function getTotalFee(data) { |
| 377 | return request({ | 398 | return request({ |
| 378 | url: `ztx-match/league/expenseConfig/getTotalFee`, | 399 | url: `/league/expenseConfig/getTotalFee`, |
| 379 | method: 'post', | 400 | method: 'post', |
| 380 | data: data | 401 | data: data |
| 381 | }) | 402 | }) |
| 382 | } | 403 | } |
| 383 | export function getMemberInfoByCptId(cptId) { | 404 | export function getMemberInfoByCptId(cptId) { |
| 384 | return request({ | 405 | return request({ |
| 385 | url: `ztx-match/systemj/member/editMemberCode/${cptId}`, | 406 | url: `/systemj/member/editMemberCode/${cptId}`, |
| 386 | method: 'get' | 407 | method: 'get' |
| 387 | }) | 408 | }) |
| 388 | } | 409 | } |
| ... | @@ -395,20 +416,20 @@ export function getTemplate() { | ... | @@ -395,20 +416,20 @@ export function getTemplate() { |
| 395 | // 支付 orderId,payType | 416 | // 支付 orderId,payType |
| 396 | export function payMatch(data) { | 417 | export function payMatch(data) { |
| 397 | return request({ | 418 | return request({ |
| 398 | url: `ztx-match/league/signOrder/payForOrderFromPc`, | 419 | url: `/league/signOrder/payForOrderFromPc`, |
| 399 | method: 'post', | 420 | method: 'post', |
| 400 | data: data | 421 | data: data |
| 401 | }) | 422 | }) |
| 402 | } | 423 | } |
| 403 | export function cancelMyUnPayedOrder(orderId) { | 424 | export function cancelMyUnPayedOrder(orderId) { |
| 404 | return request({ | 425 | return request({ |
| 405 | url: `ztx-match/league/signOrder/cancelMyUnPayedOrder/${orderId}`, | 426 | url: `/league/signOrder/cancelMyUnPayedOrder/${orderId}`, |
| 406 | method: 'post' | 427 | method: 'post' |
| 407 | }) | 428 | }) |
| 408 | } | 429 | } |
| 409 | export function getMySignListFromBaoXiang(data) { | 430 | export function getMySignListFromBaoXiang(data) { |
| 410 | return request({ | 431 | return request({ |
| 411 | url: `ztx-match/league/sign/getMySignListFromBaoXiang`, | 432 | url: `/league/sign/getMySignListFromBaoXiang`, |
| 412 | method: 'post', | 433 | method: 'post', |
| 413 | data: data | 434 | data: data |
| 414 | }) | 435 | }) |
| ... | @@ -421,27 +442,27 @@ export function deleteMyGroup(groupId) { | ... | @@ -421,27 +442,27 @@ export function deleteMyGroup(groupId) { |
| 421 | } | 442 | } |
| 422 | export function checkPerson(data) { | 443 | export function checkPerson(data) { |
| 423 | return request({ | 444 | return request({ |
| 424 | url: `ztx-match/systemj/personInfo/checkPersonInfoExist`, | 445 | url: `/systemj/personInfo/checkPersonInfoExist`, |
| 425 | method: 'post', | 446 | method: 'post', |
| 426 | data: data | 447 | data: data |
| 427 | }) | 448 | }) |
| 428 | } | 449 | } |
| 429 | export function getMySignListTree(cptId, personId, teamId) { | 450 | export function getMySignListTree(cptId, personId, teamId) { |
| 430 | return request({ | 451 | return request({ |
| 431 | url: `ztx-match/league/competitionProject/getAllInfoFromSelectPerson/${cptId}/${personId}/${teamId || 0}`, | 452 | url: `/league/competitionProject/getAllInfoFromSelectPerson/${cptId}/${personId}/${teamId || 0}`, |
| 432 | method: 'get' | 453 | method: 'get' |
| 433 | }) | 454 | }) |
| 434 | } | 455 | } |
| 435 | export function getMySignInfoList(data) { | 456 | export function getMySignInfoList(data) { |
| 436 | return request({ | 457 | return request({ |
| 437 | url: `ztx-match/league/sign/getMySignInfoList`, | 458 | url: `/league/sign/getMySignInfoList`, |
| 438 | method: 'post', | 459 | method: 'post', |
| 439 | data: data | 460 | data: data |
| 440 | }) | 461 | }) |
| 441 | } | 462 | } |
| 442 | export function saveMyGroupExtraInfo(data) { | 463 | export function saveMyGroupExtraInfo(data) { |
| 443 | return request({ | 464 | return request({ |
| 444 | url: `ztx-match/league/competitionGroupInfo/saveMyGroupExtraInfo`, | 465 | url: `/league/competitionGroupInfo/saveMyGroupExtraInfo`, |
| 445 | method: 'post', | 466 | method: 'post', |
| 446 | data: data | 467 | data: data |
| 447 | }) | 468 | }) |
| ... | @@ -454,19 +475,19 @@ export function saveMyGroupExtraInfo(data) { | ... | @@ -454,19 +475,19 @@ export function saveMyGroupExtraInfo(data) { |
| 454 | } | 475 | } |
| 455 | export function getMySignIds(cptId, personId, teamId) { | 476 | export function getMySignIds(cptId, personId, teamId) { |
| 456 | return request({ | 477 | return request({ |
| 457 | url: `ztx-match/league/sign/getSignEntityByPersonId/${cptId}/${personId}/${teamId || 0}`, | 478 | url: `/league/sign/getSignEntityByPersonId/${cptId}/${personId}/${teamId || 0}`, |
| 458 | method: 'get' | 479 | method: 'get' |
| 459 | }) | 480 | }) |
| 460 | } | 481 | } |
| 461 | export function querySonLevel(parentId) { | 482 | export function querySonLevel(parentId) { |
| 462 | return request({ | 483 | return request({ |
| 463 | url: `ztx-match/league/competitionSonLevel/querySonLevelByParentId/${parentId}`, | 484 | url: `/league/competitionSonLevel/querySonLevelByParentId/${parentId}`, |
| 464 | method: 'get' | 485 | method: 'get' |
| 465 | }) | 486 | }) |
| 466 | } | 487 | } |
| 467 | export function getPayedOrderPdf(cptId, groupId) { | 488 | export function getPayedOrderPdf(cptId, groupId) { |
| 468 | return request({ | 489 | return request({ |
| 469 | url: `ztx-match/pdf/getPayedOrderPdf/${cptId}/${groupId}`, | 490 | url: `/pdf/getPayedOrderPdf/${cptId}/${groupId}`, |
| 470 | method: 'get' | 491 | method: 'get' |
| 471 | }) | 492 | }) |
| 472 | } | 493 | } | ... | ... |
src/assets/file/h2.pdf
deleted
100644 → 0
No preview for this file type
src/assets/file/jw.pdf
deleted
100644 → 0
No preview for this file type
src/assets/file/ss.pdf
deleted
100644 → 0
No preview for this file type
src/assets/images/bg1@2x.png
deleted
100644 → 0
195 KB
src/assets/images/gg@2x.png
deleted
100644 → 0
794 KB
src/assets/images/gg_bg@2x.png
deleted
100644 → 0
50.2 KB
src/assets/img/head0.png
0 → 100644
1.5 KB
src/assets/img/head1.png
0 → 100644
1.64 KB
src/assets/logo/ico.png
deleted
100644 → 0
3.29 KB
src/assets/pc/banner.png
deleted
100644 → 0
1.14 MB
src/assets/pc/bg.png
deleted
100644 → 0
124 KB
src/assets/pc/btn1.png
deleted
100644 → 0
4.01 KB
src/assets/pc/btn2.png
deleted
100644 → 0
1.34 KB
src/assets/pc/btn3.png
deleted
100644 → 0
1.02 KB
src/assets/pc/btn4.png
deleted
100644 → 0
655 Bytes
src/assets/pc/btn5.png
deleted
100644 → 0
3.2 KB
src/assets/pc/cg01.png
deleted
100644 → 0
23.6 KB
src/assets/pc/cg02.png
deleted
100644 → 0
17.7 KB
src/assets/pc/cg03.png
deleted
100644 → 0
27.7 KB
src/assets/pc/cg04.png
deleted
100644 → 0
29.4 KB
src/assets/pc/cg05.png
deleted
100644 → 0
27.9 KB
src/assets/pc/cg_btn01.png
deleted
100644 → 0
1.38 KB
src/assets/pc/cg_btn01_g.png
deleted
100644 → 0
1.36 KB
src/assets/pc/cg_btn02.png
deleted
100644 → 0
1.51 KB
src/assets/pc/cg_btn02_g.png
deleted
100644 → 0
1.52 KB
src/assets/pc/cg_btn03.png
deleted
100644 → 0
1.49 KB
src/assets/pc/cg_btn03_g.png
deleted
100644 → 0
1.42 KB
src/assets/pc/cg_btn04.png
deleted
100644 → 0
1.81 KB
src/assets/pc/cg_btn04_g.png
deleted
100644 → 0
1.75 KB
src/assets/pc/cg_btn05.png
deleted
100644 → 0
1.1 KB
src/assets/pc/cg_btn05_g.png
deleted
100644 → 0
1.08 KB
src/assets/pc/cg_btn06.png
deleted
100644 → 0
1020 Bytes
src/assets/pc/cg_btn06_g.png
deleted
100644 → 0
1002 Bytes
src/assets/pc/cg_btn07.png
deleted
100644 → 0
1.23 KB
src/assets/pc/cg_btn07_g.png
deleted
100644 → 0
1.2 KB
src/assets/pc/cg_btn08.png
deleted
100644 → 0
1.15 KB
src/assets/pc/cg_btn08_g.png
deleted
100644 → 0
1.09 KB
src/assets/pc/k1.png
deleted
100644 → 0
2.24 KB
src/assets/pc/k2.png
deleted
100644 → 0
2.72 KB
src/assets/pc/k3.png
deleted
100644 → 0
2.36 KB
src/assets/pc/logo.png
deleted
100644 → 0
3.82 KB
src/assets/pc/phone.png
deleted
100644 → 0
545 KB
src/assets/pc/px_banner.png
deleted
100644 → 0
113 KB
src/assets/pc/ss01.png
deleted
100644 → 0
2.2 KB
src/assets/pc/ss01_dwn.png
deleted
100644 → 0
1.36 KB
src/assets/pc/ss02.png
deleted
100644 → 0
2.96 KB
src/assets/pc/ss02_dwn.png
deleted
100644 → 0
2.23 KB
src/assets/pc/ss03.png
deleted
100644 → 0
2.97 KB
src/assets/pc/ss03_dwn.png
deleted
100644 → 0
2.23 KB
src/assets/pc/ss04.png
deleted
100644 → 0
2.52 KB
src/assets/pc/ss04_dwn.png
deleted
100644 → 0
1.69 KB
src/assets/pc/ss05.png
deleted
100644 → 0
2.47 KB
src/assets/pc/ss05_dwn.png
deleted
100644 → 0
1.64 KB
src/assets/pc/ss06.png
deleted
100644 → 0
3.04 KB
src/assets/pc/ss06_dwn.png
deleted
100644 → 0
2.46 KB
src/assets/pc/ss07.png
deleted
100644 → 0
3.34 KB
src/assets/pc/ss07_dwn.png
deleted
100644 → 0
2.56 KB
src/assets/pc/ss08.png
deleted
100644 → 0
2.3 KB
src/assets/pc/ss08_dwn.png
deleted
100644 → 0
1.49 KB
src/assets/pc/ss09.png
deleted
100644 → 0
2.88 KB
src/assets/pc/ss09_dwn.png
deleted
100644 → 0
2.05 KB
src/assets/pc/ss10.png
deleted
100644 → 0
2.37 KB
src/assets/pc/ss10_dwn.png
deleted
100644 → 0
1.56 KB
src/assets/pc/tool02.png
deleted
100644 → 0
985 Bytes
src/assets/pc/tool02_dwn.png
deleted
100644 → 0
974 Bytes
src/assets/pc/tool03.png
deleted
100644 → 0
664 Bytes
src/assets/pc/tool03_dwn.png
deleted
100644 → 0
661 Bytes
src/assets/pc/tool04.png
deleted
100644 → 0
460 Bytes
src/assets/pc/tool04_dwn.png
deleted
100644 → 0
458 Bytes
src/assets/pc/weCode2.jpg
deleted
100644 → 0
40.9 KB
src/assets/pc/wlogo.png
deleted
100644 → 0
4.82 KB
src/assets/sign/tag03.png
0 → 100644
989 Bytes
src/assets/sign/tag04.png
0 → 100644
1.32 KB
src/assets/sign/tag05.png
0 → 100644
1.08 KB
src/assets/sign/tag06.png
0 → 100644
1015 Bytes
| ... | @@ -74,7 +74,7 @@ div:focus { | ... | @@ -74,7 +74,7 @@ div:focus { |
| 74 | .pl-5 { | 74 | .pl-5 { |
| 75 | padding-left: 5px; | 75 | padding-left: 5px; |
| 76 | } | 76 | } |
| 77 | 77 | .mr5{margin-right: 5px;} | |
| 78 | .block { | 78 | .block { |
| 79 | display: block; | 79 | display: block; |
| 80 | } | 80 | } |
| ... | @@ -123,7 +123,7 @@ aside { | ... | @@ -123,7 +123,7 @@ aside { |
| 123 | 123 | ||
| 124 | //main-container全局样式 | 124 | //main-container全局样式 |
| 125 | .app-container { | 125 | .app-container { |
| 126 | padding: 20px; | 126 | padding: 20px 0 0; |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | .components-container { | 129 | .components-container { |
| ... | @@ -138,7 +138,7 @@ aside { | ... | @@ -138,7 +138,7 @@ aside { |
| 138 | .text-center { | 138 | .text-center { |
| 139 | text-align: center | 139 | text-align: center |
| 140 | } | 140 | } |
| 141 | 141 | .h20{height: 20px;} | |
| 142 | .sub-navbar { | 142 | .sub-navbar { |
| 143 | height: 50px; | 143 | height: 50px; |
| 144 | line-height: 50px; | 144 | line-height: 50px; |
| ... | @@ -186,9 +186,13 @@ aside { | ... | @@ -186,9 +186,13 @@ aside { |
| 186 | .primary-kx:hover{} | 186 | .primary-kx:hover{} |
| 187 | .border-info{background: rgba(69,61,234,0.04); | 187 | .border-info{background: rgba(69,61,234,0.04); |
| 188 | border: 1px solid #D3D1F6; | 188 | border: 1px solid #D3D1F6; |
| 189 | border-radius: 5px;padding: 20px;margin-bottom: 20px; | 189 | border-radius: 5px;padding: 10px;margin-bottom: 20px; |
| 190 | &.inline{display: inline-block;border-radius: 50px;padding: 10px 20px; | 190 | &.inline{display: inline-block;border-radius: 50px;padding: 10px 20px; |
| 191 | margin: 0 40% 20px;min-width: 200px;} | 191 | margin: 0 40% 20px;min-width: 200px;} |
| 192 | &.gray{background: #FAFBFD; | ||
| 193 | border: 1px solid #EEEFF0;} | ||
| 194 | label{margin-right: 10px;} | ||
| 195 | .item{margin: 10px} | ||
| 192 | } | 196 | } |
| 193 | .el-step__title.is-success{ | 197 | .el-step__title.is-success{ |
| 194 | color: var(--el-color-primary)!important; | 198 | color: var(--el-color-primary)!important; |
| ... | @@ -198,6 +202,7 @@ aside { | ... | @@ -198,6 +202,7 @@ aside { |
| 198 | background: linear-gradient(90deg, #8623FC, #453DEA);} | 202 | background: linear-gradient(90deg, #8623FC, #453DEA);} |
| 199 | } | 203 | } |
| 200 | .el-step__line{border-top:1px dashed #D1D6D8;background: transparent!important; | 204 | .el-step__line{border-top:1px dashed #D1D6D8;background: transparent!important; |
| 205 | .el-step__line-inner{border-width: 0!important;} | ||
| 201 | } | 206 | } |
| 202 | .el-step__head.is-process{border-top: var(--el-color-primary); | 207 | .el-step__head.is-process{border-top: var(--el-color-primary); |
| 203 | .el-step__icon{color: #fff;border: none; | 208 | .el-step__icon{color: #fff;border: none; |
| ... | @@ -250,3 +255,75 @@ aside { | ... | @@ -250,3 +255,75 @@ aside { |
| 250 | h4{font-size: 18px;margin-top: -10px;} | 255 | h4{font-size: 18px;margin-top: -10px;} |
| 251 | &:hover{box-shadow:var(--el-box-shadow-dark);} | 256 | &:hover{box-shadow:var(--el-box-shadow-dark);} |
| 252 | } | 257 | } |
| 258 | .fieldset-form{ border: groove #eee 1px; | ||
| 259 | legend{ | ||
| 260 | font-weight: 600; | ||
| 261 | color: #4C5359; | ||
| 262 | font-size: 14px;} | ||
| 263 | } | ||
| 264 | |||
| 265 | .el-button--primary.is-link, .el-button--primary.is-plain, .el-button--primary.is-text{ | ||
| 266 | --el-button-border-color:var(--el-color-primary)!important; | ||
| 267 | --el-button-bg-color:#fff!important; | ||
| 268 | } | ||
| 269 | @media (max-width: 500px) { | ||
| 270 | .footAll{display: none;} | ||
| 271 | .app-container{padding: 0;overflow: auto; | ||
| 272 | min-height: auto;} | ||
| 273 | .rightPart{width: calc(100vw - 100px);left: 100px;position: fixed; | ||
| 274 | border: none!important; | ||
| 275 | |||
| 276 | height: calc(100vh - 80px);overflow: auto;top: 80px; | ||
| 277 | .indexTitle{display: none;} | ||
| 278 | .pd20{padding: 8px;} | ||
| 279 | .pt30{padding: 8px;} | ||
| 280 | .d-form-border{border: none} | ||
| 281 | .el-card{box-shadow: none!important; border: none!important;} | ||
| 282 | .fieldset-form{ | ||
| 283 | .el-form-item{flex-direction: column;} | ||
| 284 | } | ||
| 285 | .el-form-item__label{width: auto!important;justify-content:flex-start} | ||
| 286 | } | ||
| 287 | } | ||
| 288 | .chooseForm { | ||
| 289 | .el-checkbox-group{ | ||
| 290 | display: flex; | ||
| 291 | flex-wrap: wrap; | ||
| 292 | } | ||
| 293 | :deep(.el-form-item__content) { | ||
| 294 | background: rgba(245, 247, 249, 0.38); | ||
| 295 | padding: 20px 40px 10px; | ||
| 296 | } | ||
| 297 | |||
| 298 | .el-checkbox { | ||
| 299 | height: auto;position: relative; | ||
| 300 | } | ||
| 301 | |||
| 302 | :deep(.el-checkbox__input) { | ||
| 303 | position: absolute; | ||
| 304 | right: 0; | ||
| 305 | top: 0; | ||
| 306 | } | ||
| 307 | |||
| 308 | .name { | ||
| 309 | text-align: center; | ||
| 310 | } | ||
| 311 | } | ||
| 312 | .addBttn {margin-right: 20px; | ||
| 313 | width: 60px; | ||
| 314 | color: #7B7F83; | ||
| 315 | font-size: 20px; | ||
| 316 | height: 60px; | ||
| 317 | display: flex; | ||
| 318 | align-items: center; | ||
| 319 | justify-content: center; | ||
| 320 | background: #FFFFFF; | ||
| 321 | border: 1px dashed #95A1A6; | ||
| 322 | border-radius: 50%; | ||
| 323 | |||
| 324 | &:hover { | ||
| 325 | cursor: pointer; | ||
| 326 | color: var(--el-color-primary); | ||
| 327 | border-color: var(--el-color-primary); | ||
| 328 | } | ||
| 329 | } | ... | ... |
| ... | @@ -1006,15 +1006,21 @@ img{display: block;} | ... | @@ -1006,15 +1006,21 @@ img{display: block;} |
| 1006 | 1006 | ||
| 1007 | //赛事 | 1007 | //赛事 |
| 1008 | .ph-30{padding-top: 30px;padding-bottom: 30px;} | 1008 | .ph-30{padding-top: 30px;padding-bottom: 30px;} |
| 1009 | .panel{border-radius: 10px;background: #FFFFFF; | 1009 | .panel{border-radius: 0;background: #FFFFFF;padding: 1px 0 0; |
| 1010 | .panel-header{background: #FBFCFD;line-height: 50px;height: 50px;} | 1010 | .panel-header{line-height: 50px;height: 50px;border-bottom: 1px solid #EEEEEE; |
| 1011 | .panel-title{text-align: center;font-size: 18px;line-height: 50px;margin: 0;} | 1011 | padding: 0 20px;position: relative; |
| 1012 | .panel-body{padding: 20px;} | 1012 | .fr{position: absolute;right: 20px;top: 0px;font-size: 14px;color: #666; |
| 1013 | .panel-footer{border-top: 1px solid #e1e1e1;height: 80px; | 1013 | text-decoration: underline;} |
| 1014 | display: flex; | ||
| 1015 | justify-content: center; | ||
| 1016 | align-items: center; | ||
| 1017 | } | 1014 | } |
| 1015 | .panel-title{font-size: 16px;line-height: 50px;margin: 0; | ||
| 1016 | color: var(--el-color-primary)} | ||
| 1017 | .panel-body{padding: 20px;} | ||
| 1018 | &.border{border: 1px solid #EEEEEE;} | ||
| 1019 | } | ||
| 1020 | .panel-footer{border-top: 1px solid #e1e1e1;height: 80px; | ||
| 1021 | display: flex; | ||
| 1022 | justify-content: center; | ||
| 1023 | align-items: center; | ||
| 1018 | } | 1024 | } |
| 1019 | .panel-footer .el-button--danger{background: var(--el-color-primary);border: none; | 1025 | .panel-footer .el-button--danger{background: var(--el-color-primary);border: none; |
| 1020 | padding: 0 40px; | 1026 | padding: 0 40px; |
| ... | @@ -1394,3 +1400,10 @@ img{display: block;} | ... | @@ -1394,3 +1400,10 @@ img{display: block;} |
| 1394 | p{text-align: left;word-break: break-all;} | 1400 | p{text-align: left;word-break: break-all;} |
| 1395 | } | 1401 | } |
| 1396 | } | 1402 | } |
| 1403 | .chooseForm{ | ||
| 1404 | :deep(.el-form-item__content){background: rgba(245, 247, 249, 0.38); | ||
| 1405 | padding: 20px 40px 10px;} | ||
| 1406 | .el-checkbox{height: auto;} | ||
| 1407 | :deep(.el-checkbox__input){position: absolute;right: 0;top: 0;} | ||
| 1408 | .name{text-align: center;} | ||
| 1409 | } | ... | ... |
src/assets/v1/about/123.jpg
deleted
100644 → 0
45 KB
src/assets/v1/about/photo.png
deleted
100644 → 0
353 KB
src/assets/v1/about/tab1.png
deleted
100644 → 0
91.8 KB
src/assets/v1/about/zz.png
deleted
100644 → 0
146 KB
src/assets/v1/help@2x.png
deleted
100644 → 0
15 KB
src/assets/v1/news_btn.png
deleted
100644 → 0
3.82 KB
src/assets/v1/news_btn2.png
deleted
100644 → 0
3.73 KB
src/assets/v1/ss01.png
deleted
100644 → 0
95.8 KB
src/assets/v1/ss02.png
deleted
100644 → 0
90.4 KB
src/assets/v1/ss03.png
deleted
100644 → 0
79.6 KB
src/assets/v1/star.png
deleted
100644 → 0
51.1 KB
src/assets/v1/wt@2x.png
deleted
100644 → 0
40.3 KB
src/components/FileImport/index.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div class="upload-file"> | ||
| 3 | <el-upload | ||
| 4 | ref="fileUpload" | ||
| 5 | multiple | ||
| 6 | :action="uploadFileUrl" | ||
| 7 | :before-upload="handleBeforeUpload" | ||
| 8 | :file-list="fileList" | ||
| 9 | :limit="limit" | ||
| 10 | :on-error="handleUploadError" | ||
| 11 | :on-exceed="handleExceed" | ||
| 12 | :on-success="handleUploadSuccess" | ||
| 13 | :show-file-list="false" | ||
| 14 | :headers="headers" | ||
| 15 | class="upload-file-uploader" | ||
| 16 | :name="name" | ||
| 17 | :accept="accept" | ||
| 18 | > | ||
| 19 | <!-- 上传按钮 --> | ||
| 20 | <el-button type="primary">选取文件</el-button> | ||
| 21 | </el-upload> | ||
| 22 | <!-- 上传提示 --> | ||
| 23 | <div v-if="showTip" class="el-upload__tip"> | ||
| 24 | 请上传 | ||
| 25 | <template v-if="fileSize"> | ||
| 26 | 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b> | ||
| 27 | </template> | ||
| 28 | <template v-if="fileType"> | ||
| 29 | 格式为 <b style="color: #f56c6c">{{ fileType.join("/") }}</b> | ||
| 30 | </template> | ||
| 31 | 的文件 | ||
| 32 | </div> | ||
| 33 | <!-- 文件列表 --> | ||
| 34 | <transition-group | ||
| 35 | class="upload-file-list el-upload-list el-upload-list--text" | ||
| 36 | name="el-fade-in-linear" | ||
| 37 | tag="ul" | ||
| 38 | > | ||
| 39 | <li | ||
| 40 | v-for="(file, index) in fileList" | ||
| 41 | :key="file.uid" | ||
| 42 | class="el-upload-list__item ele-upload-list__item-content" | ||
| 43 | > | ||
| 44 | <el-link | ||
| 45 | :href="`${file.url}`" | ||
| 46 | :underline="false" | ||
| 47 | target="_blank" | ||
| 48 | @click="downFN(file.url)" | ||
| 49 | > | ||
| 50 | <span class="el-icon-document"> {{ getFileName(file.name) }} </span> | ||
| 51 | </el-link> | ||
| 52 | <div class="ele-upload-list__item-content-action"> | ||
| 53 | <el-link :underline="false" type="danger" @click="handleDelete(index)">删除</el-link> | ||
| 54 | </div> | ||
| 55 | </li> | ||
| 56 | </transition-group> | ||
| 57 | </div> | ||
| 58 | </template> | ||
| 59 | |||
| 60 | <script setup> | ||
| 61 | import { getToken } from '@/utils/auth' | ||
| 62 | import _ from 'lodash' | ||
| 63 | import { computed } from 'vue' | ||
| 64 | |||
| 65 | const props = defineProps({ | ||
| 66 | modelValue: [String, Object, Array], | ||
| 67 | // 数量限制 | ||
| 68 | limit: { | ||
| 69 | type: Number, | ||
| 70 | default: 5 | ||
| 71 | }, | ||
| 72 | // 大小限制(MB) | ||
| 73 | fileSize: { | ||
| 74 | type: Number, | ||
| 75 | default: 120 | ||
| 76 | }, | ||
| 77 | // 文件类型, 例如['png', 'jpg', 'jpeg'] | ||
| 78 | fileType: { | ||
| 79 | type: Array, | ||
| 80 | default: () => ['xlsx'] | ||
| 81 | }, | ||
| 82 | // 是否显示提示 | ||
| 83 | isShowTip: { | ||
| 84 | type: Boolean, | ||
| 85 | default: true | ||
| 86 | }, | ||
| 87 | name: { | ||
| 88 | type: String, | ||
| 89 | default: 'file' | ||
| 90 | }, | ||
| 91 | action: { | ||
| 92 | type: String, | ||
| 93 | default: '/upload/uploadFile' | ||
| 94 | } | ||
| 95 | }) | ||
| 96 | const accept = computed(() => { | ||
| 97 | return _.map(props.fileType, (t) => { | ||
| 98 | if (t.indexOf('.') === 0) { | ||
| 99 | return t | ||
| 100 | } else { | ||
| 101 | return '.' + t | ||
| 102 | } | ||
| 103 | }).join(',') | ||
| 104 | }) | ||
| 105 | |||
| 106 | const { proxy } = getCurrentInstance() | ||
| 107 | const emit = defineEmits(['update:modelValue', 'uploadSuccess']) | ||
| 108 | const number = ref(0) | ||
| 109 | const fileOriginalName = ref('') | ||
| 110 | const uploadList = ref([]) | ||
| 111 | // const baseUrl = import.meta.env.VITE_APP_BASE_API; | ||
| 112 | const uploadFileUrl = ref(import.meta.env.VITE_APP_BASE_API + props.action) // 上传文件服务器地址 | ||
| 113 | const headers = ref({ Authorization: 'Bearer ' + getToken() }) | ||
| 114 | const fileList = ref([]) | ||
| 115 | const showTip = computed( | ||
| 116 | () => props.isShowTip && (props.fileType || props.fileSize) | ||
| 117 | ) | ||
| 118 | |||
| 119 | watch( | ||
| 120 | () => props.modelValue, | ||
| 121 | (val) => { | ||
| 122 | if (val) { | ||
| 123 | let temp = 1 | ||
| 124 | // 首先将值转为数组 | ||
| 125 | const list = Array.isArray(val) ? val : (_.isObject(props.modelValue) ? [props.modelValue] : props.modelValue.split(',')) | ||
| 126 | console.log(list) | ||
| 127 | |||
| 128 | // 然后将数组转为对象数组 | ||
| 129 | fileList.value = list.map((item) => { | ||
| 130 | if (typeof item === 'string') { | ||
| 131 | item = { name: item, url: item } | ||
| 132 | } | ||
| 133 | item.uid = item.uid || new Date().getTime() + temp++ | ||
| 134 | return item | ||
| 135 | }) | ||
| 136 | } else { | ||
| 137 | fileList.value = [] | ||
| 138 | return [] | ||
| 139 | } | ||
| 140 | }, | ||
| 141 | { deep: true, immediate: true } | ||
| 142 | ) | ||
| 143 | |||
| 144 | // 上传前校检格式和大小 | ||
| 145 | function handleBeforeUpload(file) { | ||
| 146 | // 校检文件类型 | ||
| 147 | if (props.fileType.length) { | ||
| 148 | let fileExtension = '' | ||
| 149 | if (file.name.lastIndexOf('.') > -1) { | ||
| 150 | fileExtension = file.name.slice(file.name.lastIndexOf('.') + 1) | ||
| 151 | } | ||
| 152 | const isTypeOk = props.fileType.some((type) => { | ||
| 153 | if (file.type.indexOf(type) > -1) return true | ||
| 154 | if (fileExtension && fileExtension.indexOf(type) > -1) return true | ||
| 155 | return false | ||
| 156 | }) | ||
| 157 | if (!isTypeOk) { | ||
| 158 | proxy.$modal.msgError( | ||
| 159 | `文件格式不正确, 请上传${props.fileType.join('/')}格式文件!` | ||
| 160 | ) | ||
| 161 | return false | ||
| 162 | } | ||
| 163 | } | ||
| 164 | // 校检文件大小 | ||
| 165 | if (props.fileSize) { | ||
| 166 | const isLt = file.size / 1024 / 1024 < props.fileSize | ||
| 167 | if (!isLt) { | ||
| 168 | proxy.$modal.msgError(`上传文件大小不能超过 ${props.fileSize} MB!`) | ||
| 169 | return false | ||
| 170 | } | ||
| 171 | } | ||
| 172 | proxy.$modal.loading('正在上传文件,请稍候...') | ||
| 173 | number.value++ | ||
| 174 | return true | ||
| 175 | } | ||
| 176 | |||
| 177 | // 文件个数超出 | ||
| 178 | function handleExceed() { | ||
| 179 | proxy.$modal.msgError(`上传文件数量不能超过 ${props.limit} 个!`) | ||
| 180 | } | ||
| 181 | |||
| 182 | // 上传失败 | ||
| 183 | function handleUploadError(err) { | ||
| 184 | proxy.$modal.msgError('上传文件失败') | ||
| 185 | proxy.$modal.closeLoading() | ||
| 186 | } | ||
| 187 | |||
| 188 | // 上传成功回调 | ||
| 189 | function handleUploadSuccess(res, file) { | ||
| 190 | console.log(file) | ||
| 191 | fileOriginalName.value = file.name | ||
| 192 | if (res.code === 200) { | ||
| 193 | if (res.data) { | ||
| 194 | uploadList.value.push({ name: file.name, url: res.data.fileUrl }) | ||
| 195 | uploadedSuccessfully() | ||
| 196 | } else { | ||
| 197 | proxy.$modal.closeLoading() | ||
| 198 | } | ||
| 199 | } else { | ||
| 200 | number.value-- | ||
| 201 | proxy.$modal.closeLoading() | ||
| 202 | proxy.$modal.msgError(res.msg) | ||
| 203 | proxy.$refs.fileUpload.handleRemove(file) | ||
| 204 | uploadedSuccessfully() | ||
| 205 | } | ||
| 206 | |||
| 207 | emit('uploadSuccess', res) | ||
| 208 | } | ||
| 209 | |||
| 210 | // 删除文件 | ||
| 211 | function handleDelete(index) { | ||
| 212 | fileList.value.splice(index, 1) | ||
| 213 | emit('update:modelValue', listToString(fileList.value)) | ||
| 214 | } | ||
| 215 | |||
| 216 | function handleClear() { | ||
| 217 | fileList.value = [] | ||
| 218 | emit('update:modelValue', listToString(fileList.value)) | ||
| 219 | } | ||
| 220 | |||
| 221 | // 上传结束处理 | ||
| 222 | function uploadedSuccessfully() { | ||
| 223 | if (number.value > 0 && uploadList.value.length === number.value) { | ||
| 224 | fileList.value = fileList.value | ||
| 225 | .filter((f) => f.url !== undefined) | ||
| 226 | .concat(uploadList.value) | ||
| 227 | uploadList.value = [] | ||
| 228 | number.value = 0 | ||
| 229 | emit('update:modelValue', listToString(fileList.value)) | ||
| 230 | proxy.$modal.closeLoading() | ||
| 231 | } | ||
| 232 | } | ||
| 233 | |||
| 234 | // 获取文件名称 | ||
| 235 | function getFileName(name) { | ||
| 236 | try { | ||
| 237 | if (name.lastIndexOf('/') > -1) { | ||
| 238 | return name.slice(name.lastIndexOf('/') + 1) | ||
| 239 | } else { | ||
| 240 | return name | ||
| 241 | } | ||
| 242 | } catch (ex) { | ||
| 243 | return '' | ||
| 244 | } | ||
| 245 | } | ||
| 246 | |||
| 247 | // 对象转成指定字符串分隔 | ||
| 248 | function listToString(list, separator) { | ||
| 249 | // let strs = ""; | ||
| 250 | // separator = separator || ","; | ||
| 251 | // for (const i in list) { | ||
| 252 | // if (list[i].url) { | ||
| 253 | // strs += list[i].url + separator; | ||
| 254 | // } | ||
| 255 | // } | ||
| 256 | // return strs != "" ? strs.substr(0, strs.length - 1) : ""; | ||
| 257 | |||
| 258 | return fileList.value | ||
| 259 | } | ||
| 260 | |||
| 261 | // 文件下载 | ||
| 262 | function downFN(row) { | ||
| 263 | console.log(row) | ||
| 264 | } | ||
| 265 | |||
| 266 | defineExpose({ | ||
| 267 | handleClear | ||
| 268 | }) | ||
| 269 | </script> | ||
| 270 | |||
| 271 | <style scoped lang="scss"> | ||
| 272 | .upload-file-uploader { | ||
| 273 | margin-bottom: 5px; | ||
| 274 | } | ||
| 275 | .upload-file-list .el-upload-list__item { | ||
| 276 | border: 1px solid #e4e7ed; | ||
| 277 | line-height: 2; | ||
| 278 | margin-bottom: 10px; | ||
| 279 | position: relative; | ||
| 280 | } | ||
| 281 | .upload-file-list .ele-upload-list__item-content { | ||
| 282 | display: flex; | ||
| 283 | justify-content: space-between; | ||
| 284 | align-items: center; | ||
| 285 | color: inherit; | ||
| 286 | } | ||
| 287 | .ele-upload-list__item-content-action .el-link { | ||
| 288 | margin-right: 10px; | ||
| 289 | } | ||
| 290 | </style> |
| ... | @@ -73,12 +73,13 @@ function handleCurrentChange(val) { | ... | @@ -73,12 +73,13 @@ function handleCurrentChange(val) { |
| 73 | 73 | ||
| 74 | </script> | 74 | </script> |
| 75 | 75 | ||
| 76 | <style scoped> | 76 | <style scoped lang="scss"> |
| 77 | .pagination-container { | 77 | .pagination-container1 { |
| 78 | background: #fff; | 78 | background: #fff; |
| 79 | padding: 32px 16px; | 79 | padding: 8px 16px; |
| 80 | .el-pagination{justify-content: end;} | ||
| 80 | } | 81 | } |
| 81 | .pagination-container.hidden { | 82 | .pagination-container1.hidden { |
| 82 | display: none; | 83 | display: none; |
| 83 | } | 84 | } |
| 84 | </style> | 85 | </style> | ... | ... |
| ... | @@ -35,6 +35,7 @@ import RightToolbar from '@/components/RightToolbar' | ... | @@ -35,6 +35,7 @@ import RightToolbar from '@/components/RightToolbar' |
| 35 | import Editor from '@/components/Editor' | 35 | import Editor from '@/components/Editor' |
| 36 | // 文件上传组件 | 36 | // 文件上传组件 |
| 37 | import FileUpload from '@/components/FileUpload' | 37 | import FileUpload from '@/components/FileUpload' |
| 38 | import FileImport from '@/components/FileImport' | ||
| 38 | // 图片上传组件 | 39 | // 图片上传组件 |
| 39 | import ImageUpload from '@/components/ImageUpload' | 40 | import ImageUpload from '@/components/ImageUpload' |
| 40 | import ImageUpload2 from '@/components/ImageUpload/index2' | 41 | import ImageUpload2 from '@/components/ImageUpload/index2' |
| ... | @@ -87,6 +88,7 @@ app.component('DictTag', DictTag) | ... | @@ -87,6 +88,7 @@ app.component('DictTag', DictTag) |
| 87 | app.component('PaginationPc', PaginationPc) | 88 | app.component('PaginationPc', PaginationPc) |
| 88 | app.component('TreeSelect', TreeSelect) | 89 | app.component('TreeSelect', TreeSelect) |
| 89 | app.component('FileUpload', FileUpload) | 90 | app.component('FileUpload', FileUpload) |
| 91 | app.component('FileImport', FileImport) | ||
| 90 | app.component('ImageUpload', ImageUpload) | 92 | app.component('ImageUpload', ImageUpload) |
| 91 | app.component('ImageUpload2', ImageUpload2) | 93 | app.component('ImageUpload2', ImageUpload2) |
| 92 | app.component('ImagePreview', ImagePreview) | 94 | app.component('ImagePreview', ImagePreview) | ... | ... |
| ... | @@ -401,6 +401,12 @@ export const constantRoutes = [ | ... | @@ -401,6 +401,12 @@ export const constantRoutes = [ |
| 401 | redirect: '/match/list', | 401 | redirect: '/match/list', |
| 402 | children: [ | 402 | children: [ |
| 403 | { | 403 | { |
| 404 | path: 'pay', | ||
| 405 | component: () => import('@/viewsPc/match/pay'), | ||
| 406 | name: 'signPay', | ||
| 407 | meta: { title: '缴费清单' } | ||
| 408 | }, | ||
| 409 | { | ||
| 404 | path: 'list', | 410 | path: 'list', |
| 405 | component: () => import('@/viewsPc/match/index'), | 411 | component: () => import('@/viewsPc/match/index'), |
| 406 | name: 'matchList', | 412 | name: 'matchList', |
| ... | @@ -447,6 +453,12 @@ export const constantRoutes = [ | ... | @@ -447,6 +453,12 @@ export const constantRoutes = [ |
| 447 | component: () => import('@/viewsPc/match/expenseDetails'), | 453 | component: () => import('@/viewsPc/match/expenseDetails'), |
| 448 | name: 'expenseDetails', | 454 | name: 'expenseDetails', |
| 449 | meta: { title: '费用明细' } | 455 | meta: { title: '费用明细' } |
| 456 | }, | ||
| 457 | { | ||
| 458 | path: 'list/:id/signPreview', | ||
| 459 | component: () => import('@/viewsPc/match/signPreview'), | ||
| 460 | name: 'signPreview', | ||
| 461 | meta: { title: '提交审核' } | ||
| 450 | } | 462 | } |
| 451 | ] | 463 | ] |
| 452 | }, | 464 | }, |
| ... | @@ -498,16 +510,22 @@ export const constantRoutes = [ | ... | @@ -498,16 +510,22 @@ export const constantRoutes = [ |
| 498 | meta: { title: '团队认证' } | 510 | meta: { title: '团队认证' } |
| 499 | }, | 511 | }, |
| 500 | { | 512 | { |
| 513 | path: 'myMember', | ||
| 514 | component: () => import('@/viewsPc/center/myMember'), | ||
| 515 | name: 'myMember', | ||
| 516 | meta: { title: '选手管理' } | ||
| 517 | }, | ||
| 518 | { | ||
| 501 | path: 'myMatch', | 519 | path: 'myMatch', |
| 502 | component: () => import('@/viewsPc/center/myMatch'), | 520 | component: () => import('@/viewsPc/center/myMatch'), |
| 503 | name: 'myMatch', | 521 | name: 'myMatch', |
| 504 | meta: { title: '我的赛事' } | 522 | meta: { title: '我的报名' } |
| 505 | }, | 523 | }, |
| 506 | { | 524 | { |
| 507 | path: 'myTrain', | 525 | path: 'myTrain', |
| 508 | component: () => import('@/viewsPc/center/myTrain'), | 526 | component: () => import('@/viewsPc/center/myTrain'), |
| 509 | name: 'myTrain', | 527 | name: 'myTrain', |
| 510 | meta: { title: '我的培训' } | 528 | meta: { title: '我的预定' } |
| 511 | } | 529 | } |
| 512 | ] | 530 | ] |
| 513 | } | 531 | } | ... | ... |
| ... | @@ -14,6 +14,7 @@ const useUserStore = defineStore( | ... | @@ -14,6 +14,7 @@ const useUserStore = defineStore( |
| 14 | state: () => ({ | 14 | state: () => ({ |
| 15 | token: getToken(), | 15 | token: getToken(), |
| 16 | user: null, | 16 | user: null, |
| 17 | group: {}, | ||
| 17 | name: '', | 18 | name: '', |
| 18 | nickName: '', | 19 | nickName: '', |
| 19 | avatar: '', | 20 | avatar: '', |
| ... | @@ -91,6 +92,7 @@ const useUserStore = defineStore( | ... | @@ -91,6 +92,7 @@ const useUserStore = defineStore( |
| 91 | this.roles = ['ROLE_DEFAULT'] | 92 | this.roles = ['ROLE_DEFAULT'] |
| 92 | } | 93 | } |
| 93 | this.user = user | 94 | this.user = user |
| 95 | this.group = res.data.group | ||
| 94 | this.name = user.userName | 96 | this.name = user.userName |
| 95 | this.nickName = user.nickName | 97 | this.nickName = user.nickName |
| 96 | this.deptType = user.dept.deptType | 98 | this.deptType = user.dept.deptType | ... | ... |
This diff is collapsed.
Click to expand it.
src/viewsPc/center/component/import.vue
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
src/viewsPc/center/myMember.vue
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
src/viewsPc/match/components/personTable.vue
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
src/viewsPc/match/pay.vue
0 → 100644
This diff is collapsed.
Click to expand it.
src/viewsPc/match/signPreview.vue
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment