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="notice">
<template slot="title">
<ai-title title="在线课程" isShowBottomBorder></ai-title>
<ai-title title="在线课程" isShowBottomBorder isShowArea v-model="search.areaId" :instance="instance" @change="search.current = 1, getList()"></ai-title>
</template>
<template slot="content">
<ai-search-bar class="search-bar">
@@ -89,6 +89,7 @@
current: 1,
size: 10,
title: '',
areaId: '',
examineStatus: ''
},
form: {
@@ -109,6 +110,7 @@
},
created() {
this.search.areaId = this.$store.state.user.info.areaId
this.dict.load('qjCourseType', 'qjExamineStatus').then(() => {
this.getList()
})

View File

@@ -1,7 +1,7 @@
<template>
<ai-list class="notice">
<template slot="title">
<ai-title title="考试管理" isShowBottomBorder></ai-title>
<ai-title title="考试管理" isShowBottomBorder isShowArea v-model="search.areaId" :instance="instance" @change="search.current = 1, getList()"></ai-title>
</template>
<template slot="content">
<ai-search-bar class="search-bar">
@@ -86,7 +86,8 @@
current: 1,
size: 10,
examinationName: '',
status: ''
status: '',
areaId: ''
},
isShow: false,
total: 10,
@@ -122,6 +123,7 @@
},
created() {
this.search.areaId = this.$store.state.user.info.areaId
this.dict.load('qjEIStatus').then(() => {
this.getList()
})

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]