|
@@ -723,6 +723,7 @@ export default {
|
|
offlineLookList: [], // 展示课表线下
|
|
offlineLookList: [], // 展示课表线下
|
|
timeTable: [], // 真正的课表
|
|
timeTable: [], // 真正的课表
|
|
giveNum: "",
|
|
giveNum: "",
|
|
|
|
+ chioseStudent: [],
|
|
weekDay: [
|
|
weekDay: [
|
|
"星期日",
|
|
"星期日",
|
|
"星期一",
|
|
"星期一",
|
|
@@ -820,6 +821,7 @@ export default {
|
|
studentList: [],
|
|
studentList: [],
|
|
courseTimeList: [],
|
|
courseTimeList: [],
|
|
isMusicTheory: false,
|
|
isMusicTheory: false,
|
|
|
|
+ chioseStudent: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -869,9 +871,9 @@ export default {
|
|
this.$confirm("检测到您有未提交的数据, 是否恢复?", "提示", {
|
|
this.$confirm("检测到您有未提交的数据, 是否恢复?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- closeOnClickModal:false,
|
|
|
|
|
|
+ closeOnClickModal: false,
|
|
type: "warning",
|
|
type: "warning",
|
|
- }).then(() => {
|
|
|
|
|
|
+ }).then(async() => {
|
|
this.activeStudentList = sotrage.activeStudentList;
|
|
this.activeStudentList = sotrage.activeStudentList;
|
|
this.centerForm = sotrage.centerForm;
|
|
this.centerForm = sotrage.centerForm;
|
|
this.leftForm = sotrage.leftForm;
|
|
this.leftForm = sotrage.leftForm;
|
|
@@ -879,12 +881,24 @@ export default {
|
|
this.timeTable = sotrage.timeTable;
|
|
this.timeTable = sotrage.timeTable;
|
|
this.educationList = sotrage.educationList;
|
|
this.educationList = sotrage.educationList;
|
|
this.courseTypeList = sotrage.courseTypeList;
|
|
this.courseTypeList = sotrage.courseTypeList;
|
|
|
|
+ // 为了刷新线上课单价和线下课单价
|
|
|
|
+ await vipGroupCategory({
|
|
|
|
+ organId: sotrage?.leftForm?.classOrganId,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.courseTypeList = res.data;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
this.scetionList = sotrage.scetionList;
|
|
this.scetionList = sotrage.scetionList;
|
|
this.studentList = sotrage.studentList;
|
|
this.studentList = sotrage.studentList;
|
|
this.activeList = sotrage.activeList;
|
|
this.activeList = sotrage.activeList;
|
|
this.studentLimit = sotrage.studentLimit;
|
|
this.studentLimit = sotrage.studentLimit;
|
|
- this.teacherList = sotrage.teacherList
|
|
|
|
- this.isMusicTheory = sotrage.isMusicTheory
|
|
|
|
|
|
+ this.teacherList = sotrage.teacherList;
|
|
|
|
+ this.isMusicTheory = sotrage.isMusicTheory;
|
|
|
|
+ this.chioseStudent = sotrage.chioseStudent;
|
|
|
|
+ if (this.leftForm?.courseType) {
|
|
|
|
+ this.changePrice(this.leftForm.courseType);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
this.init();
|
|
this.init();
|
|
@@ -910,7 +924,8 @@ export default {
|
|
studentList: this.studentList,
|
|
studentList: this.studentList,
|
|
activeList: this.activeList,
|
|
activeList: this.activeList,
|
|
studentLimit: this.studentLimit,
|
|
studentLimit: this.studentLimit,
|
|
- isMusicTheory:this.isMusicTheory
|
|
|
|
|
|
+ isMusicTheory: this.isMusicTheory,
|
|
|
|
+ chioseStudent: this.chioseStudent,
|
|
// computationalBtn:this.computationalBtn,
|
|
// computationalBtn:this.computationalBtn,
|
|
};
|
|
};
|
|
localStorage.setItem(`newVip`, JSON.stringify(obj));
|
|
localStorage.setItem(`newVip`, JSON.stringify(obj));
|
|
@@ -976,6 +991,7 @@ export default {
|
|
this.offlineLookList = []; // 展示课表线下
|
|
this.offlineLookList = []; // 展示课表线下
|
|
this.timeTable = []; // 真正的课表
|
|
this.timeTable = []; // 真正的课表
|
|
this.giveNum = "";
|
|
this.giveNum = "";
|
|
|
|
+ this.chioseStudent = [];
|
|
this.$refs["leftForm"].resetFields();
|
|
this.$refs["leftForm"].resetFields();
|
|
localStorage.removeItem("newVip");
|
|
localStorage.removeItem("newVip");
|
|
},
|
|
},
|
|
@@ -1088,6 +1104,9 @@ export default {
|
|
this.rightForm.onlineCourse = "";
|
|
this.rightForm.onlineCourse = "";
|
|
this.leftForm.activeType = "";
|
|
this.leftForm.activeType = "";
|
|
this.leftForm.students = []; // 重置所选学生
|
|
this.leftForm.students = []; // 重置所选学生
|
|
|
|
+ this.changePrice(val);
|
|
|
|
+ },
|
|
|
|
+ changePrice(val) {
|
|
for (let i in this.courseTypeList) {
|
|
for (let i in this.courseTypeList) {
|
|
if (this.courseTypeList[i].id == val) {
|
|
if (this.courseTypeList[i].id == val) {
|
|
// 学生人数
|
|
// 学生人数
|
|
@@ -1107,6 +1126,24 @@ export default {
|
|
this.isMusicTheory = this.courseTypeList[i].musicTheory;
|
|
this.isMusicTheory = this.courseTypeList[i].musicTheory;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ this.activeStudentList = [];
|
|
|
|
+ this.studentList.forEach((stu) => {
|
|
|
|
+ if (this.chioseStudent.indexOf(stu.userId) != -1) {
|
|
|
|
+ this.activeStudentList.push({
|
|
|
|
+ studentId: stu.userId,
|
|
|
|
+ userName: stu.username,
|
|
|
|
+ onlineClassesUnitPrice: this.rightForm.onlinePrice,
|
|
|
|
+ offlineClassesUnitPrice: this.rightForm.offlinePrice,
|
|
|
|
+ paymentPrice: "",
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ console.log(
|
|
|
|
+ this.activeStudentList,
|
|
|
|
+ this.rightForm.offlinePrice,
|
|
|
|
+ this.rightForm.onlinePrice,
|
|
|
|
+ this.chioseStudent
|
|
|
|
+ );
|
|
},
|
|
},
|
|
// 选择活动方案
|
|
// 选择活动方案
|
|
chioseActive(val) {
|
|
chioseActive(val) {
|
|
@@ -1641,9 +1678,8 @@ export default {
|
|
};
|
|
};
|
|
// 新增
|
|
// 新增
|
|
createVip(obj).then((res) => {
|
|
createVip(obj).then((res) => {
|
|
-
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- this.resetFrom()
|
|
|
|
|
|
+ this.resetFrom();
|
|
if (res.data == "ING") {
|
|
if (res.data == "ING") {
|
|
this.$confirm(
|
|
this.$confirm(
|
|
"课程提交成功,已提交运营主管审批,审批通过后,课程创建成功!",
|
|
"课程提交成功,已提交运营主管审批,审批通过后,课程创建成功!",
|
|
@@ -1683,7 +1719,7 @@ export default {
|
|
obj.allowOverstepActivityStudentNum = 1;
|
|
obj.allowOverstepActivityStudentNum = 1;
|
|
createVip(obj).then((res) => {
|
|
createVip(obj).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- this.resetFrom()
|
|
|
|
|
|
+ this.resetFrom();
|
|
this.$message.success("提交成功");
|
|
this.$message.success("提交成功");
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -1935,7 +1971,7 @@ export default {
|
|
changeStudent(val) {
|
|
changeStudent(val) {
|
|
this.leftForm.activeType = "";
|
|
this.leftForm.activeType = "";
|
|
this.activeStudentList = [];
|
|
this.activeStudentList = [];
|
|
-
|
|
|
|
|
|
+ this.chioseStudent = val;
|
|
this.studentList.forEach((stu) => {
|
|
this.studentList.forEach((stu) => {
|
|
if (val.indexOf(stu.userId) != -1) {
|
|
if (val.indexOf(stu.userId) != -1) {
|
|
this.activeStudentList.push({
|
|
this.activeStudentList.push({
|