|
@@ -2669,7 +2669,7 @@
|
|
|
<el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
|
|
|
+ <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
|
|
|
width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
|
|
|
<div>
|
|
|
<!-- <div class="a_add_title" style="
|
|
@@ -4745,7 +4745,6 @@ export default {
|
|
|
var d = res.data[1];
|
|
|
var e = res.data[2];
|
|
|
var f = res.data[3];
|
|
|
-
|
|
|
for (var i = 0; i < a.length; i++) {
|
|
|
this.worksStudent[i] = [];
|
|
|
this.groupStudent[i] = [];
|
|
@@ -4777,6 +4776,7 @@ export default {
|
|
|
var data = b[j];
|
|
|
if (i == b[j].tool) {
|
|
|
if (data.type == 2 && a[i].tool[0] == 4) {
|
|
|
+ // if(JSON.parse(data.content)[0].anwer){
|
|
|
var checkL = JSON.parse(data.content)[0].anwer.split(",");
|
|
|
for (var z = 0; z < checkL.length; z++) {
|
|
|
if (!this.checkJson[i][z]) {
|
|
@@ -4814,6 +4814,7 @@ export default {
|
|
|
: (this.checkJson[i][z].checkCount[
|
|
|
parseInt(checkL[z])
|
|
|
] = 1);
|
|
|
+ // }
|
|
|
}
|
|
|
} else if (data.type == 8 && a[i].tool[0] == 45) {
|
|
|
var checkL = JSON.parse(data.content)[0].anwer;
|
|
@@ -4865,18 +4866,20 @@ export default {
|
|
|
) {
|
|
|
this.checkJson[i][z].rightPerson.push(data.name);
|
|
|
}
|
|
|
- this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
|
|
|
- ? this.checkJson[i][z].checkPerson[
|
|
|
- parseInt(checkL[z])
|
|
|
- ].push(data.name)
|
|
|
- : (this.checkJson[i][z].checkPerson[
|
|
|
- parseInt(checkL[z])
|
|
|
- ] = [data.name]);
|
|
|
- this.checkJson[i][z].checkCount[parseInt(checkL[z])]
|
|
|
- ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
|
|
|
- : (this.checkJson[i][z].checkCount[
|
|
|
- parseInt(checkL[z])
|
|
|
- ] = 1);
|
|
|
+ if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
|
|
|
+ this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
|
|
|
+ ? this.checkJson[i][z].checkPerson[
|
|
|
+ parseInt(checkL[z])
|
|
|
+ ].push(data.name)
|
|
|
+ : (this.checkJson[i][z].checkPerson[
|
|
|
+ parseInt(checkL[z])
|
|
|
+ ] = [data.name]);
|
|
|
+ this.checkJson[i][z].checkCount[parseInt(checkL[z])]
|
|
|
+ ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
|
|
|
+ : (this.checkJson[i][z].checkCount[
|
|
|
+ parseInt(checkL[z])
|
|
|
+ ] = 1);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} else if (data.type == 9 && a[i].tool[0] == 47) {
|
|
@@ -6516,7 +6519,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
addStudentAsk() {
|
|
|
- for (var i = 0; i < this.radio.length; i++) {
|
|
|
+ if (!this.radio.length) {
|
|
|
+ this.$message.error("请选择选项");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (var i = 0; i < this.askJson.askCount; i++) {
|
|
|
if (this.radio[i] !== 0 && !this.radio[i]) {
|
|
|
this.$message.error("请选择选项");
|
|
|
return;
|
|
@@ -6553,7 +6560,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
addStudentTest() {
|
|
|
- for (var i = 0; i < this.radio.length; i++) {
|
|
|
+ if (!this.radio.length) {
|
|
|
+ this.$message.error("请选择选项");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (var i = 0; i < this.testJson.testCount; i++) {
|
|
|
if (
|
|
|
(this.radio[i] instanceof Array && !this.radio[i].length) ||
|
|
|
(this.radio[i] !== 0 && !this.radio[i])
|
|
@@ -7431,10 +7442,10 @@ export default {
|
|
|
this.captureScreen(_function, true);
|
|
|
console.log('已点击允许,开启成功');
|
|
|
}).catch(err => {
|
|
|
- // console.log('浏览器不支持,请更换浏览器')
|
|
|
- // } else {
|
|
|
- this.captureScreen(_function, false);
|
|
|
- console.log('请检查是否存在麦克风')
|
|
|
+ // console.log('浏览器不支持,请更换浏览器')
|
|
|
+ // } else {
|
|
|
+ this.captureScreen(_function, false);
|
|
|
+ console.log('请检查是否存在麦克风')
|
|
|
})
|
|
|
},
|
|
|
/**
|