wolyshaw 4 tahun lalu
induk
melakukan
d53156f298
1 mengubah file dengan 4 tambahan dan 9 penghapusan
  1. 4 9
      src/views/main/schedule-branch/index.vue

+ 4 - 9
src/views/main/schedule-branch/index.vue

@@ -3,10 +3,8 @@
     <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.organId"
           placeholder="请选择分部"
         >
@@ -16,8 +14,8 @@
             :value="item.id"></el-option>
         </el-select>
       </el-form-item>
-      <el-form-item prop="teacherIdList">
-        <remote-search :commit='"setEducations"' :collapse-tags="true"  v-model='search.teacherIdList' :multiple="true" />
+      <el-form-item prop="userId">
+        <remote-search :commit='"setEducations"'  v-model='search.userId' />
       </el-form-item>
       <el-form-item prop="month">
         <el-date-picker
@@ -117,10 +115,9 @@ import pagination from "@/components/Pagination/index";
 import { inspectionQueryPage, inspectionDelete } from '@/views/main/api'
 import create from './modals/create'
 import view from './modals/view'
-import View from './modals/view.vue';
 const initSearch = {
-  organId: [],
-  teacherIdList: [],
+  organId: null,
+  userId: null,
   month: '',
 }
 export default {
@@ -184,8 +181,6 @@ export default {
       try {
         const res = await inspectionQueryPage({
           ...this.search,
-          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,
           rows: this.rules.limit,