|
@@ -1,16 +1,16 @@
|
|
<template>
|
|
<template>
|
|
<uni-row>
|
|
<uni-row>
|
|
- <uni-col :span="5" style="margin-top: 30px">
|
|
|
|
|
|
+ <uni-col :span="5" style="margin-top: 1vh">
|
|
<uni-card style="height: 92vh;">
|
|
<uni-card style="height: 92vh;">
|
|
<l-divider color="#00a60d">
|
|
<l-divider color="#00a60d">
|
|
- <view style="font-size: 20px;">题库名称</view>
|
|
|
|
|
|
+ <view style="font-size: 2vh;">题库名称</view>
|
|
</l-divider>
|
|
</l-divider>
|
|
<view
|
|
<view
|
|
- style="font-family: '微软雅黑' , serif;font-size: 20px;color: #8c8c8c;height: 30px;text-align: center;padding:5px;">
|
|
|
|
|
|
+ style="font-family: '微软雅黑' , serif;font-size: 2vh;color: #8c8c8c;height: 30px;text-align: center;padding:5px;">
|
|
{{title}}
|
|
{{title}}
|
|
</view>
|
|
</view>
|
|
<l-divider color="#00a60d">
|
|
<l-divider color="#00a60d">
|
|
- <view style="font-size: 20px;">题型</view>
|
|
|
|
|
|
+ <view style="font-size: 2vh;">题型</view>
|
|
</l-divider>
|
|
</l-divider>
|
|
<radio-group>
|
|
<radio-group>
|
|
<label v-for="(item, index) in repositoryType" :key="item">
|
|
<label v-for="(item, index) in repositoryType" :key="item">
|
|
@@ -21,10 +21,10 @@
|
|
<view style="color: #000000; ">
|
|
<view style="color: #000000; ">
|
|
<uni-row>
|
|
<uni-row>
|
|
<uni-col :span="12">
|
|
<uni-col :span="12">
|
|
- <strong style="font-size: 20px;">{{subjectTypes[item.type-1]}}</strong>
|
|
|
|
|
|
+ <strong style="font-size: 2vh;">{{subjectTypes[item.type-1]}}</strong>
|
|
</uni-col>
|
|
</uni-col>
|
|
<uni-col :span="12">
|
|
<uni-col :span="12">
|
|
- 数量:{{item.num}}
|
|
|
|
|
|
+ <view style="font-size: 2vh;">数量:{{item.num}}</view>
|
|
</uni-col>
|
|
</uni-col>
|
|
</uni-row>
|
|
</uni-row>
|
|
</view>
|
|
</view>
|
|
@@ -34,12 +34,12 @@
|
|
</radio-group>
|
|
</radio-group>
|
|
<l-divider color="#b3b3b3">
|
|
<l-divider color="#b3b3b3">
|
|
</l-divider>
|
|
</l-divider>
|
|
- <button type="primary" style="margin-top: 10px;" @click="backPage">返回</button>
|
|
|
|
|
|
+ <button type="primary" style="margin-top: 2%;width: 92%;" @click="backPage"><view style="font-size: 2vh;">返回</view></button>
|
|
</uni-card>
|
|
</uni-card>
|
|
</uni-col>
|
|
</uni-col>
|
|
- <uni-col :span="15" style="margin-top: 30px">
|
|
|
|
|
|
+ <uni-col :span="15" style="margin-top: 1vh">
|
|
<uni-card style="height: 92vh;">
|
|
<uni-card style="height: 92vh;">
|
|
- <scroll-view scroll-y="true" class="scroll-Y">
|
|
|
|
|
|
+ <scroll-view scroll-y="true" scroll-x="true" class="scroll-Y">
|
|
<uni-section :title="subjectTypes[subjectType-1]+'、'+(subjectNum+(pageNo-1)*pageSize)" type="line"
|
|
<uni-section :title="subjectTypes[subjectType-1]+'、'+(subjectNum+(pageNo-1)*pageSize)" type="line"
|
|
padding>
|
|
padding>
|
|
<view id="scantronNodes">
|
|
<view id="scantronNodes">
|
|
@@ -54,7 +54,7 @@
|
|
<label v-for="(item, index) in scantron.answerList" :key="item">
|
|
<label v-for="(item, index) in scantron.answerList" :key="item">
|
|
<view>
|
|
<view>
|
|
<button @click="radioAdd(item,index,scantron)"
|
|
<button @click="radioAdd(item,index,scantron)"
|
|
- :style="'margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: '+(item.right?'#f9ea0d;':'#f0eff0')"><strong
|
|
|
|
|
|
+ :style="'margin-top: 1%;padding-left:15px;font-size: 20px;text-align: left;background-color: '+(item.right?'#f9ea0d;':'#f0eff0')"><strong
|
|
style="color: #0072eb;">{{item.tag+"、"}}</strong>{{item.content}}</button>
|
|
style="color: #0072eb;">{{item.tag+"、"}}</strong>{{item.content}}</button>
|
|
</view>
|
|
</view>
|
|
</label>
|
|
</label>
|
|
@@ -341,11 +341,12 @@
|
|
style="position: absolute;top: 0;background-color:rgb(255, 255, 255,0) ;width: 100%;height: 140%;">
|
|
style="position: absolute;top: 0;background-color:rgb(255, 255, 255,0) ;width: 100%;height: 140%;">
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
- <view style="padding: 1vh;">
|
|
|
|
|
|
+ <view style="height: 8vh;">
|
|
<button :disabled="!disabledDrag" v-if="scantron.type!==1&&scantron.type!==3" type="primary"
|
|
<button :disabled="!disabledDrag" v-if="scantron.type!==1&&scantron.type!==3" type="primary"
|
|
- style="width: 20%;display: inline-block;margin-right: 1%;" @click="answerConfirm">答案确认
|
|
|
|
- </button><button type="primary" style="width: 20%;display: inline-block;"
|
|
|
|
- @click="answerInspect(3)">答案解析
|
|
|
|
|
|
+ style="width: 10vh;display: inline-block;margin-right: 1%;" @click="answerConfirm"><view style="font-size: 2vh;">答案确认</view>
|
|
|
|
+ </button>
|
|
|
|
+ <button type="primary" style="width: 10vh;display: inline-block;"
|
|
|
|
+ @click="answerInspect(3)"> <view style="font-size: 2vh;">答案解析</view>
|
|
</button>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
<scroll-view scroll-y="true" style="height: 22vh;border: #a7a7a7 solid 1px;border-radius: 10px;">
|
|
<scroll-view scroll-y="true" style="height: 22vh;border: #a7a7a7 solid 1px;border-radius: 10px;">
|
|
@@ -373,26 +374,26 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
- <view>
|
|
|
|
- <button type="primary" style="margin-top: 10px;width: 48%;display: inline-block;"
|
|
|
|
|
|
+ <view style="height: 5vh;">
|
|
|
|
+ <button type="primary" style="margin-top: 10px;width: 48%;display: inline-block;font-size: 100%;"
|
|
@click="previousQuestion">上一题</button>
|
|
@click="previousQuestion">上一题</button>
|
|
- <button type="primary" style="margin-left: 1%;margin-top: 10px;width: 48%;display: inline-block;"
|
|
|
|
|
|
+ <button type="primary" style="margin-left: 1%;margin-top: 10px;width: 48%;display: inline-block;font-size:100%;"
|
|
@click="nextQuestion">下一题</button>
|
|
@click="nextQuestion">下一题</button>
|
|
</view>
|
|
</view>
|
|
</uni-card>
|
|
</uni-card>
|
|
</uni-col>
|
|
</uni-col>
|
|
- <uni-col :span="4" style="margin-top: 30px">
|
|
|
|
|
|
+ <uni-col :span="4" style="margin-top: 1vh">
|
|
<uni-card style="height: 92vh;">
|
|
<uni-card style="height: 92vh;">
|
|
|
|
|
|
- <l-divider color="#8f960c" style="margin-top: 20px;">
|
|
|
|
- <view style="font-size: 20px;">当前题型数量</view>
|
|
|
|
|
|
+ <l-divider color="#8f960c" style="margin-top: 5%;">
|
|
|
|
+ <view style="font-size: 2vh;">当前题型数量</view>
|
|
</l-divider>
|
|
</l-divider>
|
|
<view
|
|
<view
|
|
- style="font-family: '微软雅黑', serif;font-size: 20px;color: #000000;height: 30px;text-align: center;padding:10px;font-size: 20px;">
|
|
|
|
|
|
+ style="font-family: '微软雅黑', serif;font-size: 1%;color: #000000;height: 30px;text-align: center;padding:1vh;font-size: 3vh;">
|
|
<strong>共{{this.repository.num}}题</strong>
|
|
<strong>共{{this.repository.num}}题</strong>
|
|
</view>
|
|
</view>
|
|
<l-divider color="#251e75">
|
|
<l-divider color="#251e75">
|
|
- <view style="font-size: 20px;">答题卡</view>
|
|
|
|
|
|
+ <view style="font-size: 2vh;">答题卡</view>
|
|
</l-divider>
|
|
</l-divider>
|
|
<view>
|
|
<view>
|
|
<scroll-view scroll-y="true" style="height: 50vh;">
|
|
<scroll-view scroll-y="true" style="height: 50vh;">
|
|
@@ -409,18 +410,26 @@
|
|
</label>
|
|
</label>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
- <view style="text-align: center;display: flex;align-items: center;font-size: 15px;width: 200px;">
|
|
|
|
|
|
+ <view >
|
|
|
|
+ <view style="text-align: left;;align-items: center;font-size: 15px;width: 200px;display: flex;">
|
|
当前<input
|
|
当前<input
|
|
- style="display: inline-block;width: 40px;border: #c1c1c1 solid 1px;border-radius: 3px;font-size: 20px;padding-top: 3px;"
|
|
|
|
- v-model="writePageNo" type="number" min='1' max="100" @input='inspect'
|
|
|
|
- @blur=" pageReplace(writePageNo,pageSize,0)" />页,每页<input
|
|
|
|
- style="display: inline-block;width: 40px;border: #c1c1c1 solid 1px;border-radius: 3px;font-size: 20px;padding-top: 3px;"
|
|
|
|
- v-model="pageSize" type="number" @blur="writePageNo=1;pageReplace(1,pageSize,0)" />条
|
|
|
|
|
|
+ style="display: inline-block;width: 40px;border: #c1c1c1 solid 1px;border-radius: 3px;font-size: 2vh;padding-top: 3px;"
|
|
|
|
+ v-model="writePageNo" type="number" min='1' max="100" @input='inspect'
|
|
|
|
+ @blur=" pageReplace(writePageNo,pageSize,0)" />页
|
|
|
|
+ </view>
|
|
|
|
+ <view style="text-align: left;align-items: center;font-size: 15px;width: 200px;display: flex;">
|
|
|
|
+ 每页
|
|
|
|
+ <input
|
|
|
|
+ style="display: inline-block;width: 40px;border: #c1c1c1 solid 1px;border-radius: 3px;font-size: 2vh;padding-top: 3px;"
|
|
|
|
+ v-model="pageSize" type="number" @blur="writePageNo=1;pageReplace(1,pageSize,0)" />条
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<l-divider color="#251e75" />
|
|
<l-divider color="#251e75" />
|
|
- <view>
|
|
|
|
- <button type="primary" style="margin-top: 10px;" @click="previousPage">上一页</button>
|
|
|
|
- <button type="primary" style="margin-top: 10px;" @click="nextPage">下一页</button>
|
|
|
|
|
|
+ <view style="height: 12vh;">
|
|
|
|
+ <button type="primary" style="margin-top: 1%;height: 5vh;" @click="previousPage" ><view style="font-size: 2vh;">上一页</view></button>
|
|
|
|
+ <button type="primary" style="margin-top: 5%;height: 5vh;" @click="nextPage"><view style="font-size: 2vh;">下一页</view></button>
|
|
</view>
|
|
</view>
|
|
</uni-card>
|
|
</uni-card>
|
|
</uni-col>
|
|
</uni-col>
|
|
@@ -1103,10 +1112,10 @@
|
|
if (dragOne !== undefined) {
|
|
if (dragOne !== undefined) {
|
|
this.radioAdd(this.dragItem, dragOne.id.replace("answer", ""), this.scantron)
|
|
this.radioAdd(this.dragItem, dragOne.id.replace("answer", ""), this.scantron)
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
- this.disabledDrag = true
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ this.disabledDrag = true
|
|
|
|
+
|
|
}, 700)
|
|
}, 700)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1616,46 +1625,46 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if (this.scantron.type === 5) {
|
|
} else if (this.scantron.type === 5) {
|
|
- if(!this.examObject.records[this.subjectNum - 1].answerOrder){
|
|
|
|
|
|
+ if (!this.examObject.records[this.subjectNum - 1].answerOrder) {
|
|
console.log(this.scantron.answerList);
|
|
console.log(this.scantron.answerList);
|
|
- for (var i = 0; i < this.scantron.answerList.length; i++) {
|
|
|
|
- this.answerAnalysis.youAnswerState = 1
|
|
|
|
- for (var j = 0; j < this.scantron.answerList.length; j++) {
|
|
|
|
- if (this.scantron.answerList[i].isRight) {
|
|
|
|
- let arrAwn = this.scantron.answerList[i].content.split("||")
|
|
|
|
- for (var a = 0; a < arrAwn.length; a++) {
|
|
|
|
- if (arrAwn[a] === this.scantron.answerList[j].blankcontent) {
|
|
|
|
- this.answerAnalysis.youAnswerState = 0
|
|
|
|
- break
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ for (var i = 0; i < this.scantron.answerList.length; i++) {
|
|
|
|
+ this.answerAnalysis.youAnswerState = 1
|
|
|
|
+ for (var j = 0; j < this.scantron.answerList.length; j++) {
|
|
|
|
+ if (this.scantron.answerList[i].isRight) {
|
|
|
|
+ let arrAwn = this.scantron.answerList[i].content.split("||")
|
|
|
|
+ for (var a = 0; a < arrAwn.length; a++) {
|
|
|
|
+ if (arrAwn[a] === this.scantron.answerList[j].blankcontent) {
|
|
|
|
+ this.answerAnalysis.youAnswerState = 0
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
+ }
|
|
if (this.answerAnalysis.youAnswerState === 1) {
|
|
if (this.answerAnalysis.youAnswerState === 1) {
|
|
- break
|
|
|
|
- }
|
|
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
for (var i = 0; i < this.scantron.answerList.length; i++) {
|
|
for (var i = 0; i < this.scantron.answerList.length; i++) {
|
|
if (this.scantron.answerList[i].isRight) {
|
|
if (this.scantron.answerList[i].isRight) {
|
|
this.answerAnalysis.answer += (i + 1) + "、" + this.scantron.answerList[i].content + ";"
|
|
this.answerAnalysis.answer += (i + 1) + "、" + this.scantron.answerList[i].content + ";"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
for (var i = 0; i < this.scantron.answerList.length; i++) {
|
|
for (var i = 0; i < this.scantron.answerList.length; i++) {
|
|
if (this.scantron.answerList[i].isRight) {
|
|
if (this.scantron.answerList[i].isRight) {
|
|
let arrAwn = this.scantron.answerList[i].content.split("||")
|
|
let arrAwn = this.scantron.answerList[i].content.split("||")
|
|
- for (var a = 0; a < arrAwn.length; a++) {
|
|
|
|
- if (arrAwn[a] === this.scantron.answerList[i].blankcontent) {
|
|
|
|
- this.answerAnalysis.youAnswerState = 0
|
|
|
|
- break
|
|
|
|
- }
|
|
|
|
|
|
+ for (var a = 0; a < arrAwn.length; a++) {
|
|
|
|
+ if (arrAwn[a] === this.scantron.answerList[i].blankcontent) {
|
|
|
|
+ this.answerAnalysis.youAnswerState = 0
|
|
|
|
+ break
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
if (this.answerAnalysis.youAnswerState === 1) {
|
|
if (this.answerAnalysis.youAnswerState === 1) {
|
|
- break
|
|
|
|
- }
|
|
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
for (var i = 0; i < this.scantron.answerList.length; i++) {
|
|
for (var i = 0; i < this.scantron.answerList.length; i++) {
|
|
if (this.scantron.answerList[i].isRight) {
|
|
if (this.scantron.answerList[i].isRight) {
|
|
@@ -1663,7 +1672,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
} else if (this.scantron.type === 7 || this.scantron.type === 8) {
|
|
} else if (this.scantron.type === 7 || this.scantron.type === 8) {
|
|
let a = 1
|
|
let a = 1
|
|
this.answerAnalysis.youAnswerState = 0
|
|
this.answerAnalysis.youAnswerState = 0
|
|
@@ -1743,7 +1752,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
.scroll-Y {
|
|
.scroll-Y {
|
|
- height: 54vh;
|
|
|
|
|
|
+ height: 50vh;
|
|
}
|
|
}
|
|
|
|
|
|
.allceter {
|
|
.allceter {
|
|
@@ -1799,7 +1808,7 @@
|
|
.uni-input {
|
|
.uni-input {
|
|
padding-left: 20px;
|
|
padding-left: 20px;
|
|
border: 1rpx solid #5bb4ee;
|
|
border: 1rpx solid #5bb4ee;
|
|
- height: 96rpx;
|
|
|
|
|
|
+ height: 50px;
|
|
margin-left: 10px;
|
|
margin-left: 10px;
|
|
|
|
|
|
|
|
|
|
@@ -1824,8 +1833,8 @@
|
|
.paperCss {
|
|
.paperCss {
|
|
width: 85%;
|
|
width: 85%;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
- padding: 15px;
|
|
|
|
- margin-top: 15px;
|
|
|
|
|
|
+ padding: 1vh;
|
|
|
|
+ margin-top: 1vh;
|
|
|
|
|
|
font-size: 15px;
|
|
font-size: 15px;
|
|
text-align: left;
|
|
text-align: left;
|