123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873 |
- <template>
- <section
- class="content"
- v-loading="loading"
- element-loading-text="保存调卷规则及生成试卷文件中..."
- >
- <LinkTitlesCustom :currentPaths="['考试管理', '调卷规则', '调卷详情']" />
- <!-- 正文信息 -->
- <div class="box-body">
- <el-form
- :inline="true"
- :model="extractConfig"
- ref="extractPaperForm"
- label-position="right"
- label-width="120px"
- >
- <el-row>
- <el-form-item label="考试名称">
- <el-select
- filterable
- clearable
- v-model="extractConfig.examId"
- @change="getExamCourses"
- placeholder="请选择"
- :remote-method="getExams"
- remote
- :disabled="isInsert"
- >
- <el-option
- v-for="item in examList"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="课程名称">
- <el-select
- v-model="extractConfig.courseCode"
- filterable
- clearable
- @change="getPaperTypeList"
- placeholder="请选择"
- :disabled="isInsert"
- >
- <el-option
- v-for="item in courseInfoSelect"
- :key="item.courseNo"
- :label="item.courseInfo"
- :value="item.courseNo"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-row>
- <el-tabs v-model="tabs">
- <el-tab-pane label="步骤一:调卷模式选择" name="first">
- <el-form-item prop="status">
- <el-radio-group
- class="pull_right_ss"
- v-model="extractConfig.callType"
- >
- <el-radio label="WHOLE_SET">成套调用</el-radio>
- <!-- <el-radio label="RESTRUCT">重组调用</el-radio> -->
- </el-radio-group>
- </el-form-item>
- </el-tab-pane>
- </el-tabs>
- <el-tabs v-model="tabs">
- <el-tab-pane label="步骤二:试卷抽取比例" name="first">
- <el-row>
- <el-col :span="24">
- <el-tag v-if="extractConfig.examType === 'TRADITION'"
- >传统考试</el-tag
- >
- <el-tag v-if="extractConfig.examType === 'ONLINE'"
- >在线考试</el-tag
- >
- <el-tag v-if="extractConfig.examType === 'PRACTICE'"
- >练习考试</el-tag
- >
- </el-col>
- </el-row>
- <el-row :key="num" v-for="(examPaper, num) in examPaperList">
- <el-col :span="24">
- <el-form-item label="试卷类型" class="pull-left">
- <el-input
- class="input_width_lg"
- placeholder="请输入试卷类型"
- v-model="examPaper.groupCode"
- disabled
- ></el-input>
- </el-form-item>
- <el-button
- type="primary"
- v-if="extractConfig.examType != 'TRADITION'"
- @click="addOnLinePaper(examPaper.groupCode)"
- ><i class="el-icon-plus"></i> 新增试卷
- </el-button>
- </el-col>
- <el-col
- :span="20"
- :offset="2"
- v-for="(paperInfo, index) in examPaper.paperInfoList"
- :key="paperInfo.selectedPaperId"
- >
- <el-form-item>
- <span>试卷选定</span>
- <el-select
- filterable
- v-model="paperInfo.paper.id"
- placeholder="请选择"
- @change="searchAudioTimeConfig"
- class="select_width_lg"
- >
- <el-option
- v-for="item in paperList"
- :label="item.name"
- :value="item.id"
- :key="item.id"
- >
- </el-option>
- </el-select>
- <span>选取几率</span>
- <span>
- <el-input
- class="input_width_sms"
- v-model="paperInfo.weight"
- :disabled="extractConfig.examType === 'TRADITION'"
- ></el-input
- >%
- <i
- class="el-icon-delete"
- v-if="index > 0"
- @click.prevent="
- removePaperInfo(examPaper.groupCode, paperInfo)
- "
- ></i>
- </span>
- <span :class="'errorMsg_' + num + '_' + index"></span>
- </el-form-item>
- </el-col>
- </el-row>
- </el-tab-pane>
- </el-tabs>
- <div>
- <el-tabs v-model="tabs">
- <el-tab-pane label="步骤三:随机设定" name="first">
- <el-form-item
- label="客观题小题乱序"
- prop="scrambling_the_question_order"
- >
- <el-radio-group
- class="pull_right_sm"
- v-model="extractConfig.scrambling_the_question_order"
- >
- <el-radio :label="1">开启</el-radio>
- <el-radio :label="0">关闭</el-radio>
- </el-radio-group>
- </el-form-item>
- <br />
- <el-form-item
- label="客观题选项乱序"
- prop="scrambling_the_option_order"
- >
- <el-radio-group
- class="pull_right_sm"
- v-model="extractConfig.scrambling_the_option_order"
- >
- <el-radio :label="1">开启</el-radio>
- <el-radio :label="0">关闭</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-tab-pane>
- </el-tabs>
- </div>
- <div
- style="padding: 5px;"
- v-show="extractConfig.examType != 'PRACTICE'"
- >
- <el-tabs v-model="tabs">
- <el-tab-pane label="步骤四:音频播放次数设置" name="first">
- <el-row
- class="row_header_word"
- v-show="audioTimeConfigList.length > 0"
- >
- <el-col :span="4" :offset="1">试卷类型</el-col>
- <el-col :span="4">试卷名称</el-col>
- <el-col :span="3">大题号</el-col>
- <el-col :span="3">小题号</el-col>
- <el-col :span="4">播放次数</el-col>
- </el-row>
- <el-row
- v-for="(audioTimeConfig, index) in audioTimeConfigList"
- class="margin-top-10"
- :key="index"
- >
- <el-col :span="4" :offset="1">
- {{ audioTimeConfig.groupCode }}
- </el-col>
- <el-col :span="4"> {{ audioTimeConfig.paper.name }} </el-col>
- <el-col :span="3">
- {{ audioTimeConfig.paperDetailUnit.paperDetail.number }}
- </el-col>
- <el-col :span="3">
- {{ audioTimeConfig.paperDetailUnit.number }}
- </el-col>
- <el-col :span="4">
- <el-input
- class="input_width_ss"
- size="small"
- v-model="audioTimeConfig.playTime"
- >次
- </el-input>
- </el-col>
- </el-row>
- <el-row v-show="audioTimeConfigList.length == 0">
- <el-col :span="18" :offset="1"> 无音频试题 </el-col>
- </el-row>
- </el-tab-pane>
- </el-tabs>
- </div>
- <div>
- <el-tabs v-model="tabs">
- <el-row>
- <el-col>
- <el-form-item label="是否生成文件">
- <el-radio-group v-model="isbuildFile">
- <el-radio label="1">是</el-radio>
- <el-radio label="0">否</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col :span="12" :offset="1">
- <el-button type="primary" @click="submitForm"> 保存 </el-button>
- <el-button type="primary" @click="back"
- ><i class="el-icon-arrow-left"></i> 返 回</el-button
- >
- </el-col>
- </el-row>
- </el-tabs>
- </div>
- </el-form>
- </div>
- </section>
- </template>
- <script>
- import { EXAM_WORK_API, QUESTION_API } from "@/constants/constants";
- import { mapState } from "vuex";
- import _ from "lodash";
- import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
- export default {
- components: { LinkTitlesCustom },
- data() {
- return {
- loading: false,
- extractConfig: {
- examId: "", //考试ID
- examName: "", //考试名称
- examType: "", //考试类型:网络考试、传统考试
- courseCode: "", //课程代码
- courseName: "", //课程名称
- callType: "WHOLE_SET", //调卷类型:默认成套调用
- examPaperList: [],
- scrambling_the_question_order: 0, //小题乱序 默认关闭
- scrambling_the_option_order: 0 //选项乱序 默认关闭
- },
- examPaperList: [],
- audioTimeConfig: {
- examId: "",
- examName: "",
- paper: {
- id: ""
- },
- groupCode: "",
- courseCode: "",
- playTime: ""
- },
- audioTimeConfigModelList: [],
- tabs: "first",
- paperList: [],
- isbuildFile: "0",
- audioTimeConfigList: [],
- paperName: "",
- examList: [],
- courseList: [],
- courseAll: [],
- isInsert: false
- };
- },
- methods: {
- //根据考务查询考试集合
- getExams(query) {
- query = query.trim();
- this.$http
- .get(
- EXAM_WORK_API + "/exam/queryByNameLike?name=" + query + "&enable=true"
- )
- .then(response => {
- this.examList = response.data;
- });
- },
- //根据考试查询课程
- getExamCourses() {
- if (!this.isInsert) {
- this.extractConfig.courseCode = "";
- this.courseList = [];
- if (this.extractConfig.examId) {
- //查询该考试下的课程
- this.$http
- .get(
- QUESTION_API +
- "/findCourseByExtractConfig/" +
- this.extractConfig.examId
- )
- .then(response => {
- this.courseList = response.data;
- });
- }
- //查询考试对象,获取考试类型:离线,在线,传统
- if (this.extractConfig.examId) {
- this.$http
- .get(EXAM_WORK_API + "/exam/" + this.extractConfig.examId)
- .then(response => {
- var exam = response.data;
- this.extractConfig.examType = exam.examType;
- this.extractConfig.examName = exam.name;
- });
- }
- }
- },
- //根据考试ID和课程code取出试卷类型集合
- getPaperTypeList() {
- if (!this.isInsert) {
- var id = "";
- for (let course of this.courseList) {
- if (this.extractConfig.courseCode == course.courseCode) {
- id = course.courseId;
- break;
- }
- }
- this.$http
- .get(
- EXAM_WORK_API +
- "/exam/queryExamCoursePaperTypeList?examId=" +
- this.extractConfig.examId +
- "&courseId=" +
- id
- )
- .then(response => {
- let examPaperArr = response.data;
- console.log("examPaperArr:", examPaperArr);
- if (examPaperArr && examPaperArr.length > 0) {
- let _examPaperList = [];
- for (let examPaper of examPaperArr) {
- let groupCode = examPaper.paperType;
- let weight =
- this.extractConfig.examType == "TRADITION" ? 100 : "";
- let examPaperListByGroupCode = this.getWeightFromExamPaperList(
- groupCode
- );
- if (examPaperListByGroupCode) {
- _examPaperList.push({
- groupCode: groupCode,
- paperInfoList: examPaperListByGroupCode
- });
- } else {
- _examPaperList.push({
- groupCode: groupCode,
- paperInfoList: [
- {
- weight: weight,
- paper: { id: "" }
- }
- ]
- });
- }
- }
- this.examPaperList = _examPaperList;
- }
- });
- this.getPaperList();
- }
- },
- //根据groupCode得到examPaper集合
- getWeightFromExamPaperList(groupCode) {
- let examPaperListByGroupCode = [];
- let examPaperList = this.extractConfig.examPaperList;
- if (!examPaperList || examPaperList.length == 0) {
- return null;
- }
- for (let examPaper of examPaperList) {
- if (examPaper.groupCode == groupCode) {
- examPaperListByGroupCode.push(examPaper);
- }
- }
- return examPaperListByGroupCode;
- },
- //根据课程,查询试卷集合
- getPaperList() {
- if (this.extractConfig.courseCode) {
- this.$http
- .get(
- QUESTION_API +
- "/getGenPaper?courseNo=" +
- this.extractConfig.courseCode
- )
- .then(response => {
- this.paperList = response.data;
- });
- }
- },
- //根据选择试卷集合查询音频题
- searchAudioTimeConfig() {
- this.audioTimeConfigModelList = [];
- //取到数组里面每个对象
- for (var i = 0; i < this.examPaperList.length; i++) {
- //定一个试卷的集合,用来去重
- var paperIds = [];
- for (var j = 0; j < this.examPaperList[i].paperInfoList.length; j++) {
- paperIds.push(this.examPaperList[i].paperInfoList[j].paper.id);
- }
- //对试卷集合进行去重
- console.log("paperIds:", paperIds);
- var ids = [];
- ids = _.uniq(paperIds);
- for (var k = 0; k < ids.length; k++) {
- //把对象添加到集合
- this.audioTimeConfigModelList.push({
- courseCode: this.extractConfig.courseCode,
- groupCode: this.examPaperList[i].groupCode,
- paper: {
- id: ids[k]
- },
- examId: this.extractConfig.examId,
- examName: this.extractConfig.examName
- });
- }
- }
- this.$http
- .post(
- QUESTION_API + "/audioTimeConfig/all",
- this.audioTimeConfigModelList
- )
- .then(response => {
- this.audioTimeConfigList = response.data;
- });
- },
- //增加在线考试试卷
- addOnLinePaper(groupCode) {
- let num = 0;
- for (let i = 0; i < this.examPaperList.length; i++) {
- if (this.examPaperList[i].groupCode == groupCode) {
- num = i;
- break;
- }
- }
- this.examPaperList[num].paperInfoList.push({
- weight: 0,
- paper: {
- id: ""
- }
- });
- },
- //删除试卷
- removePaperInfo(groupCode, item) {
- let num = 0;
- for (let i = 0; i < this.examPaperList.length; i++) {
- if (this.examPaperList[i].groupCode == groupCode) {
- num = i;
- break;
- }
- }
- let index = this.examPaperList[num].paperInfoList.indexOf(item);
- if (index !== -1) {
- this.examPaperList[num].paperInfoList.splice(index, 1);
- }
- if (this.extractConfig.examType != "PRACTICE") {
- //重新查询一次所有试卷的音频题数
- this.searchAudioTimeConfig();
- }
- },
- //保存提交
- submitForm() {
- this.saveExtractConfig();
- },
- //保存调卷规则
- saveExtractConfig() {
- if (!this.extractConfig.examId) {
- this.$notify({
- message: "请选择考试",
- type: "error"
- });
- return false;
- }
- if (!this.extractConfig.courseCode) {
- if (this.isInsert) {
- this.$notify({
- message:
- "考务数据中,该场考试下已经没有这门课程,无法保存调卷规则。",
- type: "error"
- });
- } else {
- this.$notify({
- message: "请选择课程",
- type: "error"
- });
- }
- return false;
- }
- if (this.extractConfig.examType != "PRACTICE") {
- for (let audioTimeConfig of this.audioTimeConfigList) {
- if (!this.checkValue(audioTimeConfig.playTime)) {
- this.$notify({
- message: "播放次数只能为整数",
- type: "error"
- });
- return false;
- }
- }
- }
- let myExamPaperList = this.verificationData();
- if (myExamPaperList.length > 0) {
- this.loading = true;
- this.extractConfig.examPaperList = myExamPaperList;
- this.$http
- .put(
- QUESTION_API + "/extractConfig" + "/" + this.isbuildFile,
- this.extractConfig
- )
- .then(
- () => {
- if (this.extractConfig.examType != "PRACTICE") {
- this.addAudioTimeConfig();
- }
- this.loading = false;
- this.$notify({ type: "success", message: "保存成功" });
- this.back();
- },
- error => {
- this.loading = false;
- this.$notify({
- type: "error",
- message: error.response.data.desc
- });
- }
- );
- }
- },
- //音频播放次数校验
- checkValue(val) {
- if (/(^[0-9]\d*$)/.test(val)) {
- return true;
- } else {
- return false;
- }
- },
- //新增音频播放次数
- addAudioTimeConfig() {
- if (!this.audioTimeConfigList || this.audioTimeConfigList.length == 0) {
- /* 未设置时则清理已存在的数据 */
- this.$http
- .post(
- QUESTION_API +
- "/deleteAudioTimeConfig/" +
- this.extractConfig.examId +
- "/" +
- this.extractConfig.courseCode
- )
- .then(() => {});
- } else {
- this.$http
- .post(QUESTION_API + "/addAudioTimeConfig", this.audioTimeConfigList)
- .then(() => {});
- }
- },
- //校验调卷规则数据
- verificationData() {
- let myExamPaperList = [];
- let examPaperList = this.examPaperList;
- for (let i = 0; i < examPaperList.length; i++) {
- let selectedPaperIds = []; //校验试卷重复性
- let weightCount = 0; //校验概率之和
- let _paperInfoList = examPaperList[i].paperInfoList;
- let groupCode = examPaperList[i].groupCode;
- if (!groupCode) {
- this.$notify({
- message: "试卷类型不能为空",
- type: "error",
- duration: 2000
- });
- break;
- }
- for (let j = 0; j < _paperInfoList.length; j++) {
- if (!_paperInfoList[j].paper.id) {
- myExamPaperList = [];
- // $(".errorMsg_" + i + "_" + j)
- // .text("试卷不能为空")
- // .show();
- document.getElementsByClassName(
- "errorMsg_" + i + "_" + j
- )[0].innerHTML = "试卷不能为空";
- document.getElementsByClassName(
- "errorMsg_" + i + "_" + j
- )[0].style.display = "block";
- break;
- } else {
- //$(".errorMsg_" + i + "_" + j).hide();
- document.getElementsByClassName(
- "errorMsg_" + i + "_" + j
- )[0].style.display = "none";
- }
- var reg = /^([1]?\d{1,2})$/;
- if (
- !reg.test(_paperInfoList[j].weight) ||
- _paperInfoList[j].weight == 0
- ) {
- myExamPaperList = [];
- // $(".errorMsg_" + i + "_" + j)
- // .text("请输入1-100的整数")
- // .show();
- document.getElementsByClassName(
- "errorMsg_" + i + "_" + j
- )[0].innerHTML = "请输入1-100的整数";
- document.getElementsByClassName(
- "errorMsg_" + i + "_" + j
- )[0].style.display = "block";
- break;
- } else {
- //$(".errorMsg_" + i + "_" + j).hide();
- if (document.getElementsByClassName("errorMsg_" + i + "_" + j)) {
- document.getElementsByClassName(
- "errorMsg_" + i + "_" + j
- )[0].style.display = "none";
- }
- weightCount += parseInt(_paperInfoList[j].weight);
- selectedPaperIds.push(_paperInfoList[j].paper.id);
- myExamPaperList.push({
- groupCode: groupCode,
- paper: {
- id: _paperInfoList[j].paper.id
- },
- weight: _paperInfoList[j].weight
- });
- }
- }
- if (myExamPaperList.length == 0) {
- break;
- } else {
- if (_.uniq(selectedPaperIds).length != selectedPaperIds.length) {
- myExamPaperList = [];
- this.$notify({
- message: "试卷选择不能重复",
- type: "error",
- duration: 2000
- });
- break;
- }
- if (weightCount != 100) {
- myExamPaperList = [];
- this.$notify({
- message: "试卷选取几率总和必须等于100",
- type: "error",
- duration: 2000
- });
- break;
- }
- }
- }
- return myExamPaperList;
- },
- //返回
- back() {
- if (this.isInsert) {
- this.$router.push({
- path: "/questions/extract_paper_rule/1"
- });
- } else {
- this.$router.push({
- path: "/questions/extract_paper_rule/0"
- });
- }
- },
- //修改调卷规则
- getExtractConfig(extractConfigId) {
- this.$http
- .get(QUESTION_API + "/extractConfig/" + extractConfigId)
- .then(response => {
- this.extractConfig = response.data;
- //查询该考试下的课程
- this.$http
- .get(
- EXAM_WORK_API +
- "/exam/queryExamCourseList?examId=" +
- this.extractConfig.examId +
- "&enable=true&name=" +
- this.extractConfig.courseCode
- )
- .then(response => {
- this.courseList = response.data;
- if (!this.courseList || this.courseList.length < 1) {
- this.$notify({
- message: "考务中,该场考试下面,没有设置课程!",
- type: "error"
- });
- } else {
- //根据考试ID和课程code取出试卷类型集合
- this.getPaperTypes();
- }
- });
- });
- },
- //根据考试ID和课程code取出试卷类型集合
- getPaperTypes() {
- var id = "";
- if (this.courseList && this.courseList.length > 0) {
- for (let course of this.courseList) {
- if (this.extractConfig.courseCode == course.courseCode) {
- id = course.courseId;
- break;
- }
- }
- if (id != "") {
- //查询该课程下的所有试卷
- this.getPaperList();
- this.$http
- .get(
- EXAM_WORK_API +
- "/exam/queryExamCoursePaperTypeList?examId=" +
- this.extractConfig.examId +
- "&courseId=" +
- id
- )
- .then(response => {
- let examPaperArr = response.data;
- if (examPaperArr && examPaperArr.length > 0) {
- let _examPaperList = [];
- for (let examPaper of examPaperArr) {
- let groupCode = examPaper.paperType;
- let weight =
- this.extractConfig.examType == "TRADITION" ? 100 : "";
- let examPaperListByGroupCode = this.getWeightFromExamPaperList(
- groupCode
- );
- if (examPaperListByGroupCode) {
- _examPaperList.push({
- groupCode: groupCode,
- paperInfoList: examPaperListByGroupCode
- });
- } else {
- _examPaperList.push({
- groupCode: groupCode,
- paperInfoList: [
- {
- weight: weight,
- paper: { id: "" }
- }
- ]
- });
- }
- }
- this.examPaperList = _examPaperList;
- if (this.extractConfig.examType != "PRACTICE") {
- this.searchAddAudioTimeConfig();
- }
- }
- });
- this.getPaperList();
- } else {
- this.$notify({
- message: "考务中,该场考试下面,没有设置该门课程!",
- type: "error"
- });
- }
- }
- },
- //存在调卷规则id,先查询
- searchAddAudioTimeConfig() {
- this.audioTimeConfigModelList = [];
- //取到数组里面每个对象
- for (var i = 0; i < this.examPaperList.length; i++) {
- //定一个试卷的集合,用来去重
- var paperIds = [];
- for (var j = 0; j < this.examPaperList[i].paperInfoList.length; j++) {
- paperIds.push(this.examPaperList[i].paperInfoList[j].paper.id);
- }
- //对试卷集合进行去重
- var ids = [];
- ids = _.uniq(paperIds);
- for (var k = 0; k < ids.length; k++) {
- //把对象添加到集合
- this.audioTimeConfigModelList.push({
- courseCode: this.extractConfig.courseCode,
- groupCode: this.examPaperList[i].groupCode,
- paper: {
- id: ids[k]
- },
- examId: this.extractConfig.examId,
- examName: this.extractConfig.examName
- });
- }
- }
- this.$http
- .post(
- QUESTION_API + "/audioTimeConfig/update",
- this.audioTimeConfigModelList
- )
- .then(response => {
- this.audioTimeConfigList = response.data;
- });
- }
- },
- computed: {
- ...mapState({ user: state => state.user }),
- courseInfoSelect() {
- var courseList = [];
- for (let course of this.courseList) {
- var courseInfo = course.courseName + "(" + course.courseCode + ")";
- courseList.push({
- courseNo: course.courseCode,
- courseName: course.courseName,
- courseInfo: courseInfo
- });
- }
- return courseList;
- }
- },
- //初始化
- created: function() {
- let extractConfigId = this.$route.params.extractConfigId;
- //1.查询考试集合
- this.getExams("");
- if (extractConfigId) {
- this.isInsert = true;
- //规则ID存在,表示是修改操作
- this.getExtractConfig(extractConfigId);
- }
- }
- };
- </script>
- <style scoped>
- .pull_right_ss {
- margin-left: 30px;
- }
- .paper_title_top {
- margin-top: -10px;
- }
- .input_width_sms {
- width: 80px;
- }
- .input_width_ss {
- width: 50px;
- }
- .el-icon-delete {
- cursor: pointer;
- }
- [class^="errorMsg_"] {
- color: #ff4949;
- display: none;
- }
- .margin-top-10 {
- margin-top: 10px;
- }
- .select_width_lg {
- width: 420px;
- }
- </style>
- <style scoped src="../styles/Common.css"></style>
|