Merge branch 'dev' into dev-dev
Showing
4 changed files
with
26 additions
and
14 deletions
| ... | @@ -243,7 +243,7 @@ const data = reactive({ | ... | @@ -243,7 +243,7 @@ const data = reactive({ |
| 243 | currProjectId: '', | 243 | currProjectId: '', |
| 244 | openTour: false, | 244 | openTour: false, |
| 245 | isNational: false, | 245 | isNational: false, |
| 246 | languageSource:'' | 246 | languageSource:'',singlePersonEntryLimit:'',doublePersonEntryLimit:'' |
| 247 | }) | 247 | }) |
| 248 | const { | 248 | const { |
| 249 | activeTeam, | 249 | activeTeam, |
| ... | @@ -271,7 +271,7 @@ const { | ... | @@ -271,7 +271,7 @@ const { |
| 271 | tableType, | 271 | tableType, |
| 272 | zuQuery, | 272 | zuQuery, |
| 273 | openTour, currProjectId, | 273 | openTour, currProjectId, |
| 274 | tourCurrent, isNational,languageSource | 274 | tourCurrent, isNational,languageSource,singlePersonEntryLimit,doublePersonEntryLimit |
| 275 | } = toRefs(data) | 275 | } = toRefs(data) |
| 276 | const nextButtonProps = ref({}) | 276 | const nextButtonProps = ref({}) |
| 277 | const matchId = ref(route.query.matchId) | 277 | const matchId = ref(route.query.matchId) |
| ... | @@ -291,7 +291,7 @@ function getAthletesList() { | ... | @@ -291,7 +291,7 @@ function getAthletesList() { |
| 291 | athletesList.value = res.rows | 291 | athletesList.value = res.rows |
| 292 | if(!isNational.value){ | 292 | if(!isNational.value){ |
| 293 | for(let ath of athletesList.value){ | 293 | for(let ath of athletesList.value){ |
| 294 | if(!ath.picUrl||!ath.phone){ | 294 | if(!ath.phone){ |
| 295 | ath.disabled = true | 295 | ath.disabled = true |
| 296 | } else { | 296 | } else { |
| 297 | ath.disabled = false | 297 | ath.disabled = false |
| ... | @@ -305,6 +305,8 @@ function getMatch(id) { | ... | @@ -305,6 +305,8 @@ function getMatch(id) { |
| 305 | match.getMatchById({ | 305 | match.getMatchById({ |
| 306 | id: id | 306 | id: id |
| 307 | }).then(res => { | 307 | }).then(res => { |
| 308 | singlePersonEntryLimit.value = res.data.singlePersonEntryLimit | ||
| 309 | doublePersonEntryLimit.value = res.data.doublePersonEntryLimit | ||
| 308 | noPhotoCanSign.value = res.data.noPhotoCanSign | 310 | noPhotoCanSign.value = res.data.noPhotoCanSign |
| 309 | coachOrLeaderFlag.value = res.data.coachOrLeaderFlag | 311 | coachOrLeaderFlag.value = res.data.coachOrLeaderFlag |
| 310 | extraform.value = JSON.parse(res.data.participantsInfo) | 312 | extraform.value = JSON.parse(res.data.participantsInfo) |
| ... | @@ -582,6 +584,8 @@ let hasPproperty='' | ... | @@ -582,6 +584,8 @@ let hasPproperty='' |
| 582 | let hasPlevel='' | 584 | let hasPlevel='' |
| 583 | let hasAlmighty={} | 585 | let hasAlmighty={} |
| 584 | let hasPpropertyLength=0 | 586 | let hasPpropertyLength=0 |
| 587 | let isDanNum=0 | ||
| 588 | let isShuangNum=0 | ||
| 585 | watch(projectIds, (newVal, oldVal) => { | 589 | watch(projectIds, (newVal, oldVal) => { |
| 586 | let currProject = {} | 590 | let currProject = {} |
| 587 | if (newVal.length > oldVal.length) { | 591 | if (newVal.length > oldVal.length) { |
| ... | @@ -598,6 +602,8 @@ watch(projectIds, (newVal, oldVal) => { | ... | @@ -598,6 +602,8 @@ watch(projectIds, (newVal, oldVal) => { |
| 598 | hasPproperty='' | 602 | hasPproperty='' |
| 599 | hasPlevel='' | 603 | hasPlevel='' |
| 600 | hasAlmighty={} | 604 | hasAlmighty={} |
| 605 | isDanNum = 0 | ||
| 606 | isShuangNum = 0 | ||
| 601 | hasPpropertyLength=0 | 607 | hasPpropertyLength=0 |
| 602 | for(let hh of projectList.value){ | 608 | for(let hh of projectList.value){ |
| 603 | if(projectIds.value.indexOf(hh.id)>-1&&hh.pproperty){ | 609 | if(projectIds.value.indexOf(hh.id)>-1&&hh.pproperty){ |
| ... | @@ -610,6 +616,12 @@ watch(projectIds, (newVal, oldVal) => { | ... | @@ -610,6 +616,12 @@ watch(projectIds, (newVal, oldVal) => { |
| 610 | if(projectIds.value.indexOf(hh.id)>-1&&hh.almightyFlag=='1'){ | 616 | if(projectIds.value.indexOf(hh.id)>-1&&hh.almightyFlag=='1'){ |
| 611 | hasAlmighty = hh | 617 | hasAlmighty = hh |
| 612 | } | 618 | } |
| 619 | if(projectIds.value.indexOf(hh.id)>-1&&hh.singleFlag=='1'){ | ||
| 620 | isDanNum += 1 | ||
| 621 | } | ||
| 622 | if(projectIds.value.indexOf(hh.id)>-1&&hh.doubleSingleProjectFlag=='1'){ | ||
| 623 | isShuangNum += 1 | ||
| 624 | } | ||
| 613 | } | 625 | } |
| 614 | console.log(hasPproperty,hasPlevel,hasPpropertyLength) | 626 | console.log(hasPproperty,hasPlevel,hasPpropertyLength) |
| 615 | filterProjectList(currProject) | 627 | filterProjectList(currProject) |
| ... | @@ -621,11 +633,11 @@ watch(projectIds, (newVal, oldVal) => { | ... | @@ -621,11 +633,11 @@ watch(projectIds, (newVal, oldVal) => { |
| 621 | function filterProjectList(currProject){ | 633 | function filterProjectList(currProject){ |
| 622 | for(let pp of projectList.value){ | 634 | for(let pp of projectList.value){ |
| 623 | if( | 635 | if( |
| 624 | (currProject.pproperty&&pp.pproperty&&(pp.pproperty!=currProject.pproperty)) | 636 | (pp.pproperty==hasPproperty)&&((pp.danceTypeDetailStr.split(',').length>=4&&hasPpropertyLength<4)||(pp.danceTypeDetailStr.split(',').length<4&&hasPpropertyLength>=4)) |
| 625 | ||(currProject.plevel&&pp.plevel&&(pp.plevel!=currProject.plevel)) | ||
| 626 | ||(pp.pproperty==hasPproperty)&&(pp.danceTypeDetailStr.split(',').length<hasPpropertyLength) | ||
| 627 | ||(hasPproperty&&pp.pproperty&&pp.pproperty!=hasPproperty) | 637 | ||(hasPproperty&&pp.pproperty&&pp.pproperty!=hasPproperty) |
| 628 | ||(hasPlevel&&pp.plevel&&pp.plevel!=hasPlevel) | 638 | ||(hasPlevel&&pp.plevel&&pp.plevel!=hasPlevel) |
| 639 | ||(isDanNum==Number(singlePersonEntryLimit.value) && pp.singleFlag=='1'&&projectIds.value.indexOf(pp.id)==-1) | ||
| 640 | ||(isShuangNum==Number(doublePersonEntryLimit.value) && pp.doubleSingleProjectFlag=='1'&&projectIds.value.indexOf(pp.id)==-1) | ||
| 629 | ){ | 641 | ){ |
| 630 | pp.disabled = true | 642 | pp.disabled = true |
| 631 | } else if((hasAlmighty.almightyFlag=='1'&&pp.almightyFlag=='1') | 643 | } else if((hasAlmighty.almightyFlag=='1'&&pp.almightyFlag=='1') | ... | ... |
| ... | @@ -8,7 +8,7 @@ | ... | @@ -8,7 +8,7 @@ |
| 8 | <el-row :gutter="30" class="mt30"> | 8 | <el-row :gutter="30" class="mt30"> |
| 9 | <el-col :lg="12" class="touxiang"> | 9 | <el-col :lg="12" class="touxiang"> |
| 10 | 10 | ||
| 11 | <el-form-item prop="picUrl" :label="language==0?'个人照片':'photo'" :required="form.labelArr.indexOf('0')>-1"> | 11 | <el-form-item prop="picUrl" :label="language==0?'个人照片':'photo'"> |
| 12 | <ImageUpload2 | 12 | <ImageUpload2 |
| 13 | v-model="form.picUrl" :crop-height="280" :crop-width="200" class="threeFour" :limit="1" | 13 | v-model="form.picUrl" :crop-height="280" :crop-width="200" class="threeFour" :limit="1" |
| 14 | :is-show-tip="false" | 14 | :is-show-tip="false" |
| ... | @@ -304,10 +304,10 @@ function giveBirthDay() { | ... | @@ -304,10 +304,10 @@ function giveBirthDay() { |
| 304 | function submitForm() { | 304 | function submitForm() { |
| 305 | proxy.$refs['dialogRef'].validate((valid) => { | 305 | proxy.$refs['dialogRef'].validate((valid) => { |
| 306 | if (valid) { | 306 | if (valid) { |
| 307 | if(!form.value.picUrl&&form.value.labelArr.indexOf('0')>-1){ | 307 | // if(!form.value.picUrl&&form.value.labelArr.indexOf('0')>-1){ |
| 308 | ElMessage.warning(language.value == 0 ? '请上传个人照片' :'Please upload your photo') | 308 | // ElMessage.warning(language.value == 0 ? '请上传个人照片' :'Please upload your photo') |
| 309 | return | 309 | // return |
| 310 | } | 310 | // } |
| 311 | // 验证身份证号 | 311 | // 验证身份证号 |
| 312 | if (form.value.idcType == 0 && !(/(^\d{15}$)|(^\d{17}([0-9]|X)$)/.test(form.value.idcCode))) { | 312 | if (form.value.idcType == 0 && !(/(^\d{15}$)|(^\d{17}([0-9]|X)$)/.test(form.value.idcCode))) { |
| 313 | ElMessage.warning('请输入正确的身份证号码') | 313 | ElMessage.warning('请输入正确的身份证号码') | ... | ... |
| ... | @@ -72,7 +72,7 @@ | ... | @@ -72,7 +72,7 @@ |
| 72 | <!-- </el-table-column>--> | 72 | <!-- </el-table-column>--> |
| 73 | <el-table-column :label="language==0?'操作':'Actions'" width="180" fixed="right" align="center"> | 73 | <el-table-column :label="language==0?'操作':'Actions'" width="180" fixed="right" align="center"> |
| 74 | <template #default="scope"> | 74 | <template #default="scope"> |
| 75 | <el-button link v-if="!isNational&&(!scope.row.picUrl||!scope.row.phone)" type="danger" @click="editPerson(scope.row)"> | 75 | <el-button link v-if="!isNational&&(!scope.row.phone)" type="danger" @click="editPerson(scope.row)"> |
| 76 | {{language==0?'完善信息':'Complete'}} | 76 | {{language==0?'完善信息':'Complete'}} |
| 77 | </el-button> | 77 | </el-button> |
| 78 | <el-button link v-else type="primary" @click="editPerson(scope.row)"> | 78 | <el-button link v-else type="primary" @click="editPerson(scope.row)"> | ... | ... |
| ... | @@ -83,8 +83,8 @@ export default defineConfig(({ mode, command }) => { | ... | @@ -83,8 +83,8 @@ export default defineConfig(({ mode, command }) => { |
| 83 | }, | 83 | }, |
| 84 | '/dev-api': { | 84 | '/dev-api': { |
| 85 | // target: 'http://192.168.1.118:8081/', | 85 | // target: 'http://192.168.1.118:8081/', |
| 86 | target: 'http://192.168.1.131:8081/', | 86 | // target: 'http://192.168.1.131:8081/', |
| 87 | // target: 'https://jijin.wtwuxicenter.com/stage-api', | 87 | target: 'https://jijin.wtwuxicenter.com/stage-api', |
| 88 | // target: 'https://wdsfwuxicenter.com/stage-api/', | 88 | // target: 'https://wdsfwuxicenter.com/stage-api/', |
| 89 | changeOrigin: true, | 89 | changeOrigin: true, |
| 90 | rewrite: (p) => p.replace(/^\/dev-api/, '') | 90 | rewrite: (p) => p.replace(/^\/dev-api/, '') | ... | ... |
-
Please register or sign in to post a comment