b1e78587 by zhangmeng

Merge branch 'dev' of https://code.itechtop.cn/yangyang/dance-pc into dev

2 parents 5e955dde 4276d1ac
...@@ -114,7 +114,7 @@ function popRemark(type) { ...@@ -114,7 +114,7 @@ function popRemark(type) {
114 || (form.value.isFoodView == 0 && type == '3') 114 || (form.value.isFoodView == 0 && type == '3')
115 || (form.value.isMealView == 0 && type == '4') 115 || (form.value.isMealView == 0 && type == '4')
116 || (form.value.isPhotoView == 0 && type == '5') 116 || (form.value.isPhotoView == 0 && type == '5')
117 // || (type == '0') 117 || (type == '0')
118 ) { 118 ) {
119 building() 119 building()
120 return 120 return
......
...@@ -59,7 +59,8 @@ ...@@ -59,7 +59,8 @@
59 <div class="pl-15 text-danger fontsize14" v-if="cantBao.flag">*{{language==0?`请上传 ${ cantBao.name } 的有效证件`:`Please upload the Valid Passport of ${cantBao.name}`}}</div> 59 <div class="pl-15 text-danger fontsize14" v-if="cantBao.flag">*{{language==0?`请上传 ${ cantBao.name } 的有效证件`:`Please upload the Valid Passport of ${cantBao.name}`}}</div>
60 <div v-loading="loadingProject" style="height: 55vh;overflow: auto;"> 60 <div v-loading="loadingProject" style="height: 55vh;overflow: auto;">
61 <el-checkbox-group v-model="projectIds"> 61 <el-checkbox-group v-model="projectIds">
62 <el-checkbox class="flexBetweenBox" v-for="c in projectList" :label="c.id" :key="c.id" :disabled="cantBao.flag"> 62 <el-checkbox class="flexBetweenBox" v-for="c in projectList" :label="c.id" :key="c.id"
63 :disabled="cantBao.flag">
63 <div class="flexBetween w100"> 64 <div class="flexBetween w100">
64 <div class="l"> 65 <div class="l">
65 {{ c.code }}:{{ c.name }} {{c.danceType}} 66 {{ c.code }}:{{ c.name }} {{c.danceType}}
......
...@@ -92,7 +92,8 @@ ...@@ -92,7 +92,8 @@
92 </div> 92 </div>
93 <div v-loading="loadingProject" id="projectbox" style="height: 50vh;overflow: auto;"> 93 <div v-loading="loadingProject" id="projectbox" style="height: 50vh;overflow: auto;">
94 <el-checkbox-group v-model="projectIds" @change="changeProject"> 94 <el-checkbox-group v-model="projectIds" @change="changeProject">
95 <el-checkbox class="flexBetweenBox" v-for="c in projectList" :value="c.id" :key="c.id"> 95 <el-checkbox class="flexBetweenBox" v-for="c in projectList" :value="c.id" :key="c.id"
96 v-show="!c.disabled" :disabled="c.disabled">
96 <div class="flexBetween w100"> 97 <div class="flexBetween w100">
97 <div class="l"> 98 <div class="l">
98 {{ c.code }}:{{ c.name }}({{c.danceType}}) 99 {{ c.code }}:{{ c.name }}({{c.danceType}})
...@@ -579,13 +580,48 @@ function switchTabletype() { ...@@ -579,13 +580,48 @@ function switchTabletype() {
579 } 580 }
580 581
581 watch(projectIds, (newVal, oldVal) => { 582 watch(projectIds, (newVal, oldVal) => {
583 let currProject = {}
582 if (newVal.length > oldVal.length) { 584 if (newVal.length > oldVal.length) {
583 currProjectId.value = _.last(newVal) 585 currProjectId.value = _.last(newVal)
584 } else { 586 } else {
585 currProjectId.value = '' 587 currProjectId.value = ''
586 } 588 }
589 for(let p of projectList.value){
590 if(p.id==_.last(newVal)){
591 currProject = p
592 }
593 }
594 if(newVal.length>0){
595 console.log(currProject.pproperty,currProject.plevel)
596 for(let pp of projectList.value){
597 if(
598 (currProject.pproperty&&pp.pproperty&&(pp.pproperty!=currProject.pproperty))||
599 (currProject.plevel&&pp.plevel&&(pp.plevel!=currProject.plevel))||
600 (currProject.pproperty&&pp.plevel&&currProject.pproperty=='A'&&pp.plevel!='6')||
601 (currProject.pproperty&&pp.plevel&&currProject.pproperty=='B'&&(pp.plevel!='2'&&pp.plevel!='4'))||
602 (currProject.pproperty&&pp.plevel&&currProject.pproperty=='C'&&(pp.plevel!='2'&&pp.plevel!='4'))||
603 (currProject.plevel&&pp.pproperty&&currProject.plevel=='6'&&pp.pproperty!='A')||
604 (currProject.plevel&&pp.pproperty&&currProject.plevel=='4'&&(pp.pproperty!='B'&&pp.pproperty!='C'))||
605 (currProject.plevel&&pp.pproperty&&currProject.plevel=='2'&&(pp.pproperty!='B'&&pp.pproperty!='C'))
606 ){
607 console.log(pp.pproperty,pp.plevel)
608 pp.disabled = true
609 }else if((currProject.almightyFlag=='1'&&pp.almightyFlag=='1')&&(currProject.danceTypeDetailStr.split(',').length!=pp.danceTypeDetailStr.split(',').length)){
610 console.log(pp.name)
611 pp.disabled = true
612 }else {
613 pp.disabled = false
614 }
615 }
616 } else {
617 resetProjectList()
618 }
587 }) 619 })
588 620 function resetProjectList(){
621 for(var p of projectList.value){
622 p.disabled = false
623 }
624 }
589 function changeProject(e) { 625 function changeProject(e) {
590 var obj = {} 626 var obj = {}
591 obj = _.find(projectList.value, (c) => { 627 obj = _.find(projectList.value, (c) => {
...@@ -599,7 +635,7 @@ function changeProject(e) { ...@@ -599,7 +635,7 @@ function changeProject(e) {
599 } 635 }
600 } 636 }
601 //obj需要wdsf 且 currProjectId非空 637 //obj需要wdsf 且 currProjectId非空
602 if (obj.checkMemberFlag == '1' && currProjectId.value != '' && n > 0) { 638 if (obj&&obj.checkMemberFlag == '1' && currProjectId.value != '' && n > 0) {
603 const params = { 639 const params = {
604 title: language.value == 0 ? '验证WDSF' : 'Verify WDSF', 640 title: language.value == 0 ? '验证WDSF' : 'Verify WDSF',
605 groupId: groupId.value, 641 groupId: groupId.value,
......
...@@ -22,11 +22,14 @@ ...@@ -22,11 +22,14 @@
22 </template> 22 </template>
23 </el-input> 23 </el-input>
24 <a class="text-primary text-sm mt10" href="https://www.worlddancesport.org/Athlete/List" target="_blank"> 24 <a class="text-primary text-sm mt10" href="https://www.worlddancesport.org/Athlete/List" target="_blank">
25 <el-icon><Link /></el-icon> 25 <el-icon>
26 {{language==0?'去WDSF官网查询我的会员号':'Search my WSDF MIN on the WDSF official website'}} 26 <Link/>
27 </el-icon>
28 {{ language == 0 ? '去WDSF官网查询我的会员号' : 'Search my WSDF MIN on the WDSF official website' }}
27 </a> 29 </a>
28 30
29 <Vcode :successText="successVcode" :failText="failVcode" :slider-text="sliderText" :show="showVcode" :z-index="2999" @success="codeSuccess()"></Vcode> 31 <Vcode :successText="successVcode" :failText="failVcode" :slider-text="sliderText" :show="showVcode"
32 :z-index="2999" @success="codeSuccess()"></Vcode>
30 </el-form-item> 33 </el-form-item>
31 <div class="h30"></div> 34 <div class="h30"></div>
32 <div class="leftboderTT">{{ language == 0 ? '个人信息' : 'Personal information' }} 35 <div class="leftboderTT">{{ language == 0 ? '个人信息' : 'Personal information' }}
...@@ -79,7 +82,7 @@ ...@@ -79,7 +82,7 @@
79 </el-form-item> 82 </el-form-item>
80 <el-form-item :label="language==0?'有效证件':'Valid Passport'" required> 83 <el-form-item :label="language==0?'有效证件':'Valid Passport'" required>
81 <image-upload v-model="form.passportUrl" :limit="1" :is-show-tip="false" 84 <image-upload v-model="form.passportUrl" :limit="1" :is-show-tip="false"
82 :button-text="language==0?'上传':'Upload'"/> 85 :button-text="language==0?'上传':'Upload'"/>
83 <div class="tip"> 86 <div class="tip">
84 <span v-if="language==0">请上传有效身份证件扫描件,用于核实身份信息、申请签证邀请函及购买保险等 </span> 87 <span v-if="language==0">请上传有效身份证件扫描件,用于核实身份信息、申请签证邀请函及购买保险等 </span>
85 <span v-else> 88 <span v-else>
...@@ -96,7 +99,7 @@ ...@@ -96,7 +99,7 @@
96 <template #footer> 99 <template #footer>
97 <div class="dialog-footer text-center"> 100 <div class="dialog-footer text-center">
98 <el-button type="primary" class="btn-lineG w200px" round @click="submitForm"> 101 <el-button type="primary" class="btn-lineG w200px" round @click="submitForm">
99 {{language == 0 ? '确定' : 'Save' }} 102 {{ language == 0 ? '确定' : 'Save' }}
100 </el-button> 103 </el-button>
101 </div> 104 </div>
102 </template> 105 </template>
...@@ -155,8 +158,10 @@ const data = reactive({ ...@@ -155,8 +158,10 @@ const data = reactive({
155 successVcode: '验证通过!', 158 successVcode: '验证通过!',
156 sliderText: '拖动滑块完成拼图', 159 sliderText: '拖动滑块完成拼图',
157 }) 160 })
158 const {form, show, showVcode, title, labels, uType, isMe, isCodeTrue, card, cptId, 161 const {
159 failVcode,successVcode,sliderText} = toRefs(data) 162 form, show, showVcode, title, labels, uType, isMe, isCodeTrue, card, cptId,
163 failVcode, successVcode, sliderText
164 } = toRefs(data)
160 165
161 let editgay = false 166 let editgay = false
162 let groupId = '0' 167 let groupId = '0'
...@@ -185,25 +190,28 @@ const open = (params) => { ...@@ -185,25 +190,28 @@ const open = (params) => {
185 editgay = false 190 editgay = false
186 } else {// 编辑舞伴 191 } else {// 编辑舞伴
187 editgay = true 192 editgay = true
188 if(params.form){ 193 if (params.form) {
189 form.value = params.form 194 form.value = params.form
190 }else { 195 } else {
191 getFormById(params.id) 196 getFormById(params.id)
192 } 197 }
193 } 198 }
194 } 199 }
195 } 200 }
196 defineExpose({open}) 201 defineExpose({open})
202
197 function getMyInfo() { 203 function getMyInfo() {
198 match.getMyPersonInfo().then(res => { 204 match.getMyPersonInfo().then(res => {
199 form.value = res.data 205 form.value = res.data
200 }) 206 })
201 } 207 }
208
202 function getFormById(id) { 209 function getFormById(id) {
203 match.getPersonInfoById(id).then(res => { 210 match.getPersonInfoById(id).then(res => {
204 form.value = res.data 211 form.value = res.data
205 }) 212 })
206 } 213 }
214
207 watch(show, (value) => { 215 watch(show, (value) => {
208 if (!value) { 216 if (!value) {
209 card.value = '' 217 card.value = ''
...@@ -219,11 +227,11 @@ watch(show, (value) => { ...@@ -219,11 +227,11 @@ watch(show, (value) => {
219 227
220 function submitForm() { 228 function submitForm() {
221 if (!form.value.passportNumber) { 229 if (!form.value.passportNumber) {
222 ElMessage.warning(language.value == 0 ?'请输入你的证件号':'Please fill in your passport number') 230 ElMessage.warning(language.value == 0 ? '请输入你的证件号' : 'Please fill in your passport number')
223 return 231 return
224 } 232 }
225 if (!form.value.birth) { 233 if (!form.value.birth) {
226 ElMessage.warning(language.value == 0 ?'请输入你的出生日期':'Please fill in your birthday') 234 ElMessage.warning(language.value == 0 ? '请输入你的出生日期' : 'Please fill in your birthday')
227 return 235 return
228 } 236 }
229 // if (!form.value.picUrl) { 237 // if (!form.value.picUrl) {
...@@ -231,11 +239,11 @@ function submitForm() { ...@@ -231,11 +239,11 @@ function submitForm() {
231 // return 239 // return
232 // } 240 // }
233 if (!form.value.sex) { 241 if (!form.value.sex) {
234 ElMessage.warning(language.value == 0 ?'请选择性别':'Please select your gender') 242 ElMessage.warning(language.value == 0 ? '请选择性别' : 'Please select your gender')
235 return 243 return
236 } 244 }
237 if (!form.value.passportUrl||form.value.passportUrl==''||form.value.passportUrl.length==0) { 245 if (!form.value.passportUrl || form.value.passportUrl == '' || form.value.passportUrl.length == 0) {
238 ElMessage.warning(language.value == 0 ?'请上传证件':'Please upload passport file') 246 ElMessage.warning(language.value == 0 ? '请上传证件' : 'Please upload passport file')
239 return 247 return
240 } 248 }
241 if (editgay) { 249 if (editgay) {
...@@ -245,7 +253,7 @@ function submitForm() { ...@@ -245,7 +253,7 @@ function submitForm() {
245 form.value.passportUrl = form.value.passportUrl[0].url 253 form.value.passportUrl = form.value.passportUrl[0].url
246 } 254 }
247 match.editPersonInfo(form.value).then(res => { 255 match.editPersonInfo(form.value).then(res => {
248 ElMessage.success(language.value == 0 ? '保存成功' :'Successfully') 256 ElMessage.success(language.value == 0 ? '保存成功' : 'Successfully')
249 show.value = false 257 show.value = false
250 emit('submitForm') 258 emit('submitForm')
251 }) 259 })
...@@ -270,16 +278,17 @@ function submitForm() { ...@@ -270,16 +278,17 @@ function submitForm() {
270 if (Array.isArray(form.value.passportUrl)) { 278 if (Array.isArray(form.value.passportUrl)) {
271 form.value.passportUrl = form.value.passportUrl[0].url 279 form.value.passportUrl = form.value.passportUrl[0].url
272 } 280 }
273 if(groupId=='0'||!groupId){ 281 if (groupId == '0' || !groupId) {
274 addPersonal() 282 addPersonal()
275 } else { 283 } else {
276 if(groupId){ 284 if (groupId) {
277 addGroupMember() 285 addGroupMember()
278 } 286 }
279 } 287 }
280 } 288 }
281 } 289 }
282 } 290 }
291
283 function addPersonal() { 292 function addPersonal() {
284 match.savePersonForMyPerson2(form.value).then(res => { 293 match.savePersonForMyPerson2(form.value).then(res => {
285 ElMessage.success('保存成功') 294 ElMessage.success('保存成功')
...@@ -287,15 +296,17 @@ function addPersonal() { ...@@ -287,15 +296,17 @@ function addPersonal() {
287 emit('submitForm', res.data) 296 emit('submitForm', res.data)
288 }) 297 })
289 } 298 }
299
290 function addGroupMember() { 300 function addGroupMember() {
291 form.value.groupId = groupId 301 form.value.groupId = groupId
292 match.savePersonForMyGroup(form.value).then(res => { 302 match.savePersonForMyGroup(form.value).then(res => {
293 ElMessage.success(language.value == 0 ?'保存成功':'Save successful') 303 ElMessage.success(language.value == 0 ? '保存成功' : 'Save successful')
294 show.value = false 304 show.value = false
295 emit('submitForm') 305 emit('submitForm')
296 }) 306 })
297 307
298 } 308 }
309
299 function cancel() { 310 function cancel() {
300 show.value = false 311 show.value = false
301 showVcode.value = false 312 showVcode.value = false
...@@ -324,9 +335,9 @@ function codeSuccess(msg) { ...@@ -324,9 +335,9 @@ function codeSuccess(msg) {
324 console.log('验证通过' + msg); 335 console.log('验证通过' + msg);
325 showVcode.value = false 336 showVcode.value = false
326 isCodeTrue.value = true 337 isCodeTrue.value = true
327 checkWdsfAthletes({card: card.value,groupId:groupId}).then(res => { 338 checkWdsfAthletes({card: card.value, groupId: groupId}).then(res => {
328 if (res.data.wdsfFlag==-1) { 339 if (res.data.wdsfFlag == -1) {
329 ElMessage.warning(language.value == 0 ?'您添加的运动员代表国家/地区,与团体账号注册的国家/地区不符,无法添加':'The athlete \'s representing, does not match the group account‘s country/region and cannot be added.') 340 ElMessage.warning(language.value == 0 ? '您添加的运动员代表国家/地区,与团体账号注册的国家/地区不符,无法添加' : 'The athlete \'s representing, does not match the group account‘s country/region and cannot be added.')
330 isCodeTrue.value = false 341 isCodeTrue.value = false
331 return 342 return
332 } 343 }
......
...@@ -135,7 +135,7 @@ function popRemark(type) { ...@@ -135,7 +135,7 @@ function popRemark(type) {
135 || ( type == '3') 135 || ( type == '3')
136 || (form.value.isMealView == 0 && type == '4') 136 || (form.value.isMealView == 0 && type == '4')
137 || (type == '5') 137 || (type == '5')
138 // || (type == '0') 138 || (type == '0')
139 ) 139 )
140 { 140 {
141 building() 141 building()
......
...@@ -82,17 +82,17 @@ export default defineConfig(({ mode, command }) => { ...@@ -82,17 +82,17 @@ 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.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/, '')
91 }, 91 },
92 '/ticket': { 92 '/ticket': {
93 target: 'http://192.168.1.118:8098/', 93 // target: 'http://192.168.1.118:8098/',
94 // target: 'http://192.168.1.131:8081/', 94 // target: 'http://192.168.1.131:8081/',
95 // target: 'https://jijin.wtwuxicenter.com/stage-api', 95 target: 'https://jijin.wtwuxicenter.com/stage-api',
96 // target: 'https://wdsfwuxicenter.com/stage-api/', 96 // target: 'https://wdsfwuxicenter.com/stage-api/',
97 changeOrigin: true, 97 changeOrigin: true,
98 rewrite: (p) => p.replace(/^\/ticket/, '') 98 rewrite: (p) => p.replace(/^\/ticket/, '')
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!