|
@@ -151,7 +151,7 @@
|
|
|
</el-row>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="open = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="submitForm">保 存</el-button>
|
|
|
+ <el-button type="primary" @click="updatePaperRecInfo">保 存</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</section>
|
|
@@ -207,7 +207,8 @@
|
|
|
addQueForm:{},
|
|
|
stdQueList:[
|
|
|
// {qno:"",score:1,qtype:"单选",stdAns:""}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ stdQnoPoints:[]
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -293,6 +294,12 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ updatePaperRecInfo(){
|
|
|
+ let params = {id:1,stdQnoPoints:this.stdQnoPoints}
|
|
|
+ this.$api.updatePaperInfo(params).then(res=>{
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
remoteMethod(query) {
|
|
|
if (query !== "") {
|
|
|
// this.loading = true;
|
|
@@ -365,7 +372,8 @@
|
|
|
tryRecPaper(){
|
|
|
this.ansImgLoading = true;
|
|
|
this.$api.tryRecPaper({img:this.curAnsImg,optionDir:this.optionDir,queDir:this.queDir}).then(res=>{
|
|
|
- this.recCurAnsImg = res.data.data;
|
|
|
+ this.recCurAnsImg = res.data.data.recImg;
|
|
|
+ this.stdQnoPoints = res.data.data.ansCnts;
|
|
|
this.ansImgLoading = false;
|
|
|
})
|
|
|
},
|