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

班级价格修改

parent 431fd722
...@@ -431,11 +431,15 @@ ...@@ -431,11 +431,15 @@
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) {
this.objOption.OriginalPrice = val.OriginalPrice; if (val.OriginalPrice) {
this.objOption.SellPrice = val.SellPrice; this.objOption.OriginalPrice = val.OriginalPrice;
}
if (val.SellPrice) {
this.objOption.SellPrice = val.SellPrice;
}
} }
} }
}, },
......
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