|
@@ -7,50 +7,68 @@
|
|
|
<view class="mini-chart-list">
|
|
|
|
|
|
<view class="mini-chart-item">
|
|
|
- <mainline-mini-chart></mainline-mini-chart>
|
|
|
- </view>
|
|
|
+ <view class="mainchart-container">
|
|
|
+ <view class="mainchart-name">
|
|
|
+ <view class="t-icon t-icon-xtubiao-4"></view>
|
|
|
+ <text class="mainchart-text">学期成绩走势</text>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="mini-chart-item" @click="navLineChart">
|
|
|
- <line-mini-chart></line-mini-chart>
|
|
|
+ <view class="mainchart-box">
|
|
|
+ <qiun-data-charts class="chart" :canvas2d='true' canvasId='canvans5' type="mainline"
|
|
|
+ :chartData="gradeData.mainLineChart" :loadingType="4" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="mini-chart-item" @click="navAreaChart">
|
|
|
- <area-mini-chart></area-mini-chart>
|
|
|
- </view>
|
|
|
+ <view class="mini-chart-item">
|
|
|
+ <view class="chart-container" @click="navLineChart">
|
|
|
+ <view class="chart-name">
|
|
|
+ <view class="t-icon t-icon-xtubiao-4"></view>
|
|
|
+ <text class="chart-name-text">学期走势</text>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="mini-chart-item" @click="navColumnChart">
|
|
|
- <column-mini-chart></column-mini-chart>
|
|
|
+ <view class="charts-box">
|
|
|
+ <qiun-data-charts type="mini-line" :chartData="gradeData.semesterLineChart.lineComparison"
|
|
|
+ :loadingType="4" background="none" :tapLegend="false" :canvas2d='true'
|
|
|
+ canvasId='canvans3' />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 按钮区域 -->
|
|
|
<view class="mini-chart-item">
|
|
|
- <view class="item-i" @click="navRoseChart">
|
|
|
- <view class="item-container">
|
|
|
- <view class="chart-name">
|
|
|
- <view class="t-icon t-icon-xtubiao-"></view>
|
|
|
- <text class="chart-name-text">优劣科目分析</text>
|
|
|
- </view>
|
|
|
+ <view class="chart-container" @click="navAreaChart">
|
|
|
+ <view class="chart-name">
|
|
|
+ <view class="t-icon t-icon-xtubiao-4"></view>
|
|
|
+ <text class="chart-name-text">单科走势</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
- <view class="item-i" @click="navRadarChart">
|
|
|
- <view class="item-container">
|
|
|
- <view class="chart-name">
|
|
|
- <view class="t-icon t-icon-xtubiao-3"></view>
|
|
|
- <text class="chart-name-text">考试能力分析</text>
|
|
|
- </view>
|
|
|
+ <view class="charts-box">
|
|
|
+ <qiun-data-charts type="mini-area" :chartData="gradeData.subjectAreaChart.areaComparison"
|
|
|
+ :loadingType="4" background="none" :tapLegend="false" :canvas2d='true'
|
|
|
+ canvasId='canvans1' />
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="mini-chart-item">
|
|
|
+ <view class="chart-container" @click="navColumnChart">
|
|
|
+ <view class="chart-name">
|
|
|
+ <view class="t-icon t-icon-xtubiao-2"></view>
|
|
|
+ <text class="chart-name-text">最近成绩</text>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="item-i" @click="navArcbarChart">
|
|
|
- <view class="item-container">
|
|
|
- <view class="chart-name">
|
|
|
- <view class="t-icon t-icon-xtubiao-6"></view>
|
|
|
- <text class="chart-name-text">成绩占比分析</text>
|
|
|
- </view>
|
|
|
+ <view class="charts-box">
|
|
|
+ <qiun-data-charts type="mini-column" :chartData="gradeData.recentColumnChart.columnComparison"
|
|
|
+ :loadingType="4" background="none" :tapLegend="false" :canvas2d='true'
|
|
|
+ canvasId='canvans2' />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- 分析模块 -->
|
|
|
+ <view class="mini-chart-item">
|
|
|
+ <analysis-module></analysis-module>
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
</view>
|
|
|
<!-- 成绩表单 -->
|
|
@@ -103,27 +121,6 @@
|
|
|
url: "/gradepkg/line-chart/line-chart"
|
|
|
})
|
|
|
},
|
|
|
- //导航玫瑰图页面
|
|
|
- navRoseChart(e) {
|
|
|
- console.log(e);
|
|
|
- uni.navigateTo({
|
|
|
- url: "/gradepkg/rose-chart/rose-chart"
|
|
|
- })
|
|
|
- },
|
|
|
- //导航雷达图页面
|
|
|
- navRadarChart(e) {
|
|
|
- console.log(e);
|
|
|
- uni.navigateTo({
|
|
|
- url: "/gradepkg/radar-chart/radar-chart"
|
|
|
- })
|
|
|
- },
|
|
|
- //导航到进度条页面
|
|
|
- navArcbarChart(e) {
|
|
|
- console.log(e);
|
|
|
- uni.navigateTo({
|
|
|
- url: "/gradepkg/arcbar-chart/arcbar-chart"
|
|
|
- })
|
|
|
- },
|
|
|
//更新时间戳
|
|
|
getTimeStamp() {
|
|
|
var date = new Date(),
|
|
@@ -135,6 +132,7 @@
|
|
|
onLoad() {
|
|
|
this.getTimeStamp()
|
|
|
},
|
|
|
+ //刷新页面
|
|
|
onPullDownRefresh() {
|
|
|
this.getTimeStamp()
|
|
|
console.log('refresh');
|
|
@@ -147,91 +145,129 @@
|
|
|
|
|
|
<style lang="scss">
|
|
|
.chart-list-container {
|
|
|
+ width: 100%;
|
|
|
height: 100%;
|
|
|
- overflow-x: hidden;
|
|
|
+ overflow-x:hidden; //隐藏多余的页面
|
|
|
|
|
|
.home-topinfo {
|
|
|
background: linear-gradient(#ff8caf, #f1f3f5);
|
|
|
}
|
|
|
|
|
|
+ //缩略图列表
|
|
|
.mini-chart-list {
|
|
|
display: flex;
|
|
|
- flex-direction: row;
|
|
|
- justify-content: center;
|
|
|
align-items: center;
|
|
|
flex-wrap: wrap;
|
|
|
- margin: -100rpx 22rpx 0 22rpx;
|
|
|
+ margin: -100rpx 20rpx 0 20rpx;
|
|
|
justify-content: space-between;
|
|
|
|
|
|
.mini-chart-item {
|
|
|
- margin-top: 22rpx;
|
|
|
+ margin: 10rpx 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- justify-content: space-between;
|
|
|
-
|
|
|
- .item-i {
|
|
|
- margin: -10rpx 0;
|
|
|
-
|
|
|
- .item-container {
|
|
|
- border-radius: 16rpx;
|
|
|
- background-color: #FFFFFF;
|
|
|
- box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
|
|
|
- width: 340rpx;
|
|
|
- height: auto;
|
|
|
-
|
|
|
- .chart-name {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: flex-start;
|
|
|
- width: 100%;
|
|
|
- margin: 20rpx 0rpx 20rpx 40rpx;
|
|
|
-
|
|
|
- .chart-name-text {
|
|
|
- margin: 26rpx;
|
|
|
- font-size: 30rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #3B4144;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .t-icon {
|
|
|
- width: 40rpx;
|
|
|
- height: 40rpx;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .table-card {
|
|
|
- margin: 20rpx 22rpx;
|
|
|
- border-radius: 16rpx;
|
|
|
+ //总成绩折线图
|
|
|
+ .mainchart-container {
|
|
|
+ border-radius: 16rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex-direction: column;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .mainchart-name {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
- flex-direction: column;
|
|
|
- background-color: #FFFFFF;
|
|
|
- box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
|
|
|
-
|
|
|
- .table-name {
|
|
|
- width: 100%;
|
|
|
- text-align: left;
|
|
|
- margin: 20rpx 0 0 50rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
+ justify-content: flex-start;
|
|
|
+ width: 100%;
|
|
|
+ margin: 20rpx 0 20rpx 40rpx;
|
|
|
+
|
|
|
+ .mainchart-text {
|
|
|
+ margin-left: 20rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
font-weight: bold;
|
|
|
color: #3B4144;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .mainchart-box {
|
|
|
+ width: 710rpx;
|
|
|
+ height: 300rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //缩略图
|
|
|
+ .chart-container {
|
|
|
+ border-radius: 16rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex-direction: column;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
|
|
|
+ width: 347rpx;
|
|
|
+ height: 345rpx;
|
|
|
+
|
|
|
+ .chart-name {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-start;
|
|
|
+ width: 100%;
|
|
|
+ margin: 20rpx 0 35rpx 40rpx;
|
|
|
|
|
|
- .table-name-text {
|
|
|
- font-size: 30rpx;
|
|
|
- margin-left: 20rpx;
|
|
|
- }
|
|
|
+ .chart-name-text {
|
|
|
+ margin-left: 20rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #3B4144;
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ .charts-box {
|
|
|
+ width: 100%;
|
|
|
+ height: 250rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //表格
|
|
|
+ .table-card {
|
|
|
+ margin: 10rpx 20rpx;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex-direction: column;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
|
|
|
|
|
|
- .table {
|
|
|
- margin: 20rpx;
|
|
|
- width: 90%;
|
|
|
+ .table-name {
|
|
|
+ width: 100%;
|
|
|
+ text-align: left;
|
|
|
+ margin: 20rpx 0 0 50rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #3B4144;
|
|
|
+
|
|
|
+ .table-name-text {
|
|
|
+ font-size: 30rpx;
|
|
|
+ margin-left: 20rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .table {
|
|
|
+ margin: 20rpx;
|
|
|
+ width: 92%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //图标
|
|
|
+ .t-icon {
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
}
|
|
|
</style>
|