|
@@ -692,7 +692,7 @@ const initTaskApply = {
|
|
|
cardRuleId: "",
|
|
|
makeMethod: "",
|
|
|
remark: "",
|
|
|
- courseCode: "",
|
|
|
+ courseId: "",
|
|
|
courseName: "",
|
|
|
drawCount: 1,
|
|
|
exposedPaperType: "",
|
|
@@ -861,7 +861,7 @@ export default {
|
|
|
},
|
|
|
canCreateCard() {
|
|
|
return (
|
|
|
- this.curTaskApply.courseCode &&
|
|
|
+ this.curTaskApply.courseId &&
|
|
|
this.curTaskApply.examId &&
|
|
|
this.curTaskApply.cardRuleId !== COMMON_CARD_RULE_ID
|
|
|
);
|
|
@@ -894,7 +894,7 @@ export default {
|
|
|
this.curTaskApply.examId =
|
|
|
this.curTaskApply.examId || this.examTask.examId;
|
|
|
this.curTaskApply.examTaskId = this.examTask.id;
|
|
|
- this.curTaskApply.courseCode = this.examTask.courseCode;
|
|
|
+ this.curTaskApply.courseId = this.examTask.courseId;
|
|
|
this.curTaskApply.courseName = this.examTask.courseName;
|
|
|
this.curTaskApply.cardRuleId = this.examTask.cardRuleId;
|
|
|
this.curTaskApply.customCard = this.examTask.customCard;
|
|
@@ -979,9 +979,9 @@ export default {
|
|
|
this.curTab = tab;
|
|
|
},
|
|
|
async getCardList() {
|
|
|
- if (!this.curTaskApply.courseCode || !this.curTaskApply.examId) return;
|
|
|
+ if (!this.curTaskApply.courseId || !this.curTaskApply.examId) return;
|
|
|
const data = await cardForSelectList({
|
|
|
- courseCode: this.curTaskApply.courseCode,
|
|
|
+ courseId: this.curTaskApply.courseId,
|
|
|
examId: this.curTaskApply.examId,
|
|
|
paperNumber: this.curTaskApply.paperNumber,
|
|
|
});
|
|
@@ -1163,7 +1163,7 @@ export default {
|
|
|
this.curAttachment = { ...attachment };
|
|
|
const newCardId = await copyCard(
|
|
|
attachment.cardId,
|
|
|
- this.curTaskApply.courseCode
|
|
|
+ this.curTaskApply.courseId
|
|
|
);
|
|
|
this.cardModified({ id: newCardId });
|
|
|
},
|
|
@@ -1172,7 +1172,7 @@ export default {
|
|
|
this.$ls.set("prepareTcPCard", {
|
|
|
id: attachment.cardId,
|
|
|
examTaskId: this.curTaskApply.examTaskId,
|
|
|
- courseCode: this.curTaskApply.courseCode,
|
|
|
+ courseId: this.curTaskApply.courseId,
|
|
|
courseName: this.curTaskApply.courseName,
|
|
|
makeMethod: this.curTaskApply.makeMethod,
|
|
|
cardRuleId: this.curTaskApply.cardRuleId,
|
|
@@ -1250,7 +1250,7 @@ export default {
|
|
|
this.curAttachment = { ...attachment };
|
|
|
// 这里只允许新建标准专卡
|
|
|
this.$ls.set("prepareTcPCard", {
|
|
|
- courseCode: this.examTask.courseCode,
|
|
|
+ courseId: this.examTask.courseId,
|
|
|
courseName: this.examTask.courseName,
|
|
|
schoolName: this.$ls.get("schoolName"),
|
|
|
makeMethod: "SELF",
|
|
@@ -1364,14 +1364,14 @@ export default {
|
|
|
toSelect(attachment) {
|
|
|
this.curAttachment = {
|
|
|
...attachment,
|
|
|
- courseCode: this.examTask.courseCode,
|
|
|
+ courseId: this.examTask.courseId,
|
|
|
};
|
|
|
this.$refs.SelectTikuPaperDialog.open();
|
|
|
},
|
|
|
async tikuPaperSelected(data) {
|
|
|
this.cardBuildPresetData = {
|
|
|
examId: this.examTask.examId,
|
|
|
- courseCode: this.examTask.courseCode,
|
|
|
+ courseId: this.examTask.courseId,
|
|
|
courseName: this.examTask.courseName,
|
|
|
schoolName: this.$ls.get("schoolName"),
|
|
|
makeMethod: "SELF",
|