This commit is contained in:
yanran200730
2023-02-20 10:55:12 +08:00
parent d23eb73948
commit 5bac0e1183
3 changed files with 22 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
<template>
<ai-list class="AppLearningStatistics">
<template slot="title">
<ai-title title="学习统计" isShowBottomBorder></ai-title>
<ai-title title="学习统计" isShowBottomBorder isShowArea v-model="areaId" :instance="instance" @change="search.current = 1, onChange()"></ai-title>
</template>
<template slot="content">
<ai-card title="关键数据">
@@ -215,7 +215,8 @@
tableData1: [],
tableData2: [],
statisticsKeyData: {},
statisticsUse: {}
statisticsUse: {},
areaId: ''
}
},
@@ -224,19 +225,26 @@
},
created () {
this.search1.areaId = this.user.info.areaId
this.areaId = this.user.info.areaId
this.getStatisticsKeyData()
this.getStatisticsHot()
this.getStatisticsUse()
},
methods: {
onChange () {
this.getStatisticsKeyData()
this.getStatisticsHot()
this.getStatisticsUse()
},
getStatisticsKeyData () {
this.instance.post(`/app/appexaminationinfo/statisticsKeyData`, null, {
params: {
...this.search1,
beginDate: this.search1.date[0],
endDate: this.search1.date[1]
endDate: this.search1.date[1],
areaId: this.areaId
}
}).then(res => {
if (res.code == 0) {
@@ -250,7 +258,8 @@
params: {
...this.search4,
beginDate: this.search4.date[0],
endDate: this.search4.date[1]
endDate: this.search4.date[1],
areaId: this.areaId
}
}).then(res => {
if (res.code == 0) {
@@ -264,6 +273,7 @@
params: {
...this.search2,
size: 20,
areaId: this.areaId,
type: this.type,
beginDate: this.search2.date[0],
endDate: this.search2.date[1]