|
@@ -2,7 +2,7 @@
|
|
<el-dialog
|
|
<el-dialog
|
|
class="print-plan-batch-push-dialog page-dialog"
|
|
class="print-plan-batch-push-dialog page-dialog"
|
|
:visible.sync="modalIsShow"
|
|
:visible.sync="modalIsShow"
|
|
- title="批量推送"
|
|
|
|
|
|
+ title="推送课程"
|
|
top="0"
|
|
top="0"
|
|
width="1100px"
|
|
width="1100px"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
@@ -10,95 +10,6 @@
|
|
append-to-body
|
|
append-to-body
|
|
@open="visibleChange"
|
|
@open="visibleChange"
|
|
>
|
|
>
|
|
- <div class="part-box part-box-filter part-box-flex">
|
|
|
|
- <el-form ref="FilterForm" label-position="left" label-width="85px" inline>
|
|
|
|
- <el-form-item label="题卡:">
|
|
|
|
- <el-select
|
|
|
|
- v-model.trim="filter.cardType"
|
|
|
|
- placeholder="题卡类型"
|
|
|
|
- clearable
|
|
|
|
- filterable
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in cardTypes"
|
|
|
|
- :key="item.code"
|
|
|
|
- :value="item.code"
|
|
|
|
- :label="item.name"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="课程名称:">
|
|
|
|
- <el-input
|
|
|
|
- v-model="filter.courseName"
|
|
|
|
- placeholder="课程名称"
|
|
|
|
- clearable
|
|
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
-
|
|
|
|
- <el-form-item label-width="0px">
|
|
|
|
- <el-button type="primary" @click="search">查询</el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- </div>
|
|
|
|
- <div class="part-box part-box-pad">
|
|
|
|
- <el-table
|
|
|
|
- ref="TableList"
|
|
|
|
- :data="dataList"
|
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
- >
|
|
|
|
- <el-table-column
|
|
|
|
- type="selection"
|
|
|
|
- width="55"
|
|
|
|
- align="center"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column prop="name" label="课程名称(代码)" min-width="140">
|
|
|
|
- <span slot-scope="scope"
|
|
|
|
- >{{ scope.row.courseName }}({{ scope.row.courseCode }})</span
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="sequence"
|
|
|
|
- label="序号"
|
|
|
|
- width="60"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="paperNumber"
|
|
|
|
- label="试卷编号"
|
|
|
|
- min-width="100"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="paperType"
|
|
|
|
- label="卷型"
|
|
|
|
- width="60"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="syncCardType"
|
|
|
|
- label="题卡类型"
|
|
|
|
- width="100"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="totalSubjects"
|
|
|
|
- label="科次"
|
|
|
|
- width="60"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="syncStatus"
|
|
|
|
- label="推送状态"
|
|
|
|
- width="100"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="syncUserName"
|
|
|
|
- label="推送人"
|
|
|
|
- min-width="100"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="thirdRelateId"
|
|
|
|
- label="关联ID"
|
|
|
|
- width="100"
|
|
|
|
- ></el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
<div class="part-box part-box-filter part-box-flex">
|
|
<div class="part-box part-box-filter part-box-flex">
|
|
<el-form ref="modalFormComp" :model="modalForm" :rules="rules" inline>
|
|
<el-form ref="modalFormComp" :model="modalForm" :rules="rules" inline>
|
|
<el-form-item label="选择考试:">
|
|
<el-form-item label="选择考试:">
|
|
@@ -164,7 +75,6 @@
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
printPlanSyncStmms,
|
|
printPlanSyncStmms,
|
|
- printPlanCourseRelateList,
|
|
|
|
printPlanSyncRelateExamList,
|
|
printPlanSyncRelateExamList,
|
|
printPlanRelateExamList
|
|
printPlanRelateExamList
|
|
} from "../api";
|
|
} from "../api";
|
|
@@ -179,7 +89,7 @@ const initModalForm = {
|
|
export default {
|
|
export default {
|
|
name: "print-plan-batch-push-dialog",
|
|
name: "print-plan-batch-push-dialog",
|
|
props: {
|
|
props: {
|
|
- ids: {
|
|
|
|
|
|
+ courses: {
|
|
type: Array,
|
|
type: Array,
|
|
default() {
|
|
default() {
|
|
return [];
|
|
return [];
|
|
@@ -190,23 +100,12 @@ export default {
|
|
return {
|
|
return {
|
|
modalIsShow: false,
|
|
modalIsShow: false,
|
|
isSubmit: false,
|
|
isSubmit: false,
|
|
- filter: {
|
|
|
|
- cardType: "",
|
|
|
|
- courseName: ""
|
|
|
|
- },
|
|
|
|
- dataList: [],
|
|
|
|
- colleges: [],
|
|
|
|
modalForm: { ...initModalForm },
|
|
modalForm: { ...initModalForm },
|
|
examTypes: [
|
|
examTypes: [
|
|
{ code: "create", name: "云阅卷创建新的考试" },
|
|
{ code: "create", name: "云阅卷创建新的考试" },
|
|
{ code: "list", name: "选择云阅卷存在考试" }
|
|
{ code: "list", name: "选择云阅卷存在考试" }
|
|
],
|
|
],
|
|
examType: "list",
|
|
examType: "list",
|
|
- cardTypes: [
|
|
|
|
- { code: null, name: "全部题卡" },
|
|
|
|
- { code: "GENERIC", name: "通用题卡" },
|
|
|
|
- { code: "CUSTOM", name: "电子题卡" }
|
|
|
|
- ],
|
|
|
|
thirdRelateExams: [],
|
|
thirdRelateExams: [],
|
|
rules: {
|
|
rules: {
|
|
thirdRelateId: [
|
|
thirdRelateId: [
|
|
@@ -241,20 +140,14 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
initData() {
|
|
initData() {
|
|
- this.filter = {
|
|
|
|
- collegeId: "",
|
|
|
|
- cardType: "",
|
|
|
|
- courseName: ""
|
|
|
|
- };
|
|
|
|
this.modalForm = { ...initModalForm };
|
|
this.modalForm = { ...initModalForm };
|
|
- this.modalForm.list = [];
|
|
|
|
|
|
+ this.modalForm.list = this.courses;
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.modalFormComp.clearValidate();
|
|
this.$refs.modalFormComp.clearValidate();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
visibleChange() {
|
|
visibleChange() {
|
|
this.initData(this.instance);
|
|
this.initData(this.instance);
|
|
- this.search();
|
|
|
|
this.getExams();
|
|
this.getExams();
|
|
},
|
|
},
|
|
async getExams() {
|
|
async getExams() {
|
|
@@ -265,27 +158,12 @@ export default {
|
|
const data = await printPlanSyncRelateExamList();
|
|
const data = await printPlanSyncRelateExamList();
|
|
this.thirdRelateExams = data || [];
|
|
this.thirdRelateExams = data || [];
|
|
},
|
|
},
|
|
- async search() {
|
|
|
|
- const data = await printPlanCourseRelateList({
|
|
|
|
- printPlanIds: this.ids,
|
|
|
|
- ...this.filter
|
|
|
|
- });
|
|
|
|
- this.dataList = data || [];
|
|
|
|
- },
|
|
|
|
cancel() {
|
|
cancel() {
|
|
this.modalIsShow = false;
|
|
this.modalIsShow = false;
|
|
},
|
|
},
|
|
open() {
|
|
open() {
|
|
this.modalIsShow = true;
|
|
this.modalIsShow = true;
|
|
},
|
|
},
|
|
- handleSelectionChange(val) {
|
|
|
|
- this.modalForm.list = val.map(item => {
|
|
|
|
- return {
|
|
|
|
- id: item.id,
|
|
|
|
- printPlanIds: item.printPlanIds
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
examTypeChange() {
|
|
examTypeChange() {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.modalFormComp.clearValidate();
|
|
this.$refs.modalFormComp.clearValidate();
|
|
@@ -297,9 +175,7 @@ export default {
|
|
|
|
|
|
if (this.loading) return;
|
|
if (this.loading) return;
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- const data = await printPlanSyncStmms({
|
|
|
|
- ...this.modalForm
|
|
|
|
- }).catch(() => {});
|
|
|
|
|
|
+ const data = await printPlanSyncStmms(this.modalForm).catch(() => {});
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
|
|
if (!data) return;
|
|
if (!data) return;
|