982b56b7 by 杨炀

no message

1 parent 99549010
...@@ -21,9 +21,12 @@ ...@@ -21,9 +21,12 @@
21 <div class="chooseForm"> 21 <div class="chooseForm">
22 <el-checkbox-group v-model="form.coachs" @change="changecoachs"> 22 <el-checkbox-group v-model="form.coachs" @change="changecoachs">
23 <div class="addBttn" @click="addCoach(0)">+</div> 23 <div class="addBttn" @click="addCoach(0)">+</div>
24 <el-checkbox v-for="c in coachList" :label="c.id"> 24 <el-checkbox v-for="c in personAllList?.coaches" :label="c.id">
25 <el-avatar fit="cover" :size="60" :src="fillImgUrl(c.picUrl)"/> 25 <el-avatar fit="cover" v-if="c.picUrl" :size="60" :src="fillImgUrl(c.picUrl)"/>
26 <p class="name">{{ c.realName }} 26 <el-avatar fit="cover" v-else-if="c.sex == 0" :size="60" src="/img/head1.png"/>
27 <el-avatar fit="cover" v-else-if="c.sex == 1" :size="60" src="/img/head0.png"/>
28
29 <p class="name">{{ c.xing }}{{c.ming}}
27 <el-icon @click.stop="editPerson(c.id)"> 30 <el-icon @click.stop="editPerson(c.id)">
28 <Edit/> 31 <Edit/>
29 </el-icon> 32 </el-icon>
...@@ -46,9 +49,11 @@ ...@@ -46,9 +49,11 @@
46 <div class="chooseForm"> 49 <div class="chooseForm">
47 <el-checkbox-group v-model="form.leader"> 50 <el-checkbox-group v-model="form.leader">
48 <div class="addBttn" @click="addCoach(0)">+</div> 51 <div class="addBttn" @click="addCoach(0)">+</div>
49 <el-checkbox v-for="c in leaderList" :label="c.id"> 52 <el-checkbox v-for="c in personAllList?.leaders" :label="c.id">
50 <el-avatar fit="cover" :size="60" :src="fillImgUrl(c.picUrl)"/> 53 <el-avatar fit="cover" v-if="c.picUrl" :size="60" :src="fillImgUrl(c.picUrl)"/>
51 <p class="name">{{ c.realName }} 54 <el-avatar fit="cover" v-else-if="c.sex == 0" :size="60" src="/img/head1.png"/>
55 <el-avatar fit="cover" v-else-if="c.sex == 1" :size="60" src="/img/head0.png"/>
56 <p class="name">{{ c.xing }}{{c.ming}}
52 <el-icon @click.stop="editPerson(c.id)"> 57 <el-icon @click.stop="editPerson(c.id)">
53 <Edit/> 58 <Edit/>
54 </el-icon> 59 </el-icon>
...@@ -69,9 +74,11 @@ ...@@ -69,9 +74,11 @@
69 <div class="chooseForm"> 74 <div class="chooseForm">
70 <el-checkbox-group v-model="form.doctor"> 75 <el-checkbox-group v-model="form.doctor">
71 <div class="addBttn" @click="addCoach(0)">+</div> 76 <div class="addBttn" @click="addCoach(0)">+</div>
72 <el-checkbox v-for="c in doctorList" :label="c.id"> 77 <el-checkbox v-for="c in personAllList?.teamDoctors" :label="c.id">
73 <el-avatar fit="cover" :size="60" :src="fillImgUrl(c.picUrl)"/> 78 <el-avatar fit="cover" v-if="c.picUrl" :size="60" :src="fillImgUrl(c.picUrl)"/>
74 <p class="name">{{ c.realName }} 79 <el-avatar fit="cover" v-else-if="c.sex == 0" :size="60" src="/img/head1.png"/>
80 <el-avatar fit="cover" v-else-if="c.sex == 1" :size="60" src="/img/head0.png"/>
81 <p class="name">{{ c.xing }}{{c.ming}}
75 <el-icon @click.stop="editPerson(c.id)"> 82 <el-icon @click.stop="editPerson(c.id)">
76 <Edit/> 83 <Edit/>
77 </el-icon> 84 </el-icon>
...@@ -92,9 +99,11 @@ ...@@ -92,9 +99,11 @@
92 <div class="chooseForm"> 99 <div class="chooseForm">
93 <el-checkbox-group v-model="form.translator"> 100 <el-checkbox-group v-model="form.translator">
94 <div class="addBttn" @click="addCoach(0)">+</div> 101 <div class="addBttn" @click="addCoach(0)">+</div>
95 <el-checkbox v-for="c in translatorList" :label="c.id"> 102 <el-checkbox v-for="c in personAllList?.translators" :label="c.id">
96 <el-avatar fit="cover" :size="60" :src="fillImgUrl(c.picUrl)"/> 103 <el-avatar fit="cover" v-if="c.picUrl" :size="60" :src="fillImgUrl(c.picUrl)"/>
97 <p class="name">{{ c.realName }} 104 <el-avatar fit="cover" v-else-if="c.sex == 0" :size="60" src="/img/head1.png"/>
105 <el-avatar fit="cover" v-else-if="c.sex == 1" :size="60" src="/img/head0.png"/>
106 <p class="name">{{ c.xing }}{{c.ming}}
98 <el-icon @click.stop="editPerson(c.id)"> 107 <el-icon @click.stop="editPerson(c.id)">
99 <Edit/> 108 <Edit/>
100 </el-icon> 109 </el-icon>
...@@ -115,9 +124,11 @@ ...@@ -115,9 +124,11 @@
115 <div class="chooseForm"> 124 <div class="chooseForm">
116 <el-checkbox-group v-model="form.official"> 125 <el-checkbox-group v-model="form.official">
117 <div class="addBttn" @click="addCoach(0)">+</div> 126 <div class="addBttn" @click="addCoach(0)">+</div>
118 <el-checkbox v-for="c in officialList" :label="c.id"> 127 <el-checkbox v-for="c in personAllList?.officials" :label="c.id">
119 <el-avatar fit="cover" :size="60" :src="fillImgUrl(c.picUrl)"/> 128 <el-avatar fit="cover" v-if="c.picUrl" :size="60" :src="fillImgUrl(c.picUrl)"/>
120 <p class="name">{{ c.realName }} 129 <el-avatar fit="cover" v-else-if="c.sex == 0" :size="60" src="/img/head1.png"/>
130 <el-avatar fit="cover" v-else-if="c.sex == 1" :size="60" src="/img/head0.png"/>
131 <p class="name">{{ c.xing }}{{c.ming}}
121 <el-icon @click.stop="editPerson(c.id)"> 132 <el-icon @click.stop="editPerson(c.id)">
122 <Edit/> 133 <Edit/>
123 </el-icon> 134 </el-icon>
...@@ -138,9 +149,11 @@ ...@@ -138,9 +149,11 @@
138 <div class="chooseForm"> 149 <div class="chooseForm">
139 <el-checkbox-group v-model="form.other"> 150 <el-checkbox-group v-model="form.other">
140 <div class="addBttn" @click="addCoach(0)">+</div> 151 <div class="addBttn" @click="addCoach(0)">+</div>
141 <el-checkbox v-for="c in otherList" :label="c.id"> 152 <el-checkbox v-for="c in personAllList?.others" :label="c.id">
142 <el-avatar fit="cover" :size="60" :src="fillImgUrl(c.picUrl)"/> 153 <el-avatar fit="cover" v-if="c.picUrl" :size="60" :src="fillImgUrl(c.picUrl)"/>
143 <p class="name">{{ c.realName }} 154 <el-avatar fit="cover" v-else-if="c.sex == 0" :size="60" src="/img/head1.png"/>
155 <el-avatar fit="cover" v-else-if="c.sex == 1" :size="60" src="/img/head0.png"/>
156 <p class="name">{{ c.xing }}{{c.ming}}
144 <el-icon @click.stop="editPerson(c.id)"> 157 <el-icon @click.stop="editPerson(c.id)">
145 <Edit/> 158 <Edit/>
146 </el-icon> 159 </el-icon>
...@@ -189,25 +202,14 @@ const data = reactive({ ...@@ -189,25 +202,14 @@ const data = reactive({
189 coachs: [], 202 coachs: [],
190 leader: [] 203 leader: []
191 }, 204 },
192 coachList: [], 205 personAllList: [],
193 leaderList: [],
194 otherList: [],
195 doctorList: [],
196 translatorList: [],
197 officialList: [],
198 hasChooseObj: {}, 206 hasChooseObj: {},
199 groupId: '0', 207 groupId: '0',
200 signType: '', 208 signType: '',
201 activeStep: 1 209 activeStep: 1
202 }) 210 })
203 const {loading, 211 const {loading,
204 form, 212 form,personAllList,
205 coachList,
206 leaderList,
207 otherList,
208 doctorList,
209 translatorList,
210 officialList,
211 rules, 213 rules,
212 signType, 214 signType,
213 groupId, 215 groupId,
...@@ -246,12 +248,7 @@ function tuandui() { ...@@ -246,12 +248,7 @@ function tuandui() {
246 match.getMyGroupForCpt(groupId.value, matchId), 248 match.getMyGroupForCpt(groupId.value, matchId),
247 match.getChooseDoneGroupCoachs(matchId, groupId.value) 249 match.getChooseDoneGroupCoachs(matchId, groupId.value)
248 ]).then((res) => { 250 ]).then((res) => {
249 coachList.value = res[0].data.coaches 251 personAllList.value = res[0].data
250 leaderList.value = res[0].data.leaders
251 doctorList.value = res[0].data.teamDoctors
252 translatorList.value = res[0].data.translators
253 officialList.value = res[0].data.officials
254 otherList.value = res[0].data.others
255 loading.value = false 252 loading.value = false
256 if (res[1].data.id != null) { 253 if (res[1].data.id != null) {
257 hasChooseObj.value = res[1].data 254 hasChooseObj.value = res[1].data
...@@ -280,12 +277,7 @@ function geren() { ...@@ -280,12 +277,7 @@ function geren() {
280 match.getMyPersonInfoWithcptId(matchId), 277 match.getMyPersonInfoWithcptId(matchId),
281 match.getChooseDoneSingleCoachs(matchId) 278 match.getChooseDoneSingleCoachs(matchId)
282 ]).then((res) => { 279 ]).then((res) => {
283 coachList.value = res[0].data.coaches 280 personAllList.value = res[0].data
284 leaderList.value = res[0].data.leaders
285 otherList.value = res[0].data.others
286 doctorList.value = res[0].data.teamDoctors
287 translatorList.value = res[0].data.translators
288 officialList.value = res[0].data.officials
289 loading.value = false 281 loading.value = false
290 if (res[1].data.id != null) { 282 if (res[1].data.id != null) {
291 hasChooseObj.value = res[1].data 283 hasChooseObj.value = res[1].data
......
...@@ -7,22 +7,22 @@ ...@@ -7,22 +7,22 @@
7 7
8 <el-card :body-style="{'padding-top': '0'}"> 8 <el-card :body-style="{'padding-top': '0'}">
9 <el-row class="mt20" :gutter="20"> 9 <el-row class="mt20" :gutter="20">
10 <el-col :lg="8"> 10 <el-col :lg="12">
11 <div class="panel border"> 11 <div class="panel border">
12 <div class="panel-header "> 12 <div class="panel-header ">
13 <h3 class="panel-title" v-if="language==0">选择参赛运动员清单</h3> 13 <h3 class="panel-title" v-if="language==0">选择参赛运动员清单</h3>
14 <h3 class="panel-title" v-else>Select list of participating athletes</h3> 14 <h3 class="panel-title" v-else>Select list of participating athletes</h3>
15 <a class="fr" @click="emptyChoosed">{{ language == 0 ? '清空' : 'Empty' }}</a> 15 <!-- <a class="fr" @click="emptyChoosed">{{ language == 0 ? '清空' : 'Empty' }}</a>-->
16 </div> 16 </div>
17 <div class="panel-body" style="padding: 10px"> 17 <div class="panel-body" style="padding: 10px">
18 <div style="margin: 0 4px 10px"> 18 <div style="margin: 0 4px 10px">
19 <el-input size="small" v-model="athletesQuery.name" :prefix-icon="Search" 19 <el-select multiple v-model="choosedchoosed" collapse-tags-tooltip filterable
20 @change="queryAthletes" 20 @change="getProjectList">
21 clearable/> 21 <el-option v-for="c in athletesList" :key="c.id" :label="c.realName" :value="c.id" ></el-option>
22 </el-select>
22 </div> 23 </div>
23 <div class="noPicChooseForm" id="chooseArr"> 24 <div class="noPicChooseForm" id="chooseArr">
24 <el-checkbox-group v-model="choosedchoosed" @change="changechoosed"> 25 <el-checkbox-group v-model="choosedchoosed" @change="changechoosed">
25 <el-button id="addRef" plain @click="chooseSportman">+{{ language == 0 ? '选择' : 'add' }}</el-button>
26 <el-checkbox v-for="c in choosedListBak" :value="c.id" border> 26 <el-checkbox v-for="c in choosedListBak" :value="c.id" border>
27 <p class="name">{{ c.realName }} 27 <p class="name">{{ c.realName }}
28 <!-- ({{ c.sexStr }})--> 28 <!-- ({{ c.sexStr }})-->
...@@ -35,39 +35,7 @@ ...@@ -35,39 +35,7 @@
35 </div> 35 </div>
36 </div> 36 </div>
37 </el-col> 37 </el-col>
38 <el-col :lg="8"> 38 <el-col :lg="12">
39 <div class="panel border">
40 <div class="panel-header ">
41 <h3 class="panel-title" v-if="language==0">选择一个参赛组合</h3>
42 <h3 class="panel-title" v-else>Select a Participating team</h3>
43 <a class="fr" @click="emptyChangechoosed">{{ language == 0 ? '清空' : 'Empty' }}</a>
44 </div>
45 <div class="panel-body" style="padding: 10px">
46 <div class="mb20">
47 <el-input size="small" v-model="zuQuery.name" :prefix-icon="Search"
48 @change="queryTeam" clearable/>
49 </div>
50 <div class="chooseForm">
51 <el-checkbox-group v-model="choosedchoosed" @change="changechoosed">
52 <!-- v-show="choosedchoosed.indexOf(c.id) !== -1"-->
53 <el-checkbox v-for="c in choosed2Listbak" :value="c.id" checked>
54 <el-avatar fit="cover" v-if="c.picUrl" :size="60" :src="fillImgUrl(c.picUrl)"/>
55 <el-avatar fit="cover" v-else-if="c.sex == 0" :size="60" src="/img/head1.png"/>
56 <el-avatar fit="cover" v-else-if="c.sex == 1" :size="60" src="/img/head0.png"/>
57 <p class="name">{{ c.realName }}
58 <img v-if="c.sex=='0'" src="@/assets/img/female.png"/>
59 <img v-if="c.sex=='1'" src="@/assets/img/male.png"/>
60 <!-- <el-icon @click.stop="editPerson(c.id)">-->
61 <!-- <Edit/>-->
62 <!-- </el-icon>-->
63 </p>
64 </el-checkbox>
65 </el-checkbox-group>
66 </div>
67 </div>
68 </div>
69 </el-col>
70 <el-col :lg="8">
71 <div class="panel border"> 39 <div class="panel border">
72 <div class="panel-header "> 40 <div class="panel-header ">
73 <h3 class="panel-title" v-if="language==0">可参与报名的项目</h3> 41 <h3 class="panel-title" v-if="language==0">可参与报名的项目</h3>
...@@ -78,8 +46,8 @@ ...@@ -78,8 +46,8 @@
78 clearable/> 46 clearable/>
79 </div> 47 </div>
80 </div> 48 </div>
81 <div v-loading="loadingProject" id="projectbox" style="height: 60vh"> 49 <div v-loading="loadingProject" id="projectbox" style="height: 60vh;overflow: auto;">
82 <el-checkbox-group v-model="projectIds"> 50 <el-checkbox-group v-model="projectIds" @change="changeProject">
83 <el-checkbox class="flexBetweenBox" v-for="c in projectList" :value="c.id" :key="c.id"> 51 <el-checkbox class="flexBetweenBox" v-for="c in projectList" :value="c.id" :key="c.id">
84 <div class="flexBetween w100"> 52 <div class="flexBetween w100">
85 <div class="l"> 53 <div class="l">
...@@ -158,7 +126,7 @@ ...@@ -158,7 +126,7 @@
158 126
159 </el-dialog> 127 </el-dialog>
160 <dialogExtraForm ref="popExtraForm" @submitForm="getSignInfoList"/> 128 <dialogExtraForm ref="popExtraForm" @submitForm="getSignInfoList"/>
161 129 <dialogWdsf ref="popWdsf" @submitForm="getSignInfoList"/>
162 <el-tour v-model="openTour" :current="tourCurrent"> 130 <el-tour v-model="openTour" :current="tourCurrent">
163 <el-tour-step target="#addRef" title="第一步" description="点击选择运动员" :next-button-props="nextButtonProps"/> 131 <el-tour-step target="#addRef" title="第一步" description="点击选择运动员" :next-button-props="nextButtonProps"/>
164 <el-tour-step v-if="choosedList.length>0" target="#chooseArr" title="第二步" description="勾选报项运动员"/> 132 <el-tour-step v-if="choosedList.length>0" target="#chooseArr" title="第二步" description="勾选报项运动员"/>
...@@ -172,10 +140,11 @@ ...@@ -172,10 +140,11 @@
172 import {ref, reactive, toRefs, watch} from 'vue' 140 import {ref, reactive, toRefs, watch} from 'vue'
173 import * as match from '@/apiPc/match' 141 import * as match from '@/apiPc/match'
174 import {getCurrentInstance, onMounted} from '@vue/runtime-core' 142 import {getCurrentInstance, onMounted} from '@vue/runtime-core'
175 import dialogAddCoach from './components/addCoach' 143 import DialogAddCoach from './components/addCoach'
176 import dialogAllSportsmanList from './components/allSportsmanList' 144 import DialogAllSportsmanList from './components/allSportsmanList'
177 import dialogImport from './components/import' 145 import DialogImport from './components/import'
178 import dialogExtraForm from './components/extraForm' 146 import DialogExtraForm from './components/extraForm'
147 import DialogWdsf from './components/wdsfForm'
179 import {Search, Switch} from "@element-plus/icons-vue"; 148 import {Search, Switch} from "@element-plus/icons-vue";
180 const {proxy} = getCurrentInstance() 149 const {proxy} = getCurrentInstance()
181 const router = useRouter() 150 const router = useRouter()
...@@ -197,6 +166,7 @@ const data = reactive({ ...@@ -197,6 +166,7 @@ const data = reactive({
197 signInfoList: [], 166 signInfoList: [],
198 zuTableList: [], 167 zuTableList: [],
199 choosedList: [], 168 choosedList: [],
169 athletesList: [],
200 choosedListBak: [], 170 choosedListBak: [],
201 athletesQuery: { 171 athletesQuery: {
202 name: '' 172 name: ''
...@@ -225,7 +195,7 @@ const data = reactive({ ...@@ -225,7 +195,7 @@ const data = reactive({
225 openTour:false 195 openTour:false
226 }) 196 })
227 const { 197 const {
228 activeTeam, names, tableData, signInfoList, zuTableList, choosedList,choosedListBak, 198 activeTeam, names, tableData, signInfoList, zuTableList, choosedList,choosedListBak,athletesList,
229 extraform, groupId, signType, coachOrLeaderFlag, showResult, noPhotoCanSign, projectIds, choosedchoosed, activeStep, projectList, choosed2List,choosed2Listbak, loadingProject, 199 extraform, groupId, signType, coachOrLeaderFlag, showResult, noPhotoCanSign, projectIds, choosedchoosed, activeStep, projectList, choosed2List,choosed2Listbak, loadingProject,
230 projectQuery, tableType, athletesQuery, zuQuery,openTour,tourCurrent 200 projectQuery, tableType, athletesQuery, zuQuery,openTour,tourCurrent
231 } = toRefs(data) 201 } = toRefs(data)
...@@ -237,11 +207,18 @@ onMounted(() => { ...@@ -237,11 +207,18 @@ onMounted(() => {
237 getSignInfoList() 207 getSignInfoList()
238 getMatch(matchId.value) 208 getMatch(matchId.value)
239 getMySignInfo() 209 getMySignInfo()
210 getAthletesList()
240 // openTour.value = true 211 // openTour.value = true
241 }) 212 })
242 213
243 let chargeFlag 214 let chargeFlag
244 215
216 function getAthletesList() {
217 // athletesList.value
218 match.getGroupPersonList({}, groupId.value).then(res => {
219 athletesList.value = res.rows
220 })
221 }
245 function getMatch(id) { 222 function getMatch(id) {
246 match.getMatchById({ 223 match.getMatchById({
247 id: id 224 id: id
...@@ -301,17 +278,6 @@ function submitForm() { ...@@ -301,17 +278,6 @@ function submitForm() {
301 } 278 }
302 } 279 }
303 } 280 }
304 afterRecover()
305 router.push({
306 name: 'signPreview',
307 query: {
308 matchId: matchId.value,
309 groupId: groupId.value
310 }
311 })
312 }
313
314 function afterRecover() {
315 if (signInfoList.value.length == 0) { 281 if (signInfoList.value.length == 0) {
316 if (language.value == 0) { 282 if (language.value == 0) {
317 ElMessage.error('请至少选择一个项目') 283 ElMessage.error('请至少选择一个项目')
...@@ -320,6 +286,13 @@ function afterRecover() { ...@@ -320,6 +286,13 @@ function afterRecover() {
320 } 286 }
321 return 287 return
322 } 288 }
289 router.push({
290 name: 'signPreview',
291 query: {
292 matchId: matchId.value,
293 groupId: groupId.value
294 }
295 })
323 } 296 }
324 297
325 function goPrev() { 298 function goPrev() {
...@@ -383,15 +356,6 @@ function getProjectList() { ...@@ -383,15 +356,6 @@ function getProjectList() {
383 }) 356 })
384 } 357 }
385 358
386 function queryAthletes() {
387 choosedListBak.value = []
388 for (var t of choosedList.value) {
389 if (t.realName.indexOf(athletesQuery.value.name) > -1) {
390 // 筛选
391 choosedListBak.value.push(t)
392 }
393 }
394 }
395 359
396 function queryTeam() { 360 function queryTeam() {
397 choosed2Listbak.value = [] 361 choosed2Listbak.value = []
...@@ -444,19 +408,6 @@ function addCoach() { ...@@ -444,19 +408,6 @@ function addCoach() {
444 proxy.$refs['dialogAddCoachRef'].open(params) 408 proxy.$refs['dialogAddCoachRef'].open(params)
445 } 409 }
446 410
447 function emptyChoosed() {
448 choosedList.value = []
449 choosedListBak.value = []
450 }
451
452 function emptyChangechoosed() {
453 choosedchoosed.value = []
454 choosed2List.value = []
455 choosed2Listbak.value = []
456 projectList.value = []
457 projectIds.value = []
458 }
459
460 function signUp() { 411 function signUp() {
461 if (projectIds.value.length == 0) { 412 if (projectIds.value.length == 0) {
462 return 413 return
...@@ -562,6 +513,22 @@ function switchTabletype() { ...@@ -562,6 +513,22 @@ function switchTabletype() {
562 tableType.value = 0 513 tableType.value = 0
563 } 514 }
564 } 515 }
516
517 function changeProject(e) {
518 console.log(projectIds.value,e)
519 var obj
520 obj = _.find(projectList.value, (c) => {
521 return e.indexOf(c.id)>-1
522 })
523 // if(obj.majorFlag==1){
524 //需要填wdsf
525 // const params = {
526 // title: '验证WDSF',
527 // list:choosed2Listbak.value
528 // }
529 // proxy.$refs['popWdsf'].open(_.cloneDeep(params))
530 // }
531 }
565 watch(choosedchoosed, (newVal, oldVal) => { 532 watch(choosedchoosed, (newVal, oldVal) => {
566 // console.log(choosedchoosed.value) 533 // console.log(choosedchoosed.value)
567 if(newVal.length>oldVal.length){ 534 if(newVal.length>oldVal.length){
...@@ -604,7 +571,7 @@ watch(choosedchoosed, (newVal, oldVal) => { ...@@ -604,7 +571,7 @@ watch(choosedchoosed, (newVal, oldVal) => {
604 571
605 .flexBetweenBox { 572 .flexBetweenBox {
606 width: 100%; 573 width: 100%;
607 height: auto; 574 height: auto;margin: 0;
608 border-bottom: 1px solid #eee; 575 border-bottom: 1px solid #eee;
609 padding: 0 10px; 576 padding: 0 10px;
610 } 577 }
......
...@@ -7,7 +7,12 @@ ...@@ -7,7 +7,12 @@
7 <el-form ref="dialogRef" :model="form" :rules="language==0?rules:rules_cn" label-width="120px" inline> 7 <el-form ref="dialogRef" :model="form" :rules="language==0?rules:rules_cn" label-width="120px" inline>
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 <el-form-item prop="picUrl" :label="language==0?'个人照片':'photo'">
11 <ImageUpload2
12 v-model="form.picUrl" :crop-height="280" :crop-width="200" class="threeFour" :limit="1"
13 :is-show-tip="false"
14 />
15 </el-form-item>
11 <el-form-item :label="language==0?'姓氏':'surname'" prop="xing" required> 16 <el-form-item :label="language==0?'姓氏':'surname'" prop="xing" required>
12 <el-input v-model="form.xing"/> 17 <el-input v-model="form.xing"/>
13 </el-form-item> 18 </el-form-item>
...@@ -27,13 +32,15 @@ ...@@ -27,13 +32,15 @@
27 <el-form-item :label="language==0?'证件号码':'ID NO'" prop="idcCode" required> 32 <el-form-item :label="language==0?'证件号码':'ID NO'" prop="idcCode" required>
28 <el-input v-model="form.idcCode" @blur="checkCode"/> 33 <el-input v-model="form.idcCode" @blur="checkCode"/>
29 </el-form-item> 34 </el-form-item>
35
36 </el-col>
37 <el-col :lg="12">
30 <el-form-item :label="language==0?'性别':'sex'" prop="sex"> 38 <el-form-item :label="language==0?'性别':'sex'" prop="sex">
31 <el-radio-group v-model="form.sex"> 39 <el-radio-group v-model="form.sex">
32 <el-radio value="0">{{ language==0?'女':'female' }}</el-radio> 40 <el-radio value="0">{{ language==0?'女':'female' }}</el-radio>
33 <el-radio value="1">{{ language==0?'男':'male' }}</el-radio> 41 <el-radio value="1">{{ language==0?'男':'male' }}</el-radio>
34 </el-radio-group> 42 </el-radio-group>
35 </el-form-item> 43 </el-form-item>
36
37 <el-form-item :label="language==0?'出生日期':'birth'" prop="birth" required> 44 <el-form-item :label="language==0?'出生日期':'birth'" prop="birth" required>
38 <el-date-picker 45 <el-date-picker
39 v-model="form.birth" 46 v-model="form.birth"
...@@ -46,38 +53,31 @@ ...@@ -46,38 +53,31 @@
46 <el-option v-for="l in labels" :key="l.value" :value="l.value" :label="language==0?l.label:l.enlabel"/> 53 <el-option v-for="l in labels" :key="l.value" :value="l.value" :label="language==0?l.label:l.enlabel"/>
47 </el-select> 54 </el-select>
48 </el-form-item> 55 </el-form-item>
49 </el-col>
50 <el-col :lg="12">
51 <el-form-item :label="language==0?'手机号码':'Phone'" prop="phone" required> 56 <el-form-item :label="language==0?'手机号码':'Phone'" prop="phone" required>
52 <el-input v-model="form.phone" type="number"/> 57 <el-input v-model="form.phone" type="number"/>
53 </el-form-item> 58 </el-form-item>
54 59
55 60
56 <el-form-item :label="language==0?'所属国家':'Nationality'" prop="countryId" required> 61 <!-- <el-form-item :label="language==0?'所属国家':'Nationality'" prop="countryId" required>-->
57 <el-select :disabled="language==0" filterable v-model="form.countryId" style="width: 100%;" @change="changeCountryId"> 62 <!-- <el-select :disabled="language==0" filterable v-model="form.countryId" style="width: 100%;" @change="changeCountryId">-->
58 <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id"/> 63 <!-- <el-option v-for="item in countryList" :key="item.id" :label="language==0?item.name:item.enName" :value="item.id"/>-->
59 </el-select> 64 <!-- </el-select>-->
60 </el-form-item> 65 <!-- </el-form-item>-->
61 66
62 <el-form-item :label="language==0?'详细地址':'Address'" prop="address" required> 67 <!-- <el-form-item :label="language==0?'详细地址':'Address'" prop="address" required>-->
63 <el-cascader v-if="form.countryId == 240" 68 <!-- <el-cascader v-if="form.countryId == 240"-->
64 v-model="form.regionId" 69 <!-- v-model="form.regionId"-->
65 style="width: 100%;margin-bottom: 15px" 70 <!-- style="width: 100%;margin-bottom: 15px"-->
66 :options="regionsList" 71 <!-- :options="regionsList"-->
67 :props="{ label:'text' }" 72 <!-- :props="{ label:'text' }"-->
68 /> 73 <!-- />-->
69 <el-input v-model="form.address" type="textarea" :rows="4"/> 74 <!-- <el-input v-model="form.address" type="textarea" :rows="4"/>-->
70 75
71 </el-form-item> 76 <!-- </el-form-item>-->
72 <el-form-item :label="language==0?'WDSF会员号':'WDSF code'" prop="wdsfMin"> 77 <el-form-item :label="language==0?'WDSF会员号':'WDSF code'" prop="wdsfMin">
73 <el-input v-model="form.wdsfMin" type="number"/> 78 <el-input v-model="form.wdsfMin" type="number"/>
74 </el-form-item> 79 </el-form-item>
75 <el-form-item prop="picUrl" :label="language==0?'个人照片':'photo'"> 80
76 <ImageUpload2
77 v-model="form.picUrl" :crop-height="280" :crop-width="200" class="threeFour" :limit="1"
78 :is-show-tip="false"
79 />
80 </el-form-item>
81 81
82 <!-- <el-form-item :label="language==0?'邮箱':'Email'" prop="email" required>--> 82 <!-- <el-form-item :label="language==0?'邮箱':'Email'" prop="email" required>-->
83 <!-- <el-input v-model="form.email"/>--> 83 <!-- <el-input v-model="form.email"/>-->
......
...@@ -8,7 +8,13 @@ ...@@ -8,7 +8,13 @@
8 </el-col> 8 </el-col>
9 <el-col :span="20"> 9 <el-col :span="20">
10 <div class="item"><label>{{ language==0?'团体名称':'Team Name' }}</label>{{ groupInfo.name }}</div> 10 <div class="item"><label>{{ language==0?'团体名称':'Team Name' }}</label>{{ groupInfo.name }}</div>
11 <div class="item"><label>{{ language==0?'团体类型':'Group type' }}</label>{{ groupInfo.typeStr }}</div> 11 <div class="item"><label>{{ language==0?'团体类型':'Group type' }}</label>
12 <text v-if="groupInfo.type=='0'">{{language==0?'普通院校':'School'}}</text>
13 <text v-if="groupInfo.type=='1'">{{language==0?'专业舞蹈学校':'Professional dance school'}}</text>
14 <text v-if="groupInfo.type=='2'">{{language==0?'培训机构/俱乐部':'Company/Club'}}</text>
15 <text v-if="groupInfo.type=='3'">{{language==0?'地方协会':'Local Association'}}</text>
16 <text v-if="groupInfo.type=='4'">{{language==0?'国家协会':'National Association'}}</text>
17 </div>
12 </el-col> 18 </el-col>
13 </el-row> 19 </el-row>
14 </el-col> 20 </el-col>
......
1 <template>
2 <el-dialog
3 v-model="show" :title="title" width="500px" append-to-body :close-on-click-modal="false"
4 destroy-on-close
5 >
6 <el-form label-width="120">
7 <el-form-item required :label="item.realName" v-for="item in list">
8 <el-input :disabled="item.checked"
9 v-model="item.wdsfMin" placeholder="输入WDSF会员号"
10 >
11 <template #append>
12 <view @click="checkCode(item)" class="checkbb">
13 <el-icon v-if="item.checked" color="#13ce66" size="24"><CircleCheck /></el-icon>
14 <text class="text-primary" v-else>验证</text>
15 </view>
16 </template>
17 </el-input>
18 </el-form-item>
19 </el-form>
20 <template #footer>
21 <div class="dialog-footer text-center">
22 <el-button type="primary" @click="submitForm">保 存</el-button>
23 <el-button @click="cancel">取 消</el-button>
24 </div>
25 </template>
26 </el-dialog>
27 </template>
28
29 <script setup>
30 import { reactive, ref, toRefs, watch } from 'vue'
31 import { getCurrentInstance, nextTick, onMounted } from '@vue/runtime-core'
32 import * as match from '@/apiPc/match'
33 import { SuccessFilled } from '@element-plus/icons-vue'
34 import { ElMessage } from 'element-plus'
35 import { useRoute } from 'vue-router'
36
37 const { proxy } = getCurrentInstance()
38 const emit = defineEmits(['submitForm'])
39 const uploadUrl = ref('/upload/upLoadToFileServer')
40 const route = useRoute()
41 import {useStorage} from "@vueuse/core/index";
42 const language= useStorage('language',0)
43
44 const data = reactive({
45 form: {},
46 show: false,
47 list: [],
48 title: '',
49 groupId: '0'
50 })
51 const { form, show, countryList, list, title, groupId } = toRefs(data)
52 let extraId = 0
53 let personId
54 let matchId
55
56 const open = (params) => {
57 console.log(params)
58 show.value = true
59 title.value = params.title
60 matchId = params.matchId
61 list.value = params.list
62 init()
63 }
64 defineExpose({ open })
65 watch(show, (value) => {
66 if (!value) {
67 form.value = {}
68 list.value = []
69 }
70 })
71
72 function init() {
73 for (let n of list.value){
74 if (n.wdsfMin) {
75 n.checked = true
76 } else {
77 n.checked = false
78 }
79 }
80 }
81 function checkCode(item) {
82 if (!item.wdsfMin) {
83 if (language.value == 0) {
84 ElMessage.error('请填写WDSF卡号')
85 } else {
86 ElMessage.error('Please fill in your WDSF code')
87 }
88 return
89 }
90
91 match.checkWdsf({card: item.wdsfMin}).then(res => {
92 if(res.data.wdsfFlag=='0'){
93 if (language.value == 0) {
94 ElMessage.error('验证失败,卡号不存在')
95 } else {
96 ElMessage.error('Verification failed, card number does not exist')
97 }
98 return
99 }
100 if(res.data.wdsfFlag=='1'){
101 item.checked = true
102 }
103 })
104 }
105 function submitForm() {
106 //list.value
107 show.value = false
108 emit('submitForm')
109 }
110
111 function cancel() {
112 show.value = false
113 }
114 </script>
115
116 <style lang="scss">
117 .threeFour {
118 width: 100%;
119
120 :deep(.el-upload--picture-card) {
121 width: 120px;
122 height: 160px;
123 }
124
125 :deep(.el-upload-list--picture-card .el-upload-list__item) {
126 width: 120px;
127 height: 160px;
128 }
129 }
130
131 .tip {
132 font-size: 13px;
133 color: #999;
134 margin: 10px 0;
135
136 i {
137 color: red;
138 margin: 0 4px 0 0;
139 }
140 }
141
142 .red {
143 color: #f56c6c;
144 }
145 .checkbb{width: 30px;display: flex;align-items: center;text-align: center;}
146 </style>
...@@ -25,6 +25,28 @@ ...@@ -25,6 +25,28 @@
25 <p class="ppl"><label class="bm2">赛事级别:</label>{{ matchData.level }}</p> 25 <p class="ppl"><label class="bm2">赛事级别:</label>{{ matchData.level }}</p>
26 <p class="ppl" v-if="matchData.address"><label class="bm3">&ensp;&ensp;&ensp;&ensp;点:</label>{{ matchData.address }}</p> 26 <p class="ppl" v-if="matchData.address"><label class="bm3">&ensp;&ensp;&ensp;&ensp;点:</label>{{ matchData.address }}</p>
27 <p class="ppl" v-if="matchData.signEndTime"><label class="bm4">报名截止:</label>{{ matchData.signEndTime?.slice(0, 10) }}</p> 27 <p class="ppl" v-if="matchData.signEndTime"><label class="bm4">报名截止:</label>{{ matchData.signEndTime?.slice(0, 10) }}</p>
28 <div>
29 <el-link class="mr20" v-if="matchData.signKnowUrl" type="primary" :href="fillImgUrl(JSON.parse(matchData.signKnowUrl)[0]?.url)" target="_blank">
30 <el-icon :size="20">
31 <Download />
32 </el-icon>
33 <!-- {{ JSON.parse(matchData.signKnowUrl)[0]?.name}}-->
34 报名须知
35 </el-link>
36
37 <el-link class="mr20" v-if="matchData.disclaimerUrl" type="primary" :href="fillImgUrl(JSON.parse(matchData.disclaimerUrl)[0]?.url)" target="_blank">
38 <el-icon :size="20">
39 <Download />
40 </el-icon>免责声明
41 <!-- {{ JSON.parse(matchData.disclaimerUrl)[0]?.name }}-->
42 </el-link>
43 <el-link v-if="matchData.ruleUrl" type="primary" :href="fillImgUrl(JSON.parse(matchData.ruleUrl)[0]?.url)" target="_blank">
44 <el-icon :size="20">
45 <Download />
46 </el-icon>赛事规程
47 <!-- {{ JSON.parse(matchData.ruleUrl)[0]?.name }}-->
48 </el-link>
49 </div>
28 </el-col> 50 </el-col>
29 <el-col :lg="8" :md="12" :xl="8" v-if="matchData.type=='0'"> 51 <el-col :lg="8" :md="12" :xl="8" v-if="matchData.type=='0'">
30 <p class="countDownTitle"><span>报名截止倒计时</span></p> 52 <p class="countDownTitle"><span>报名截止倒计时</span></p>
...@@ -42,7 +64,8 @@ ...@@ -42,7 +64,8 @@
42 </van-count-down> 64 </van-count-down>
43 65
44 <div> 66 <div>
45 <a class="btn-lineG mb20" @click="choseSignType" style="display: block;text-align: center;">我要报名</a> 67 <a class="btn-lineG mb20" v-if="time>0" @click="choseSignType" style="display: block;text-align: center;">我要报名</a>
68 <div v-else style="opacity: 0.5;" class="btn-lineG mb20 mauto text-center">报名已结束</div>
46 </div> 69 </div>
47 </el-col> 70 </el-col>
48 </el-row> 71 </el-row>
......
...@@ -26,6 +26,29 @@ ...@@ -26,6 +26,29 @@
26 <p class="ppl" v-if="matchData.address"><label class="bm3">Location:</label>{{ matchData.address }}</p> 26 <p class="ppl" v-if="matchData.address"><label class="bm3">Location:</label>{{ matchData.address }}</p>
27 <p class="ppl" v-if="matchData.signEndTime"><label class="bm4">Registration 27 <p class="ppl" v-if="matchData.signEndTime"><label class="bm4">Registration
28 Deadline:</label>{{ matchData.signEndTime?.slice(0, 10) }}</p> 28 Deadline:</label>{{ matchData.signEndTime?.slice(0, 10) }}</p>
29 <div>
30 <el-link class="mr20" v-if="matchData.signKnowUrl" type="primary" :href="fillImgUrl(JSON.parse(matchData.signKnowUrl)[0]?.url)" target="_blank">
31 <el-icon :size="20">
32 <Download />
33 </el-icon>
34 <!-- {{ JSON.parse(matchData.signKnowUrl)[0]?.name}}-->
35 Notes
36 </el-link>
37
38 <el-link class="mr20" v-if="matchData.disclaimerUrl" type="primary" :href="fillImgUrl(JSON.parse(matchData.disclaimerUrl)[0]?.url)" target="_blank">
39 <el-icon :size="20">
40 <Download />
41 </el-icon>Disclaimers
42 <!-- {{ JSON.parse(matchData.disclaimerUrl)[0]?.name }}-->
43 </el-link>
44 <el-link v-if="matchData.ruleUrl" type="primary" :href="fillImgUrl(JSON.parse(matchData.ruleUrl)[0]?.url)" target="_blank">
45 <el-icon :size="20">
46 <Download />
47 </el-icon>Competition Regulations
48 <!-- {{ JSON.parse(matchData.ruleUrl)[0]?.name }}-->
49 </el-link>
50 </div>
51
29 </el-col> 52 </el-col>
30 <el-col :lg="8" :md="12" :xl="8" v-if="matchData.type=='0'"> 53 <el-col :lg="8" :md="12" :xl="8" v-if="matchData.type=='0'">
31 <p class="countDownTitle"><span>Registration deadline countdown</span></p> 54 <p class="countDownTitle"><span>Registration deadline countdown</span></p>
...@@ -43,9 +66,10 @@ ...@@ -43,9 +66,10 @@
43 </van-count-down> 66 </van-count-down>
44 67
45 <div class="flexCenter"> 68 <div class="flexCenter">
46 <el-button ref="RegisterRef" type="primary" round size="large" class="btn-lineG mb20 mt30 w100" 69 <el-button v-if="time>0" ref="RegisterRef" type="primary" round size="large" class="btn-lineG mb20 mt30 w100"
47 @click="choseSignType" style="font-size: 16px">Register 70 @click="choseSignType" style="font-size: 16px">Register
48 </el-button> 71 </el-button>
72 <div v-else style="opacity: 0.5;" class="btn-lineG mb20 mauto text-center">Registration has ended</div>
49 </div> 73 </div>
50 </el-col> 74 </el-col>
51 </el-row> 75 </el-row>
......
...@@ -7,30 +7,30 @@ ...@@ -7,30 +7,30 @@
7 <el-card> 7 <el-card>
8 <ul> 8 <ul>
9 <li> 9 <li>
10 <label>类型</label> 10 <label>{{ language==0?'类型':'Type' }}</label>
11 <el-radio-group v-model="query.type" @change="getList"> 11 <el-radio-group v-model="query.type" @change="getList">
12 <el-radio-button value="-1">全部</el-radio-button> 12 <el-radio-button value="-1">{{ language==0?'全部':'All' }}</el-radio-button>
13 <el-radio-button value="0">联赛</el-radio-button> 13 <el-radio-button value="0">{{ language==0?'联赛':'League' }}</el-radio-button>
14 <el-radio-button value="1">分站赛</el-radio-button> 14 <el-radio-button value="1">{{ language==0?'分站赛':'Station race' }}</el-radio-button>
15 </el-radio-group> 15 </el-radio-group>
16 </li> 16 </li>
17 <li> 17 <li>
18 <label>状态</label> 18 <label>{{ language==0?'状态':'Status' }}</label>
19 <el-radio-group 19 <el-radio-group
20 v-model="query.progressStatusCode" 20 v-model="query.progressStatusCode"
21 @change="getList" 21 @change="getList"
22 > 22 >
23 <el-radio-button value="-1">全部</el-radio-button> 23 <el-radio-button value="-1">{{ language==0?'全部':'All' }}</el-radio-button>
24 <el-radio-button value="2">报名中</el-radio-button> 24 <el-radio-button value="2">{{ language==0?'报名中':'Registration in progress' }}</el-radio-button>
25 <el-radio-button value="4">赛事进行中</el-radio-button> 25 <el-radio-button value="4">{{ language==0?'赛事进行中':'In progress' }}</el-radio-button>
26 <el-radio-button value="3">即将开始</el-radio-button> 26 <el-radio-button value="3">{{ language==0?'即将开始':'Begin in a minute' }}</el-radio-button>
27 <el-radio-button value="5">已结束</el-radio-button> 27 <el-radio-button value="5">{{ language==0?'已结束':'Ended' }}</el-radio-button>
28 </el-radio-group> 28 </el-radio-group>
29 </li> 29 </li>
30 <li> 30 <li>
31 <label>时间</label> 31 <label>{{ language==0?'时间':'Date' }}</label>
32 <el-radio-group v-model="query.month" @change="getList"> 32 <el-radio-group v-model="query.month" @change="getList">
33 <el-radio-button value="">全部</el-radio-button> 33 <el-radio-button value="">{{ language==0?'全部':'All' }}</el-radio-button>
34 <el-radio-button v-for="m in monthList" :key="m" :value="m">{{m}}</el-radio-button> 34 <el-radio-button v-for="m in monthList" :key="m" :value="m">{{m}}</el-radio-button>
35 </el-radio-group> 35 </el-radio-group>
36 </li> 36 </li>
...@@ -41,15 +41,15 @@ ...@@ -41,15 +41,15 @@
41 </div> 41 </div>
42 <div class="box"> 42 <div class="box">
43 <div class="listTitle"> 43 <div class="listTitle">
44 <h3>赛事列表</h3> 44 <h3>{{ language==0?'赛事列表':'List' }}</h3>
45 <div class="search"> 45 <div class="search">
46 <el-input 46 <el-input
47 v-model="query.name" 47 v-model="query.name"
48 placeholder="请输入赛事名称查询" 48 :placeholder="language==0?'请输入赛事名称查询':'Search'"
49 class="input-with-select" @change="getList" 49 class="input-with-select" @change="getList"
50 > 50 >
51 <template #append> 51 <template #append>
52 <el-button type="success" round @click="getList">查询</el-button> 52 <el-button type="success" round @click="getList">{{ language==0?'查询':'Search' }}</el-button>
53 </template> 53 </template>
54 </el-input> 54 </el-input>
55 </div> 55 </div>
...@@ -64,12 +64,12 @@ ...@@ -64,12 +64,12 @@
64 <div class="info"> 64 <div class="info">
65 <h3>{{ n.name }}</h3> 65 <h3>{{ n.name }}</h3>
66 <p class="ppl"><label>{{ language==0?'比赛时间':'Playing Time' }}:</label>{{n.beginTime?.slice(0,10)}} ~ {{ n.endTime?.slice(0,10) }}</p> 66 <p class="ppl"><label>{{ language==0?'比赛时间':'Playing Time' }}:</label>{{n.beginTime?.slice(0,10)}} ~ {{ n.endTime?.slice(0,10) }}</p>
67 <p class="ppl"><label>{{ language==0?'地&ensp;&ensp;&ensp;&ensp;点':'Location' }}:</label>{{ n.address }}</p> 67 <p class="ppl" v-if="n.address"><label>{{ language==0?'地&ensp;&ensp;&ensp;&ensp;点':'Location' }}:</label>{{ n.address }}</p>
68 <p class="ppl"><label>{{ language==0?'报名截止':'Registration Deadline' }}:</label>{{ n.signEndTime?.slice(0,10) }}</p> 68 <p class="ppl"><label>{{ language==0?'报名截止':'Registration Deadline' }}:</label>{{ n.signEndTime?.slice(0,10) }}</p>
69 69
70 <p class="ppl"><label>{{ language==0?'联系人员':'Contact Person' }}:</label>{{ n.contactPerson }}</p> 70 <p class="ppl" v-if="n.contactPerson"><label>{{ language==0?'联系人员':'Contact Person' }}:</label>{{ n.contactPerson }}</p>
71 <p class="ppl"><label>{{ language==0?'联系电话':'Phone' }}:</label>{{ n.contactTelno }}</p> 71 <p class="ppl"><label>{{ language==0?'联系电话':'Phone' }}:</label>{{ n.contactTelno }}</p>
72 <p class="ppl"><label>{{ language==0?'邮&ensp;&ensp;&ensp;&ensp;箱':'E-mail' }}:</label>{{ n.contactEmail }}</p> 72 <p class="ppl" v-if="n.contactEmail"><label>{{ language==0?'邮&ensp;&ensp;&ensp;&ensp;箱':'E-mail' }}:</label>{{ n.contactEmail }}</p>
73 73
74 </div> 74 </div>
75 </el-col> 75 </el-col>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
94 <div class="text-center mt30"> 94 <div class="text-center mt30">
95 <a class="btn-lineG mb20 mauto" v-if="n.time>0" style="display: block;"> 95 <a class="btn-lineG mb20 mauto" v-if="n.time>0" style="display: block;">
96 {{ language==0?'我要报名':'Register' }}</a> 96 {{ language==0?'我要报名':'Register' }}</a>
97 <div v-else style="opacity: 0.5;" class="btn-lineG mb20 mauto">报名已结束</div> 97 <div v-else style="opacity: 0.5;" class="btn-lineG mb20 mauto">{{ language==0?'报名已结束':'Registration has ended' }}</div>
98 </div> 98 </div>
99 </el-col> 99 </el-col>
100 </el-row> 100 </el-row>
......
...@@ -76,14 +76,14 @@ export default defineConfig(({ mode, command }) => { ...@@ -76,14 +76,14 @@ export default defineConfig(({ mode, command }) => {
76 rewrite: (p) => p.replace(/^\/dev-api\/ztx-match/, '') 76 rewrite: (p) => p.replace(/^\/dev-api\/ztx-match/, '')
77 }, 77 },
78 '/dev-api/ztx-webSite': { 78 '/dev-api/ztx-webSite': {
79 // target: 'http://123.60.96.243:1897/stage-api/', 79 target: 'https://dance.itechtop.cn/stage-api',
80 target: 'http://192.168.1.131:8083/', 80 // target: 'http://192.168.1.131:8083/',
81 changeOrigin: true, 81 changeOrigin: true,
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.131:8083', 85 // target: 'http://192.168.1.131:8083',
86 // target: 'http://localhost:8787', 86 target: 'https://dance.itechtop.cn/stage-api',
87 changeOrigin: true, 87 changeOrigin: true,
88 rewrite: (p) => p.replace(/^\/dev-api/, '') 88 rewrite: (p) => p.replace(/^\/dev-api/, '')
89 } 89 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!