|
@@ -1,13 +1,13 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <save-form inline :model="search" @submit="submit" @reset="reset">
|
|
|
+ <save-form inline :model="search" @submit="submit" @reset="reset" saveKey="/main/main/schedule-branch">
|
|
|
<el-form-item prop="organIds">
|
|
|
<el-select
|
|
|
multiple
|
|
|
clearable
|
|
|
filterable
|
|
|
collapse-tags
|
|
|
- v-model="search.organIds"
|
|
|
+ v-model="search.organId"
|
|
|
placeholder="请选择分部"
|
|
|
>
|
|
|
<el-option v-for="(item,index) in selects.branchs"
|
|
@@ -16,8 +16,8 @@
|
|
|
:value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="organIds">
|
|
|
- <remote-search :commit='"setTeachers"' :collapse-tags="true" v-model='search.teacherIdList' :multiple="true" />
|
|
|
+ <el-form-item prop="teacherIdList">
|
|
|
+ <remote-search :commit='"setEducations"' :collapse-tags="true" v-model='search.teacherIdList' :multiple="true" />
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="month">
|
|
|
<el-date-picker
|
|
@@ -70,6 +70,7 @@
|
|
|
</el-table>
|
|
|
<pagination :total.sync="rules.total"
|
|
|
:page.sync="rules.page"
|
|
|
+ save-key="/main/main/schedule-branch"
|
|
|
:limit.sync="rules.limit"
|
|
|
:page-sizes="rules.page_size"
|
|
|
@pagination="FetchList"
|
|
@@ -118,7 +119,7 @@ import create from './modals/create'
|
|
|
import view from './modals/view'
|
|
|
import View from './modals/view.vue';
|
|
|
const initSearch = {
|
|
|
- organIds: [],
|
|
|
+ organId: [],
|
|
|
teacherIdList: [],
|
|
|
month: '',
|
|
|
}
|
|
@@ -183,7 +184,7 @@ export default {
|
|
|
try {
|
|
|
const res = await inspectionQueryPage({
|
|
|
...this.search,
|
|
|
- organIds: this.search.organIds.join(','),
|
|
|
+ organId: this.search.organId.join(','),
|
|
|
teacherIdList: this.search.teacherIdList.join(','),
|
|
|
month: this.search.month ? this.$helpers.dayjs(this.search.month).format('YYYY-MM') : undefined,
|
|
|
page: this.rules.page,
|