浏览代码

05/27 14:21

111
mo 5 年之前
父节点
当前提交
8379afefd7

文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


+ 0 - 0
dist/static/css/chunk-20c5063f.ad6c378c.css → dist/static/css/chunk-09753c97.ad6c378c.css


+ 1 - 1
dist/static/css/chunk-4742ab1e.223de242.css → dist/static/css/chunk-2ec45f98.b0cc86da.css

@@ -1 +1 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;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:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.vipwrap[data-v-3654d294]{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}.vipwrap .newBand[data-v-3654d294]{margin-right:20px}.resetClassForm[data-v-3654d294] .el-date-editor.el-input,.resetClassForm[data-v-3654d294] .el-date-editor.el-input__inner{width:180px!important}[data-v-3654d294] .el-date-editor.el-input,[data-v-3654d294] .el-date-editor.el-input__inner{width:100px!important}
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;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:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.vipwrap[data-v-63c60866]{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}.vipwrap .newBand[data-v-63c60866]{margin-right:20px}.resetClassForm[data-v-63c60866] .el-date-editor.el-input,.resetClassForm[data-v-63c60866] .el-date-editor.el-input__inner{width:180px!important}[data-v-63c60866] .el-date-editor.el-input,[data-v-63c60866] .el-date-editor.el-input__inner{width:100px!important}

文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/chunk-739aa186.c4762391.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.86cf5cbd.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-09753c97.a5e47770.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-2ec45f98.fd176843.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-4742ab1e.0a1d97f9.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-739aa186.96b79ed8.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-af531f28.5da5ec95.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-af531f28.ab502d36.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-c4b914c0.4b8833b7.js


+ 23 - 1
src/views/resetTeaming/components/resetPayList.vue

@@ -8,7 +8,8 @@
       <div class="newBand"
            v-permission="'/studentPayBase'"
            @click="setStudentPay">学员缴费设置</div>
-      <div class="newBand" @click="onCreateQRCode">续费二维码</div>
+      <div class="newBand"
+           @click="onCreateQRCode">续费二维码</div>
     </div>
     <div class="tableWrap">
       <el-table style="width: 100%"
@@ -98,6 +99,16 @@
                       :rules="[{ required: true, message: '请设置缴费开始日期',trigger: 'blur'}]"
                       prop="startPaymentDate">
           <el-date-picker v-model.trim="payForm.startPaymentDate"
+                          @change="changeStartTime"
+                          type="date"
+                          :picker-options="pickerOptions"
+                          value-format="yyyy-MM-dd"
+                          placeholder="开始日期"></el-date-picker>
+        </el-form-item>
+        <el-form-item label="缴费结束日期"
+                      :rules="[{ required: true, message: '请设置缴费结束日期',trigger: 'blur'}]"
+                      prop="deadlinePaymentDate">
+          <el-date-picker v-model.trim="payForm.deadlinePaymentDate"
                           type="date"
                           :picker-options="pickerOptions"
                           value-format="yyyy-MM-dd"
@@ -181,6 +192,7 @@ export default {
       payVisible: false,
       payForm: {
         startPaymentDate: null,
+        deadlinePaymentDate: null,
         type: null,
         memo: null
       },
@@ -298,6 +310,16 @@ export default {
           this.getList()
         }
       })
+    },
+    changeStartTime (val) {
+      this.payForm.deadlinePaymentDate = this.dateAddDays(val, 3)
+    },
+    dateAddDays (dataStr, dayCount) {
+      let strdate = dataStr; //日期字符串
+      let isdate = new Date(strdate.replace(/-/g, "/"));  //把日期字符串转换成日期格式
+      isdate = new Date((isdate / 1000 + (86400 * dayCount)) * 1000);  //日期加1天
+      let pdate = isdate.getFullYear() + "-" + (isdate.getMonth() + 1) + "-" + (isdate.getDate());   //把日期格式转换成字符串
+      return pdate;
     }
   },
   watch: {

+ 80 - 82
src/views/resetTeaming/components/studentPayBase.vue

@@ -1,88 +1,87 @@
 <!--  -->
 <template>
-  <div class="m-container">
+  <!-- <div class="m-container">
     <el-page-header @back="goBack"
                     content="学员缴费记录">
-    </el-page-header>
-    <div class="m-core">
-      <el-form :inline="true"
-               :model="searchForm">
-        <el-form-item>
-          <el-input v-model.trim="searchForm.search"
-                    @keyup.enter.native="search"
-                    placeholder='学生编号'></el-input>
-        </el-form-item>
-        <el-form-item>
-          <el-select v-model.trim="searchForm.subjectId"
-                     style="width:180px"
-                     clearable
-                     filterable
-                     placeholder="请选择声部">
-            <el-option v-for="(item,index) in soundList"
-                       :key="index"
-                       :label="item.name"
-                       :value="item.id"></el-option>
-          </el-select>
-        </el-form-item>
-        <el-form-item>
-          <el-button @click="search"
-                     type="danger">搜索</el-button>
-          <el-button @click="onReSet"
-                     type="primary">重置</el-button>
-        </el-form-item>
-      </el-form>
-      <div class="newBand"
-           @click="resetPays"
-           v-permission="'musicGroupStudentFee/batchUpdateCourseFee'">修改缴费金额</div>
-      <div class="tableWrap">
-        <el-table style="width: 100%"
-                  :header-cell-style="{background:'#EDEEF0',color:'#444'}"
-                  :data="tableList"
-                  @selection-change="handleSelectionChange">
-          <el-table-column type="selection"
-                           width="55">
-          </el-table-column>
-          <el-table-column align="center"
-                           prop="userId"
-                           label="学员编号"></el-table-column>
-          <el-table-column align="center"
-                           prop="studentId"
-                           label="学员姓名">
-            <template slot-scope="scope">
-              <div v-if="scope.row.sysUser">
-                {{scope.row.sysUser.username}}
-              </div>
-            </template>
-          </el-table-column>
-          <el-table-column align="center"
-                           prop="studentId"
-                           label="联系电话">
-            <template slot-scope="scope">
-              <div v-if="scope.row.sysUser">
-                {{scope.row.sysUser.phone}}
-              </div>
-            </template>
-          </el-table-column>
-          <el-table-column align="center"
-                           prop="courseFee"
-                           label="缴费金额"></el-table-column>
-          <el-table-column align="center"
-                           label="操作">
-            <template slot-scope="scope">
-              <div>
-                <el-button type="text"
-                           v-permission="'musicGroupStudentFee/batchUpdateCourseFee'"
-                           @click="resetPay(scope.row)">修改金额</el-button>
-              </div>
-            </template>
-          </el-table-column>
-        </el-table>
-        <pagination :total="rules.total"
-                    :page.sync="rules.page"
-                    :limit.sync="rules.limit"
-                    :page-sizes="rules.page_size"
-                    @pagination="getList" />
-      </div>
+    </el-page-header> -->
+  <div class="m-core">
+    <el-form :inline="true"
+             :model="searchForm">
+      <el-form-item>
+        <el-input v-model.trim="searchForm.search"
+                  @keyup.enter.native="search"
+                  placeholder='学生编号'></el-input>
+      </el-form-item>
+      <el-form-item>
+        <el-select v-model.trim="searchForm.subjectId"
+                   style="width:180px"
+                   clearable
+                   filterable
+                   placeholder="请选择声部">
+          <el-option v-for="(item,index) in soundList"
+                     :key="index"
+                     :label="item.name"
+                     :value="item.id"></el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item>
+        <el-button @click="search"
+                   type="danger">搜索</el-button>
+        <el-button @click="onReSet"
+                   type="primary">重置</el-button>
+      </el-form-item>
+    </el-form>
+    <div class="newBand"
+         @click="resetPays"
+         v-permission="'musicGroupStudentFee/batchUpdateCourseFee'">修改缴费金额</div>
+    <div class="tableWrap">
+      <el-table style="width: 100%"
+                :header-cell-style="{background:'#EDEEF0',color:'#444'}"
+                :data="tableList"
+                @selection-change="handleSelectionChange">
+        <el-table-column type="selection"
+                         width="55">
+        </el-table-column>
+        <el-table-column align="center"
+                         prop="userId"
+                         label="学员编号"></el-table-column>
+        <el-table-column align="center"
+                         prop="studentId"
+                         label="学员姓名">
+          <template slot-scope="scope">
+            <div v-if="scope.row.sysUser">
+              {{scope.row.sysUser.username}}
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column align="center"
+                         prop="studentId"
+                         label="联系电话">
+          <template slot-scope="scope">
+            <div v-if="scope.row.sysUser">
+              {{scope.row.sysUser.phone}}
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column align="center"
+                         prop="courseFee"
+                         label="缴费金额"></el-table-column>
+        <el-table-column align="center"
+                         label="操作">
+          <template slot-scope="scope">
+            <div>
+              <el-button type="text"
+                         v-permission="'musicGroupStudentFee/batchUpdateCourseFee'"
+                         @click="resetPay(scope.row)">修改金额</el-button>
+            </div>
+          </template>
+        </el-table-column>
+      </el-table>
+      <pagination :total="rules.total"
+                  :page.sync="rules.page"
+                  :limit.sync="rules.limit"
+                  :page-sizes="rules.page_size"
+                  @pagination="getList" />
     </div>
     <el-dialog :visible.sync="resetPayVisible"
                width="500px"
@@ -117,7 +116,6 @@
     </el-dialog>
   </div>
 </template>
-
 <script>
 import axios from "axios";
 import { getToken } from "@/utils/auth";

+ 9 - 3
src/views/resetTeaming/index.vue

@@ -26,10 +26,15 @@
                      name="3">
           <resetPayList v-if="activeIndex == 3" />
         </el-tab-pane>
+        <el-tab-pane label="学员缴费设置"
+                     v-if="permission('/resetTeaming/studentPayBase')"
+                     name="4">
+          <studentPayBase v-if="activeIndex == 4" />
+        </el-tab-pane>
         <el-tab-pane label="班级调整"
                      v-if="permission('/resetTeaming/resetClass')"
-                     name="4">
-          <resetClass v-if="activeIndex == 4" />
+                     name="5">
+          <resetClass v-if="activeIndex == 5" />
         </el-tab-pane>
         <!-- <el-tab-pane label="新增排课"
                      v-if="permission('/resetTeaming/coursePlan')"
@@ -53,9 +58,10 @@ import resetClass from '@/views/teamDetail/components/resetClass'
 // import lookCourse from '@/views/teamBuild/teamSeting/components/lookCourse'
 // import improvement from '@/views/teamBuild/teamSeting/components/improvementClass'
 import resetPayList from '@/views/resetTeaming/components/resetPayList'
+import studentPayBase from '@/views/resetTeaming/components/studentPayBase'
 import { permission } from '@/utils/directivePage'
 export default {
-  components: { teamBaseInfo, resetSound, resetClass, resetPayList },
+  components: { teamBaseInfo, resetSound, resetClass, resetPayList, studentPayBase },
   name: 'resetTeaming',
   data () {
     return {

+ 0 - 700
src/views/teamBuild/teamSeting/components/setClass.vue

@@ -1,700 +0,0 @@
-<template>
-  <div class="classWrap">
-    <div class="left">
-      <el-table :data='leftList'
-                :header-cell-style="{background:'#EDEEF0',color:'#444'}">
-        <el-table-column label="乐团声部"
-                         prop="subName"
-                         align='center'>
-        </el-table-column>
-
-        <el-table-column label="实际缴费人数"
-                         prop="paidStudentNum"
-                         align='center'>
-        </el-table-column>
-        <el-table-column label="未分班人数"
-                         prop="noClassStudentNum"
-                         align='center'>
-        </el-table-column>
-      </el-table>
-    </div>
-    <div class="center">
-      <el-table :data='centerList'
-                :header-cell-style="{background:'#EDEEF0',color:'#444'}">
-        <el-table-column label="
-                  班级名称"
-                         prop="name"
-                         align='center'>
-        </el-table-column>
-        <el-table-column label="声部"
-                         prop="subjectName"
-                         align='center'>
-        </el-table-column>
-        <el-table-column label="班级人数"
-                         prop="studentNum"
-                         align='center'>
-        </el-table-column>
-        <el-table-column label="操作"
-                         align='center'>
-          <template slot-scope="scope">
-            <div>
-              <el-button type="text"
-                         @click="removeSingleClass(scope.row)">删除</el-button>
-            </div>
-          </template>
-        </el-table-column>
-      </el-table>
-      <div class="centerInfo">
-        <p>当前班级总数(个):{{ centerList.length }}</p>
-        <div class="btnWrap">
-          <div class="setBtn"
-               @click="setSingleClass">学员分班</div>
-          <!-- <div class="okBtn">确定</div> -->
-        </div>
-      </div>
-    </div>
-    <!-- v-if="centertList.length>0 " -->
-    <div class="right">
-      <el-table :data='rightList'
-                :header-cell-style="{background:'#EDEEF0',color:'#444'}">
-        <el-table-column label="
-                  合奏班"
-                         prop="name"
-                         align='center'>
-        </el-table-column>
-        <el-table-column label="班级组成"
-                         prop="classNames"
-                         align='center'>
-
-        </el-table-column>
-        <el-table-column label="操作"
-                         align='center'>
-          <template slot-scope="scope">
-            <div>
-              <el-button type="text"
-                         @click="removeAllClass(scope.row)">删除</el-button>
-            </div>
-          </template>
-        </el-table-column>
-      </el-table>
-      <div class="centerInfo">
-
-        <div class="btnWrap">
-          <!-- <el-form :inline="true">
-            <el-form-item label="基础技能班数">
-              <el-input v-model.trim="hightNum"></el-input>
-            </el-form-item>
-          </el-form> -->
-          <div class="okBtn"
-               @click="getNoclassSign">添加</div>
-          <div class="setBtn"
-               @click="setBossTeacher">下一步</div>
-        </div>
-      </div>
-    </div>
-    <el-dialog title="班级设置"
-               :visible.sync="classVisible">
-      <div class="classMaskWrap">
-        <div class="maskLeft">
-          <h3>声部 已选{{ soundSize }}
-          </h3>
-          <el-checkbox-group v-model.trim="maskList.subjectCheckList"
-                             class='checkGroup'
-                             @change="chioseSound">
-            <el-checkbox v-for="(item,index) in leftList"
-                         :key="index"
-                         :label="item.subjectId">{{ item.subName }}</el-checkbox>
-          </el-checkbox-group>
-        </div>
-        <div class="maskRight">
-          <div class="rightGroup"
-               v-for="(item,index) in studentsGroup"
-               :key='index'>
-            <!-- @change="handleCheckAllChange(item.rows,index)" -->
-            <h3>{{item.subjectName}}的学员名单 <el-checkbox v-model.trim="maskList.studentsGroup[index]"
-                           @change="handleCheckAllChange(item.rows,index)">全选</el-checkbox>
-            </h3>
-            <el-checkbox-group v-model.trim="maskList.checkList[index]"
-                               @change="handleCheckedCitiesChange(index,item.rows)"
-                               class='checkGroup'>
-              <el-checkbox v-for="(stu,num) in item.rows"
-                           :key='num'
-                           :label="stu.userId">{{ stu.name }}</el-checkbox>
-            </el-checkbox-group>
-          </div>
-
-        </div>
-      </div>
-      <div class="classMaskbottom">
-        <h3></h3>
-        <el-form :inline="true"
-                 :model="className"
-                 :rules="classNameRules"
-                 ref='className'>
-          <el-form-item label="班级名称"
-                        prop='name'>
-            <el-input v-model.trim="className.name"></el-input>
-          </el-form-item>
-          <el-form-item label="已选声部"
-                        prop="sound">
-            <el-input :disabled="true"
-                      v-model.trim="className.sound"></el-input>
-          </el-form-item>
-          <el-form-item label="班级人数">
-            <el-input :disabled="true"
-                      v-model.trim="activeStudents.length"></el-input>
-          </el-form-item>
-        </el-form>
-      </div>
-      <div slot="footer"
-           class="dialog-footer">
-        <el-button @click="classVisible = false">取 消</el-button>
-        <el-button type="primary"
-                   @click="addNewClass">确 定</el-button>
-      </div>
-    </el-dialog>
-    <el-dialog title="合奏班设置"
-               width="600px"
-               :visible.sync="allVisible">
-      <el-checkbox-group v-model.trim="allMaskList.signClassList"
-                         class='checkGroup'>
-        <el-checkbox v-for="(item,index) in NoClassSingle"
-                     :key='index'
-                     :label="item.id">{{ item.name }}</el-checkbox>
-      </el-checkbox-group>
-      <el-form :model="allList"
-               ref="allRules"
-               style="margin-top:30px;"
-               :rules="allRules"
-               :inline="true">
-        <el-form-item label="请输入合奏班名称"
-                      prop="name">
-          <el-input type="text"
-                    v-model.trim="allList.name"></el-input>
-        </el-form-item>
-      </el-form>
-      <div slot="footer"
-           class="dialog-footer">
-        <el-button @click="allVisible = false">取 消</el-button>
-        <el-button type="primary"
-                   @click="addAllClass">确 定</el-button>
-      </div>
-    </el-dialog>
-
-    <el-dialog title="乐队指导"
-               width="600px"
-               :visible.sync="teacherVisible">
-      <el-form :inline="true"
-               ref='teacherForm'
-               :model="teacherForm">
-        <el-form-item label="乐队指导"
-                      prop='name'
-                      :rules="[{required: true, message: '请选择乐队指导', trigger: 'blur'}]">
-          <el-select v-model.trim="teacherForm.name"
-                     filterable
-                     clearable>
-            <el-option v-for="(item,index) in teacherList"
-                       :key="index"
-                       :value="item.id"
-                       :label="item.realName"></el-option>
-          </el-select>
-        </el-form-item>
-      </el-form>
-      <div slot="footer"
-           class="dialog-footer">
-        <el-button @click="teacherVisible = false">取 消</el-button>
-        <el-button type="primary"
-                   @click="gotoNext">确 定</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-<script>
-import { queryEmployByOrganId } from '@/api/systemManage'
-import { getTeamRecruit, getSingleClass, getNoClassStudent, addSingleClass, removeSingleClass, addAllClass, getAllClass, findNoClassSingle, removeAllClass, getTeacher, checkAllStudent, getTeamBaseInfo } from "@/api/buildTeam"
-export default {
-  name: 'setClass',
-  props: {
-    teamid: {
-      type: String,
-      required: true
-    },
-    isSetSalary: {
-      type: Boolean,
-      required: true
-    }
-  },
-  data () {
-    return {
-      classVisible: false, // 班级设置弹窗
-      allVisible: false, // 合奏班弹窗设置
-      teacherVisible: false,
-      leftList: [],
-      centerList: [],
-      rightList: [],
-      maskList: {
-        subjectCheckList: [],
-        checkList: [],
-        checkAll: false,
-        isIndeterminate: [],
-        studentsGroup: []
-      },
-      allMaskList: {
-        signClassList: []
-      },
-      soundSize: 0,
-      activeStudents: [],  // 选中的所有学生
-      studentsGroup: {}, // 存储所有声部 所有学生的集合表
-      className: {
-        name: '',
-        sound: ''
-      },
-      classNameRules: {
-        name: [
-          { required: true, message: '请输入班级名称', trigger: 'blur' },
-          { min: 1, max: 10, message: '长度在 1 到 10 个字符', trigger: 'blur' }
-        ]
-      },
-      allList: { //合奏班名字确认
-        name: ''
-      },
-      allRules: {
-        name: [
-          { required: true, message: '请输入班级名称', trigger: 'blur' },
-          { min: 1, max: 10, message: '长度在 1 到 10 个字符', trigger: 'blur' }
-        ]
-      },
-      NoClassSingle: [],
-      teacherList: [],
-      teacherForm: {
-        name: ''
-      },
-      hightNum: '',
-      organId: ''
-
-    }
-  },
-  watch: {
-    classVisible (val) {
-      if (!val) {
-        this.classVisible = false;
-        this.maskList.subjectCheckList = [];
-        this.studentsGroup = [];
-        this.activeStudents = [];
-        this.$refs['className'].resetFields();
-        this.getSingleClass();
-      }
-    }
-  },
-  created () {
-    this.organId = sessionStorage.getItem('createTeamOrgnId') || null
-  },
-  mounted () {
-    sessionStorage.setItem('setStep', 0)
-    getTeamRecruit({ musicGroupId: this.teamid }).then(res => {
-      // 获取乐团声部集合
-      if (res.code == 200) {
-        this.leftList = res.data;
-      }
-    })
-    this.getSingleClass();
-    this.getAllClass();
-    // 获取所有老师的列表
-    queryEmployByOrganId({ organId: this.organId, rows: 1000 }).then(res => {
-      if (res.code == 200) {
-        this.teacherList = res.data.rows;
-      }
-    })
-    getTeamBaseInfo({ musicGroupId: this.teamid }).then(res => {
-      if (res.code == 200) {
-        res.data.musicGroup.directorUserId ? this.teacherForm.name = res.data.musicGroup.directorUserId : this.teacherForm.name = ''
-      }
-    })
-
-  }, methods: {
-    getAllClass () {
-      getAllClass({ musicGroupId: this.teamid }).then(res => {
-        if (res.code == 200) {
-          this.rightList = res.data;
-        }
-      })
-    },
-    getSingleClass () {
-      getSingleClass({ musicGroupId: this.teamid }).then(res => {
-        if (res.code == 200) {
-          // 单技班列表
-          this.centerList = res.data;
-        }
-      })
-    },
-    handleCheckAllChange (val, index) {
-      // 全选
-      // 1.val:选项框里的所有选项
-      // 2.哪一个
-      if (this.maskList.studentsGroup[index]) {
-        this.maskList.checkList[index] = []
-        for (let i in val) {
-          // 存储的数组 activeStudents
-          this.maskList.checkList[index].push(val[i].userId);
-          this.activeStudents.push(val[i].userId)
-          this.activeStudents = Array.from(new Set(this.activeStudents))
-          // 并且把所有的学生 添加到勾选的学生列表
-        }
-      } else {
-        for (let i in this.activeStudents) {
-          for (let j in this.maskList.checkList[index]) {
-            if (this.maskList.checkList[index][j] == this.activeStudents[i]) {
-              this.activeStudents.splice(i, 1);
-            }
-          }
-        }
-        this.maskList.checkList[index] = []
-      }
-
-    },
-    handleCheckedCitiesChange (index, list) {
-      // 单选学生触发事件
-      // 此处需要同步全选按钮状态
-      // maskList.studentsGroup[index]
-
-      if (list.length == this.maskList.checkList[index].length) {
-        //全选选中
-        this.maskList.studentsGroup[index] = true;
-      } else {
-        this.maskList.studentsGroup[index] = false;
-      }
-
-      let arr = [];
-      for (let i in this.maskList.checkList) {
-        for (let j in this.maskList.checkList[i]) {
-          arr.push(this.maskList.checkList[i][j])
-        }
-      }
-      this.activeStudents = arr;
-    },
-    // 设置单技课
-    setSingleClass () {
-      if (this.isSetSalary) {
-        this.$message.error('课酬确认后无法编辑')
-        return;
-      }
-      this.classVisible = true;
-    },
-    chioseSound (val) {
-      // 清空选中学生
-      this.activeStudents = [];
-      // 清空全选
-      // this.maskList.studentsGroup
-      for (let i in this.maskList.studentsGroup) {
-        this.maskList.studentsGroup[i] = false;
-      }
-      for (let j in this.maskList.checkList) {
-        this.maskList.checkList[j] = []
-
-      }
-      this.soundSize = val.length;
-      getNoClassStudent({
-        musicGroupId: this.teamid,
-        actualSubjectId: val.join(',')
-      }).then(res => {
-        if (res.code == 200) {
-          this.studentsGroup = res.data
-          let str = ''
-          // 生成动态的checkList
-          for (let key in this.studentsGroup) {
-            this.$set(this.maskList.checkList, key, []);
-            str += this.studentsGroup[key].subjectName + '+';
-          }
-          str = str.substring(0, str.length - 1);
-          this.className.sound = str;
-        }
-      })
-    },
-    // 添加单技班
-    addNewClass () {
-      this.$refs['className'].validate(valid => {
-        if (valid) {
-          addSingleClass({
-            musicGroupId: this.teamid,
-            name: this.className.name,
-            subjectIdList: this.maskList.subjectCheckList.join(','),
-            teachMode: 'OFFLINE',
-            userIds: this.activeStudents.join(','),
-            studentNum: this.activeStudents.length,
-            type: 'NORMAL'
-          }).then(res => {
-            if (res.code == 200) {
-              // 成功刷新班级列表 清空数据
-              this.$message.success('添加成功');
-              this.classVisible = false;
-              this.maskList.subjectCheckList = [];
-              this.studentsGroup = [];
-              this.activeStudents = [];
-              this.$refs['className'].resetFields();
-              this.getSingleClass();
-              getTeamRecruit({ musicGroupId: this.teamid }).then(res => {
-                // 获取乐团声部集合
-                if (res.code == 200) {
-                  this.leftList = res.data;
-                }
-              })
-
-            }
-          })
-        } else {
-          this.$message.error('请输入班级名称')
-        }
-      })
-      return;
-
-    },
-    removeSingleClass (row) {
-      if (this.isSetSalary) {
-        this.$message.error('课酬确认后无法编辑')
-        return;
-      }
-      removeSingleClass({ classGroupId: row.id }).then(res => {
-        if (res.code == 200) {
-          this.$message.success('删除成功');
-          this.getSingleClass();
-          getTeamRecruit({ musicGroupId: this.teamid }).then(res => {
-            // 获取乐团声部集合
-            if (res.code == 200) {
-              this.leftList = res.data;
-            }
-          })
-        }
-      })
-    },
-    getNoclassSign () {
-      if (this.isSetSalary) {
-        this.$message.error('课酬确认后无法编辑')
-        return;
-      }
-      this.allMaskList.signClassList = [];
-      findNoClassSingle({ musicGroupId: this.teamid }).then(res => {
-        if (res.code == 200) {
-          this.NoClassSingle = res.data;
-          this.allVisible = true;
-        }
-      })
-    },
-    // 添加合奏班
-    addAllClass () {
-
-      if (!this.allMaskList.signClassList.join(',')) {
-        this.$message.error('请至少选择一个单技班')
-        return;
-      }
-      addAllClass({
-        musicGroupId: this.teamid,
-        name: this.allList.name,
-        classGroupIds: this.allMaskList.signClassList.join(',') || null
-      }).then(res => {
-        if (res.code == 200) {
-          this.$message.success('恭喜您创建成功');
-
-          this.allVisible = false;
-          this.getAllClass();
-          this.$refs['allRules'].resetFields();
-        }
-      })
-    },
-    // 删除合奏班
-    removeAllClass (row) {
-      if (this.isSetSalary) {
-        this.$message.error('课酬确认后无法编辑')
-        return;
-      }
-      removeAllClass({ classGroupId: row.id }).then(res => {
-        if (res.code == 200) {
-          this.$message.success('删除成功')
-          this.getAllClass();
-        }
-      });
-    },
-    setBossTeacher () {
-      if (this.isSetSalary) {
-        this.$message.error('课酬确认后无法编辑')
-        return;
-      }
-      this.teacherVisible = true;
-
-    },
-    gotoNext () {
-
-      // 跳转到下一步
-      // if (!this.hightNum) {
-      //   this.$message.error('基础技能班数必填');
-      //   return
-      // }
-      this.$refs['teacherForm'].validate(res => {
-        if (res) {
-          // 发请求
-          checkAllStudent({ musicGroupId: this.teamid, teacherId: this.teacherForm.name, improventClassesNum: this.hightNum }).then(res => {
-            if (res.code == 200) {
-              this.$refs['teacherForm'].resetFields()
-              this.teacherVisible = false;
-              this.$emit('gotoNav', 1);
-            }
-
-          }).catch(res => {
-            this.teacherVisible = false;
-            this.teacherForm.name = '';
-          })
-        }
-
-      });
-    },
-  },
-
-}
-</script>
-<style lang="scss" scoped>
-.classWrap {
-  display: flex;
-  flex-direction: row;
-  justify-content: flex-start;
-  .left {
-    width: 275px;
-    background-color: #fff;
-    height: 80vh;
-    overflow: auto;
-  }
-  .center {
-    // background-color: #fff;
-    width: 400px;
-    margin-left: 12px;
-    .centerInfo {
-      background-color: #fff;
-      color: #444;
-      padding: 15px;
-      .btnWrap {
-        margin-top: 38px;
-        display: flex;
-        flex-direction: row;
-        justify-content: space-around;
-        .setBtn {
-          width: 120px;
-          height: 40px;
-          background: rgba(68, 68, 68, 1);
-          border-radius: 4px;
-          color: #fff;
-          line-height: 40px;
-          text-align: center;
-          cursor: pointer;
-        }
-        .okBtn {
-          width: 120px;
-          height: 40px;
-          background: rgba(249, 114, 21, 1);
-          border-radius: 4px;
-          color: #fff;
-          line-height: 40px;
-          text-align: center;
-          cursor: pointer;
-        }
-      }
-    }
-  }
-  .right {
-    flex-grow: 1;
-    margin-left: 12px;
-    .centerInfo {
-      background-color: #fff;
-      color: #444;
-      padding: 15px;
-      .btnWrap {
-        margin-top: 38px;
-        display: flex;
-        flex-direction: row;
-        justify-content: flex-end;
-        .setBtn {
-          width: 120px;
-          height: 40px;
-          background: rgba(68, 68, 68, 1);
-          border-radius: 4px;
-          color: #fff;
-          line-height: 40px;
-          text-align: center;
-          cursor: pointer;
-        }
-        .okBtn {
-          width: 120px;
-          height: 40px;
-          background: rgba(249, 114, 21, 1);
-          border-radius: 4px;
-          color: #fff;
-          line-height: 40px;
-          text-align: center;
-          cursor: pointer;
-        }
-      }
-    }
-  }
-  .classMaskWrap {
-    display: flex;
-    flex-direction: row;
-    justify-content: flex-start;
-    max-height: 350px;
-    overflow: auto;
-
-    .maskLeft {
-      width: 200px;
-
-      h3 {
-        height: 40px;
-        line-height: 40px;
-        background-color: #edeef0;
-        font-size: 16px;
-        font-weight: normal;
-        color: #444;
-        padding-left: 25px;
-      }
-      .checkGroup {
-        .el-checkbox {
-          padding-left: 25px;
-          height: 30px;
-          line-height: 30px;
-          width: 100%;
-        }
-      }
-    }
-    .maskRight {
-      margin-left: 30px;
-      flex: 1;
-      .rightGroup {
-        h3 {
-          height: 40px;
-          line-height: 40px;
-          background-color: #edeef0;
-          font-size: 16px;
-          font-weight: normal;
-          color: #444;
-          padding-left: 25px;
-          display: flex;
-          flex-direction: row;
-          justify-content: space-between;
-          padding-right: 15px;
-        }
-        .checkGroup {
-          padding-left: 25px;
-          .el-checkbox {
-            height: 30px;
-            line-height: 30px;
-            width: 75px;
-          }
-        }
-      }
-    }
-  }
-  .classMaskbottom {
-    h3 {
-      height: 40px;
-      line-height: 40px;
-      background-color: #edeef0;
-      margin-bottom: 30px;
-    }
-  }
-}
-</style>

+ 248 - 213
src/views/vipClass/vipReset.vue

@@ -1,142 +1,147 @@
 <template>
   <div class="m-container">
     <h2>
-      <el-page-header @back="goBack" content="VIP修改"></el-page-header>
+      <el-page-header @back="goBack"
+                      content="VIP修改"></el-page-header>
     </h2>
     <div class="vipwrap">
-      <div
-        class="newBand"
-        v-permission="'vipGroupManage/appendVipGroupCourseSchedules'"
-        @click="addCourse"
-      >VIP加课</div>
-      <div class="newBand" v-permission="'courseSchedule/vipCourseAdjust'" @click="adjustment">批量调整</div>
-      <div
-        class="newBand"
-        v-permission="'vipGroupManage/updateVipBaseInfo'"
-        @click="addrVisible = true"
-      >修改教学点</div>
-      <div
-        class="newBand"
-        v-permission="{parent:'/vipReset',child:'employee/findEducationUsers'}"
-        @click="educationalVisible = true"
-      >修改教务</div>
+      <div class="newBand"
+           v-permission="'vipGroupManage/appendVipGroupCourseSchedules'"
+           @click="addCourse">VIP加课</div>
+      <div class="newBand"
+           v-permission="'courseSchedule/vipCourseAdjust'"
+           @click="adjustment">批量调整</div>
+      <div class="newBand"
+           v-permission="'vipGroupManage/updateVipBaseInfo'"
+           @click="addrVisible = true">修改教学点</div>
+      <div class="newBand"
+           v-permission="{parent:'/vipReset',child:'employee/findEducationUsers'}"
+           @click="educationalVisible = true">修改教务</div>
     </div>
 
     <div class="tableWrap">
-      <el-table
-        :data="tableList"
-        @selection-change="handleSelectionChange"
-        :header-cell-style="{background:'#EDEEF0',color:'#444'}"
-      >
-        <el-table-column type="selection" :selectable="isDisabled" width="55"></el-table-column>
-        <el-table-column label="课程名称" align="center" prop="name"></el-table-column>
-        <!-- <el-table-column label="班级id"
+      <el-table :data="tableList"
+                @selection-change="handleSelectionChange"
+                :header-cell-style="{background:'#EDEEF0',color:'#444'}">
+        <el-table-column type="selection"
+                         :selectable="isDisabled"
+                         width="55"></el-table-column>
+        <el-table-column label="课程名称"
                          align="center"
-                         prop="classGroupId">
-        </el-table-column>-->
-        <el-table-column label="上课日期" align="center" prop="classDate">
+                         prop="name"></el-table-column>
+        <el-table-column label="课程编号"
+                         align="center"
+                         prop="id">
+        </el-table-column>
+        <el-table-column label="上课日期"
+                         align="center"
+                         prop="classDate">
           <template slot-scope="scope">
             <div>{{ scope.row.classDate | formatTimer}}</div>
           </template>
         </el-table-column>
-        <el-table-column label="课程状态" align="center" prop="status">
+        <el-table-column label="课程状态"
+                         align="center"
+                         prop="status">
           <template slot-scope="scope">
             <div>{{ scope.row.status | coursesStatus }}</div>
           </template>
         </el-table-column>
-        <el-table-column label="是否点名" align="center">
+        <el-table-column label="是否点名"
+                         align="center">
           <template slot-scope="scope">
             <div>{{scope.row.isCallNames?'已点名':'未点名'}}</div>
           </template>
         </el-table-column>
-        <el-table-column label="结算状态" align="center">
+        <el-table-column label="结算状态"
+                         align="center">
           <template slot-scope="scope">
             <div>{{scope.row.isSettlement?'已结算':'未结算'}}</div>
           </template>
         </el-table-column>
-        <el-table-column label="开始时间" align="center" prop="startClassTimeStr">
-           <template slot-scope="scope">
+        <el-table-column label="开始时间"
+                         align="center"
+                         prop="startClassTimeStr">
+          <template slot-scope="scope">
             <div>{{ scope.row.startClassTimeStr | timerForMinFormat }}</div>
           </template>
         </el-table-column>
-        <el-table-column label="结束时间" align="center" prop="endClassTimeStr">
-           <template slot-scope="scope">
+        <el-table-column label="结束时间"
+                         align="center"
+                         prop="endClassTimeStr">
+          <template slot-scope="scope">
             <div>{{ scope.row.endClassTimeStr | timerForMinFormat }}</div>
           </template>
         </el-table-column>
-        <el-table-column label="课程类型" align="center">
+        <el-table-column label="课程类型"
+                         align="center">
           <template slot-scope="scope">
             <div>{{ scope.row.teachMode | teachMode }}</div>
           </template>
         </el-table-column>
-        <el-table-column label="教学点" align="center" prop="schoolName">
+        <el-table-column label="教学点"
+                         align="center"
+                         prop="schoolName">
           <template slot-scope="scope">
             <div>{{scope.row.schoolName?scope.row.schoolName:'网络教室'}}</div>
           </template>
         </el-table-column>
-        <el-table-column label="操作" width="180" align="center">
+        <el-table-column label="操作"
+                         width="180"
+                         align="center">
           <template slot-scope="scope">
             <div>
-              <el-button
-                type="text"
-                v-permission="{parent:'/vipReset',child:'courseSchedule/classStartDateAdjust'}"
-                v-if="!scope.row.isSettlement"
-                @click="resetClass(scope.row)"
-              >调整</el-button>
-              <el-button
-                type="text"
-                v-permission="{parent:'/vipReset',child:'courseSchedule/batchDelete'}"
-                v-if="!scope.row.isSettlement&&scope.row.status != 'OVER'"
-                @click="removeClass(scope.row)"
-              >删除</el-button>
+              <el-button type="text"
+                         v-permission="{parent:'/vipReset',child:'courseSchedule/classStartDateAdjust'}"
+                         v-if="!scope.row.isSettlement"
+                         @click="resetClass(scope.row)">调整</el-button>
+              <el-button type="text"
+                         v-permission="{parent:'/vipReset',child:'courseSchedule/batchDelete'}"
+                         v-if="!scope.row.isSettlement&&scope.row.status != 'OVER'"
+                         @click="removeClass(scope.row)">删除</el-button>
               <!--   -->
-              <el-button
-                type="text"
-                v-permission="{parent:'/vipReset',child:'vip/cleanAttendance'}"
-                v-if="!scope.row.isSettlement"
-                @click="clearAttend(scope.row)"
-              >清除考勤</el-button>
+              <el-button type="text"
+                         v-permission="{parent:'/vipReset',child:'vip/cleanAttendance'}"
+                         v-if="!scope.row.isSettlement"
+                         @click="clearAttend(scope.row)">清除考勤</el-button>
             </div>
           </template>
         </el-table-column>
       </el-table>
-      <pagination
-        :total="rules.total"
-        :page.sync="rules.page"
-        :limit.sync="rules.limit"
-        :page-sizes="rules.page_size"
-        @pagination="getList"
-      />
+      <pagination :total="rules.total"
+                  :page.sync="rules.page"
+                  :limit.sync="rules.limit"
+                  :page-sizes="rules.page_size"
+                  @pagination="getList" />
     </div>
-    <el-dialog title="课程调整" width="400px" :before-close="handleClose" :visible.sync="courseVisible">
-      <el-form
-        :model="maskForm"
-        ref="maskForm"
-        :rules="maskRules"
-        label-position="right"
-        label-width="80px;"
-        :inline="true"
-      >
-        <el-form-item label="上课日期" prop="date">
-          <el-date-picker
-            v-model.trim="maskForm.date"
-            style="width:200px!important;"
-            type="date"
-            value-format="yyyy-MM-dd"
-            placeholder="选择日期"
-          ></el-date-picker>
+    <el-dialog title="课程调整"
+               width="400px"
+               :before-close="handleClose"
+               :visible.sync="courseVisible">
+      <el-form :model="maskForm"
+               ref="maskForm"
+               :rules="maskRules"
+               label-position="right"
+               label-width="80px;"
+               :inline="true">
+        <el-form-item label="上课日期"
+                      prop="date">
+          <el-date-picker v-model.trim="maskForm.date"
+                          style="width:200px!important;"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          placeholder="选择日期"></el-date-picker>
         </el-form-item>
-        <el-form-item label="开始时间" prop="startTime">
-          <el-time-select
-            placeholder="起始时间"
-            style="width:200px!important;"
-            v-model.trim="startTime"
-            :picker-options="{
+        <el-form-item label="开始时间"
+                      prop="startTime">
+          <el-time-select placeholder="起始时间"
+                          style="width:200px!important;"
+                          v-model.trim="startTime"
+                          :picker-options="{
                             start: '04:30',
                             step: '00:05',
                             end: '23:30'
-                            }"
-          ></el-time-select>
+                            }"></el-time-select>
         </el-form-item>
         <!-- <el-form-item label="结束时间"
                       prop="endTime">
@@ -150,26 +155,33 @@
                           }">
           </el-time-select>
         </el-form-item>  v-if="maskForm.teachMode=='OFFLINE'"-->
-        <el-form-item label="课程类型" prop="courseType">
-          <el-select clearable v-model.trim="maskForm.teachMode">
-            <el-option label="线上课" value="ONLINE"></el-option>
-            <el-option label="线下课" value="OFFLINE"></el-option>
+        <el-form-item label="课程类型"
+                      prop="courseType">
+          <el-select clearable
+                     v-model.trim="maskForm.teachMode">
+            <el-option label="线上课"
+                       value="ONLINE"></el-option>
+            <el-option label="线下课"
+                       value="OFFLINE"></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="教学地点" v-if="maskForm.teachMode == 'OFFLINE'">
-          <el-select v-model.trim="maskForm.address" filterable clearable>
-            <el-option
-              v-for="(item,index) in schoolList"
-              :key="index"
-              :value="item.id"
-              :label="item.name"
-            ></el-option>
+        <el-form-item label="教学地点"
+                      v-if="maskForm.teachMode == 'OFFLINE'">
+          <el-select v-model.trim="maskForm.address"
+                     filterable
+                     clearable>
+            <el-option v-for="(item,index) in schoolList"
+                       :key="index"
+                       :value="item.id"
+                       :label="item.name"></el-option>
           </el-select>
         </el-form-item>
       </el-form>
-      <div slot="footer" class="dialog-footer">
+      <div slot="footer"
+           class="dialog-footer">
         <el-button @click="courseVisible = false">取 消</el-button>
-        <el-button type="primary" @click="submitResetClass">确 定</el-button>
+        <el-button type="primary"
+                   @click="submitResetClass">确 定</el-button>
       </div>
     </el-dialog>
     <!-- a  -->
@@ -241,129 +253,152 @@
                    @click="submitAdd">确 定</el-button>
       </span>
     </el-dialog>-->
-    <el-dialog :title="adjustmentName" width="800px" :visible.sync="adjustmentVisible">
-      <el-form
-        :model="adjustmentForm"
-        label-position="right"
-        label-width="120px"
-        ref="adjustmentForm"
-        :rules="adjustmentRules"
-        :inline="true"
-      >
-        <el-form-item label="已选择课时数" v-if="!isaddCourse">
-          <el-input disabled v-model.trim="adjustmentForm.count"></el-input>
+    <el-dialog :title="adjustmentName"
+               width="800px"
+               :visible.sync="adjustmentVisible">
+      <el-form :model="adjustmentForm"
+               label-position="right"
+               label-width="120px"
+               ref="adjustmentForm"
+               :rules="adjustmentRules"
+               :inline="true">
+        <el-form-item label="已选择课时数"
+                      v-if="!isaddCourse">
+          <el-input disabled
+                    v-model.trim="adjustmentForm.count"></el-input>
         </el-form-item>
-        <el-form-item label="添加课时数" prop="addCount" v-if="isaddCourse">
-          <el-input type="number" @mousewheel.native.prevent v-model.trim="adjustmentForm.addCount"></el-input>
+        <el-form-item label="添加课时数"
+                      prop="addCount"
+                      v-if="isaddCourse">
+          <el-input type="number"
+                    @mousewheel.native.prevent
+                    v-model.trim="adjustmentForm.addCount"></el-input>
         </el-form-item>
         <br />
-        <el-form-item label="单课费用" prop="fee" v-if="isaddCourse">
+        <el-form-item label="单课费用"
+                      prop="fee"
+                      v-if="isaddCourse">
           <el-input v-model.trim="adjustmentForm.fee"></el-input>
         </el-form-item>
         <!--  v-if='isaddCourse' v-if="adjustmentForm.courseType=='OFFLINE'" -->
-        <el-form-item label="课程类型" prop="courseType">
-          <el-select clearable v-model.trim="adjustmentForm.courseType">
-            <el-option label="线上课" value="ONLINE"></el-option>
-            <el-option label="线下课" value="OFFLINE"></el-option>
+        <el-form-item label="课程类型"
+                      prop="courseType">
+          <el-select clearable
+                     v-model.trim="adjustmentForm.courseType">
+            <el-option label="线上课"
+                       value="ONLINE"></el-option>
+            <el-option label="线下课"
+                       value="OFFLINE"></el-option>
           </el-select>
         </el-form-item>
         <br />
-        <el-form-item label="排课起始时间" prop="courseTime">
-          <el-date-picker
-            v-model.trim="adjustmentForm.courseTime"
-            :picker-options="pickerOptions"
-            style="width:200px!important;"
-            type="date"
-            value-format="yyyy-MM-dd"
-            placeholder="选择日期"
-          ></el-date-picker>
-          <el-checkbox style="margin-left:10px;" v-model.trim="adjustmentForm.checked">是否跳过节假日</el-checkbox>
+        <el-form-item label="排课起始时间"
+                      prop="courseTime">
+          <el-date-picker v-model.trim="adjustmentForm.courseTime"
+                          :picker-options="pickerOptions"
+                          style="width:200px!important;"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          placeholder="选择日期"></el-date-picker>
+          <el-checkbox style="margin-left:10px;"
+                       v-model.trim="adjustmentForm.checked">是否跳过节假日</el-checkbox>
         </el-form-item>
       </el-form>
       <div class="WeekWrap">
         <h3 style="margin-bottom:20px;">
           循环次数
-          <el-button type="text" style="margin-left:10px;" @click="addWeek">添加</el-button>
+          <el-button type="text"
+                     style="margin-left:10px;"
+                     @click="addWeek">添加</el-button>
         </h3>
-        <div class="countWrap" style="margin-bottom:10px;">
-          <div
-            class="countItem"
-            style="margin-bottom:20px;"
-            v-for="(item,index) in weekList"
-            :key="index"
-          >
+        <div class="countWrap"
+             style="margin-bottom:10px;">
+          <div class="countItem"
+               style="margin-bottom:20px;"
+               v-for="(item,index) in weekList"
+               :key="index">
             <span>循环周期:</span>
-            <el-select v-model.trim="item.dayOfWeek" filterable clearable>
-              <el-option
-                v-for="(item,index) in weekDateList"
-                :key="index"
-                :label="item.label"
-                :value="item.value"
-              ></el-option>
+            <el-select v-model.trim="item.dayOfWeek"
+                       filterable
+                       clearable>
+              <el-option v-for="(item,index) in weekDateList"
+                         :key="index"
+                         :label="item.label"
+                         :value="item.value"></el-option>
             </el-select>
             <span style="margin-left:10px;">开始时间</span>
-            <el-time-select
-              style="margin-left:10px;"
-              placeholder
-              v-model.trim="item.startClassTime"
-              :picker-options="{
+            <el-time-select style="margin-left:10px;"
+                            placeholder
+                            v-model.trim="item.startClassTime"
+                            :picker-options="{
                                start: '04:30',
                                step: '00:05',
                                end: '23:55'
-            }"
-            ></el-time-select>
-            <el-button
-              style="margin-left:10px;"
-              type="danger"
-              @click="removeWeek(item)"
-              icon="el-icon-delete"
-              circle
-            ></el-button>
+            }"></el-time-select>
+            <el-button style="margin-left:10px;"
+                       type="danger"
+                       @click="removeWeek(item)"
+                       icon="el-icon-delete"
+                       circle></el-button>
           </div>
         </div>
       </div>
-      <div slot="footer" class="dialog-footer">
+      <div slot="footer"
+           class="dialog-footer">
         <el-button @click="adjustmentVisible = false">取 消</el-button>
-        <el-button type="primary" v-if="!isaddCourse" @click="submitAdjustment">确 定</el-button>
-        <el-button type="primary" v-if="isaddCourse" @click="addCourseSubmit">确 定</el-button>
+        <el-button type="primary"
+                   v-if="!isaddCourse"
+                   @click="submitAdjustment">确 定</el-button>
+        <el-button type="primary"
+                   v-if="isaddCourse"
+                   @click="addCourseSubmit">确 定</el-button>
       </div>
     </el-dialog>
     <!-- 批量修改教学点 -->
-    <el-dialog title="教学点" width="400px" :visible.sync="addrVisible">
+    <el-dialog title="教学点"
+               width="400px"
+               :visible.sync="addrVisible">
       <el-form :model="addrForm">
         <el-form-item label="教学点">
-          <el-select v-model.trim="addrForm.address" clearable filterable>
-            <el-option
-              v-for="(item,index) in schoolList"
-              :key="index"
-              :value="item.id"
-              :label="item.name"
-            ></el-option>
+          <el-select v-model.trim="addrForm.address"
+                     clearable
+                     filterable>
+            <el-option v-for="(item,index) in schoolList"
+                       :key="index"
+                       :value="item.id"
+                       :label="item.name"></el-option>
           </el-select>
         </el-form-item>
       </el-form>
-      <span slot="footer" class="dialog-footer">
+      <span slot="footer"
+            class="dialog-footer">
         <el-button @click="addrVisible = false">取 消</el-button>
-        <el-button type="primary" @click="resetAddrSubmit">确 定</el-button>
+        <el-button type="primary"
+                   @click="resetAddrSubmit">确 定</el-button>
       </span>
     </el-dialog>
     <!-- 修改教务老师 -->
-    <el-dialog title="修改教务" width="400px" :visible.sync="educationalVisible">
+    <el-dialog title="修改教务"
+               width="400px"
+               :visible.sync="educationalVisible">
       <el-form :model="addrForm">
-        <el-form-item label="教务老师" prop="educationalTeacherId">
-          <el-select v-model.trim="addrForm.educationalTeacherId" filterable clearable>
-            <el-option
-              v-for="(item,index) in educationList"
-              :key="index"
-              :label="item.userName"
-              :value="item.userId"
-            />
+        <el-form-item label="教务老师"
+                      prop="educationalTeacherId">
+          <el-select v-model.trim="addrForm.educationalTeacherId"
+                     filterable
+                     clearable>
+            <el-option v-for="(item,index) in educationList"
+                       :key="index"
+                       :label="item.userName"
+                       :value="item.userId" />
           </el-select>
         </el-form-item>
       </el-form>
-      <span slot="footer" class="dialog-footer">
+      <span slot="footer"
+            class="dialog-footer">
         <el-button @click="educationalVisible = false">取 消</el-button>
-        <el-button type="primary" @click="resetEducationalVisible">确 定</el-button>
+        <el-button type="primary"
+                   @click="resetEducationalVisible">确 定</el-button>
       </span>
     </el-dialog>
   </div>
@@ -389,10 +424,10 @@ export default {
   components: {
     pagination
   },
-  data() {
+  data () {
     return {
       pickerOptions: {
-        disabledDate(time) {
+        disabledDate (time) {
           return time.getTime() + 86400000 <= new Date().getTime();
         }
       },
@@ -473,17 +508,17 @@ export default {
       startTime: ""
     };
   },
-  created() {},
-  mounted() {
+  created () { },
+  mounted () {
     this.__init();
     this.getList();
   },
-  activated() {
+  activated () {
     this.__init();
     this.getList();
   },
   methods: {
-    __init() {
+    __init () {
       this.vipid = this.$route.query.id;
       if (this.$route.query.educationalTeacherId) {
         this.addrForm.educationalTeacherId = this.$route.query.educationalTeacherId;
@@ -504,7 +539,7 @@ export default {
         }
       });
     },
-    getList() {
+    getList () {
       findVipGroupCourseSchedules({
         vipGroupId: this.vipid,
         rows: this.rules.limit,
@@ -526,13 +561,13 @@ export default {
         }
       });
     },
-    goBack() {
+    goBack () {
       this.$router.push({
         path: "/business/vipList",
         query: { rules: this.Frules, searchForm: this.FsearchForm }
       });
     },
-    resetClass(row) {
+    resetClass (row) {
       /**
        * maskForm.startTime
        *
@@ -546,7 +581,7 @@ export default {
       // 修改课时
       this.courseVisible = true;
     },
-    handleClose() {
+    handleClose () {
       this.courseVisible = false;
       this.startTime = "";
       this.maskForm = {
@@ -559,7 +594,7 @@ export default {
       };
       this.$refs["maskForm"].resetFields();
     },
-    submitResetClass() {
+    submitResetClass () {
       //   endClassTimeStr: this.maskForm.endTime,
       if (!this.startTime) {
         this.$message.error("请填写修改时间");
@@ -596,7 +631,7 @@ export default {
         // }
       });
     },
-    removeClass(row) {
+    removeClass (row) {
       this.$confirm("是否删除该vip课程?", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -611,14 +646,14 @@ export default {
       });
     },
     // vip 家课
-    addCourse() {
+    addCourse () {
       this.adjustmentName = "vip加课";
       this.isaddCourse = true;
       this.adjustmentVisible = true;
       // this.adjustmentForm.count = 0;
       // this.addCourseVisible = true;
     },
-    addOneChiose() {
+    addOneChiose () {
       this.addTable.push({
         classDate: "",
         startClassTimeStr: "",
@@ -627,14 +662,14 @@ export default {
         moid: new Date().getTime()
       });
     },
-    removeMarkCourse(row) {
+    removeMarkCourse (row) {
       for (let i in this.addTable) {
         if (this.addTable[i].moid == row.moid) {
           this.addTable.splice(i, 1);
         }
       }
     },
-    submitAdd() {
+    submitAdd () {
       let endClassTimeStr = this.MinutesTest(
         this.addTable[0].startClassTimeStr,
         90
@@ -666,7 +701,7 @@ export default {
         }
       });
     },
-    isDisabled(row, index) {
+    isDisabled (row, index) {
       if (row.isSettlement) {
         return false;
       } else {
@@ -674,7 +709,7 @@ export default {
       }
     },
     // 分钟小时相加减
-    MinutesTest(str, interval) {
+    MinutesTest (str, interval) {
       let houer = str.split(":")[0];
       let min = str.split(":")[1];
       let sdate1 = new Date(1900, 1, 1, houer, min);
@@ -685,11 +720,11 @@ export default {
       if (M < 10) M = "0" + M;
       return H + ":" + M;
     },
-    handleSelectionChange(val) {
+    handleSelectionChange (val) {
       this.adjustmentForm.count = val.length;
       this.activeList = val;
     },
-    addWeek() {
+    addWeek () {
       // 添加循环周期
       this.weekList.push({
         dayOfWeek: "",
@@ -699,14 +734,14 @@ export default {
       });
     },
     // 删除循环周
-    removeWeek(item) {
+    removeWeek (item) {
       for (let i in this.weekList) {
         if (this.weekList[i].id == item.id) {
           this.weekList.splice(i, 1);
         }
       }
     },
-    adjustment() {
+    adjustment () {
       this.adjustmentName = "批量调整";
       this.isaddCourse = false;
       if (this.adjustmentForm.count <= 0) {
@@ -715,7 +750,7 @@ export default {
         this.adjustmentVisible = true;
       }
     },
-    submitAdjustment() {
+    submitAdjustment () {
       this.$refs["adjustmentForm"].validate(item => {
         if (item) {
           let week = this.weekList;
@@ -758,7 +793,7 @@ export default {
         }
       });
     },
-    addCourseSubmit() {
+    addCourseSubmit () {
       this.$refs["adjustmentForm"].validate(item => {
         if (item) {
           let week = this.weekList;
@@ -791,7 +826,7 @@ export default {
         }
       });
     },
-    resetAddrSubmit() {
+    resetAddrSubmit () {
       if (!this.addrForm.address) {
         this.$message.error("请选择一个教学点");
         return;
@@ -809,7 +844,7 @@ export default {
         }
       });
     },
-    resetEducationalVisible() {
+    resetEducationalVisible () {
       if (!this.addrForm.educationalTeacherId) {
         this.$message.error("请选择一个教学点");
         return;
@@ -828,7 +863,7 @@ export default {
       });
     },
     // 清除考勤
-    clearAttend(row) {
+    clearAttend (row) {
       this.$confirm("是否清除考勤记录?", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -844,18 +879,18 @@ export default {
             }
           });
         })
-        .catch(() => {});
+        .catch(() => { });
     }
   },
   watch: {
-    adjustmentVisible(val) {
+    adjustmentVisible (val) {
       if (!val) {
         this.$refs["adjustmentForm"].resetFields();
         this.weekList = [];
         this.addWeek();
       }
     },
-    addrVisible(val) {
+    addrVisible (val) {
       if (!val) {
         this.addrForm.address = "";
       }

部分文件因为文件数量过多而无法显示