Commit 6e428441 authored by 黄奎's avatar 黄奎

班级价格修改

parent 431fd722
...@@ -431,13 +431,17 @@ ...@@ -431,13 +431,17 @@
methods: { methods: {
//选择课程改变事件 //选择课程改变事件
changeCourse() { changeCourse() {
if (this.objOption.CouseId > 0) { if (this.objOption.CouseId > 0 && this.CourseList && this.CourseList.length > 0) {
let val = this.CourseList.find(x => x.CourseId == this.objOption.CouseId); let val = this.CourseList.find(x => x.CourseId == this.objOption.CouseId);
if (val) { if (val) {
if (val.OriginalPrice) {
this.objOption.OriginalPrice = val.OriginalPrice; this.objOption.OriginalPrice = val.OriginalPrice;
}
if (val.SellPrice) {
this.objOption.SellPrice = val.SellPrice; this.objOption.SellPrice = val.SellPrice;
} }
} }
}
}, },
//初始化日期-天 //初始化日期-天
initDayList() { initDayList() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment