소스 검색

修改搜索条件

lex-xin 4 년 전
부모
커밋
6f32ac0db1

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


+ 0 - 1
dist/static/css/chunk-073ad1e6.c72b6e26.css

@@ -1 +0,0 @@
-.floor[data-v-298a73f6]{padding-right:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;width:100%;height:48px;line-height:48px;background:#edeef0;font-size:14px;color:#444;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;z-index:1}.floor .remove[data-v-298a73f6]{width:98px;background:#f85043;margin-left:164px}.floor .add[data-v-298a73f6],.floor .remove[data-v-298a73f6]{height:32px;border-radius:3px;color:#fff;line-height:32px;text-align:center;cursor:pointer}.floor .add[data-v-298a73f6]{width:auto;padding:0 10px;background:#14928a;margin-left:20px}.studentMask[data-v-298a73f6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.studentMask .left[data-v-298a73f6]{width:200px;margin-right:20px}.studentMask .left .wrap[data-v-298a73f6]{margin-bottom:20px}.studentMask .left h4[data-v-298a73f6]{font-size:16px;color:#444;line-height:38px}.studentMask .left .chioseStudentList[data-v-298a73f6]{height:500px;overflow-y:auto;border:1px solid #ccc}.studentMask .left .chioseStudentList .studentItem[data-v-298a73f6]{padding-left:10px;line-height:25px}.studentMask .right[data-v-298a73f6]{width:calc(100% - 200px)}.studentMask .right .tableList[data-v-298a73f6]{max-height:500px;overflow-y:auto}.resetClassForm[data-v-298a73f6] .el-date-editor.el-input,.resetClassForm[data-v-298a73f6] .el-date-editor.el-input__inner{width:180px!important}[data-v-298a73f6] .el-date-editor.el-input,[data-v-298a73f6] .el-date-editor.el-input__inner{width:100px!important}.higheSelect[data-v-298a73f6] .el-input__inner{height:40px!important}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/css/chunk-19c4b4b2.308f2cf7.css


+ 1 - 0
dist/static/css/chunk-5c1dac65.7bc17bf0.css

@@ -0,0 +1 @@
+.floor[data-v-f92e9986]{padding-right:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;width:100%;height:48px;line-height:48px;background:#edeef0;font-size:14px;color:#444;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;z-index:1}.floor .remove[data-v-f92e9986]{width:98px;background:#f85043;margin-left:164px}.floor .add[data-v-f92e9986],.floor .remove[data-v-f92e9986]{height:32px;border-radius:3px;color:#fff;line-height:32px;text-align:center;cursor:pointer}.floor .add[data-v-f92e9986]{width:auto;padding:0 10px;background:#14928a;margin-left:20px}.studentMask[data-v-f92e9986]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.studentMask .left[data-v-f92e9986]{width:200px;margin-right:20px}.studentMask .left .wrap[data-v-f92e9986]{margin-bottom:20px}.studentMask .left h4[data-v-f92e9986]{font-size:16px;color:#444;line-height:38px}.studentMask .left .chioseStudentList[data-v-f92e9986]{height:500px;overflow-y:auto;border:1px solid #ccc}.studentMask .left .chioseStudentList .studentItem[data-v-f92e9986]{padding-left:10px;line-height:25px}.studentMask .right[data-v-f92e9986]{width:calc(100% - 200px)}.studentMask .right .tableList[data-v-f92e9986]{max-height:500px;overflow-y:auto}.resetClassForm[data-v-f92e9986] .el-date-editor.el-input,.resetClassForm[data-v-f92e9986] .el-date-editor.el-input__inner{width:180px!important}[data-v-f92e9986] .el-date-editor.el-input,[data-v-f92e9986] .el-date-editor.el-input__inner{width:100px!important}.higheSelect[data-v-f92e9986] .el-input__inner{height:40px!important}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.3475e502.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-022203a4.fe4a1eab.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-073ad1e6.7932ad49.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-19c4b4b2.2d76b984.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-5c1dac65.050b449b.js


+ 9 - 8
src/views/teamBuild/teamSeting/components/setClassV2.vue

@@ -273,9 +273,8 @@
         </div>
         <div class="right">
           <!--  multiple
-          collapse-tags-->
-          <el-select v-if="isSearch"
-                     v-model.trim="activeChioseSound"
+          collapse-tags  v-if="isSearch" -->
+          <el-select v-model.trim="activeChioseSound"
                      style="width:180px"
                      @change="searchStudent"
                      clearable
@@ -685,7 +684,7 @@ export default {
       activeListStudent: [], // 待选的学生
       isNewClass: true, // 是否是新增班级
       studentVisible: false, // 选择学员弹窗
-      activeChioseSound: [],
+      // activeChioseSound: [],
       isSearch: false,
       studentList: [],
       activeChioseSound: null, // 默认选择的声部
@@ -696,7 +695,7 @@ export default {
         assistant: [],
         courseType: "",
         courseTime: "",
-        checked: false,
+        checked: true,
         courseNum: "",
         mixClassGroupId: ""
       },
@@ -734,7 +733,7 @@ export default {
         courseType: null,
         courseTime: null,
         teachMode: null,
-        checked: false
+        checked: true
       }, // 排课信息
       chioseTab: [], // 记录选中的项
 
@@ -1307,6 +1306,8 @@ export default {
       this.activeClass = row.id;
       this.isSearch = false;
       this.activeType = row.type;
+      this.newClassForm.type = row.type
+      this.activeChioseSound = null
       // 根据单机班id 查询单技班内的所有学生
       getClassAllStudent({ classGroupId: row.id }).then(res => {
         if (res.code == 200) {
@@ -1543,7 +1544,7 @@ export default {
           assistant: [],
           courseType: "",
           courseTime: "",
-          checked: false,
+          checked: true,
           courseNum: "",
           mixClassGroupId: ""
         };
@@ -1558,7 +1559,7 @@ export default {
           courseType: null,
           courseTime: null,
           teachMode: null,
-          checked: false
+          checked: true
         };
         this.$refs["arrangeForm"].resetFields();
         this.weekList = [

+ 41 - 20
src/views/teamDetail/components/resetClass.vue

@@ -192,9 +192,8 @@
         </div>
         <div class="right">
           <!--  multiple
-          collapse-tags-->
-          <el-select v-if="isSearch"
-                     v-model.trim="activeChioseSound"
+          collapse-tags v-if="isSearch"  -->
+          <el-select  v-model.trim="activeChioseSound"
                      style="width:180px"
                      @change="searchStudent"
                      clearable
@@ -790,7 +789,7 @@ export default {
         memo: [],
         subjectId: null
       },
-      classGroupIds: null
+      classGroupIds: null,
     };
   },
   created () {
@@ -912,6 +911,7 @@ export default {
       this.className = "";
       this.isTemporary = true;
       this.activeType = "SPAN";
+      this.activeChioseSound = null
       this.setType("SNAP");
       this.getNoClassStudent("SNAP");
     },
@@ -982,19 +982,24 @@ export default {
       this.isSearch = false;
       this.className = "";
       this.isTemporary = false;
+      this.activeChioseSound = null;
       this.getNoClassStudent(type);
     },
     searchStudent () {
       // 搜索学生
       // 根据声部id  乐团id搜索学生
-      teamSoundStudent({
-        musicGroupId: this.teamid,
-        actualSubjectId: this.activeChioseSound
-      }).then(res => {
-        if (res.code == 200) {
-          this.studentList = res.data;
-        }
-      });
+      if(this.activeType == 'SPAN') {
+        teamSoundStudent({
+          musicGroupId: this.teamid,
+          actualSubjectId: this.activeChioseSound
+        }).then(res => {
+          if (res.code == 200) {
+            this.studentList = res.data;
+          }
+        });
+      } else {
+        this.getNoClassStudent(this.activeType, this.activeChioseSound)
+      }
     },
     // 选择学生的方法修改
     SelectionStudent (val) {
@@ -1067,6 +1072,7 @@ export default {
       this.activeClass = row.id;
       this.isSearch = false;
       this.activeType = row.type;
+      this.activeChioseSound = null
       // 根据单机班id 查询单技班内的所有学生
       getClassAllStudent({ classGroupId: row.id }).then(res => {
         if (res.code == 200) {
@@ -1100,7 +1106,7 @@ export default {
       }
       this.infoVisible = true;
     },
-    getNoClassStudent (type) {
+    async getNoClassStudent (type, actualSubjectId) {
       // 获取乐团内所有未分班的学生
       // if (type && type == 'SNAP') {
       //   teamSoundStudent({ musicGroupId: this.teamid }).then(res => {
@@ -1116,28 +1122,43 @@ export default {
       //   })
       // }
       // res.data - activeListStudent
-      getMusicGroupStuNoClassType({ musicGroupId: this.teamid, type }).then(
+      const params = {
+        musicGroupId: this.teamid,
+        type,
+        actualSubjectId
+      }
+      await getMusicGroupStuNoClassType(params).then(
         res => {
           if (res.code == 200) {
             // this.studentList = res.data.concat(this.activeListStudent).filter(item=>{
             //   return res.data
             // });
             if (this.activeType == "SNAP") {
-              let idarr1 = [];
               let idarr2 = [];
-              let arr3 = res.data.concat(this.activeListStudent);
-              for (let i in res.data) {
-                idarr1.push(res.data[i].userId);
-              }
+              let arr3 = res.data
               for (let j in this.activeListStudent) {
                 idarr2.push(this.activeListStudent[j].userId);
               }
               this.studentList = arr3.filter(item => {
                 return (
-                  idarr1.indexOf(item.userId) === -1 ||
                   idarr2.indexOf(item.userId) === -1
                 );
               });
+              // let idarr1 = [];
+              // let idarr2 = [];
+              // let arr3 = res.data.concat(this.activeListStudent);
+              // for (let i in res.data) {
+              //   idarr1.push(res.data[i].userId);
+              // }
+              // for (let j in this.activeListStudent) {
+              //   idarr2.push(this.activeListStudent[j].userId);
+              // }
+              // this.studentList = arr3.filter(item => {
+              //   return (
+              //     idarr1.indexOf(item.userId) === -1 ||
+              //     idarr2.indexOf(item.userId) === -1
+              //   );
+              // });
             } else {
               this.studentList = res.data;
             }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.