Commit 98dec08315d0299543e6410add56a49194cb306a

Authored by 梁保满
1 parent ab315758

复制试卷问题,题干列表样式,题目解析上传问题

public/Temp/js/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff 0 → 100644
No preview for this file type
public/Temp/js/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff 0 → 100644
No preview for this file type
src/views/examinationPaper/add.vue
... ... @@ -966,16 +966,17 @@
966 966 </div>
967 967 <div class="question-box">
968 968 <template v-for="(question, index) in form.questionList">
969   - <div
970   - class="screenshot-box"
971   - v-for="(subQuestions, indexs) in question.subQuestions"
972   - :key="index + '-' + indexs"
973   - >
974   - <iframe
975   - class="screenshot"
  969 + <div v-for="(subQuestions, indexs) in question.subQuestions">
  970 + <div
  971 + class="screenshot-box"
976 972 v-if="subQuestions.screenshot"
977   - :src="subQuestions.screenshot"
978   - ></iframe>
  973 + :key="index + '-' + indexs"
  974 + >
  975 + <iframe
  976 + class="screenshot"
  977 + :src="subQuestions.screenshot"
  978 + ></iframe>
  979 + </div>
979 980 </div>
980 981 </template>
981 982 </div>
... ...
src/views/examinationPaper/addQs.vue
... ... @@ -454,15 +454,13 @@
454 454 </div>
455 455 <div class="question-box">
456 456 <template v-for="question in form.questionList">
457   - <div
458   - class="screenshot-box"
459   - v-for="subQuestions in question.subQuestions"
460   - >
461   - <iframe
462   - class="screenshot"
463   - v-if="subQuestions.screenshot"
464   - :src="subQuestions.screenshot"
465   - ></iframe>
  457 + <div v-for="subQuestions in question.subQuestions">
  458 + <div class="screenshot-box" v-if="subQuestions.screenshot">
  459 + <iframe
  460 + class="screenshot"
  461 + :src="subQuestions.screenshot"
  462 + ></iframe>
  463 + </div>
466 464 </div>
467 465 </template>
468 466 </div>
... ...
src/views/examinationPaper/edit.vue
... ... @@ -614,8 +614,8 @@ export default {
614 614 //图片上传成功
615 615 upSuccess(res, file) {
616 616 if (res && res.status == 0) {
617   - this.stem.screenshot = res.data.url;
618 617 if (this.stem.type == 1) {
  618 + this.stem.screenshot = res.data.url;
619 619 if (this.questionList[0]?.subQuestions) {
620 620 this.questionList[this.stem.index].subQuestions[
621 621 this.stem.indexs
... ... @@ -625,6 +625,7 @@ export default {
625 625 this.stem.screenshot;
626 626 }
627 627 } else {
  628 + this.stem.answerScreenshot = res.data.url;
628 629 if (this.questionList[0]?.subQuestions) {
629 630 this.questionList[this.stem.index].subQuestions[
630 631 this.stem.indexs
... ...
src/views/examinationPaper/index.vue
... ... @@ -440,7 +440,7 @@ export default {
440 440 break;
441 441 case 2:
442 442 //复制
443   - if (that.type == 2) {
  443 + if (that.query.type == 2) {
444 444 that.toAdd({ type: 2, paperId: item.id });
445 445 } else {
446 446 that.toAddQs({ type: 2, paperId: item.id });
... ...