|
@@ -10,7 +10,7 @@
|
|
<div class="option">
|
|
<div class="option">
|
|
<!-- <textarea v-model="studentAnswer" maxlength="5000" type="text" /> -->
|
|
<!-- <textarea v-model="studentAnswer" maxlength="5000" type="text" /> -->
|
|
|
|
|
|
- <div v-if="examQuestion.answerType !== 'SINGLE_AUDIO'">
|
|
|
|
|
|
+ <div v-if="!isAudioAnswerType">
|
|
<div class="menu">
|
|
<div class="menu">
|
|
<i-button type="info" class="text-ops" size="small" @click="textCopy">
|
|
<i-button type="info" class="text-ops" size="small" @click="textCopy">
|
|
复制
|
|
复制
|
|
@@ -99,7 +99,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- FIXME -->
|
|
<!-- FIXME -->
|
|
- <div v-if="this.$store.state.user.schoolDomain === 'csu.ecs.qmth.com.cn'">
|
|
|
|
|
|
+ <div v-if="canAttachPhotos">
|
|
<UploadPhotos
|
|
<UploadPhotos
|
|
:defaultList="
|
|
:defaultList="
|
|
photoAnswers.map(v => {
|
|
photoAnswers.map(v => {
|
|
@@ -299,6 +299,16 @@ export default {
|
|
rightAnswerTransform() {
|
|
rightAnswerTransform() {
|
|
return this.question.rightAnswer.join("");
|
|
return this.question.rightAnswer.join("");
|
|
},
|
|
},
|
|
|
|
+ isAudioAnswerType() {
|
|
|
|
+ return this.examQuestion.answerType === "SINGLE_AUDIO";
|
|
|
|
+ },
|
|
|
|
+ canAttachPhotos() {
|
|
|
|
+ return (
|
|
|
|
+ this.$store.state.user.schoolDomain === "csu.ecs.qmth.com.cn" ||
|
|
|
|
+ (this.$store.state.user.schoolDomain === "iepcc-ps.ecs.qmth.com.cn" &&
|
|
|
|
+ !this.isAudioAnswerType)
|
|
|
|
+ );
|
|
|
|
+ },
|
|
photoAnswers: {
|
|
photoAnswers: {
|
|
get() {
|
|
get() {
|
|
if (!this.studentAnswer) return [];
|
|
if (!this.studentAnswer) return [];
|