bug
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <ai-list class="notice"> |   <ai-list class="notice"> | ||||||
|     <template slot="title"> |     <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> | ||||||
|     <template slot="content"> |     <template slot="content"> | ||||||
|       <ai-search-bar class="search-bar"> |       <ai-search-bar class="search-bar"> | ||||||
| @@ -89,6 +89,7 @@ | |||||||
|           current: 1, |           current: 1, | ||||||
|           size: 10, |           size: 10, | ||||||
|           title: '', |           title: '', | ||||||
|  |           areaId: '', | ||||||
|           examineStatus: '' |           examineStatus: '' | ||||||
|         }, |         }, | ||||||
|         form: { |         form: { | ||||||
| @@ -109,6 +110,7 @@ | |||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     created() { |     created() { | ||||||
|  |       this.search.areaId = this.$store.state.user.info.areaId | ||||||
|       this.dict.load('qjCourseType', 'qjExamineStatus').then(() => { |       this.dict.load('qjCourseType', 'qjExamineStatus').then(() => { | ||||||
|         this.getList() |         this.getList() | ||||||
|       }) |       }) | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <ai-list class="notice"> |   <ai-list class="notice"> | ||||||
|     <template slot="title"> |     <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> | ||||||
|     <template slot="content"> |     <template slot="content"> | ||||||
|       <ai-search-bar class="search-bar"> |       <ai-search-bar class="search-bar"> | ||||||
| @@ -86,7 +86,8 @@ | |||||||
|           current: 1, |           current: 1, | ||||||
|           size: 10, |           size: 10, | ||||||
|           examinationName: '', |           examinationName: '', | ||||||
|           status: '' |           status: '', | ||||||
|  |           areaId: '' | ||||||
|         }, |         }, | ||||||
|         isShow: false, |         isShow: false, | ||||||
|         total: 10, |         total: 10, | ||||||
| @@ -122,6 +123,7 @@ | |||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     created() { |     created() { | ||||||
|  |       this.search.areaId = this.$store.state.user.info.areaId | ||||||
|       this.dict.load('qjEIStatus').then(() => { |       this.dict.load('qjEIStatus').then(() => { | ||||||
|         this.getList() |         this.getList() | ||||||
|       }) |       }) | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <ai-list class="AppLearningStatistics"> |   <ai-list class="AppLearningStatistics"> | ||||||
|     <template slot="title"> |     <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> | ||||||
|     <template slot="content"> |     <template slot="content"> | ||||||
|       <ai-card title="关键数据"> |       <ai-card title="关键数据"> | ||||||
| @@ -215,7 +215,8 @@ | |||||||
|         tableData1: [], |         tableData1: [], | ||||||
|         tableData2: [], |         tableData2: [], | ||||||
|         statisticsKeyData: {}, |         statisticsKeyData: {}, | ||||||
|         statisticsUse: {} |         statisticsUse: {}, | ||||||
|  |         areaId: '' | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
| @@ -224,19 +225,26 @@ | |||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     created () { |     created () { | ||||||
|       this.search1.areaId = this.user.info.areaId |       this.areaId = this.user.info.areaId | ||||||
|       this.getStatisticsKeyData() |       this.getStatisticsKeyData() | ||||||
|       this.getStatisticsHot() |       this.getStatisticsHot() | ||||||
|       this.getStatisticsUse() |       this.getStatisticsUse() | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     methods: { |     methods: { | ||||||
|  |       onChange () { | ||||||
|  |         this.getStatisticsKeyData() | ||||||
|  |         this.getStatisticsHot() | ||||||
|  |         this.getStatisticsUse() | ||||||
|  |       }, | ||||||
|  |  | ||||||
|       getStatisticsKeyData () { |       getStatisticsKeyData () { | ||||||
|         this.instance.post(`/app/appexaminationinfo/statisticsKeyData`, null, { |         this.instance.post(`/app/appexaminationinfo/statisticsKeyData`, null, { | ||||||
|           params: { |           params: { | ||||||
|             ...this.search1, |             ...this.search1, | ||||||
|             beginDate: this.search1.date[0], |             beginDate: this.search1.date[0], | ||||||
|             endDate: this.search1.date[1] |             endDate: this.search1.date[1], | ||||||
|  |             areaId: this.areaId | ||||||
|           } |           } | ||||||
|         }).then(res => { |         }).then(res => { | ||||||
|           if (res.code == 0) { |           if (res.code == 0) { | ||||||
| @@ -250,7 +258,8 @@ | |||||||
|           params: { |           params: { | ||||||
|             ...this.search4, |             ...this.search4, | ||||||
|             beginDate: this.search4.date[0], |             beginDate: this.search4.date[0], | ||||||
|             endDate: this.search4.date[1] |             endDate: this.search4.date[1], | ||||||
|  |             areaId: this.areaId | ||||||
|           } |           } | ||||||
|         }).then(res => { |         }).then(res => { | ||||||
|           if (res.code == 0) { |           if (res.code == 0) { | ||||||
| @@ -264,6 +273,7 @@ | |||||||
|           params: { |           params: { | ||||||
|             ...this.search2, |             ...this.search2, | ||||||
|             size: 20, |             size: 20, | ||||||
|  |             areaId: this.areaId, | ||||||
|             type: this.type, |             type: this.type, | ||||||
|             beginDate: this.search2.date[0], |             beginDate: this.search2.date[0], | ||||||
|             endDate: this.search2.date[1] |             endDate: this.search2.date[1] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user