|
@@ -216,6 +216,22 @@
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-row class="operateRow">
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-button
|
|
|
|
+ plain
|
|
|
|
+ type="primary"
|
|
|
|
+ size="mini"
|
|
|
|
+ icon="el-icon-download"
|
|
|
|
+ @click="downloadAnswer(scope.row.offlineFileUrl)"
|
|
|
|
+ v-if="
|
|
|
|
+ scope.row.examType == 'OFFLINE' &&
|
|
|
|
+ scope.row.offlineFileUrl
|
|
|
|
+ "
|
|
|
|
+ >下载作答
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -594,6 +610,9 @@ export default {
|
|
cleanOfflineFile() {
|
|
cleanOfflineFile() {
|
|
this.$refs.offlineFileInput.value = "";
|
|
this.$refs.offlineFileInput.value = "";
|
|
this.offlineAnswerFile = "";
|
|
this.offlineAnswerFile = "";
|
|
|
|
+ },
|
|
|
|
+ downloadAnswer(offlineFileUrl) {
|
|
|
|
+ window.open(offlineFileUrl);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {}
|
|
created() {}
|