ソースを参照

合作单位修改

wolyshaw 4 年 前
コミット
b11e3f287f
1 ファイル変更9 行追加3 行削除
  1. 9 3
      src/views/arrearage-students/index.vue

+ 9 - 3
src/views/arrearage-students/index.vue

@@ -52,13 +52,13 @@
         </el-form-item>
         <el-form-item>
           <el-select
-            v-model.trim="searchForm.schoolId"
+            v-model.trim="searchForm.cooperationOrganId"
             clearable
             filterable
-            placeholder="请选择教学点"
+            placeholder="请选择合作单位"
           >
             <el-option
-              v-for="(item, index) in selects.schools"
+              v-for="(item, index) in cooperations"
               :key="index"
               :value="item.id"
               :label="item.name"
@@ -180,6 +180,7 @@
 import pagination from "@/components/Pagination/index";
 import list from './modals/list'
 import { permission } from '@/utils/directivePage'
+import { getCooperation } from '@/api/buildTeam'
 import { queryArrearageStudents, getNoPaymentStudentMusicGroups } from './api'
 const initSearch = {
   search: '',
@@ -187,6 +188,7 @@ const initSearch = {
   organIds: [],
   branchs: null,
   musicGroupId: null,
+  cooperationOrganId: null,
 }
 export default {
   components: {
@@ -202,6 +204,7 @@ export default {
       searchForm: {
         ...initSearch
       },
+      cooperations: [],
       rules: {
         // 分页规则
         limit: 10, // 限制显示条数
@@ -216,6 +219,9 @@ export default {
     if (query.organId) {
       this.searchForm.organIds = [Number(query.organId)]
     }
+    getCooperation({ rows: 1000 }).then((res) => {
+      this.cooperations = res.data.rows
+    })
     this.$store.dispatch('setBranchs')
     this.$store.dispatch('setSchools')
     this.FetchList()