|
@@ -6,13 +6,13 @@
|
|
|
<div class="progressContainer">
|
|
<div class="progressContainer">
|
|
|
<div class="valueDisplay">
|
|
<div class="valueDisplay">
|
|
|
<div class="lt">
|
|
<div class="lt">
|
|
|
- <span>
|
|
|
|
|
- <em>CK 238.3</em>
|
|
|
|
|
|
|
+ <span :style="{'right': Redflag+'%'}">
|
|
|
|
|
+ <em>CK {{ redSum }}</em>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="rt">
|
|
<div class="rt">
|
|
|
<span>
|
|
<span>
|
|
|
- <em>CK 222.1</em>
|
|
|
|
|
|
|
+ <em>CK {{ blueSum }}</em>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="md">
|
|
<div class="md">
|
|
@@ -22,25 +22,26 @@
|
|
|
<div class="lineContianer">
|
|
<div class="lineContianer">
|
|
|
<div class="lt">
|
|
<div class="lt">
|
|
|
<span>
|
|
<span>
|
|
|
- <em>8人红队</em>
|
|
|
|
|
|
|
+ <em>{{ redPeron }}人红队</em>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="rt">
|
|
<div class="rt">
|
|
|
<span>
|
|
<span>
|
|
|
- <em>蓝队8人</em>
|
|
|
|
|
|
|
+ <em>蓝队{{ bluePerson }}人</em>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="userPart">
|
|
<div class="userPart">
|
|
|
<div class="lt">
|
|
<div class="lt">
|
|
|
- <student :students="students.redUnite" :students-class-name="RedstudentsClassName"></student>
|
|
|
|
|
|
|
+ <pkstudent :students="students.redUnite"></pkstudent>
|
|
|
<div class="bottomLine redBottom"></div>
|
|
<div class="bottomLine redBottom"></div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="md">
|
|
<div class="md">
|
|
|
00:30:12
|
|
00:30:12
|
|
|
</div>
|
|
</div>
|
|
|
<div class="rt">
|
|
<div class="rt">
|
|
|
|
|
+ <pkstudent :students="students.blueUnite"></pkstudent>
|
|
|
<div class="bottomLine blueBottom"></div>
|
|
<div class="bottomLine blueBottom"></div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -54,7 +55,7 @@ import '../libs/rem';
|
|
|
import Headside from '@/components/Headside'
|
|
import Headside from '@/components/Headside'
|
|
|
import newRecord from '@/components/newRecord'
|
|
import newRecord from '@/components/newRecord'
|
|
|
import newStudent from '@/components/newStudent'
|
|
import newStudent from '@/components/newStudent'
|
|
|
-import student from '@/components/student'
|
|
|
|
|
|
|
+import pkstudent from '@/components/pkstudent'
|
|
|
|
|
|
|
|
import
|
|
import
|
|
|
{
|
|
{
|
|
@@ -81,9 +82,15 @@ export default {
|
|
|
thisClassName: '',
|
|
thisClassName: '',
|
|
|
redSum: 0,
|
|
redSum: 0,
|
|
|
blueSum: 0,
|
|
blueSum: 0,
|
|
|
|
|
+ redPeron: 0,
|
|
|
|
|
+ bluePerson: 0,
|
|
|
pkVal: '50%',
|
|
pkVal: '50%',
|
|
|
- RedstudentsClassName: '',
|
|
|
|
|
- BluestudentsClassName: '',
|
|
|
|
|
|
|
+ RedstudentsClassName: [
|
|
|
|
|
+ {name: 'max'}
|
|
|
|
|
+ ],
|
|
|
|
|
+ BluestudentsClassName: [
|
|
|
|
|
+ {name: 'max'}
|
|
|
|
|
+ ],
|
|
|
PlanName: '',
|
|
PlanName: '',
|
|
|
num: 0,
|
|
num: 0,
|
|
|
Teacher: '',
|
|
Teacher: '',
|
|
@@ -106,6 +113,7 @@ export default {
|
|
|
Rs: [],
|
|
Rs: [],
|
|
|
percent: 0
|
|
percent: 0
|
|
|
},
|
|
},
|
|
|
|
|
+ Redflag: 0,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -161,7 +169,7 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
// 并没有人破记录
|
|
// 并没有人破记录
|
|
|
if (json.Code == 999) return false;
|
|
if (json.Code == 999) return false;
|
|
|
- if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
|
|
|
|
|
|
|
+ if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -187,7 +195,7 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
// 并没有人破记录
|
|
// 并没有人破记录
|
|
|
if (json.Code == 999) return false;
|
|
if (json.Code == 999) return false;
|
|
|
- if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
|
|
|
|
|
|
|
+ if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -284,42 +292,14 @@ export default {
|
|
|
|
|
|
|
|
// 当为0时均分
|
|
// 当为0时均分
|
|
|
if (sumMax == 0) {
|
|
if (sumMax == 0) {
|
|
|
- that.pkVal = '50%';
|
|
|
|
|
|
|
+ that.Redflag = 0;
|
|
|
} else {
|
|
} else {
|
|
|
// 限制最大
|
|
// 限制最大
|
|
|
let pkval = parseInt((redFmtSum / sumMax) * 100) > 100 ? 100 : parseInt((redFmtSum / sumMax) * 100);
|
|
let pkval = parseInt((redFmtSum / sumMax) * 100) > 100 ? 100 : parseInt((redFmtSum / sumMax) * 100);
|
|
|
console.log(pkval);
|
|
console.log(pkval);
|
|
|
- that.pkVal = pkval + '%';
|
|
|
|
|
|
|
+ that.Redflag = 100 - pkval - 20;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // // 获取人数 计算人均CK
|
|
|
|
|
- // let redHuman = 0;
|
|
|
|
|
- // let blueHuman = 0;
|
|
|
|
|
- // if (Rs.redUnite != '') {
|
|
|
|
|
- // redHuman = Rs.redUnite.length;
|
|
|
|
|
- // that.redSum = parseFloat(redSum / redHuman).toFixed(1);
|
|
|
|
|
- // } else {
|
|
|
|
|
- // that.redSum = 0
|
|
|
|
|
- // }
|
|
|
|
|
- // if (Rs.blueUnite != '') {
|
|
|
|
|
- // blueHuman = Rs.blueUnite.length;
|
|
|
|
|
- // that.blueSum = parseFloat(blueSum / blueHuman).toFixed(1);
|
|
|
|
|
- // } else {
|
|
|
|
|
- // that.blueSum = 0
|
|
|
|
|
- // }
|
|
|
|
|
- // that.redSum = redSum;
|
|
|
|
|
- // that.blueSum = blueSum;
|
|
|
|
|
-
|
|
|
|
|
- // // pkVal ***进度条对比按照人均显示
|
|
|
|
|
- // let sumMax = parseFloat(that.redSum) + parseFloat(that.blueSum);
|
|
|
|
|
- // // 当为0时均分
|
|
|
|
|
- // if (sumMax == 0) {
|
|
|
|
|
- // that.pkVal = '50%';
|
|
|
|
|
- // } else {
|
|
|
|
|
- // // 限制最大
|
|
|
|
|
- // let pkval = parseInt((that.redSum / sumMax) * 100) > 100 ? 100 : parseInt((that.redSum / sumMax) * 100);
|
|
|
|
|
- // that.pkVal = pkval + '%';
|
|
|
|
|
- // }
|
|
|
|
|
},
|
|
},
|
|
|
// 获取上课学生信息
|
|
// 获取上课学生信息
|
|
|
GetgetUserList() {
|
|
GetgetUserList() {
|
|
@@ -359,30 +339,16 @@ export default {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
let numberClass = '';
|
|
let numberClass = '';
|
|
|
let colorClass = '';
|
|
let colorClass = '';
|
|
|
|
|
+
|
|
|
for (let i = 0; i < parseInt(res.length); i++) {
|
|
for (let i = 0; i < parseInt(res.length); i++) {
|
|
|
switch (true) {
|
|
switch (true) {
|
|
|
case parseInt(res.length) == 1:
|
|
case parseInt(res.length) == 1:
|
|
|
- numberClass = 'twentyFive';
|
|
|
|
|
|
|
+ numberClass = 'max';
|
|
|
break;
|
|
break;
|
|
|
case parseInt(res.length) == 2:
|
|
case parseInt(res.length) == 2:
|
|
|
numberClass = 'two';
|
|
numberClass = 'two';
|
|
|
break;
|
|
break;
|
|
|
- case parseInt(res.length) <= 4 && parseInt(res.length) > 2:
|
|
|
|
|
- numberClass = 'three';
|
|
|
|
|
- break;
|
|
|
|
|
- case parseInt(res.length) <= 9 && parseInt(res.length) > 4:
|
|
|
|
|
- numberClass = 'five';
|
|
|
|
|
- break;
|
|
|
|
|
- case parseInt(res.length) <= 9 && parseInt(res.length) > 6:
|
|
|
|
|
- numberClass = 'nine';
|
|
|
|
|
- break;
|
|
|
|
|
- case parseInt(res.length) <= 16 && parseInt(res.length) > 9:
|
|
|
|
|
- numberClass = 'sixteen';
|
|
|
|
|
- break;
|
|
|
|
|
- case parseInt(res.length) <= 25 && parseInt(res.length) > 16:
|
|
|
|
|
- numberClass = 'twentyFive';
|
|
|
|
|
- break;
|
|
|
|
|
- case parseInt(res.length) >= 26:
|
|
|
|
|
|
|
+ case parseInt(res.length) > 2:
|
|
|
numberClass = 'twentyFive';
|
|
numberClass = 'twentyFive';
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
@@ -411,13 +377,13 @@ export default {
|
|
|
that.studentsClassName[i] = {
|
|
that.studentsClassName[i] = {
|
|
|
name: numberClass + ' ' + colorClass,
|
|
name: numberClass + ' ' + colorClass,
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (type == 1) {
|
|
|
|
|
- that.RedstudentsClassName = that.studentsClassName;
|
|
|
|
|
- } else {
|
|
|
|
|
- that.BluestudentsClassName = that.studentsClassName;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (type == 1) {
|
|
|
|
|
+ that.RedstudentsClassName = that.studentsClassName;
|
|
|
|
|
+ that.redPeron = parseInt(res.length);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ that.BluestudentsClassName = that.studentsClassName;
|
|
|
|
|
+ that.bluePerson = parseInt(res.length)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 计算团队竞技课持续时间
|
|
// 计算团队竞技课持续时间
|
|
@@ -494,7 +460,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
- Headside, newRecord, newStudent, student
|
|
|
|
|
|
|
+ Headside, newRecord, newStudent, pkstudent
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -646,23 +612,43 @@ export default {
|
|
|
.userPart {
|
|
.userPart {
|
|
|
@include cube;
|
|
@include cube;
|
|
|
width: 88%;
|
|
width: 88%;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ bottom: 1rem;
|
|
|
|
|
+ height: 7.45rem;
|
|
|
|
|
|
|
|
.lt {
|
|
.lt {
|
|
|
|
|
+ @include cube;
|
|
|
|
|
+ position: relative;
|
|
|
width: 45%;
|
|
width: 45%;
|
|
|
- min-height: 6rem;
|
|
|
|
|
|
|
+ height: 100%;
|
|
|
float: left;
|
|
float: left;
|
|
|
|
|
|
|
|
.bottomLine {
|
|
.bottomLine {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ @include cube;
|
|
|
|
|
+ height: 0.25rem;
|
|
|
|
|
+ border-radius: 18px;
|
|
|
|
|
+ opacity: 0.8;
|
|
|
background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(209, 17, 34, 0.62) 100%);
|
|
background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(209, 17, 34, 0.62) 100%);
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.rt {
|
|
.rt {
|
|
|
|
|
+ @include cube;
|
|
|
|
|
+ position: relative;
|
|
|
width: 45%;
|
|
width: 45%;
|
|
|
- min-height: 6rem;
|
|
|
|
|
|
|
+ height: 100%;
|
|
|
float: right;
|
|
float: right;
|
|
|
|
|
|
|
|
.bottomLine {
|
|
.bottomLine {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ @include cube;
|
|
|
|
|
+ height: 0.25rem;
|
|
|
|
|
+ border-radius: 18px;
|
|
|
|
|
+ opacity: 0.8;
|
|
|
background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 134, 232, 0.62) 100%);
|
|
background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 134, 232, 0.62) 100%);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -675,13 +661,6 @@ export default {
|
|
|
font-size: 0.4rem;
|
|
font-size: 0.4rem;
|
|
|
padding-top: 11%;
|
|
padding-top: 11%;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- .bottomLine {
|
|
|
|
|
- @include cube;
|
|
|
|
|
- height: 0.75rem;
|
|
|
|
|
- border-radius: 18px;
|
|
|
|
|
- opacity: 0.8;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.icons {
|
|
.icons {
|