个人报名 选多人 bug 修改
Showing
8 changed files
with
31 additions
and
58 deletions
| ... | @@ -120,7 +120,12 @@ function addMember() { | ... | @@ -120,7 +120,12 @@ function addMember() { |
| 120 | id: 0, | 120 | id: 0, |
| 121 | groupId: groupId.value | 121 | groupId: groupId.value |
| 122 | } | 122 | } |
| 123 | if(language.value==1){ | ||
| 123 | proxy.$refs['dialogAddCoachEn'].open(params) | 124 | proxy.$refs['dialogAddCoachEn'].open(params) |
| 125 | } else { | ||
| 126 | proxy.$refs['dialogAddCoach'].open(params) | ||
| 127 | } | ||
| 128 | |||
| 124 | } | 129 | } |
| 125 | 130 | ||
| 126 | function importSportman() { | 131 | function importSportman() { |
| ... | @@ -156,6 +161,8 @@ function editCoach(row,title) { | ... | @@ -156,6 +161,8 @@ function editCoach(row,title) { |
| 156 | } | 161 | } |
| 157 | if(row.label=='0'&&row.wdsfMin){ | 162 | if(row.label=='0'&&row.wdsfMin){ |
| 158 | proxy.$refs['dialogAddWDSF'].open(params) | 163 | proxy.$refs['dialogAddWDSF'].open(params) |
| 164 | } else if(row.idcType == '0'){ | ||
| 165 | proxy.$refs['dialogAddCoach'].open(params) | ||
| 159 | } else { | 166 | } else { |
| 160 | proxy.$refs['dialogAddCoachEn'].open(params) | 167 | proxy.$refs['dialogAddCoachEn'].open(params) |
| 161 | } | 168 | } | ... | ... |
| ... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
| 7 | {{userName}} | 7 | {{userName}} |
| 8 | </el-form-item> | 8 | </el-form-item> |
| 9 | <el-form-item :label="language==0?'所属国家/地区':'Country'" required> | 9 | <el-form-item :label="language==0?'所属国家/地区':'Country'" required> |
| 10 | <el-select filterable v-model="form.countryId"> | 10 | <el-select filterable v-model="form.countryId" :disabled="form.type!='4'"> |
| 11 | <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id" /> | 11 | <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id" /> |
| 12 | </el-select> | 12 | </el-select> |
| 13 | </el-form-item> | 13 | </el-form-item> | ... | ... |
| ... | @@ -18,52 +18,16 @@ | ... | @@ -18,52 +18,16 @@ |
| 18 | </div> | 18 | </div> |
| 19 | <div class="panel-body"> | 19 | <div class="panel-body"> |
| 20 | <div class="chooseForm" style="display: flex;flex-wrap: wrap;"> | 20 | <div class="chooseForm" style="display: flex;flex-wrap: wrap;"> |
| 21 | <!-- <div @click="editPerson" class="mb20" style="width: 50%;text-align: center;">--> | ||
| 22 | <!-- <el-avatar fit="cover" v-if="form.picUrl" :size="60" :src="fillImgUrl(form.picUrl)"/>--> | ||
| 23 | <!-- <div v-else>--> | ||
| 24 | <!-- <el-avatar fit="cover" v-if="form.sex == 0" :size="60" src="/img/head1.png"/>--> | ||
| 25 | <!-- <el-avatar fit="cover" v-if="form.sex == 1" :size="60" src="/img/head0.png"/>--> | ||
| 26 | <!-- </div>--> | ||
| 27 | <!-- <div class="text-center mt10">--> | ||
| 28 | <!-- <span class="mName">{{ form.realName }}</span>--> | ||
| 29 | <!-- <el-icon size="20">--> | ||
| 30 | <!-- <Edit/>--> | ||
| 31 | <!-- </el-icon>--> | ||
| 32 | <!-- </div>--> | ||
| 33 | <!-- </div>--> | ||
| 34 | <!-- <!–舞伴–>--> | ||
| 35 | <!-- <div style="width:50%;text-align: center;" v-if="form.danceMate">--> | ||
| 36 | <!-- <el-checkbox-group v-model="mateChosed" @change="changeMate">--> | ||
| 37 | <!-- <el-checkbox :label="form.danceMate.id">--> | ||
| 38 | <!-- <div>--> | ||
| 39 | <!-- <el-avatar fit="cover" v-if="form.danceMate.picUrl" :size="60" :src="fillImgUrl(form.danceMate.picUrl)"/>--> | ||
| 40 | <!-- <el-avatar fit="cover" v-else-if="form.danceMate.sex == 0" :size="60"--> | ||
| 41 | <!-- src="/img/head1.png"/>--> | ||
| 42 | <!-- <el-avatar fit="cover" v-else-if="form.danceMate.sex == 1" :size="60"--> | ||
| 43 | <!-- src="/img/head0.png"/>--> | ||
| 44 | <!-- <div class="text-center mt10" @click="editMate(form.danceMate)">--> | ||
| 45 | <!-- <span class="mName">{{ form.danceMate.realName }}</span>--> | ||
| 46 | <!-- <el-icon @click.stop="editMate(form.danceMate)" size="20">--> | ||
| 47 | <!-- <Edit/>--> | ||
| 48 | <!-- </el-icon>--> | ||
| 49 | <!--<!– <el-icon @click.stop="delMate(form.danceMate)">–>--> | ||
| 50 | <!--<!– <Delete/>–>--> | ||
| 51 | <!--<!– </el-icon>–>--> | ||
| 52 | <!-- </div>--> | ||
| 53 | <!-- </div>--> | ||
| 54 | <!-- </el-checkbox>--> | ||
| 55 | <!-- </el-checkbox-group>--> | ||
| 56 | <!-- </div>--> | ||
| 57 | <div style="width:50%;text-align: center;" v-for="s in choosedList"> | 21 | <div style="width:50%;text-align: center;" v-for="s in choosedList"> |
| 58 | <div> | 22 | <div> |
| 59 | <el-avatar fit="cover" v-if="s.picUrl" :size="60" :src="fillImgUrl(form.danceMate.picUrl)"/> | 23 | <el-avatar fit="cover" v-if="s.picUrl" :size="60" :src="fillImgUrl(s.picUrl)"/> |
| 60 | <el-avatar fit="cover" v-else-if="s.sex == 0" :size="60" | 24 | <el-avatar fit="cover" v-else-if="s.sex == 0" :size="60" |
| 61 | src="/img/head1.png"/> | 25 | src="/img/head1.png"/> |
| 62 | <el-avatar fit="cover" v-else-if="s.sex == 1" :size="60" | 26 | <el-avatar fit="cover" v-else-if="s.sex == 1" :size="60" |
| 63 | src="/img/head0.png"/> | 27 | src="/img/head0.png"/> |
| 64 | <div class="text-center mt10" @click="editMate(s)"> | 28 | <div class="text-center mt10" @click="editMate(s)"> |
| 65 | <span class="mName">{{ s.realName }}</span> | 29 | <span class="mName">{{ s.realName }}</span> |
| 66 | <el-icon @click.stop="editMate(s)" size="20"> | 30 | <el-icon size="20"> |
| 67 | <Edit/> | 31 | <Edit/> |
| 68 | </el-icon> | 32 | </el-icon> |
| 69 | </div> | 33 | </div> |
| ... | @@ -241,7 +205,6 @@ const data = reactive({ | ... | @@ -241,7 +205,6 @@ const data = reactive({ |
| 241 | teamList: [], | 205 | teamList: [], |
| 242 | extraform: [], | 206 | extraform: [], |
| 243 | groupId: 0, | 207 | groupId: 0, |
| 244 | signType: '', | ||
| 245 | coachOrLeaderFlag: null, | 208 | coachOrLeaderFlag: null, |
| 246 | noPhotoCanSign: null, | 209 | noPhotoCanSign: null, |
| 247 | showResult: false, | 210 | showResult: false, |
| ... | @@ -270,7 +233,6 @@ const { | ... | @@ -270,7 +233,6 @@ const { |
| 270 | choosedList,isNational, | 233 | choosedList,isNational, |
| 271 | extraform, | 234 | extraform, |
| 272 | groupId, | 235 | groupId, |
| 273 | signType, | ||
| 274 | coachOrLeaderFlag, | 236 | coachOrLeaderFlag, |
| 275 | noPhotoCanSign, | 237 | noPhotoCanSign, |
| 276 | projectIds, | 238 | projectIds, |
| ... | @@ -292,7 +254,6 @@ onMounted(() => { | ... | @@ -292,7 +254,6 @@ onMounted(() => { |
| 292 | if (useUserStore().user) { | 254 | if (useUserStore().user) { |
| 293 | userId.value = useUserStore().user.userId | 255 | userId.value = useUserStore().user.userId |
| 294 | } | 256 | } |
| 295 | signType.value = route.query.signType || null | ||
| 296 | getSignInfoList() | 257 | getSignInfoList() |
| 297 | getMatch(matchId.value) | 258 | getMatch(matchId.value) |
| 298 | getMyInfo() | 259 | getMyInfo() |
| ... | @@ -340,7 +301,7 @@ function addAccompany() { | ... | @@ -340,7 +301,7 @@ function addAccompany() { |
| 340 | 301 | ||
| 341 | function changeMeDone(mateId) { | 302 | function changeMeDone(mateId) { |
| 342 | console.log(mateId) | 303 | console.log(mateId) |
| 343 | getMyInfo() | 304 | // getMyInfo() |
| 344 | getProjectList() | 305 | getProjectList() |
| 345 | } | 306 | } |
| 346 | 307 | ||
| ... | @@ -475,6 +436,9 @@ function getChoosed(list) { | ... | @@ -475,6 +436,9 @@ function getChoosed(list) { |
| 475 | getProjectList() | 436 | getProjectList() |
| 476 | } | 437 | } |
| 477 | function getProjectList() { | 438 | function getProjectList() { |
| 439 | if(choosedList.value.length==0){ | ||
| 440 | return | ||
| 441 | } | ||
| 478 | let arr = [] | 442 | let arr = [] |
| 479 | for(var l of choosedList.value){ | 443 | for(var l of choosedList.value){ |
| 480 | arr.push(l.id) | 444 | arr.push(l.id) |
| ... | @@ -596,10 +560,10 @@ function removeThis(id) { | ... | @@ -596,10 +560,10 @@ function removeThis(id) { |
| 596 | } | 560 | } |
| 597 | 561 | ||
| 598 | function switchPerson(){ | 562 | function switchPerson(){ |
| 563 | console.log( choosedList.value) | ||
| 599 | const params = { | 564 | const params = { |
| 600 | title: language.value == 0 ? '选择运动员' : 'Participating athletes', | 565 | title: language.value == 0 ? '选择运动员' : 'Participating athletes', |
| 601 | matchId: matchId.value, | 566 | matchId: matchId.value, |
| 602 | signType: signType.value, | ||
| 603 | noPhotoCanSign: noPhotoCanSign.value, | 567 | noPhotoCanSign: noPhotoCanSign.value, |
| 604 | coachOrLeaderFlag: coachOrLeaderFlag.value, | 568 | coachOrLeaderFlag: coachOrLeaderFlag.value, |
| 605 | choosedList: choosedList.value, | 569 | choosedList: choosedList.value, | ... | ... |
| ... | @@ -2,6 +2,7 @@ | ... | @@ -2,6 +2,7 @@ |
| 2 | <!-- 人员表格--> | 2 | <!-- 人员表格--> |
| 3 | <el-table :data="tableData" class="mt20"> | 3 | <el-table :data="tableData" class="mt20"> |
| 4 | <el-table-column type="index" :label="language==0?'序号':'Index'" width="80" align="center"/> | 4 | <el-table-column type="index" :label="language==0?'序号':'Index'" width="80" align="center"/> |
| 5 | <el-table-column :label="language==0?'姓名':'RealName'" prop="realName" min-width="140"/> | ||
| 5 | <el-table-column :label="language==0?'姓氏':'Surname'" prop="xing" min-width="100"/> | 6 | <el-table-column :label="language==0?'姓氏':'Surname'" prop="xing" min-width="100"/> |
| 6 | <el-table-column :label="language==0?'名':'Name'" prop="ming" min-width="100"/> | 7 | <el-table-column :label="language==0?'名':'Name'" prop="ming" min-width="100"/> |
| 7 | <el-table-column :label="language==0?'所属国家/地区':'Nationality'" prop="countryName" min-width="120"/> | 8 | <el-table-column :label="language==0?'所属国家/地区':'Nationality'" prop="countryName" min-width="120"/> | ... | ... |
| ... | @@ -190,15 +190,15 @@ | ... | @@ -190,15 +190,15 @@ |
| 190 | <match-schedule-list :match-data="matchData" v-if="menu[2].active==1"/> | 190 | <match-schedule-list :match-data="matchData" v-if="menu[2].active==1"/> |
| 191 | <div v-if="menu[3].active==1"> | 191 | <div v-if="menu[3].active==1"> |
| 192 | <div v-if="matchData.showPersonFlag=='1'"> | 192 | <div v-if="matchData.showPersonFlag=='1'"> |
| 193 | <el-row :gutter="20" v-if="matchData.signType == '0'"> | 193 | <!-- <el-row :gutter="20" v-if="matchData.signType == '0'">--> |
| 194 | <el-col v-for="t in signDoneGroupList" :key="t.id" :span="8"> | 194 | <!-- <el-col v-for="t in signDoneGroupList" :key="t.id" :span="8">--> |
| 195 | <div class="teamItem"> | 195 | <!-- <div class="teamItem">--> |
| 196 | <el-avatar :size="60" :src="fillImgUrl(t.imgUrl||t.avatar)"/> | 196 | <!-- <el-avatar :size="60" :src="fillImgUrl(t.imgUrl||t.avatar)"/>--> |
| 197 | <span class="name">{{ t.name }}</span> | 197 | <!-- <span class="name">{{ t.name }}</span>--> |
| 198 | </div> | 198 | <!-- </div>--> |
| 199 | </el-col> | 199 | <!-- </el-col>--> |
| 200 | </el-row> | 200 | <!-- </el-row>--> |
| 201 | <el-row :gutter="20" class="pd20" v-else> | 201 | <el-row :gutter="20" class="pd20"> |
| 202 | <el-col :span="24"> | 202 | <el-col :span="24"> |
| 203 | <div class="fr mb20"> | 203 | <div class="fr mb20"> |
| 204 | <div class="flex"> | 204 | <div class="flex"> | ... | ... |
| ... | @@ -23,8 +23,9 @@ | ... | @@ -23,8 +23,9 @@ |
| 23 | </el-form-item> | 23 | </el-form-item> |
| 24 | </el-col> | 24 | </el-col> |
| 25 | <el-col :lg="10"> | 25 | <el-col :lg="10"> |
| 26 | <el-form-item :label="language==0?'代表国家/地区':'Representing'" required> | 26 | <el-form-item :label="language==0?'代表国家/地区':'Representing'"> |
| 27 | <el-select filterable v-model="form.countryId" @change="changeCountryId"> | 27 | <el-select filterable v-model="form.countryId" @change="changeCountryId" |
| 28 | :disabled="form.type!='4'"> | ||
| 28 | <!-- <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id"/>--> | 29 | <!-- <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id"/>--> |
| 29 | <el-option v-for="item in countryList" :key="item.id" :label="item.noc||item.enName" :value="item.id"/> | 30 | <el-option v-for="item in countryList" :key="item.id" :label="item.noc||item.enName" :value="item.id"/> |
| 30 | </el-select> | 31 | </el-select> | ... | ... |
| ... | @@ -30,7 +30,7 @@ | ... | @@ -30,7 +30,7 @@ |
| 30 | <el-input v-model="form.name" :placeholder="language==0?'请输入团体名称':''" /> | 30 | <el-input v-model="form.name" :placeholder="language==0?'请输入团体名称':''" /> |
| 31 | </el-form-item> | 31 | </el-form-item> |
| 32 | <el-form-item :label="language==0?'所属国家/地区':'Country'" required> | 32 | <el-form-item :label="language==0?'所属国家/地区':'Country'" required> |
| 33 | <el-select filterable v-model="form.countryId"> | 33 | <el-select filterable v-model="form.countryId" :disabled="form.type!='4'"> |
| 34 | <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id" /> | 34 | <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id" /> |
| 35 | </el-select> | 35 | </el-select> |
| 36 | </el-form-item> | 36 | </el-form-item> | ... | ... |
| ... | @@ -82,8 +82,8 @@ export default defineConfig(({ mode, command }) => { | ... | @@ -82,8 +82,8 @@ export default defineConfig(({ mode, command }) => { |
| 82 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') | 82 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') |
| 83 | }, | 83 | }, |
| 84 | '/dev-api': { | 84 | '/dev-api': { |
| 85 | target: 'http://192.168.1.118:8081/', | 85 | // target: 'http://192.168.1.131:8081/', |
| 86 | // target: 'https://dance.itechtop.cn/stage-api', | 86 | target: 'https://dance.itechtop.cn/stage-api', |
| 87 | // target: 'https://wdsfwuxicenter.com/stage-api', | 87 | // target: 'https://wdsfwuxicenter.com/stage-api', |
| 88 | changeOrigin: true, | 88 | changeOrigin: true, |
| 89 | rewrite: (p) => p.replace(/^\/dev-api/, '') | 89 | rewrite: (p) => p.replace(/^\/dev-api/, '') | ... | ... |
-
Please register or sign in to post a comment