|
@@ -1684,8 +1684,10 @@ export default {
|
|
|
this.form.properties.EXAM_CYCLE_WEEK = JSON.stringify(
|
|
|
this.examCycleWeekArr
|
|
|
);
|
|
|
- console.log(this.form);
|
|
|
let url = EXAM_WORK_API + "/exam";
|
|
|
+ if (!this.checkCkeditorVals()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (this.examId != "add") {
|
|
@@ -1722,6 +1724,20 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ checkCkeditorVals() {
|
|
|
+ if (
|
|
|
+ this.form.properties.SHOW_UNDERTAKING == "true" &&
|
|
|
+ !this.form.properties.UNDERTAKING
|
|
|
+ ) {
|
|
|
+ this.$notify({
|
|
|
+ type: "warning",
|
|
|
+ message: "请输入承诺书说明",
|
|
|
+ });
|
|
|
+ this.activeName = "tab3";
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ },
|
|
|
back() {
|
|
|
this.$router.push({ path: "/examwork/examInfo" });
|
|
|
},
|