02f9c737 by 杨炀

no message

1 parent 757e7e64
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
8 <div style="min-height: 300px" v-loading="loading"> 8 <div style="min-height: 300px" v-loading="loading">
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 @click="type='0'" class="rItem">{{ language == 0 ? '个人查询' : 'Personal Query' }}</div>
12 <div @click="type='1'" class="rItem">{{ language==0?'团队查询':'Team Query' }}</div> 12 <div @click="type='1'" class="rItem">{{ 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" clearable 17 <el-input :placeholder="language==0?'输入会员号 / 姓名查询':'Enter WDSF MIN / Name to Query'" v-model="query"
18 clearable
18 @enter="search" @blur="search" @empty="search"/> 19 @enter="search" @blur="search" @empty="search"/>
19 <el-button @click="search" class="btn-lineG" style="color: #fff">{{ 20 <el-button @click="search" class="btn-lineG" style="color: #fff">{{
20 language == 0 ? '查询' : 'Search' 21 language == 0 ? '查询' : 'Search'
...@@ -29,19 +30,19 @@ ...@@ -29,19 +30,19 @@
29 <span class="text-primary">{{ form.number }}</span> 30 <span class="text-primary">{{ form.number }}</span>
30 </div> 31 </div>
31 <div> 32 <div>
32 <label>{{ language==0?'选手1':'Name1' }}</label>{{ form.maleName }} 33 <label>{{ language == 0 ? '选手1' : 'Name1' }}</label>{{ form.maleName }}
33 <span v-if="form.maleWdsf"> - {{ form.maleWdsf }}</span> 34 <span v-if="form.maleWdsf"> - {{ form.maleWdsf }}</span>
34 </div> 35 </div>
35 <div> 36 <div>
36 <label>{{ language==0?'选手2':'Name2' }}</label>{{ form.femaleName }} 37 <label>{{ language == 0 ? '选手2' : 'Name2' }}</label>{{ form.femaleName }}
37 <span v-if="form.femaleWdsf"> - {{ form.femaleWdsf }}</span> 38 <span v-if="form.femaleWdsf"> - {{ form.femaleWdsf }}</span>
38 </div> 39 </div>
39 <div> 40 <div>
40 <label>{{ language==0?'代表队':'Represent' }}</label> 41 <label>{{ language == 0 ? '代表队' : 'Represent' }}</label>
41 {{ form.groupName }} 42 {{ form.groupName }}
42 </div> 43 </div>
43 <div v-if="form.zuInfo"> 44 <div v-if="form.zuInfo">
44 <label> {{ language==0?'组别':'Event' }}</label>{{ form.zuInfo }} 45 <label> {{ language == 0 ? '组别' : 'Event' }}</label>{{ form.zuInfo }}
45 </div> 46 </div>
46 </div> 47 </div>
47 </div> 48 </div>
...@@ -52,19 +53,24 @@ ...@@ -52,19 +53,24 @@
52 </div> 53 </div>
53 <div v-if="type=='1'"> 54 <div v-if="type=='1'">
54 <div class="flex mt20"> 55 <div class="flex mt20">
55 <el-input :placeholder="language==0?'请输入代表队名称至少两字符':'Enter the representing team name,At least two characters'" 56 <el-input
57 :placeholder="language==0?'请输入代表队名称至少两字符':'Enter the representing team name,At least two characters'"
56 v-model="query2" clearable 58 v-model="query2" clearable
57 @enter="searchTeam" @blur="searchTeam" @empty="searchTeam"/> 59 @enter="searchTeam" @blur="searchTeam" @empty="searchTeam"/>
58 <el-button @click="searchTeam" class="btn-lineG" style="color: #fff"> 60 <el-button @click="searchTeam" class="btn-lineG" style="color: #fff">
59 {{language == 0 ? '查询' : 'Search' }} 61 {{ language == 0 ? '查询' : 'Search' }}
60 </el-button> 62 </el-button>
61 </div> 63 </div>
62 <span class="tip">*{{ language == 0 ?'模糊查询':'Fuzzy query' }}</span> 64 <span class="tip">*{{ language == 0 ? '模糊查询' : 'Fuzzy query' }}</span>
63 <div class="text-danger text-center" v-if="showGroupList">{{ language == 0 ?'找到多个团体':'Found multiple teams' }}</div> 65 <div class="text-danger text-center" v-if="showGroupList">
66 {{ language == 0 ? '找到多个团体' : 'Found multiple teams' }}
67 </div>
64 <div class="groupList" v-if="showGroupList"> 68 <div class="groupList" v-if="showGroupList">
65 <ul> 69 <ul>
66 <li v-for="(item, index) in groupList" @click="showDetail(item)" :key="index">{{item}} 70 <li v-for="(item, index) in groupList" @click="showDetail(item)" :key="index">{{ item }}
67 <el-icon class="fr"><ArrowRight /></el-icon> 71 <el-icon class="fr">
72 <ArrowRight/>
73 </el-icon>
68 </li> 74 </li>
69 </ul> 75 </ul>
70 </div> 76 </div>
...@@ -72,11 +78,11 @@ ...@@ -72,11 +78,11 @@
72 <el-collapse v-model="activeNames" accordion> 78 <el-collapse v-model="activeNames" accordion>
73 <el-collapse-item :name="index" :title="team[0][0].groupName" v-for="(team,index) in teamlist" :key="index"> 79 <el-collapse-item :name="index" :title="team[0][0].groupName" v-for="(team,index) in teamlist" :key="index">
74 <div class="nowteamItem" v-for="(p,jndex) in team" :key="jndex"> 80 <div class="nowteamItem" v-for="(p,jndex) in team" :key="jndex">
75 <div class="fontSize14 text-bold">{{p[0].zuInfo}}</div> 81 <div class="fontSize14 text-bold">{{ p[0].zuInfo }}</div>
76 <div v-for="f in p" :key="f.id"> 82 <div v-for="f in p" :key="f.id">
77 <span class="nowName text-primary">{{f.number}}</span> 83 <span class="nowName text-primary">{{ f.number }}</span>
78 <span class="mr10">{{ language==0?'选手1':'Name1' }}{{f.maleName}} </span> 84 <span class="mr10">{{ language == 0 ? '选手1' : 'Name1' }}{{ f.maleName }} </span>
79 <span>{{ language==0?'选手2':'Name2' }}{{f.femaleName}} </span> 85 <span>{{ language == 0 ? '选手2' : 'Name2' }}{{ f.femaleName }} </span>
80 </div> 86 </div>
81 </div> 87 </div>
82 </el-collapse-item> 88 </el-collapse-item>
...@@ -111,7 +117,7 @@ const search = () => { ...@@ -111,7 +117,7 @@ const search = () => {
111 return 117 return
112 } 118 }
113 getBackNumber({query: query.value}).then(res => { 119 getBackNumber({query: query.value}).then(res => {
114 if (!res.data||res.data.length==0) { 120 if (!res.data || res.data.length == 0) {
115 list.value = [] 121 list.value = []
116 //提示 '未找到结果,请重新查询' 122 //提示 '未找到结果,请重新查询'
117 ElMessage.warning(language.value == 0 ? '未找到结果,请重新查询' : 'No result') 123 ElMessage.warning(language.value == 0 ? '未找到结果,请重新查询' : 'No result')
...@@ -123,24 +129,24 @@ const search = () => { ...@@ -123,24 +129,24 @@ const search = () => {
123 } 129 }
124 const searchTeam = () => { 130 const searchTeam = () => {
125 teamlist.value = [] 131 teamlist.value = []
126 if (!query2.value||query2.value.length < 2) { 132 if (!query2.value || query2.value.length < 2) {
127 ElMessage.warning(language.value == 0 ? '请输入代表队名称至少两字符' : 'Enter the representing team name,At least two characters') 133 ElMessage.warning(language.value == 0 ? '请输入代表队名称至少两字符' : 'Enter the representing team name,At least two characters')
128 return 134 return
129 } 135 }
130 loading.value = true 136 loading.value = true
131 getTeamBackNumberPre({query: query2.value}).then(res => { 137 getTeamBackNumberPre({query: query2.value}).then(res => {
132 loading.value = false 138 loading.value = false
133 if (!res.data||res.data.length==0) { 139 if (!res.data || res.data.length == 0) {
134 groupList.value = [] 140 groupList.value = []
135 //提示 '未找到结果,请重新查询' 141 //提示 '未找到结果,请重新查询'
136 ElMessage.warning(language.value == 0 ? '未找到结果,请重新查询' : 'No result') 142 ElMessage.warning(language.value == 0 ? '未找到结果,请重新查询' : 'No result')
137 return 143 return
138 } 144 }
139 groupList.value = res.data 145 groupList.value = res.data
140 if(groupList.value.length==1){ 146 if (groupList.value.length == 1) {
141 showDetail(groupList.value[0]) 147 showDetail(groupList.value[0])
142 } 148 }
143 if(groupList.value.length>1){ 149 if (groupList.value.length > 1) {
144 showGroupList.value = true 150 showGroupList.value = true
145 } 151 }
146 152
...@@ -157,6 +163,7 @@ const open = (param) => { ...@@ -157,6 +163,7 @@ const open = (param) => {
157 defineExpose({ 163 defineExpose({
158 open 164 open
159 }) 165 })
166
160 function showDetail(name) { 167 function showDetail(name) {
161 query2.value = name 168 query2.value = name
162 showGroupList.value = false 169 showGroupList.value = false
...@@ -169,21 +176,40 @@ function showDetail(name) { ...@@ -169,21 +176,40 @@ function showDetail(name) {
169 </script> 176 </script>
170 177
171 <style scoped lang="scss"> 178 <style scoped lang="scss">
172 .tip{font-size: 12px;margin: 4px 0 0;display: inline-block;} 179 .tip {
173 .rItem{ 180 font-size: 12px;
181 margin: 4px 0 0;
182 display: inline-block;
183 }
184
185 .rItem {
174 height: 130px; 186 height: 130px;
175 cursor: pointer;border: 1px solid #e1e1e1;border-radius: 4px; 187 cursor: pointer;
176 width: 350px;text-align: center;line-height: 130px; 188 border: 1px solid #e1e1e1;
177 padding: 1px; font-size: 30px;color: #fff; 189 border-radius: 4px;
178 margin: 20px auto;background:linear-gradient(90deg, #8623FC, #453DEA); 190 width: 350px;
179 &:hover{ 191 text-align: center;
180 background:linear-gradient(90deg, #453DEA, #8623FC); 192 line-height: 130px;
181 box-shadow: 0 4px 10px #453DEA;border: none; 193 padding: 1px;
194 font-size: 30px;
195 color: #fff;
196 margin: 20px auto;
197 background: linear-gradient(90deg, #8623FC, #453DEA);
198
199 &:hover {
200 background: linear-gradient(90deg, #453DEA, #8623FC);
201 box-shadow: 0 4px 10px #453DEA;
202 border: none;
182 } 203 }
183 } 204 }
205
184 .nowteamItem { 206 .nowteamItem {
185 width: 100%;border: 1px solid #c8c5ff; margin-top: 20px; 207 width: 100%;
186 position: relative;border-radius: 4px;padding: 0 0 20px; 208 border: 1px solid #c8c5ff;
209 margin-top: 20px;
210 position: relative;
211 border-radius: 4px;
212 padding: 0 0 20px;
187 background: #FFFFFF; 213 background: #FFFFFF;
188 box-sizing: border-box; 214 box-sizing: border-box;
189 215
...@@ -210,14 +236,38 @@ function showDetail(name) { ...@@ -210,14 +236,38 @@ function showDetail(name) {
210 } 236 }
211 } 237 }
212 } 238 }
239
213 .temell { 240 .temell {
214 .nowteamItem{padding: 10px;margin: 0 0 10px; 241 .nowteamItem {
215 .nowName{font-size: 15px;font-weight: bold;margin-right: 10px} 242 padding: 10px;
216 .text-bold{font-weight: bold;} 243 margin: 0 0 10px;
217 .fontsize14{font-size: 14px;} 244
245 .nowName {
246 font-size: 15px;
247 font-weight: bold;
248 margin-right: 10px
249 }
250
251 .text-bold {
252 font-weight: bold;
253 }
254
255 .fontsize14 {
256 font-size: 14px;
257 }
218 } 258 }
219 } 259 }
220 .groupList{max-height: 70vh;overflow: auto;border: 1px solid #e1e1e1;margin-top: 10px; 260
221 li{padding: 10px;border-bottom: 1px solid #e1e1e1;cursor: pointer;} 261 .groupList {
262 max-height: 70vh;
263 overflow: auto;
264 border: 1px solid #e1e1e1;
265 margin-top: 10px;
266
267 li {
268 padding: 10px;
269 border-bottom: 1px solid #e1e1e1;
270 cursor: pointer;
271 }
222 } 272 }
223 </style> 273 </style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!