|
@@ -132,7 +132,7 @@
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- <el-button type="primary" @click="getExams">刷新</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="refresh">刷新</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="thirdRelateName" v-if="examType === 'create'">
|
|
<el-form-item prop="thirdRelateName" v-if="examType === 'create'">
|
|
<el-input
|
|
<el-input
|
|
@@ -164,13 +164,14 @@
|
|
import {
|
|
import {
|
|
printPlanSyncStmms,
|
|
printPlanSyncStmms,
|
|
printPlanCourseRelateList,
|
|
printPlanCourseRelateList,
|
|
- printPlanSyncRelateExamList
|
|
|
|
|
|
+ printPlanSyncRelateExamList,
|
|
|
|
+ printPlanRelateExamList
|
|
} from "../api";
|
|
} from "../api";
|
|
|
|
|
|
const initModalForm = {
|
|
const initModalForm = {
|
|
thirdRelateId: "",
|
|
thirdRelateId: "",
|
|
thirdRelateName: "",
|
|
thirdRelateName: "",
|
|
- courseIds: [],
|
|
|
|
|
|
+ list: [],
|
|
examTime: null
|
|
examTime: null
|
|
};
|
|
};
|
|
|
|
|
|
@@ -246,7 +247,7 @@ export default {
|
|
courseName: ""
|
|
courseName: ""
|
|
};
|
|
};
|
|
this.modalForm = { ...initModalForm };
|
|
this.modalForm = { ...initModalForm };
|
|
- this.modalForm.courseIds = [];
|
|
|
|
|
|
+ this.modalForm.list = [];
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.modalFormComp.clearValidate();
|
|
this.$refs.modalFormComp.clearValidate();
|
|
});
|
|
});
|
|
@@ -257,6 +258,10 @@ export default {
|
|
this.getExams();
|
|
this.getExams();
|
|
},
|
|
},
|
|
async getExams() {
|
|
async getExams() {
|
|
|
|
+ const data = await printPlanRelateExamList();
|
|
|
|
+ this.thirdRelateExams = data || [];
|
|
|
|
+ },
|
|
|
|
+ async refresh() {
|
|
const data = await printPlanSyncRelateExamList();
|
|
const data = await printPlanSyncRelateExamList();
|
|
this.thirdRelateExams = data || [];
|
|
this.thirdRelateExams = data || [];
|
|
},
|
|
},
|
|
@@ -274,7 +279,7 @@ export default {
|
|
this.modalIsShow = true;
|
|
this.modalIsShow = true;
|
|
},
|
|
},
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
- this.modalForm.courseIds = val.map(item => item.id);
|
|
|
|
|
|
+ this.modalForm.list = val.map(item => item.id);
|
|
},
|
|
},
|
|
examTypeChange() {
|
|
examTypeChange() {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -289,7 +294,7 @@ export default {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
const data = await printPlanSyncStmms({
|
|
const data = await printPlanSyncStmms({
|
|
...this.modalForm,
|
|
...this.modalForm,
|
|
- planIds: this.ids
|
|
|
|
|
|
+ printPlanIds: this.ids
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
|