背号查询
Showing
2 changed files
with
55 additions
and
32 deletions
| ... | @@ -33,6 +33,7 @@ export function getExamRegionsList() { | ... | @@ -33,6 +33,7 @@ export function getExamRegionsList() { |
| 33 | method: 'get' | 33 | method: 'get' |
| 34 | }) | 34 | }) |
| 35 | } | 35 | } |
| 36 | |||
| 36 | export function getIndexScheduleList(params) { | 37 | export function getIndexScheduleList(params) { |
| 37 | return request({ | 38 | return request({ |
| 38 | url: '/league/competitionSchedule/getIndexScheduleList', | 39 | url: '/league/competitionSchedule/getIndexScheduleList', |
| ... | @@ -40,6 +41,7 @@ export function getIndexScheduleList(params) { | ... | @@ -40,6 +41,7 @@ export function getIndexScheduleList(params) { |
| 40 | params: params | 41 | params: params |
| 41 | }) | 42 | }) |
| 42 | } | 43 | } |
| 44 | |||
| 43 | export function newbilllist(query) { | 45 | export function newbilllist(query) { |
| 44 | return request({ | 46 | return request({ |
| 45 | url: `/ota/norder/list`, | 47 | url: `/ota/norder/list`, |
| ... | @@ -55,6 +57,7 @@ export function vistorRegister(data) { | ... | @@ -55,6 +57,7 @@ export function vistorRegister(data) { |
| 55 | data: data | 57 | data: data |
| 56 | }) | 58 | }) |
| 57 | } | 59 | } |
| 60 | |||
| 58 | export function upgradePersonal(data) { | 61 | export function upgradePersonal(data) { |
| 59 | return request({ | 62 | return request({ |
| 60 | url: `/upgradeAccountToSingle`, | 63 | url: `/upgradeAccountToSingle`, |
| ... | @@ -62,6 +65,7 @@ export function upgradePersonal(data) { | ... | @@ -62,6 +65,7 @@ export function upgradePersonal(data) { |
| 62 | data: data | 65 | data: data |
| 63 | }) | 66 | }) |
| 64 | } | 67 | } |
| 68 | |||
| 65 | export function upgradeTeam(data) { | 69 | export function upgradeTeam(data) { |
| 66 | return request({ | 70 | return request({ |
| 67 | url: `/upgradeAccountToTeam`, | 71 | url: `/upgradeAccountToTeam`, |
| ... | @@ -77,6 +81,7 @@ export function submitMasterApply(data) { | ... | @@ -77,6 +81,7 @@ export function submitMasterApply(data) { |
| 77 | data: data | 81 | data: data |
| 78 | }) | 82 | }) |
| 79 | } | 83 | } |
| 84 | |||
| 80 | export function masterClassList(query) { | 85 | export function masterClassList(query) { |
| 81 | return request({ | 86 | return request({ |
| 82 | // url: `/league/courseItem/list`, | 87 | // url: `/league/courseItem/list`, |
| ... | @@ -85,6 +90,7 @@ export function masterClassList(query) { | ... | @@ -85,6 +90,7 @@ export function masterClassList(query) { |
| 85 | params: query | 90 | params: query |
| 86 | }) | 91 | }) |
| 87 | } | 92 | } |
| 93 | |||
| 88 | export function getByCard(query) { | 94 | export function getByCard(query) { |
| 89 | return request({ | 95 | return request({ |
| 90 | url: `/league/courseUser/getByCard`, | 96 | url: `/league/courseUser/getByCard`, |
| ... | @@ -92,6 +98,7 @@ export function getByCard(query) { | ... | @@ -92,6 +98,7 @@ export function getByCard(query) { |
| 92 | params: query | 98 | params: query |
| 93 | }) | 99 | }) |
| 94 | } | 100 | } |
| 101 | |||
| 95 | export function getMasterApply(query) { | 102 | export function getMasterApply(query) { |
| 96 | return request({ | 103 | return request({ |
| 97 | url: `/league/courseUser/getCourseByUser`, | 104 | url: `/league/courseUser/getCourseByUser`, |
| ... | @@ -99,12 +106,14 @@ export function getMasterApply(query) { | ... | @@ -99,12 +106,14 @@ export function getMasterApply(query) { |
| 99 | params: query | 106 | params: query |
| 100 | }) | 107 | }) |
| 101 | } | 108 | } |
| 109 | |||
| 102 | export function delByCard(card) { | 110 | export function delByCard(card) { |
| 103 | return request({ | 111 | return request({ |
| 104 | url: `/league/courseUser/delByCard?card=${card}`, | 112 | url: `/league/courseUser/delByCard?card=${card}`, |
| 105 | method: 'delete' | 113 | method: 'delete' |
| 106 | }) | 114 | }) |
| 107 | } | 115 | } |
| 116 | |||
| 108 | export function addPickup(data) { | 117 | export function addPickup(data) { |
| 109 | return request({ | 118 | return request({ |
| 110 | url: `/league/pickup`, | 119 | url: `/league/pickup`, |
| ... | @@ -112,27 +121,31 @@ export function addPickup(data) { | ... | @@ -112,27 +121,31 @@ export function addPickup(data) { |
| 112 | data | 121 | data |
| 113 | }) | 122 | }) |
| 114 | } | 123 | } |
| 124 | |||
| 115 | export function getBackNumber(qy) { | 125 | export function getBackNumber(qy) { |
| 116 | return request({ | 126 | return request({ |
| 117 | url: `/league/backNumber/query`, | 127 | url: `/league/backNumber/query/${qy.cptId}`, |
| 118 | method: 'get', | 128 | method: 'get', |
| 119 | params: qy | 129 | params: qy |
| 120 | }) | 130 | }) |
| 121 | } | 131 | } |
| 132 | |||
| 122 | export function getTeamBackNumber(qy) { | 133 | export function getTeamBackNumber(qy) { |
| 123 | return request({ | 134 | return request({ |
| 124 | url: `/league/backNumber/teamQuery`, | 135 | url: `/league/backNumber/teamQuery/${qy.cptId}`, |
| 125 | method: 'get', | 136 | method: 'get', |
| 126 | params: qy | 137 | params: qy |
| 127 | }) | 138 | }) |
| 128 | } | 139 | } |
| 140 | |||
| 129 | export function getTeamBackNumberPre(qy) { | 141 | export function getTeamBackNumberPre(qy) { |
| 130 | return request({ | 142 | return request({ |
| 131 | url: `/league/backNumber/teamQueryPre`, | 143 | url: `/league/backNumber/teamQueryPre/${qy.cptId}`, |
| 132 | method: 'get', | 144 | method: 'get', |
| 133 | params: qy | 145 | params: qy |
| 134 | }) | 146 | }) |
| 135 | } | 147 | } |
| 148 | |||
| 136 | export function getqySchedule(qy) { | 149 | export function getqySchedule(qy) { |
| 137 | return request({ | 150 | return request({ |
| 138 | url: `/league/schedule/querySchedule`, | 151 | url: `/league/schedule/querySchedule`, |
| ... | @@ -140,6 +153,7 @@ export function getqySchedule(qy) { | ... | @@ -140,6 +153,7 @@ export function getqySchedule(qy) { |
| 140 | params: qy | 153 | params: qy |
| 141 | }) | 154 | }) |
| 142 | } | 155 | } |
| 156 | |||
| 143 | export function getqySchedule2(qy) { | 157 | export function getqySchedule2(qy) { |
| 144 | return request({ | 158 | return request({ |
| 145 | url: `/league/schedule/querySchedule2`, | 159 | url: `/league/schedule/querySchedule2`, |
| ... | @@ -147,6 +161,7 @@ export function getqySchedule2(qy) { | ... | @@ -147,6 +161,7 @@ export function getqySchedule2(qy) { |
| 147 | params: qy | 161 | params: qy |
| 148 | }) | 162 | }) |
| 149 | } | 163 | } |
| 164 | |||
| 150 | export function getquerySchedule2Pre(qy) { | 165 | export function getquerySchedule2Pre(qy) { |
| 151 | return request({ | 166 | return request({ |
| 152 | url: `/league/schedule/querySchedule2Pre`, | 167 | url: `/league/schedule/querySchedule2Pre`, |
| ... | @@ -154,6 +169,7 @@ export function getquerySchedule2Pre(qy) { | ... | @@ -154,6 +169,7 @@ export function getquerySchedule2Pre(qy) { |
| 154 | params: qy | 169 | params: qy |
| 155 | }) | 170 | }) |
| 156 | } | 171 | } |
| 172 | |||
| 157 | export function queryScheduleSingle(qy) { | 173 | export function queryScheduleSingle(qy) { |
| 158 | return request({ | 174 | return request({ |
| 159 | url: `/league/schedule/queryScheduleSingle`, | 175 | url: `/league/schedule/queryScheduleSingle`, | ... | ... |
| ... | @@ -5,26 +5,28 @@ | ... | @@ -5,26 +5,28 @@ |
| 5 | close-icon="CircleClose" destroy-on-close | 5 | close-icon="CircleClose" destroy-on-close |
| 6 | width="460px" | 6 | width="460px" |
| 7 | > | 7 | > |
| 8 | <div style="min-height: 300px" v-loading="loading"> | 8 | <div v-loading="loading" style="min-height: 300px"> |
| 9 | 9 | ||
| 10 | <div v-if="!type||type==''"> | 10 | <div v-if="!type||type==''"> |
| 11 | <div @click="type='0'" class="rItem">{{ language == 0 ? '个人查询' : 'Personal Query' }}</div> | 11 | <div class="rItem" @click="type='0'">{{ language == 0 ? '个人查询' : 'Personal Query' }}</div> |
| 12 | <div @click="type='1'" class="rItem">{{ language == 0 ? '团队查询' : 'Team Query' }}</div> | 12 | <div class="rItem" @click="type='1'">{{ language == 0 ? '团队查询' : 'Team Query' }}</div> |
| 13 | </div> | 13 | </div> |
| 14 | 14 | ||
| 15 | <div v-if="type=='0'"> | 15 | <div v-if="type=='0'"> |
| 16 | <div class="flex mt30"> | 16 | <div class="flex mt30"> |
| 17 | <el-input :placeholder="language==0?'输入会员号 / 姓名查询':'Enter WDSF MIN / Name to Query'" v-model="query" | 17 | <el-input |
| 18 | v-model="query" :placeholder="language==0?'输入会员号 / 姓名查询':'Enter WDSF MIN / Name to Query'" | ||
| 18 | clearable | 19 | clearable |
| 19 | @enter="search" @blur="search" @empty="search"/> | 20 | @blur="search" @empty="search" @enter="search" |
| 20 | <el-button @click="search" class="btn-lineG" style="color: #fff">{{ | 21 | /> |
| 22 | <el-button class="btn-lineG" style="color: #fff" @click="search">{{ | ||
| 21 | language == 0 ? '查询' : 'Search' | 23 | language == 0 ? '查询' : 'Search' |
| 22 | }} | 24 | }} |
| 23 | </el-button> | 25 | </el-button> |
| 24 | </div> | 26 | </div> |
| 25 | 27 | ||
| 26 | <div v-if="list.length>0"> | 28 | <div v-if="list.length>0"> |
| 27 | <div class="nowteamItem" v-for="(form, index) in list" :key="index"> | 29 | <div v-for="(form, index) in list" :key="index" class="nowteamItem"> |
| 28 | <div class="info"> | 30 | <div class="info"> |
| 29 | <div class="nowName text-center"> | 31 | <div class="nowName text-center"> |
| 30 | <span class="text-primary">{{ form.number }}</span> | 32 | <span class="text-primary">{{ form.number }}</span> |
| ... | @@ -48,36 +50,38 @@ | ... | @@ -48,36 +50,38 @@ |
| 48 | </div> | 50 | </div> |
| 49 | </div> | 51 | </div> |
| 50 | <div v-else> | 52 | <div v-else> |
| 51 | <el-empty/> | 53 | <el-empty /> |
| 52 | </div> | 54 | </div> |
| 53 | </div> | 55 | </div> |
| 54 | <div v-if="type=='1'"> | 56 | <div v-if="type=='1'"> |
| 55 | <div class="flex mt20"> | 57 | <div class="flex mt20"> |
| 56 | <el-input | 58 | <el-input |
| 59 | v-model="query2" | ||
| 57 | :placeholder="language==0?'请输入代表队名称至少两字符':'Enter the representing team name,At least two characters'" | 60 | :placeholder="language==0?'请输入代表队名称至少两字符':'Enter the representing team name,At least two characters'" |
| 58 | v-model="query2" clearable | 61 | clearable |
| 59 | @enter="searchTeam" @blur="searchTeam" @empty="searchTeam"/> | 62 | @blur="searchTeam" @empty="searchTeam" @enter="searchTeam" |
| 60 | <el-button @click="searchTeam" class="btn-lineG" style="color: #fff"> | 63 | /> |
| 64 | <el-button class="btn-lineG" style="color: #fff" @click="searchTeam"> | ||
| 61 | {{ language == 0 ? '查询' : 'Search' }} | 65 | {{ language == 0 ? '查询' : 'Search' }} |
| 62 | </el-button> | 66 | </el-button> |
| 63 | </div> | 67 | </div> |
| 64 | <span class="tip">*{{ language == 0 ? '模糊查询' : 'Fuzzy query' }}</span> | 68 | <span class="tip">*{{ language == 0 ? '模糊查询' : 'Fuzzy query' }}</span> |
| 65 | <div class="text-danger text-center" v-if="showGroupList"> | 69 | <div v-if="showGroupList" class="text-danger text-center"> |
| 66 | {{ language == 0 ? '找到多个团体' : 'Found multiple teams' }} | 70 | {{ language == 0 ? '找到多个团体' : 'Found multiple teams' }} |
| 67 | </div> | 71 | </div> |
| 68 | <div class="groupList" v-if="showGroupList"> | 72 | <div v-if="showGroupList" class="groupList"> |
| 69 | <ul> | 73 | <ul> |
| 70 | <li v-for="(item, index) in groupList" @click="showDetail(item)" :key="index">{{ item }} | 74 | <li v-for="(item, index) in groupList" :key="index" @click="showDetail(item)">{{ item }} |
| 71 | <el-icon class="fr"> | 75 | <el-icon class="fr"> |
| 72 | <ArrowRight/> | 76 | <ArrowRight /> |
| 73 | </el-icon> | 77 | </el-icon> |
| 74 | </li> | 78 | </li> |
| 75 | </ul> | 79 | </ul> |
| 76 | </div> | 80 | </div> |
| 77 | <div v-if="teamlist.length>0" class="temell mt20"> | 81 | <div v-if="teamlist.length>0" class="temell mt20"> |
| 78 | <el-collapse v-model="activeNames" accordion> | 82 | <el-collapse v-model="activeNames" accordion> |
| 79 | <el-collapse-item :name="index" :title="team[0][0].groupName" v-for="(team,index) in teamlist" :key="index"> | 83 | <el-collapse-item v-for="(team,index) in teamlist" :key="index" :name="index" :title="team[0][0].groupName"> |
| 80 | <div class="nowteamItem" v-for="(p,jndex) in team" :key="jndex"> | 84 | <div v-for="(p,jndex) in team" :key="jndex" class="nowteamItem"> |
| 81 | <div class="fontSize14 text-bold">{{ p[0].zuInfo }}</div> | 85 | <div class="fontSize14 text-bold">{{ p[0].zuInfo }}</div> |
| 82 | <div v-for="f in p" :key="f.id"> | 86 | <div v-for="f in p" :key="f.id"> |
| 83 | <span class="nowName text-primary">{{ f.number }}</span> | 87 | <span class="nowName text-primary">{{ f.number }}</span> |
| ... | @@ -94,10 +98,10 @@ | ... | @@ -94,10 +98,10 @@ |
| 94 | </template> | 98 | </template> |
| 95 | 99 | ||
| 96 | <script setup> | 100 | <script setup> |
| 97 | import {ref} from "vue"; | 101 | import { ref } from 'vue' |
| 98 | import {ElMessage} from "element-plus"; | 102 | import { ElMessage } from 'element-plus' |
| 99 | import {getBackNumber, getTeamBackNumber, getTeamBackNumberPre} from "@/apiPc/common"; | 103 | import { getBackNumber, getTeamBackNumber, getTeamBackNumberPre } from '@/apiPc/common' |
| 100 | import {useStorage} from "@vueuse/core/index"; | 104 | import { useStorage } from '@vueuse/core/index' |
| 101 | 105 | ||
| 102 | const language = useStorage('language', 0) | 106 | const language = useStorage('language', 0) |
| 103 | const show = ref(false) | 107 | const show = ref(false) |
| ... | @@ -109,23 +113,24 @@ const teamlist = ref([]) | ... | @@ -109,23 +113,24 @@ const teamlist = ref([]) |
| 109 | const query = ref('') | 113 | const query = ref('') |
| 110 | const query2 = ref('') | 114 | const query2 = ref('') |
| 111 | const type = ref('') | 115 | const type = ref('') |
| 116 | const cptId = ref('') | ||
| 112 | const activeNames = ref(0) | 117 | const activeNames = ref(0) |
| 113 | const showGroupList = ref(false) | 118 | const showGroupList = ref(false) |
| 119 | |||
| 114 | const search = () => { | 120 | const search = () => { |
| 115 | if (!query.value) { | 121 | if (!query.value) { |
| 116 | ElMessage.warning(language.value == 0 ? '请输入会员号/姓名' : 'Please enter WDSF MIN / Name') | 122 | ElMessage.warning(language.value == 0 ? '请输入会员号/姓名' : 'Please enter WDSF MIN / Name') |
| 117 | return | 123 | return |
| 118 | } | 124 | } |
| 119 | getBackNumber({query: query.value}).then(res => { | 125 | getBackNumber({ query: query.value, cptId: cptId.value }).then(res => { |
| 120 | if (!res.data || res.data.length == 0) { | 126 | if (!res.data || res.data.length == 0) { |
| 121 | list.value = [] | 127 | list.value = [] |
| 122 | //提示 '未找到结果,请重新查询' | 128 | // 提示 '未找到结果,请重新查询' |
| 123 | ElMessage.warning(language.value == 0 ? '未找到结果,请重新查询' : 'No result') | 129 | ElMessage.warning(language.value == 0 ? '未找到结果,请重新查询' : 'No result') |
| 124 | return | 130 | return |
| 125 | } | 131 | } |
| 126 | list.value = res.data | 132 | list.value = res.data |
| 127 | }) | 133 | }) |
| 128 | |||
| 129 | } | 134 | } |
| 130 | const searchTeam = () => { | 135 | const searchTeam = () => { |
| 131 | teamlist.value = [] | 136 | teamlist.value = [] |
| ... | @@ -134,11 +139,11 @@ const searchTeam = () => { | ... | @@ -134,11 +139,11 @@ const searchTeam = () => { |
| 134 | return | 139 | return |
| 135 | } | 140 | } |
| 136 | loading.value = true | 141 | loading.value = true |
| 137 | getTeamBackNumberPre({query: query2.value}).then(res => { | 142 | getTeamBackNumberPre({ query: query2.value, cptId: cptId.value }).then(res => { |
| 138 | loading.value = false | 143 | loading.value = false |
| 139 | if (!res.data || res.data.length == 0) { | 144 | if (!res.data || res.data.length == 0) { |
| 140 | groupList.value = [] | 145 | groupList.value = [] |
| 141 | //提示 '未找到结果,请重新查询' | 146 | // 提示 '未找到结果,请重新查询' |
| 142 | ElMessage.warning(language.value == 0 ? '未找到结果,请重新查询' : 'No result') | 147 | ElMessage.warning(language.value == 0 ? '未找到结果,请重新查询' : 'No result') |
| 143 | return | 148 | return |
| 144 | } | 149 | } |
| ... | @@ -149,10 +154,12 @@ const searchTeam = () => { | ... | @@ -149,10 +154,12 @@ const searchTeam = () => { |
| 149 | if (groupList.value.length > 1) { | 154 | if (groupList.value.length > 1) { |
| 150 | showGroupList.value = true | 155 | showGroupList.value = true |
| 151 | } | 156 | } |
| 152 | |||
| 153 | }) | 157 | }) |
| 154 | } | 158 | } |
| 159 | |||
| 155 | const open = (param) => { | 160 | const open = (param) => { |
| 161 | console.log(param) | ||
| 162 | cptId.value = param.cptId | ||
| 156 | show.value = true | 163 | show.value = true |
| 157 | list.value = [] | 164 | list.value = [] |
| 158 | teamlist.value = [] | 165 | teamlist.value = [] |
| ... | @@ -168,14 +175,14 @@ function showDetail(name) { | ... | @@ -168,14 +175,14 @@ function showDetail(name) { |
| 168 | query2.value = name | 175 | query2.value = name |
| 169 | showGroupList.value = false | 176 | showGroupList.value = false |
| 170 | loading.value = true | 177 | loading.value = true |
| 171 | getTeamBackNumber({query: name}).then(res => { | 178 | getTeamBackNumber({ query: name, cptId: cptId.value }).then(res => { |
| 172 | loading.value = false | 179 | loading.value = false |
| 173 | teamlist.value = res.data | 180 | teamlist.value = res.data |
| 174 | }) | 181 | }) |
| 175 | } | 182 | } |
| 176 | </script> | 183 | </script> |
| 177 | 184 | ||
| 178 | <style scoped lang="scss"> | 185 | <style lang="scss" scoped> |
| 179 | .tip { | 186 | .tip { |
| 180 | font-size: 12px; | 187 | font-size: 12px; |
| 181 | margin: 4px 0 0; | 188 | margin: 4px 0 0; | ... | ... |
-
Please register or sign in to post a comment