|
@@ -97,7 +97,6 @@
|
|
|
this.$Message.warning('暂无成员参与,无法进行挑人。');
|
|
|
return;
|
|
|
}
|
|
|
- if (status ==0) {
|
|
|
if (this.mytime == "") {
|
|
|
this.btnLable = "停止";
|
|
|
this.playIcon = "md-pause";
|
|
@@ -118,66 +117,6 @@
|
|
|
this.mytime = "";
|
|
|
}, 5000);
|
|
|
}
|
|
|
- } else if (status == 1) {
|
|
|
- if (this.pickText == 1) {
|
|
|
- let successData = ''
|
|
|
- for (var i = 0; i < studentsinfo.length; i++) {
|
|
|
- if (studentsinfo[i].option == avalue[0]) {
|
|
|
- successData.push(studentsinfo[i])
|
|
|
- }
|
|
|
- }
|
|
|
- if (successData.length != 0) {
|
|
|
- this.btnLable = "停止";
|
|
|
- this.playIcon = "md-pause";
|
|
|
- this.mytime = setInterval(function () {
|
|
|
- that.personList = that.getArrItem(successData, that.showLength);
|
|
|
- }, 100);
|
|
|
- } else if (successData.length ==0) {
|
|
|
- this.$Message.warning('暂无答对成员,无法进行挑人。');
|
|
|
- return;
|
|
|
- }
|
|
|
- } else if (this.pickText == 2) {
|
|
|
- let errorData = ''
|
|
|
- for (var i = 0; i < studentsinfo.length; i++) {
|
|
|
- if (studentsinfo[i].option != avalue[0]) {
|
|
|
- errorData.push(studentsinfo[i])
|
|
|
- }
|
|
|
- }
|
|
|
- if (errorData.length != 0) {
|
|
|
- this.btnLable = "停止";
|
|
|
- this.playIcon = "md-pause";
|
|
|
- this.mytime = setInterval(function () {
|
|
|
- that.personList = that.getArrItem(errorData, that.showLength);
|
|
|
- }, 100);
|
|
|
- } else if (errorData.length == 0) {
|
|
|
- this.$Message.warning('暂无答错成员,无法进行挑人。');
|
|
|
- return;
|
|
|
- }
|
|
|
- } else if (this.pickText == 3) {
|
|
|
- let errortosuccessData = ''
|
|
|
- for (var i = 0; i < oldstuden.length; i++) {
|
|
|
- if (oldstuden[i].option != avalue[0]) {
|
|
|
- for (var y = 0; y < studentsinfo.length; y++) {
|
|
|
- if (studentsinfo[i].option == avalue[0]) {
|
|
|
- errortosuccessData.push(studentsinfo[i])
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (errortosuccessData.length != 0) {
|
|
|
- this.btnLable = "停止";
|
|
|
- this.playIcon = "md-pause";
|
|
|
- this.mytime = setInterval(function () {
|
|
|
- that.personList = that.getArrItem(errortosuccessData, that.showLength);
|
|
|
- }, 100);
|
|
|
- } else if (errortosuccessData.length == 0) {
|
|
|
- this.$Message.warning('暂无 错→对 成员,无法进行挑人。');
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
},
|
|
|
refTest() {
|
|
|
let refs = this.$refs;
|