|
@@ -7,7 +7,7 @@
|
|
|
<train-model ref="trainModel1" @onLoad="onLoad" :active="active" :defaultTime="0" />
|
|
|
</van-tab>
|
|
|
<van-tab title="待回访学员" name="visited">
|
|
|
- <train-model ref="trainModel2" @onLoad="onLoad" :active="active" :defaultTime="-1" />
|
|
|
+ <train-model ref="trainModel2" @onLoad="onLoad" :playTime="playTime" :trainNum="trainNum" :active="active" :defaultTime="-1" />
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
|
</van-sticky>
|
|
@@ -62,6 +62,7 @@ import dayjs from "dayjs";
|
|
|
import { browser } from "@/common/common";
|
|
|
import { countStudentTrain } from './api.js'
|
|
|
import trainModel from './trainModel.vue'
|
|
|
+import { sysTenantConfig } from '../rules/api'
|
|
|
export default {
|
|
|
components: { MHeader, MEmpty, trainModel },
|
|
|
data() {
|
|
@@ -81,9 +82,11 @@ export default {
|
|
|
// 类型为回访学员时
|
|
|
formatEndTime: null,
|
|
|
formatStartTime: null,
|
|
|
+ trainNum: 0,
|
|
|
+ playTime: 0,
|
|
|
};
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ async mounted() {
|
|
|
let params = this.$route.query;
|
|
|
if (params.Authorization) {
|
|
|
localStorage.setItem("Authorization", decodeURI(params.Authorization));
|
|
@@ -93,7 +96,17 @@ export default {
|
|
|
this.headerStatus = false;
|
|
|
}
|
|
|
document.title = '训练统计'
|
|
|
-
|
|
|
+ try {
|
|
|
+ let res = await sysTenantConfig({ group: 'DAYA_BASIC' })
|
|
|
+ const { data } = res.data
|
|
|
+ data.forEach(item => {
|
|
|
+ if(item.paramName == 'student_cloud_teacher_train_num') {
|
|
|
+ this.trainNum = item.paranValue
|
|
|
+ } else if(item.paramName == 'student_cloud_teacher_total_play_time') {
|
|
|
+ this.playTime = item.paranValue
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } catch(e) {}
|
|
|
// this.getList()
|
|
|
},
|
|
|
methods: {
|