Commit 967e02c93b7db4d615d8267890e1c47beb25ad9d
1 parent
a6eb85ed
发卡记录显示参数调整
Showing
2 changed files
with
16 additions
and
20 deletions
public/index.html
| @@ -19,8 +19,8 @@ | @@ -19,8 +19,8 @@ | ||
| 19 | var link = document.querySelector("link[rel*='icon']") || document.createElement('link'); | 19 | var link = document.querySelector("link[rel*='icon']") || document.createElement('link'); |
| 20 | link.type = 'image/x-icon'; | 20 | link.type = 'image/x-icon'; |
| 21 | link.rel = 'shortcut icon'; | 21 | link.rel = 'shortcut icon'; |
| 22 | - var isZS = window.location.host.includes('ezquiz.sunvotecloud') | ||
| 23 | - link.href = !isZS ? "./favicon.ico" : "./331icon.ico"; | 22 | + var isZS = window.location.host.includes('ezquiz.sunvotecloud') || window.location.host.includes('121.40.127.171') |
| 23 | + link.href = isZS ? "./favicon.ico" : "./331icon.ico"; | ||
| 24 | document.getElementsByTagName('head')[0].appendChild(link); | 24 | document.getElementsByTagName('head')[0].appendChild(link); |
| 25 | } | 25 | } |
| 26 | </script> | 26 | </script> |
src/views/standard/card/index.vue
| @@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
| 10 | <div class="answer-header"> | 10 | <div class="answer-header"> |
| 11 | <div class="sel-box" v-if="role == 'ROLE_XUEXIAO'"> | 11 | <div class="sel-box" v-if="role == 'ROLE_XUEXIAO'"> |
| 12 | <el-cascader | 12 | <el-cascader |
| 13 | - @change="_QueryData(1)" | 13 | + @change="(page = 1), _QueryData(1)" |
| 14 | size="small" | 14 | size="small" |
| 15 | class="sel" | 15 | class="sel" |
| 16 | clearable | 16 | clearable |
| @@ -24,27 +24,27 @@ | @@ -24,27 +24,27 @@ | ||
| 24 | placeholder="请输入学生姓名" | 24 | placeholder="请输入学生姓名" |
| 25 | v-model="query.studentName" | 25 | v-model="query.studentName" |
| 26 | class="input-with-select" | 26 | class="input-with-select" |
| 27 | - @keyup.enter.native="_QueryData(2)" | 27 | + @keyup.enter.native="(page = 1), _QueryData(2)" |
| 28 | > | 28 | > |
| 29 | <el-button | 29 | <el-button |
| 30 | slot="append" | 30 | slot="append" |
| 31 | icon="el-icon-search" | 31 | icon="el-icon-search" |
| 32 | - @click="_QueryData(2)" | 32 | + @click="(page = 1), _QueryData(2)" |
| 33 | ></el-button> | 33 | ></el-button> |
| 34 | </el-input> | 34 | </el-input> |
| 35 | <el-input | 35 | <el-input |
| 36 | placeholder="请输入学生学号" | 36 | placeholder="请输入学生学号" |
| 37 | v-model="query.studentCode" | 37 | v-model="query.studentCode" |
| 38 | class="input-with-select" | 38 | class="input-with-select" |
| 39 | - @keyup.enter.native="_QueryData(3)" | 39 | + @keyup.enter.native="(page = 1), _QueryData(3)" |
| 40 | > | 40 | > |
| 41 | <el-button | 41 | <el-button |
| 42 | slot="append" | 42 | slot="append" |
| 43 | icon="el-icon-search" | 43 | icon="el-icon-search" |
| 44 | - @click="_QueryData(3)" | 44 | + @click="(page = 1), _QueryData(3)" |
| 45 | ></el-button> | 45 | ></el-button> |
| 46 | </el-input> | 46 | </el-input> |
| 47 | - <el-button type="primary" round @click="_QueryData(4)" | 47 | + <el-button type="primary" round @click="(page = 1), _QueryData(4)" |
| 48 | >筛选</el-button | 48 | >筛选</el-button |
| 49 | > | 49 | > |
| 50 | </div> | 50 | </div> |
| @@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
| 53 | class="sel2" | 53 | class="sel2" |
| 54 | v-model="schoolId" | 54 | v-model="schoolId" |
| 55 | placeholder="选择学校" | 55 | placeholder="选择学校" |
| 56 | - @change="_QueryData(true)" | 56 | + @change="(page = 1), _QueryData(true)" |
| 57 | > | 57 | > |
| 58 | <el-option | 58 | <el-option |
| 59 | v-for="item in schoolList" | 59 | v-for="item in schoolList" |
| @@ -84,9 +84,11 @@ | @@ -84,9 +84,11 @@ | ||
| 84 | </el-table-column> | 84 | </el-table-column> |
| 85 | <el-table-column align="center" label="班级"> | 85 | <el-table-column align="center" label="班级"> |
| 86 | <template slot-scope="scope"> | 86 | <template slot-scope="scope"> |
| 87 | - <span v-for="item in scope.row.classList" :key="item.classCode">{{ | ||
| 88 | - item.className | ||
| 89 | - }}</span> | 87 | + <span |
| 88 | + v-for="(item, index) in scope.row.classList" | ||
| 89 | + :key="item.classCode" | ||
| 90 | + >{{ (index == 0 ? "" : "、") + item.className }}</span | ||
| 91 | + > | ||
| 90 | </template> | 92 | </template> |
| 91 | </el-table-column> | 93 | </el-table-column> |
| 92 | <el-table-column | 94 | <el-table-column |
| @@ -248,6 +250,7 @@ export default { | @@ -248,6 +250,7 @@ export default { | ||
| 248 | this.query.studentName = ""; | 250 | this.query.studentName = ""; |
| 249 | } else { | 251 | } else { |
| 250 | query = { ...this.query }; | 252 | query = { ...this.query }; |
| 253 | + query.classId = this.query.classId[1] ? this.query.classId[1] : ""; | ||
| 251 | } | 254 | } |
| 252 | } else if (this.role == "ROLE_JITUAN") { | 255 | } else if (this.role == "ROLE_JITUAN") { |
| 253 | query.schoolId = this.schoolId; | 256 | query.schoolId = this.schoolId; |
| @@ -270,15 +273,8 @@ export default { | @@ -270,15 +273,8 @@ export default { | ||
| 270 | async downExl() { | 273 | async downExl() { |
| 271 | //报表导出 | 274 | //报表导出 |
| 272 | if (this.exportLoading == true) return; | 275 | if (this.exportLoading == true) return; |
| 273 | - let query = {}; | ||
| 274 | - if (this.role == "ROLE_XUEXIAO") { | ||
| 275 | - query = { ...this.query }; | ||
| 276 | - } else if (this.role == "ROLE_JITUAN") { | ||
| 277 | - query.schoolId = this.schoolId; | ||
| 278 | - } | ||
| 279 | - | ||
| 280 | this.exportLoading = true; | 276 | this.exportLoading = true; |
| 281 | - const data = await this.$request.exportClickersLog({ ...query }); | 277 | + const data = await this.$request.exportClickersLog(); |
| 282 | this.exportLoading = false; | 278 | this.exportLoading = false; |
| 283 | if (data && !data.code) { | 279 | if (data && !data.code) { |
| 284 | let blob = new Blob([data], { | 280 | let blob = new Blob([data], { |