|
@@ -678,6 +678,15 @@ export default {
|
|
|
this.show_ckeditor = true;
|
|
|
}
|
|
|
},
|
|
|
+ compare: function (x, y) {
|
|
|
+ if (x < y) {
|
|
|
+ return -1;
|
|
|
+ } else if (x > y) {
|
|
|
+ return 1;
|
|
|
+ } else {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ },
|
|
|
saveExam: function () {
|
|
|
this.toActiveName = null;
|
|
|
this.form.beginTime = this.examDatetimeRange[0];
|
|
@@ -685,6 +694,7 @@ export default {
|
|
|
this.form.properties.EXAM_CYCLE_TIME_RANGE = JSON.stringify(
|
|
|
this.examCycleTimeRangeArr
|
|
|
);
|
|
|
+ this.examCycleWeekArr.sort(this.compare);
|
|
|
this.form.properties.EXAM_CYCLE_WEEK = JSON.stringify(
|
|
|
this.examCycleWeekArr
|
|
|
);
|