Commit c410e3c4d41587a846c83f0171038681c4299061
1 parent
696f2d42
init
Showing
2 changed files
with
9 additions
and
6 deletions
src/views/basic/ask/analysis.vue
| @@ -167,9 +167,15 @@ export default { | @@ -167,9 +167,15 @@ export default { | ||
| 167 | }, | 167 | }, |
| 168 | methods: { | 168 | methods: { |
| 169 | print() { | 169 | print() { |
| 170 | + let name = ""; | ||
| 171 | + this.tabList.map((item) => { | ||
| 172 | + if (item.value == this.type) { | ||
| 173 | + name = item.name; | ||
| 174 | + } | ||
| 175 | + }); | ||
| 170 | tablePrint( | 176 | tablePrint( |
| 171 | "print-content", | 177 | "print-content", |
| 172 | - this.detail.title + "_" + this.tabList[this.type - 1] | 178 | + (this.detail.title || this.subjectNames.join()) + "_" + name |
| 173 | ); | 179 | ); |
| 174 | }, | 180 | }, |
| 175 | setType(type) { | 181 | setType(type) { |
src/views/basic/test/list.vue
| @@ -146,9 +146,6 @@ | @@ -146,9 +146,6 @@ | ||
| 146 | </el-tooltip> | 146 | </el-tooltip> |
| 147 | <template v-else>未设置答案</template> | 147 | <template v-else>未设置答案</template> |
| 148 | </template> | 148 | </template> |
| 149 | - <!-- <el-tooltip v-else effect="dark" content="答卷录分" placement="top"> | ||
| 150 | - <el-button type="primary" circle size="mini" @click="openScoreSet(scoped.row)">分</el-button> | ||
| 151 | - </el-tooltip> --> | ||
| 152 | <el-tooltip | 149 | <el-tooltip |
| 153 | v-else | 150 | v-else |
| 154 | effect="dark" | 151 | effect="dark" |
| @@ -328,8 +325,8 @@ export default { | @@ -328,8 +325,8 @@ export default { | ||
| 328 | path: "/testAnalysis", | 325 | path: "/testAnalysis", |
| 329 | query: { | 326 | query: { |
| 330 | id: this.multipleSelection[0], | 327 | id: this.multipleSelection[0], |
| 331 | - title: this.multipleData[0].title, | ||
| 332 | - score: this.multipleData[0].examPaperScore || 0, | 328 | + title: multipleData[0].title, |
| 329 | + score: multipleData[0].examPaperScore || 0, | ||
| 333 | type: 1, | 330 | type: 1, |
| 334 | subjectName: subjectArr.join(), | 331 | subjectName: subjectArr.join(), |
| 335 | classId: classIds, | 332 | classId: classIds, |