XW vor 5 Monaten
Ursprung
Commit
43ae419add

+ 6 - 6
TEAMModelOS/ClientApp/src/common/BaseQuickPaper.vue

@@ -33,7 +33,7 @@
 				<Upload action="" style="display: inline-block" :format="['jpg', 'jpeg', 'png', 'pdf']" :max-size="2048" multiple :before-upload="handleBeforeUpload" :show-upload-list="false">
 					<span class="btn-upload">{{ $t("evaluation.quickPaper.upload") }}</span>
 				</Upload>
-				<span @click="screenshotChange()" style="color: #515a6e;" class="btn-upload" v-if="buildMode === 'order' && attachments.length">截图</span>
+				<span @click="screenshotChange()" style="color: #515a6e;" class="btn-upload" v-if="buildMode === 'order' && attachments.length">{{ $t("evaluation.quickPaper.screen") }}</span>
 			</p>
 			<div class="img-list">
 				<div v-if="!attachments.length" style="margin: 20px 30px; color: #9999">{{ $t("evaluation.quickPaper.empty") }}</div>
@@ -168,7 +168,7 @@
 						<span style="margin: 0 10px">{{ $t("syllabus.score") }}</span>
 						<InputNumber v-model="item.score" :min="1" :max="100"></InputNumber>
 						<img :src="item.img" alt="" style="width: 100px;" @click="$hevueImgPreview(item.img)" v-show="item.img">
-						<span v-show="markListOld.length" style="margin-left: 10px; cursor: pointer" @click="editItemImg(item, index)" :title="item.img ? '重新截图' : '截图'">
+						<span v-show="markListOld.length" style="margin-left: 10px; cursor: pointer" @click="editItemImg(item, index)" :title="item.img ? $t('evaluation.quickPaper.reScreen') : $t('evaluation.quickPaper.screen')">
 							<Icon type="md-crop" color="#5a5a5a" size="18" />
 						</span>
 						<span style="margin-left: 10px; cursor: pointer" @click="doRemoveItem(index)">
@@ -178,16 +178,16 @@
 				</div>
 			</div>
 		</div>
-		<Modal v-model="isScreenshot" :mask-closable="false" title="框图取题" width="800" @on-ok="saveMark()" @on-cancel="closeMark()">
+		<Modal v-model="isScreenshot" :mask-closable="false" :title="$t('evaluation.quickPaper.screenQues')" width="800" @on-ok="saveMark()" @on-cancel="closeMark()">
 			<div>
 				<Select v-model="screenType" :placeholder="$t('evaluation.newExercise.gradePlaceholder')" style="width: 250px;">
 					<Option v-for="(type, typeIndex) in Object.keys(typeMap)" :value="type" :key="typeIndex">
 						{{ typeMap[type] }}
 					</Option>
 				</Select>
-				<Button type="primary" style="margin-left: 15px;" @click="changImg('up')" v-show="markIndex">上一页</Button>
-				<Button type="primary" style="margin-left: 15px;" @click="changImg('down')" v-show="markIndex + 1 != attachments.length">下一页</Button>
-				<Button type="primary" style="margin-left: 15px;" @click="delMark()">撤销</Button>
+				<Button type="primary" style="margin-left: 15px;" @click="changImg('up')" v-show="markIndex">{{ $t('evaluation.quickPaper.lastPage') }}</Button>
+				<Button type="primary" style="margin-left: 15px;" @click="changImg('down')" v-show="markIndex + 1 != attachments.length">{{ $t('evaluation.quickPaper.nextPage') }}</Button>
+				<Button type="primary" style="margin-left: 15px;" @click="delMark()">{{ $t('cusMgt.rcd.cover.undo') }}</Button>
 			</div>
 			<div style="margin-top: 10px">
 			</div>

+ 2 - 2
TEAMModelOS/ClientApp/src/common/MarkCanvas.vue

@@ -535,7 +535,7 @@ export default {
                     this.contentText.rect(value.x, value.y, value.w, value.h);
                     this.contentText.stroke();
                     this.contentText.fillStyle = 'blue'
-                    this.contentText.fillText(`${this.editQuesIndex != -1 ? this.editQuesIndex + 1 : (value.qIndex !== undefined ? value.qIndex + 1 : value.addIndex)}`, value.x + 5, value.y + 20)
+                    this.contentText.fillText(`${this.$t('answerSheet.tip2')}${this.editQuesIndex != -1 ? this.editQuesIndex + 1 : (value.qIndex !== undefined ? value.qIndex + 1 : value.addIndex)}${this.$t('answerSheet.tip14')}`, value.x + 5, value.y + 20)
                 }
             });
             // 绘制已选中部分
@@ -580,7 +580,7 @@ export default {
                     this.contentText.fillStyle = "red";
                     this.contentText.fill();// 画终点实心圆
                     this.contentText.stroke();
-                    this.contentText.fillText(`${this.editQuesIndex != -1 ? this.editQuesIndex + 1 : (value.qIndex !== undefined ? value.qIndex + 1 : value.addIndex)}`, value.x + 5, value.y + 20)
+                    this.contentText.fillText(`${this.$t('answerSheet.tip2')}${this.editQuesIndex != -1 ? this.editQuesIndex + 1 : (value.qIndex !== undefined ? value.qIndex + 1 : value.addIndex)}${this.$t('answerSheet.tip14')}`, value.x + 5, value.y + 20)
                 }
             })
         }