|
@@ -69,8 +69,6 @@
|
|
|
<el-select
|
|
|
v-model="modalForm.relatePaperType"
|
|
|
placeholder="请选择"
|
|
|
- multiple
|
|
|
- :multiple-limit="drawCount"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in paperTypes"
|
|
@@ -167,7 +165,7 @@ const initModalForm = {
|
|
|
id: null,
|
|
|
examId: null,
|
|
|
paperNumber: "",
|
|
|
- relatePaperType: [],
|
|
|
+ relatePaperType: "",
|
|
|
};
|
|
|
|
|
|
export default {
|
|
@@ -189,7 +187,6 @@ export default {
|
|
|
papers: [],
|
|
|
paperTypes: [],
|
|
|
paperAttachments: [],
|
|
|
- drawCount: 0,
|
|
|
cardId: "",
|
|
|
rules: {
|
|
|
paperNumber: [
|
|
@@ -202,17 +199,7 @@ export default {
|
|
|
relatePaperType: [
|
|
|
{
|
|
|
required: true,
|
|
|
- validator: (rule, value, callback) => {
|
|
|
- if (
|
|
|
- value.length < this.drawCount ||
|
|
|
- value.length > this.drawCount
|
|
|
- ) {
|
|
|
- return callback(
|
|
|
- new Error(`需要选择${this.drawCount}套关联试卷`)
|
|
|
- );
|
|
|
- }
|
|
|
- callback();
|
|
|
- },
|
|
|
+ message: "请选择关联类型",
|
|
|
trigger: "change",
|
|
|
},
|
|
|
],
|
|
@@ -233,7 +220,6 @@ export default {
|
|
|
? JSON.parse(data.paperAttachmentIds)
|
|
|
: [];
|
|
|
this.cardId = data.cardId;
|
|
|
- this.drawCount = data.drawCount;
|
|
|
},
|
|
|
// async getPaperTypes() {
|
|
|
// const papers = await linkPaperNumberList({
|
|
@@ -326,7 +312,7 @@ export default {
|
|
|
const datas = {
|
|
|
examTaskId: this.modalForm.id,
|
|
|
examId: this.modalForm.examId,
|
|
|
- relatePaperType: this.modalForm.relatePaperType.join(),
|
|
|
+ relatePaperType: this.modalForm.relatePaperType,
|
|
|
paperNumber: this.modalForm.paperNumber,
|
|
|
printPlanId: this.instance.printPlanId,
|
|
|
examDetailCourseIds: this.instance.examDetailCourseIds,
|