|
@@ -1,118 +1,111 @@
|
|
-<template>
|
|
|
|
- <view class="page-box">
|
|
|
|
- <back></back>
|
|
|
|
-
|
|
|
|
- <view class="children-box">
|
|
|
|
- <image class="children-avatar" :src="childreninfo.avatar"></image>
|
|
|
|
- <view class="children-msg">
|
|
|
|
- <view class="children-name">{{childreninfo.name}}</view>
|
|
|
|
- <view class="children-class">{{childreninfo.class}}</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <!-- 数据分析模块 -->
|
|
|
|
- <view class="data-box">
|
|
|
|
- <view class="data-box-item"
|
|
|
|
- v-bind:style="{background: gradeData.recentTestChart.recentRank.series[0].color}">
|
|
|
|
- <view class="item-text">本次考试超过年级中:</view>
|
|
|
|
- <view class="item-number">{{gradeData.recentTestChart.recentRank.series[0].data/0.01}}% 同学</view>
|
|
|
|
- <view class="analysis-box">
|
|
|
|
- <view v-if="gradeData.recentTestChart.recentRank.series[0].data<0.4"
|
|
|
|
- class="t-icon t-icon-jiangbei-20"></view>
|
|
|
|
- <view
|
|
|
|
- v-if="gradeData.recentTestChart.recentRank.series[0].data>=0.4 && gradeData.recentTestChart.recentRank.series[0].data<0.7"
|
|
|
|
- class="t-icon t-icon-jiangbei-19"></view>
|
|
|
|
- <view v-if="gradeData.recentTestChart.recentRank.series[0].data>=0.7"
|
|
|
|
- class="t-icon t-icon-jiangbei-18"></view>
|
|
|
|
- <view v-if="gradeData.recentTestChart.recentRank.series[0].data<0.4" class="icon-text-item">要加把劲!
|
|
|
|
- </view>
|
|
|
|
- <view
|
|
|
|
- v-if="gradeData.recentTestChart.recentRank.series[0].data>=0.4 && gradeData.recentTestChart.recentRank.series[0].data<0.7"
|
|
|
|
- class="icon-text-item">再接再厉!</view>
|
|
|
|
- <view v-if="gradeData.recentTestChart.recentRank.series[0].data>=0.7" class="icon-text-item">
|
|
|
|
- 非常优秀!</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <view class="data-box-item"
|
|
|
|
- v-bind:style="{background: gradeData.recentTestChart.recentRank.series[1].color}">
|
|
|
|
- <view class="item-text">本次考试超过班级中:</view>
|
|
|
|
- <view class="item-number">{{gradeData.recentTestChart.recentRank.series[1].data/0.01}}% 同学</view>
|
|
|
|
- <view class="analysis-box">
|
|
|
|
- <view v-if="gradeData.recentTestChart.recentRank.series[1].data<0.4"
|
|
|
|
- class="t-icon t-icon-jiangbei-20"></view>
|
|
|
|
- <view
|
|
|
|
- v-if="gradeData.recentTestChart.recentRank.series[1].data>=0.4 && gradeData.recentTestChart.recentRank.series[1].data<0.7"
|
|
|
|
- class="t-icon t-icon-jiangbei-19"></view>
|
|
|
|
- <view v-if="gradeData.recentTestChart.recentRank.series[1].data>=0.7"
|
|
|
|
- class="t-icon t-icon-jiangbei-18"></view>
|
|
|
|
- <view v-if="gradeData.recentTestChart.recentRank.series[1].data<0.4" class="icon-text-item">还需提升!
|
|
|
|
- </view>
|
|
|
|
- <view
|
|
|
|
- v-if="gradeData.recentTestChart.recentRank.series[1].data>=0.4 && gradeData.recentTestChart.recentRank.series[1].data<0.7"
|
|
|
|
- class="icon-text-item">继续努力!</view>
|
|
|
|
- <view v-if="gradeData.recentTestChart.recentRank.series[1].data>=0.7" class="icon-text-item">
|
|
|
|
- 格外出色!</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- <!-- 图表列表 -->
|
|
|
|
- <!-- 近期成绩对比自身 -->
|
|
|
|
- <view class="chart-container">
|
|
|
|
- <view class="chart-name">
|
|
|
|
- <view class="t-icon t-icon-castle"></view>
|
|
|
|
- <text class="chart-name-text">近期成绩对比</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="charts-box">
|
|
|
|
- <qiun-data-charts type="column" :chartData="gradeData.recentTestChart.recentComparison"
|
|
|
|
- :loadingType="4" tooltipFormat='tooltipScore' :canvas2d="true" canvasId="canvasId19998"/>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <!-- 单次排行分析 -->
|
|
|
|
- <view class="chart-container">
|
|
|
|
- <view class="chart-name">
|
|
|
|
- <view class="t-icon t-icon-waterfall"></view>
|
|
|
|
- <text class="chart-name-text">近期排行占比分析</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="charts-box" style="margin: 20rpx 0 -20rpx 0;">
|
|
|
|
- <qiun-data-charts type="arcbar" :chartData="gradeData.recentTestChart.recentRank" :loadingType="4"
|
|
|
|
- tooltipFormat='tooltipScore' :canvas2d="true" canvasId="canvasId312412"/>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- </view>
|
|
|
|
-</template>
|
|
|
|
-
|
|
|
|
-<script>
|
|
|
|
- import {
|
|
|
|
- mapState
|
|
|
|
- } from 'vuex'
|
|
|
|
-
|
|
|
|
- export default {
|
|
|
|
- computed: {
|
|
|
|
- ...mapState('m_children', ['childreninfo', 'semester']),
|
|
|
|
- ...mapState('m_chart', ['gradeData'])
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- data() {
|
|
|
|
- return {};
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- onLoad() {}
|
|
|
|
- }
|
|
|
|
-</script>
|
|
|
|
-
|
|
|
|
-<style lang="scss">
|
|
|
|
- @import '@/gradepkg/common/chartpage.scss';
|
|
|
|
- @import '@/gradepkg/common/databox.scss';
|
|
|
|
-
|
|
|
|
- .page-box {
|
|
|
|
- background: linear-gradient($color-yellow, $page-background-color);
|
|
|
|
- }
|
|
|
|
|
|
+<template>
|
|
|
|
+ <view class="page-box">
|
|
|
|
+ <back></back>
|
|
|
|
+
|
|
|
|
+ <view class="children-box">
|
|
|
|
+ <image class="children-avatar" :src="childreninfo.avatar"></image>
|
|
|
|
+ <view class="children-msg">
|
|
|
|
+ <view class="children-name">{{childreninfo.name}}</view>
|
|
|
|
+ <view class="children-class">{{childreninfo.class}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <!-- 数据分析模块 -->
|
|
|
|
+ <view class="data-box">
|
|
|
|
+ <view class="data-box-item" v-for="(item,index) in analysisData" :key="index" :style="{background: item.color}">
|
|
|
|
+ <view class="item-text">{{item.title}}</view>
|
|
|
|
+ <view class="item-number">{{item.data/0.01}}% 同学</view>
|
|
|
|
+ <view class="analysis-box">
|
|
|
|
+ <view v-if="item.data<0.4" class="t-icon t-icon-jiangbei-5"></view>
|
|
|
|
+ <view v-if="item.data>=0.4 && item.data<0.7" class="t-icon t-icon-jiangbei-4"></view>
|
|
|
|
+ <view v-if="item.data>=0.7" class="t-icon t-icon-jiangbei-3"></view>
|
|
|
|
+ <view v-if="item.data<0.4" class="icon-text-item">要加把劲!</view>
|
|
|
|
+ <view v-if="item.data>=0.4 && item.data<0.7" class="icon-text-item">再接再厉!</view>
|
|
|
|
+ <view v-if="item.data>=0.7" class="icon-text-item">非常优秀!</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- 图表列表 -->
|
|
|
|
+ <!-- 近期成绩对比自身 -->
|
|
|
|
+ <view class="chart-container">
|
|
|
|
+ <view class="chart-name">
|
|
|
|
+ <view class="t-icon t-icon-castle"></view>
|
|
|
|
+ <text class="chart-name-text">近期成绩对比</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="charts-box">
|
|
|
|
+ <qiun-data-charts type="column" :chartData="gradeData.recentTestChart.recentComparison" :loadingType="4"
|
|
|
|
+ tooltipFormat='tooltipScore' :canvas2d="true" canvasId="canvasId19998" />
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 单次排行分析 -->
|
|
|
|
+ <view class="chart-container">
|
|
|
|
+ <view class="chart-name">
|
|
|
|
+ <view class="t-icon t-icon-waterfall"></view>
|
|
|
|
+ <text class="chart-name-text">近期排行占比分析</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="charts-box" style="margin: 20rpx 0 -20rpx 0;">
|
|
|
|
+ <qiun-data-charts type="arcbar" :chartData="gradeData.recentTestChart.recentRank" :loadingType="4"
|
|
|
|
+ tooltipFormat='tooltipScore' :canvas2d="true" canvasId="canvasId312412" />
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ import {
|
|
|
|
+ mapState
|
|
|
|
+ } from 'vuex'
|
|
|
|
+
|
|
|
|
+ export default {
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState('m_children', ['childreninfo']),
|
|
|
|
+ ...mapState('m_chart', ['gradeData'])
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ //分析模块数据
|
|
|
|
+ analysisData:
|
|
|
|
+ [{
|
|
|
|
+ title: '本次考试超过年级中:',
|
|
|
|
+ data: '',
|
|
|
|
+ color: '',
|
|
|
|
+ },{
|
|
|
|
+ title: '本次考试超过班级中:',
|
|
|
|
+ data: '',
|
|
|
|
+ color: '',
|
|
|
|
+ }],
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ getData(){
|
|
|
|
+ this.analysisData[0].data =
|
|
|
|
+ this.gradeData.recentTestChart.recentRank.series[0].data
|
|
|
|
+ this.analysisData[1].data =
|
|
|
|
+ this.gradeData.recentTestChart.recentRank.series[1].data
|
|
|
|
+ this.analysisData[0].color =
|
|
|
|
+ this.gradeData.recentTestChart.recentRank.series[0].color
|
|
|
|
+ this.analysisData[1].color =
|
|
|
|
+ this.gradeData.recentTestChart.recentRank.series[1].color
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ onLoad() {
|
|
|
|
+ this.getData()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style lang="scss">
|
|
|
|
+ @import '@/gradepkg/common/chartpage.scss';
|
|
|
|
+
|
|
|
|
+ .page-box {
|
|
|
|
+ background: $color-yellow;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|