|
@@ -2,7 +2,7 @@
|
|
|
<div class="m-container">
|
|
|
<h2>
|
|
|
<div class="squrt"></div>
|
|
|
- 课表列表
|
|
|
+ 课表列表 <filter-search @reload="reloadSearch" :keys="['searchType']" :moreKeys="['start', 'end', 'organId']"/>
|
|
|
</h2>
|
|
|
<div class="m-core">
|
|
|
<!-- 搜索类型 -->
|
|
@@ -633,7 +633,7 @@ const initSearch = {
|
|
|
organIdList: null,
|
|
|
courseStatus: null,
|
|
|
courseType: null,
|
|
|
- timer: [nowTime, nowTime], // 时间
|
|
|
+ timer: [], // 时间
|
|
|
class: null,
|
|
|
teachType: null,
|
|
|
mergeCourseType: null,
|
|
@@ -698,6 +698,15 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
+ const { query } = this.$route
|
|
|
+ if (query.start || query.end) {
|
|
|
+ this.searchForm.timer = [query.start, query.end]
|
|
|
+ } else {
|
|
|
+ this.searchForm.timer = [nowTime, nowTime]
|
|
|
+ }
|
|
|
+ if (query.organId) {
|
|
|
+ this.searchForm.organIdList = Number(query.organId)
|
|
|
+ }
|
|
|
this.$store.dispatch("setBranchs");
|
|
|
this.$store.dispatch("setTeachers");
|
|
|
this.$store.dispatch("setSchools");
|
|
@@ -710,6 +719,10 @@ export default {
|
|
|
permission(str, parent) {
|
|
|
return permission(str, parent);
|
|
|
},
|
|
|
+ reloadSearch() {
|
|
|
+ this.searchForm.timer = [nowTime, nowTime]
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
async removeCourse() {
|
|
|
if(this.deleteList.length < 1){
|
|
|
this.$message.error('请自少选择一个班级')
|
|
@@ -779,6 +792,7 @@ export default {
|
|
|
...rest,
|
|
|
page: this.rules.page,
|
|
|
rows: this.rules.limit,
|
|
|
+ searchType: this.$route.query.searchType,
|
|
|
...getTimes(creatTimer, ["createStartDate", "createEndDate"]),
|
|
|
...getTimes(timer, ["startTime", "endTime"]),
|
|
|
};
|