|
@@ -21,6 +21,7 @@
|
|
|
|
|
|
<div class="tableWrap">
|
|
|
<el-table :data="tableList"
|
|
|
+ ref="tableList"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}">
|
|
|
<el-table-column type="selection"
|
|
@@ -184,7 +185,6 @@
|
|
|
@click="submitResetClass">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <!-- a -->
|
|
|
<!-- <el-dialog title="vip加课"
|
|
|
width="1000px"
|
|
|
:visible.sync="addCourseVisible">
|
|
@@ -291,6 +291,17 @@
|
|
|
value="OFFLINE"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="教学地点"
|
|
|
+ v-if="adjustmentForm.courseType == 'OFFLINE'">
|
|
|
+ <el-select v-model.trim="adjustmentForm.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>
|
|
|
<br />
|
|
|
<el-form-item label="排课起始时间"
|
|
|
prop="courseTime">
|
|
@@ -476,13 +487,15 @@ export default {
|
|
|
checked: false,
|
|
|
addCount: "",
|
|
|
courseType: "",
|
|
|
- fee: ""
|
|
|
+ fee: "",
|
|
|
+ address: ""
|
|
|
},
|
|
|
adjustmentRules: {
|
|
|
courseTime: [{ required: true, message: "请选择开始时间" }],
|
|
|
addCount: [{ required: true, message: "请输入加课次数" }],
|
|
|
courseType: [{ required: true, message: "请选择课程类型" }],
|
|
|
- fee: [{ required: true, message: "请输入费用" }]
|
|
|
+ fee: [{ required: true, message: "请输入费用" }],
|
|
|
+ address: [{ required: true, message: "请选择教学地点" }]
|
|
|
},
|
|
|
weekDateList: [
|
|
|
{ value: "1", label: "星期一" },
|
|
@@ -505,7 +518,8 @@ export default {
|
|
|
// 改版加课
|
|
|
isaddCourse: false,
|
|
|
adjustmentName: "",
|
|
|
- startTime: ""
|
|
|
+ startTime: "",
|
|
|
+ chioseVipList: []
|
|
|
};
|
|
|
},
|
|
|
created () { },
|
|
@@ -721,6 +735,7 @@ export default {
|
|
|
return H + ":" + M;
|
|
|
},
|
|
|
handleSelectionChange (val) {
|
|
|
+ this.chioseVipList = val
|
|
|
this.adjustmentForm.count = val.length;
|
|
|
this.activeList = val;
|
|
|
},
|
|
@@ -783,6 +798,7 @@ export default {
|
|
|
obj.teachMode = this.adjustmentForm.courseType || null;
|
|
|
obj.groupType = "VIP";
|
|
|
obj.vipGroupId = this.vipid;
|
|
|
+ obj.schoolId = this.adjustmentForm.address || null
|
|
|
vipCourseAdjust(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("恭喜您修改成功");
|
|
@@ -885,6 +901,16 @@ export default {
|
|
|
watch: {
|
|
|
adjustmentVisible (val) {
|
|
|
if (!val) {
|
|
|
+ this.adjustmentForm = {
|
|
|
+ count: "",
|
|
|
+ courseTime: "",
|
|
|
+ checked: false,
|
|
|
+ addCount: "",
|
|
|
+ courseType: "",
|
|
|
+ fee: "",
|
|
|
+ address: ""
|
|
|
+ }
|
|
|
+ this.$refs['tableList'].clearSelection();
|
|
|
this.$refs["adjustmentForm"].resetFields();
|
|
|
this.weekList = [];
|
|
|
this.addWeek();
|