examTeamApp/pages/score/report.vue

89 lines
2.3 KiB
Vue
Raw Permalink Normal View History

2024-05-29 16:35:45 +08:00
<template>
<view class="content">
2024-08-14 17:39:09 +08:00
<view class="time text_c bold">{{create_time}}</view>
2024-05-29 16:35:45 +08:00
<!-- 估分 -->
<view class="box">
<view class="title bold">本次估分成绩为</view>
<view class="charts">
2024-06-13 18:03:50 +08:00
<qiun-data-charts type="arcbar" :chartData="chartData" />
2024-08-13 15:27:01 +08:00
<view class="name">{{score}}</view>
2024-05-29 16:35:45 +08:00
</view>
2024-08-14 17:39:09 +08:00
<view class="title bold" v-if="Max_score">该地区体育总成绩为:{{Max_score}}</view>
2024-05-29 16:35:45 +08:00
</view>
<!-- -->
2024-06-13 18:03:50 +08:00
<view v-for="(item,index) in selectllist">
2024-08-13 15:27:01 +08:00
<view class="titleName bold mt-15 ml-15 size16">{{item.name}}</view>
2024-06-13 18:03:50 +08:00
<view class="indexCarList">
<view class="card" v-for="(ite,ind) in item.list">
<view class="title">
<view class="name">{{ite.name}}</view>
2024-05-29 16:35:45 +08:00
</view>
2024-07-22 14:13:19 +08:00
<view class="item3" v-for="(it,id) in ite.list" v-if="ite.list.length>1">
2024-06-13 18:03:50 +08:00
<view class="name">{{it.name}}</view>
<view class="weight">
2024-07-22 14:13:19 +08:00
<view class="input">{{it.value?it.value:'-'}}</view>
<view class="cblue bold">{{it.proportion_value?it.proportion_value:'-'}}</view>
2024-08-13 15:27:01 +08:00
<view class="cblue bold">{{it.total_score?it.total_score:'-'}}</view>
2024-05-29 16:35:45 +08:00
</view>
</view>
2024-06-13 18:03:50 +08:00
2024-05-29 16:35:45 +08:00
</view>
</view>
</view>
</view>
</template>
<script>
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue';
export default {
data() {
return {
chartData: {
series: [{
name: "正确率",
color: "#4687F9",
2024-09-03 09:52:19 +08:00
data: 0.8
2024-05-29 16:35:45 +08:00
}]
},
2024-06-13 18:03:50 +08:00
score: 0,
2024-08-13 15:27:01 +08:00
Max_score: 0,
2024-06-13 18:03:50 +08:00
create_time: "",
selectllist: []
2024-05-29 16:35:45 +08:00
}
},
components: {
qiunDataCharts
},
2024-06-13 18:03:50 +08:00
onLoad(options) {
let that = this
that.getList(options.id)
2024-05-29 16:35:45 +08:00
},
methods: {
2024-06-13 18:03:50 +08:00
getList(id) {
let that = this
that.$model.getSportshistorydetail({
id: Number(id),
}).then((res) => {
console.log("历史记录详情", res)
if (res.code != 0) return
that.selectllist = res.data.list
2024-07-22 14:13:19 +08:00
that.score = Number(res.data.score)
2024-08-13 15:27:01 +08:00
that.Max_score = res.data.max_score
2024-06-13 18:03:50 +08:00
that.create_time = res.data.create_time
2024-09-03 09:52:19 +08:00
that.chartData.series[0].data = Number(res.data.score) / Number(that.Max_score)
2024-05-29 16:35:45 +08:00
})
},
2024-06-13 18:03:50 +08:00
2024-05-29 16:35:45 +08:00
}
}
</script>
<style scoped lang="scss">
@import "@/scss/report.scss";
2024-05-29 16:35:45 +08:00
.content {
min-height: 100vh;
2024-06-13 18:03:50 +08:00
padding-top: 15px;
2024-05-29 16:35:45 +08:00
padding-bottom: 15px;
background-color: #f7f7f7;
}
</style>