|
@@ -208,6 +208,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="detail-right">
|
|
|
+ <!-- 签到二维码 -->
|
|
|
<Card style="width:100%" :bordered="false" v-if="trainInfo.settings.includes('sign')">
|
|
|
<p slot="title">
|
|
|
<Icon type="ios-film-outline" color="#40A8F0"></Icon>
|
|
@@ -232,6 +233,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</Card>
|
|
|
+ <!-- 签到统计 -->
|
|
|
<Card style="width:100%;margin-top:30px" :bordered="false" v-if="trainInfo.settings.includes('sign')">
|
|
|
<p slot="title">
|
|
|
<Icon type="ios-film-outline" color="#40A8F0"></Icon>
|
|
@@ -267,7 +269,7 @@
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
- <i-circle :percent="80" stroke-color="#19be6b" :size="100">
|
|
|
+ <i-circle :percent="signData.rate" stroke-color="#19be6b" :size="100">
|
|
|
<p style="font-size:30px;">{{signData.rate}}%</p>
|
|
|
<p style="font-size:12px;margin-top:10px">
|
|
|
{{$t('train.detail.signRate')}}
|
|
@@ -275,6 +277,7 @@
|
|
|
</i-circle>
|
|
|
</div>
|
|
|
</Card>
|
|
|
+ <!-- 作业统计数 -->
|
|
|
<Card style="width:100%;margin-top:30px" :bordered="false" v-if="trainInfo.settings.includes('hw')">
|
|
|
<p slot="title">
|
|
|
<Icon type="ios-film-outline" color="#40A8F0"></Icon>
|
|
@@ -301,12 +304,13 @@
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
- <i-circle :percent="80" stroke-color="#ff9900" :size="100">
|
|
|
+ <i-circle :percent="hwData.rate" stroke-color="#ff9900" :size="100">
|
|
|
<p style="font-size:30px;">{{hwData.rate}}%</p>
|
|
|
<p style="font-size:12px;margin-top:10px">{{$t('train.detail.sunmitRate')}}</p>
|
|
|
</i-circle>
|
|
|
</div>
|
|
|
</Card>
|
|
|
+ <!-- 问卷统计数据 -->
|
|
|
<Card style="width:100%;margin-top:30px" :bordered="false" v-if="trainInfo.settings.includes('survey')">
|
|
|
<p slot="title">
|
|
|
<Icon type="ios-film-outline" color="#40A8F0"></Icon>
|
|
@@ -333,12 +337,13 @@
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
- <i-circle :percent="80" stroke-color="#ff9900" :size="100">
|
|
|
+ <i-circle :percent="surveyData.rate" stroke-color="#ff9900" :size="100">
|
|
|
<p style="font-size:30px;">{{surveyData.rate}}%</p>
|
|
|
<p style="font-size:12px;margin-top:10px">{{$t('train.detail.sunmitRate')}}</p>
|
|
|
</i-circle>
|
|
|
</div>
|
|
|
</Card>
|
|
|
+ <!-- 评测统计数据 -->
|
|
|
<Card style="width:100%;margin-top:30px" :bordered="false" v-if="trainInfo.settings.includes('exam')">
|
|
|
<p slot="title">
|
|
|
<Icon type="ios-film-outline" color="#40A8F0"></Icon>
|
|
@@ -365,12 +370,13 @@
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
- <i-circle :percent="80" stroke-color="#ff9900" :size="100">
|
|
|
+ <i-circle :percent="examData.rate" stroke-color="#ff9900" :size="100">
|
|
|
<p style="font-size:30px;">{{examData.rate}}%</p>
|
|
|
<p style="font-size:12px;margin-top:10px">{{$t('train.detail.sunmitRate')}}</p>
|
|
|
</i-circle>
|
|
|
</div>
|
|
|
</Card>
|
|
|
+ <!-- 学时统计数据 -->
|
|
|
<Card style="width:100%;margin-top:30px" :bordered="false" v-if="trainInfo.owner === 'school'">
|
|
|
<p slot="title">
|
|
|
<Icon type="ios-film-outline" color="#40A8F0"></Icon>
|
|
@@ -406,8 +412,8 @@
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
- <i-circle :percent="80" :size="100">
|
|
|
- <p style="font-size:30px;">{{hourData.rate}}%</p>
|
|
|
+ <i-circle :percent="hourData.rate" :size="100">
|
|
|
+ <p style="font-size:30px;">{{hourData.rate || 0}}%</p>
|
|
|
<p style="font-size:12px;margin-top:10px">{{$t('train.detail.passRate')}}</p>
|
|
|
</i-circle>
|
|
|
</div>
|
|
@@ -771,7 +777,7 @@ export default {
|
|
|
return item.status == 2
|
|
|
}).length
|
|
|
data.uncheck = data.all - data.pass - data.fail
|
|
|
- data.rate = (data.pass * 100 / data.all).toFixed(1)
|
|
|
+ data.rate = data.all ? (data.pass * 100 / data.all).toFixed(1) : 0
|
|
|
return data
|
|
|
},
|
|
|
surveyData() {
|
|
@@ -1344,7 +1350,7 @@ export default {
|
|
|
// let accUrl = process.env.NODE_ENV == 'development' ? 'https://account-rc.teammodel.cn' : 'https://account.teammodel.cn'
|
|
|
// let accUrl = 'https://account.teammodel.cn'
|
|
|
// let loginUrl = `${accUrl}?response_type=code&client_id=${clientId}&state=${state}&nonce=${nonce}&redirect_uri=${url}`
|
|
|
- //window.open(url)
|
|
|
+ // window.open(url)
|
|
|
return url
|
|
|
},
|
|
|
fullQRcode() {
|