a2fb7521 by 杨炀

no message

1 parent c60c7a3c
...@@ -313,17 +313,16 @@ function geren() { ...@@ -313,17 +313,16 @@ function geren() {
313 } 313 }
314 314
315 function goNext() { 315 function goNext() {
316 console.log(personAllList.value.teamDoctors,form.value)
317 // if ((form.value.coachs.length < 1) && (form.value.leader.length < 1)) { 316 // if ((form.value.coachs.length < 1) && (form.value.leader.length < 1)) {
318 // ElMessage.warning(language.value==0?'至少选一个教练或领队':'Coach/Team Leader, select at least one') 317 // ElMessage.warning(language.value==0?'至少选一个教练或领队':'Coach/Team Leader, select at least one')
319 // return 318 // return
320 // } 319 // }
321 if((personAllList.value.coaches.length>=0 && form.value.coachs?.toString().length == 0)&& 320 if((personAllList.value.coaches.length>0 && form.value.coachs?.toString().length == 0)&&
322 (personAllList.value.teamDoctors.length>=0 && form.value.doctor?.toString().length == 0)&& 321 (personAllList.value.teamDoctors.length>0 && form.value.doctor?.toString().length == 0)&&
323 (personAllList.value.translators.length>=0 && form.value.translator?.toString().length == 0)&& 322 (personAllList.value.translators.length>0 && form.value.translator?.toString().length == 0)&&
324 (personAllList.value.others.length>=0 && form.value.other?.toString().length == 0)&& 323 (personAllList.value.others.length>0 && form.value.other?.toString().length == 0)&&
325 (personAllList.value.officials.length>=0 && form.value.official?.toString().length == 0)&& 324 (personAllList.value.officials.length>0 && form.value.official?.toString().length == 0)&&
326 (personAllList.value.leaders.length>=0 && form.value.leader?.toString().length == 0) 325 (personAllList.value.leaders.length>0 && form.value.leader?.toString().length == 0)
327 ){ 326 ){
328 ElMessageBox.confirm(language.value==0?'您已添加随行人员,但尚未选中,是否进行下一步?':'You have added a follower, but have not selected, do you want to continue?', { 327 ElMessageBox.confirm(language.value==0?'您已添加随行人员,但尚未选中,是否进行下一步?':'You have added a follower, but have not selected, do you want to continue?', {
329 confirmButtonText: language.value==0?'下一步':'Next', 328 confirmButtonText: language.value==0?'下一步':'Next',
...@@ -360,7 +359,8 @@ function next() { ...@@ -360,7 +359,8 @@ function next() {
360 name: 'chooseProject', 359 name: 'chooseProject',
361 query: { 360 query: {
362 matchId: matchId, 361 matchId: matchId,
363 isNational:isNational.value 362 isNational:isNational.value,
363 languageSource:languageSource.value
364 } 364 }
365 }) 365 })
366 }) 366 })
...@@ -374,7 +374,8 @@ function next() { ...@@ -374,7 +374,8 @@ function next() {
374 matchId: matchId, 374 matchId: matchId,
375 groupId: groupId.value, 375 groupId: groupId.value,
376 signType: signType.value, 376 signType: signType.value,
377 isNational:isNational.value 377 isNational:isNational.value,
378 languageSource:languageSource.value
378 } 379 }
379 }) 380 })
380 }) 381 })
...@@ -388,6 +389,7 @@ function goPrev() { ...@@ -388,6 +389,7 @@ function goPrev() {
388 query: { 389 query: {
389 matchId: matchId, 390 matchId: matchId,
390 groupId: groupId.value, 391 groupId: groupId.value,
392 languageSource:languageSource.value,
391 isNational: false 393 isNational: false
392 } 394 }
393 }) 395 })
...@@ -397,6 +399,7 @@ function goPrev() { ...@@ -397,6 +399,7 @@ function goPrev() {
397 query: { 399 query: {
398 matchId: matchId, 400 matchId: matchId,
399 groupId: groupId.value, 401 groupId: groupId.value,
402 languageSource:languageSource.value,
400 isNational:isNational.value 403 isNational:isNational.value
401 } 404 }
402 }) 405 })
......
...@@ -79,9 +79,11 @@ ...@@ -79,9 +79,11 @@
79 <div class="panel border"> 79 <div class="panel border">
80 <div class="panel-header "> 80 <div class="panel-header ">
81 <h3 class="panel-title" v-if="language==0">可参与报名的项目 81 <h3 class="panel-title" v-if="language==0">可参与报名的项目
82 <span>已报项目在下方查看</span> 82 <span class="text-danger" v-if="signInfoList.length>0">已报项目在下方查看</span>
83 </h3>
84 <h3 class="panel-title" v-else>Search Events
85 <span class="text-danger" v-if="signInfoList.length>0">Slide down to view reported projects</span>
83 </h3> 86 </h3>
84 <h3 class="panel-title" v-else>Search Events</h3>
85 <div class="fr"> 87 <div class="fr">
86 <el-input size="small" v-model="projectQuery.name" :prefix-icon="Search" 88 <el-input size="small" v-model="projectQuery.name" :prefix-icon="Search"
87 @change="getProjectList" 89 @change="getProjectList"
...@@ -239,7 +241,8 @@ const data = reactive({ ...@@ -239,7 +241,8 @@ const data = reactive({
239 projectQuery: {}, tableType: 1, 241 projectQuery: {}, tableType: 1,
240 currProjectId: '', 242 currProjectId: '',
241 openTour: false, 243 openTour: false,
242 isNational: false 244 isNational: false,
245 languageSource:''
243 }) 246 })
244 const { 247 const {
245 activeTeam, 248 activeTeam,
...@@ -267,7 +270,7 @@ const { ...@@ -267,7 +270,7 @@ const {
267 tableType, 270 tableType,
268 zuQuery, 271 zuQuery,
269 openTour, currProjectId, 272 openTour, currProjectId,
270 tourCurrent, isNational 273 tourCurrent, isNational,languageSource
271 } = toRefs(data) 274 } = toRefs(data)
272 const nextButtonProps = ref({}) 275 const nextButtonProps = ref({})
273 const matchId = ref(route.query.matchId) 276 const matchId = ref(route.query.matchId)
...@@ -281,8 +284,6 @@ onMounted(() => { ...@@ -281,8 +284,6 @@ onMounted(() => {
281 // openTour.value = true 284 // openTour.value = true
282 }) 285 })
283 286
284 let chargeFlag
285
286 function getAthletesList() { 287 function getAthletesList() {
287 // athletesList.value 288 // athletesList.value
288 match.getGroupPersonList({label: '0'}, groupId.value).then(res => { 289 match.getGroupPersonList({label: '0'}, groupId.value).then(res => {
...@@ -303,7 +304,6 @@ function getMatch(id) { ...@@ -303,7 +304,6 @@ function getMatch(id) {
303 match.getMatchById({ 304 match.getMatchById({
304 id: id 305 id: id
305 }).then(res => { 306 }).then(res => {
306 chargeFlag = res.data.chargeFlag
307 noPhotoCanSign.value = res.data.noPhotoCanSign 307 noPhotoCanSign.value = res.data.noPhotoCanSign
308 coachOrLeaderFlag.value = res.data.coachOrLeaderFlag 308 coachOrLeaderFlag.value = res.data.coachOrLeaderFlag
309 extraform.value = JSON.parse(res.data.participantsInfo) 309 extraform.value = JSON.parse(res.data.participantsInfo)
...@@ -385,7 +385,8 @@ function goPrev() { ...@@ -385,7 +385,8 @@ function goPrev() {
385 router.push({ 385 router.push({
386 name: `chooseCoach`, 386 name: `chooseCoach`,
387 query: { 387 query: {
388 matchId: matchId.value 388 matchId: matchId.value,
389 languageSource: route.query.languageSource
389 } 390 }
390 }) 391 })
391 } 392 }
...@@ -871,6 +872,6 @@ watch(choosedchoosed, (newVal, oldVal) => { ...@@ -871,6 +872,6 @@ watch(choosedchoosed, (newVal, oldVal) => {
871 :deep(.el-select__tags-text){color: #000;font-size: 14px;} 872 :deep(.el-select__tags-text){color: #000;font-size: 14px;}
872 .po-right{position: absolute;right: 0;} 873 .po-right{position: absolute;right: 0;}
873 .panel h3.panel-title{ 874 .panel h3.panel-title{
874 span{ color: #999;font-size: 13px;} 875 span{font-size: 13px;}
875 } 876 }
876 </style> 877 </style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!