lex-xin пре 5 година
родитељ
комит
7250adfc01

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/index.html


+ 1 - 1
dist/static/css/chunk-eb68005a.c83e9606.css → dist/static/css/chunk-5aaadde0.bcf4e5bd.css

@@ -1 +1 @@
-.m-core[data-v-46103c85]{margin-top:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around}.m-core .el-input[data-v-46103c85]{width:180px}.m-core h4[data-v-46103c85]{font-size:16px;background-color:#ccc;color:#fff;text-align:center;width:100%;height:40px;line-height:40px;margin-bottom:20px}.m-core .center[data-v-46103c85],.m-core .right[data-v-46103c85],.m-core .vipLeft[data-v-46103c85]{width:400px}.planList[data-v-46103c85]{padding:0 25px}.planList .planTop[data-v-46103c85]{height:40px;line-height:40px;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:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #ccc;margin-top:20px}.planList .planTop>p[data-v-46103c85]{font-size:14px}.planList .planCore .row[data-v-46103c85]{width:100%;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:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:40px;line-height:40px;font-size:14px;text-align:center}.planList .planCore .row div[data-v-46103c85]{width:87px}.okBtn[data-v-46103c85]{width:120px;height:40px;line-height:40px;text-align:center;color:#fff;border-radius:4px;margin-right:20px;cursor:pointer;background-color:#f97215;float:right}
+.m-core[data-v-7b882dd0]{margin-top:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around}.m-core .el-input[data-v-7b882dd0]{width:180px}.m-core h4[data-v-7b882dd0]{font-size:16px;background-color:#ccc;color:#fff;text-align:center;width:100%;height:40px;line-height:40px;margin-bottom:20px}.m-core .center[data-v-7b882dd0],.m-core .right[data-v-7b882dd0],.m-core .vipLeft[data-v-7b882dd0]{width:400px}.planList[data-v-7b882dd0]{padding:0 25px}.planList .planTop[data-v-7b882dd0]{height:40px;line-height:40px;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:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #ccc;margin-top:20px}.planList .planTop>p[data-v-7b882dd0]{font-size:14px}.planList .planCore .row[data-v-7b882dd0]{width:100%;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:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:40px;line-height:40px;font-size:14px;text-align:center}.planList .planCore .row div[data-v-7b882dd0]{width:87px}.okBtn[data-v-7b882dd0]{width:120px;height:40px;line-height:40px;text-align:center;color:#fff;border-radius:4px;margin-right:20px;cursor:pointer;background-color:#f97215;float:right}

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.b1bcd1c2.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/chunk-5aaadde0.afb9a5f0.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/chunk-eb68005a.f084455a.js


+ 13 - 10
src/views/buildVip/index.vue

@@ -261,6 +261,7 @@
               remote
               reserve-keyword
               filterable
+              :disabled="!leftForm.classOrganId"
               :remote-method="remoteMethod"
               :loading="remoteLoading"
             >
@@ -1200,11 +1201,13 @@ export default {
       this.rightForm.offlineCourse = "";
       this.rightForm.onlineCourse = "";
       this.leftForm.courseType = "";
-      getTeachSchool({ userId: val }).then(res => {
-        if (res.code == 200) {
-          this.scetionList = res.data;
-        }
-      });
+      if(val) {
+        getTeachSchool({ userId: val }).then(res => {
+          if (res.code == 200) {
+            this.scetionList = res.data;
+          }
+        });
+      }
       for (let i in this.teacherList) {
         if (this.teacherList[i].id == val) {
           // 根据分部id去获取课程形式
@@ -1223,6 +1226,8 @@ export default {
       const leftForm = this.leftForm
       let teacher = leftForm.teacher ? leftForm.teacher : null
       let educationalTeacherId = leftForm.educationalTeacherId ? leftForm.educationalTeacherId : null
+      leftForm.classOrganId = null // 重置课程分部数据
+      this.classOrganList = []
       if(!teacher || !educationalTeacherId) { // 如果没有选择指导老师和教务老师则不请求
         return
       }
@@ -1301,7 +1306,7 @@ export default {
       if (query !== "") {
         this.remoteLoading = true;
         // 发请求搜索
-        const url = "/api-web/studentManage/queryStudentList"
+        const url = "/api-web/studentManage/queryOrganStudentList"
         const options = {
           method: "get",
           headers: {
@@ -1309,20 +1314,18 @@ export default {
           },
           params: {
             rows: 100,
-            search: query
+            search: query,
+            organId: this.leftForm.classOrganId
           },
           url
         }
         this.remoteLoading = true
         axios(options).then(res => {
           this.remoteLoading = false
-          console.log(res)
           let result = res.data
           if (result.code == 200) {
             this.studentList = this.studentList.concat(result.data.rows);
-            // this.studentList = res.data.rows;
             this.unique(this.studentList, "userId");
-            // console.log(this.studentList)
           }
         })
         // queryStudentList({ rows: 100, search: query }).then(res => {

Неке датотеке нису приказане због велике количине промена