|
@@ -72,6 +72,13 @@
|
|
|
@click="toImportPaperAnswer"
|
|
|
>导入答案</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="toImportPaperProperty"
|
|
|
+ >导入属性</el-button
|
|
|
+ >
|
|
|
<!-- <el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
@@ -133,6 +140,13 @@
|
|
|
>
|
|
|
{{ quesTagShow ? "隐藏" : "显示" }}属性
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="toExportPaperBlue"
|
|
|
+ >导出试卷蓝图</el-button
|
|
|
+ >
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="small"
|
|
@@ -564,6 +578,15 @@
|
|
|
add-file-param="dataFile"
|
|
|
@uploaded="initPaper"
|
|
|
></import-file-dialog>
|
|
|
+ <!-- 上传属性文件 -->
|
|
|
+ <import-file-dialog
|
|
|
+ ref="ImportPorpertyDialog"
|
|
|
+ dialog-title="上传属性文件"
|
|
|
+ :template-url="propertyTemplateUrl"
|
|
|
+ :upload-url="uploadPropertyUrl"
|
|
|
+ add-file-param="dataFile"
|
|
|
+ @uploaded="initPaper"
|
|
|
+ ></import-file-dialog>
|
|
|
<!-- 题型分布 -->
|
|
|
<paper-questype-info
|
|
|
ref="PaperQuestypeInfo"
|
|
@@ -667,6 +690,9 @@ export default {
|
|
|
// upload answer
|
|
|
uploadAnswerUrl: "",
|
|
|
answerTemplateUrl: "",
|
|
|
+ // upload property
|
|
|
+ propertyTemplateUrl: "",
|
|
|
+ uploadPropertyUrl: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -778,6 +804,19 @@ export default {
|
|
|
const url = `${QUESTION_API}/paper/answer/export/${this.paperId}?$key=${key}&$token=${token}`;
|
|
|
window.open(url);
|
|
|
},
|
|
|
+ // 导出试卷蓝图
|
|
|
+ toExportPaperBlue() {
|
|
|
+ const { key, token } = this.user;
|
|
|
+ const url = `${QUESTION_API}/paper/blue/export/${this.paperId}?$key=${key}&$token=${token}`;
|
|
|
+ window.open(url);
|
|
|
+ },
|
|
|
+ // 导入属性
|
|
|
+ toImportPaperProperty() {
|
|
|
+ const { key, token } = this.user;
|
|
|
+ this.propertyTemplateUrl = `${QUESTION_API}/paper/property/export/${this.paperId}?$key=${key}&$token=${token}`;
|
|
|
+ this.uploadPropertyUrl = `${QUESTION_API}/paper/property/import/${this.paperId}`;
|
|
|
+ this.$refs.ImportPorpertyDialog.open();
|
|
|
+ },
|
|
|
toBack() {
|
|
|
window.history.go(-1);
|
|
|
},
|