|
@@ -202,8 +202,7 @@ export default {
|
|
...mapActions("base", ["updateCwStatus"]),
|
|
...mapActions("base", ["updateCwStatus"]),
|
|
async initData() {
|
|
async initData() {
|
|
await this.updateCwStatus({
|
|
await this.updateCwStatus({
|
|
- examId: this.course.examId,
|
|
|
|
- courseCode: this.course.courseCode,
|
|
|
|
|
|
+ teachCourseId: this.course.id,
|
|
});
|
|
});
|
|
await this.getList();
|
|
await this.getList();
|
|
if (this.cwStatus.currentSettingStatus) {
|
|
if (this.cwStatus.currentSettingStatus) {
|
|
@@ -212,8 +211,7 @@ export default {
|
|
},
|
|
},
|
|
async getList() {
|
|
async getList() {
|
|
const res = await courseWeightDetail({
|
|
const res = await courseWeightDetail({
|
|
- examId: this.course.examId,
|
|
|
|
- courseCode: this.course.courseCode,
|
|
|
|
|
|
+ teachCourseId: this.course.id,
|
|
});
|
|
});
|
|
this.defaultRate = res.defaultRate;
|
|
this.defaultRate = res.defaultRate;
|
|
this.customRate = res.customRate;
|
|
this.customRate = res.customRate;
|
|
@@ -407,8 +405,7 @@ export default {
|
|
|
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
const res = await courseWeightSave({
|
|
const res = await courseWeightSave({
|
|
- examId: this.course.examId,
|
|
|
|
- courseCode: this.course.courseCode,
|
|
|
|
|
|
+ teachCourseId: this.course.id,
|
|
defaultRate: this.defaultRate,
|
|
defaultRate: this.defaultRate,
|
|
customRate: this.customRate,
|
|
customRate: this.customRate,
|
|
submitForm: this.dataList,
|
|
submitForm: this.dataList,
|