|
@@ -5,8 +5,8 @@
|
|
|
<div class="basic-information-title">基本信息</div>
|
|
|
<div class="basic-information-form">
|
|
|
<a-form
|
|
|
- :form="anserRuleSpecialForm"
|
|
|
- @submit="handleSubmitFun"
|
|
|
+ :form="anserRuleSpecialBasicForm"
|
|
|
+ @submit="handleSubmitBasicFun"
|
|
|
style="width: 515px;"
|
|
|
:loading="loading"
|
|
|
:label-col="labelCol"
|
|
@@ -31,7 +31,8 @@
|
|
|
v-decorator="[
|
|
|
'engineeringWorkChooseValue',
|
|
|
{
|
|
|
- rules: [{ required: true, message: '请选择工种类别!' }],
|
|
|
+ initialValue: engineeringWork,
|
|
|
+ rules: [{ message: '请选择工种类别!' }],
|
|
|
},
|
|
|
]"
|
|
|
>
|
|
@@ -43,9 +44,159 @@
|
|
|
>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
+ <a-form-item v-show="false">
|
|
|
+ <a-button
|
|
|
+ id="answerManagementSpecialBasic"
|
|
|
+ type="primary"
|
|
|
+ html-type="submit"
|
|
|
+ >提交</a-button
|
|
|
+ >
|
|
|
+ </a-form-item>
|
|
|
</a-form>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="common-card a-card-margin-top basic-information-box">
|
|
|
+ <div class="basic-information-title">出题范围</div>
|
|
|
+ <div class="basic-information-form">
|
|
|
+ <div class="answer-select-div">
|
|
|
+ <div class="create-select-item">
|
|
|
+ <span>父类:</span>
|
|
|
+ <a-select
|
|
|
+ v-model="typeConditionParentValue"
|
|
|
+ @change="selectTypeConditionParent"
|
|
|
+ >
|
|
|
+ <a-select-option
|
|
|
+ v-for="(item, index) in typeConditionParentList"
|
|
|
+ :key="index"
|
|
|
+ :value="item.id"
|
|
|
+ >
|
|
|
+ {{ item.name }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </div>
|
|
|
+ <div class="create-select-item">
|
|
|
+ <span>子类:</span>
|
|
|
+ <a-select
|
|
|
+ v-model="typeConditionChildrenValue"
|
|
|
+ :disabled="!typeConditionParentValue"
|
|
|
+ >
|
|
|
+ <a-select-option
|
|
|
+ v-for="(item, index) in typeConditionChildrenList"
|
|
|
+ :key="index"
|
|
|
+ :value="item.id"
|
|
|
+ >
|
|
|
+ {{ item.name }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="basic-information-title">出题数量</div>
|
|
|
+ <div class="basic-information-form">
|
|
|
+ <a-form
|
|
|
+ :form="anserRuleSpecialNumForm"
|
|
|
+ @submit="handleSubmitAreaFun"
|
|
|
+ style="width: 515px;"
|
|
|
+ :loading="loading"
|
|
|
+ :label-col="labelCol"
|
|
|
+ :wrapper-col="{ span: 7 }"
|
|
|
+ >
|
|
|
+ <a-form-item label="单选题">
|
|
|
+ <a-input
|
|
|
+ placeholder="请输入单选题数量"
|
|
|
+ :maxLength="3"
|
|
|
+ type="number"
|
|
|
+ v-decorator="[
|
|
|
+ 'singleNum',
|
|
|
+ {
|
|
|
+ rules: [{ required: true, message: '请输入单选题数量!' }],
|
|
|
+ },
|
|
|
+ ]"
|
|
|
+ />
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="多选题">
|
|
|
+ <a-input
|
|
|
+ placeholder="请输入多选题数量"
|
|
|
+ :maxLength="3"
|
|
|
+ type="number"
|
|
|
+ v-decorator="[
|
|
|
+ 'multiNum',
|
|
|
+ {
|
|
|
+ rules: [{ required: true, message: '请输入多选题数量!' }],
|
|
|
+ },
|
|
|
+ ]"
|
|
|
+ />
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="判断题">
|
|
|
+ <a-input
|
|
|
+ placeholder="请输入判断题数量"
|
|
|
+ :maxLength="3"
|
|
|
+ type="number"
|
|
|
+ v-decorator="[
|
|
|
+ 'trueFalseNum',
|
|
|
+ {
|
|
|
+ rules: [{ required: true, message: '请输入判断题数量!' }],
|
|
|
+ },
|
|
|
+ ]"
|
|
|
+ />
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="填空题">
|
|
|
+ <a-input
|
|
|
+ placeholder="请输入填空题数量"
|
|
|
+ :maxLength="3"
|
|
|
+ type="number"
|
|
|
+ v-decorator="[
|
|
|
+ 'gapFillingNum',
|
|
|
+ {
|
|
|
+ rules: [{ required: true, message: '请输入填空题数量!' }],
|
|
|
+ },
|
|
|
+ ]"
|
|
|
+ />
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item :label-col="labelCol" :wrapper-col="{ span: 24 }">
|
|
|
+ <div class="submit-row">
|
|
|
+ <a-button type="primary" html-type="submit">提交</a-button>
|
|
|
+ </div>
|
|
|
+ </a-form-item>
|
|
|
+ </a-form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="common-card a-card-margin-top">
|
|
|
+ <!-- 表单 -->
|
|
|
+ <a-table
|
|
|
+ :columns="current_columns"
|
|
|
+ :data-source="current_tableData"
|
|
|
+ :row-key="(record) => record.id"
|
|
|
+ :pagination="current_pagination"
|
|
|
+ @change="handleCurrentTableChangePage"
|
|
|
+ >
|
|
|
+ <template slot="questionCategory" slot-scope="text, record">
|
|
|
+ <span>{{
|
|
|
+ record.questionCategory ? record.questionCategory.name : '不限'
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="rootQuestionCategory" slot-scope="text, record">
|
|
|
+ <span>{{
|
|
|
+ record.rootQuestionCategory
|
|
|
+ ? record.rootQuestionCategory.name
|
|
|
+ : '不限'
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="action" slot-scope="text, record">
|
|
|
+ <a @click="toQuestionDetailFun(record)">详情</a>
|
|
|
+ <!-- <a-divider type="vertical" />
|
|
|
+ <a @click="deleteCurrentTableQuestionFun(record)">删除</a> -->
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ <div class="submit-row-add">
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ :disabled="!current_tableData || !current_tableData.length"
|
|
|
+ @click="handleSubmitAll"
|
|
|
+ >发布</a-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</a-spin>
|
|
|
<div class="company-info">
|
|
|
<span>
|
|
@@ -56,9 +207,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { formatePathParams } from '@/filters';
|
|
|
+import { formatePathParams, formateUrlParams } from '@/filters';
|
|
|
import { mapGetters } from 'vuex';
|
|
|
-import { ANSWER_MANAGEMENT_RULE_TYPE } from '@/common/Constant';
|
|
|
+import {
|
|
|
+ ANSWER_MANAGEMENT_RULE_TYPE,
|
|
|
+ EXAM_QUESTION_TYPE,
|
|
|
+} from '@/common/Constant';
|
|
|
export default {
|
|
|
name: 'answerManagementSpecial',
|
|
|
props: {},
|
|
@@ -66,18 +220,37 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
loading: false, // 是否显示加载动画
|
|
|
- anserRuleSpecialForm: this.$form.createForm(this, {
|
|
|
- name: 'answerManagementSpecial',
|
|
|
+ anserRuleSpecialBasicForm: this.$form.createForm(this, {
|
|
|
+ name: 'answerManagementSpecialBasic',
|
|
|
+ }),
|
|
|
+ anserRuleSpecialNumForm: this.$form.createForm(this, {
|
|
|
+ name: 'answerManagementSpecialNum',
|
|
|
}),
|
|
|
// 基础信息的表单
|
|
|
labelCol: { span: 6 }, // 表单行中label的占位
|
|
|
wrapperCol: { span: 18 }, // 表单行中内容的占位
|
|
|
engineeringWorkList: [], // 工种数据列表
|
|
|
- questionTypeConditionParent: [], // 试题类型列表-父类
|
|
|
- checkedQuestionTypeConditionParent: '', // 所选试题类型-父类
|
|
|
- questionTypeConditionChildren: [], // 试题类型列表-子类
|
|
|
- checkedQuestionTypeConditionChildren: '', // 所选试题类型-子类
|
|
|
- questionsNum: '', // 试题数量
|
|
|
+ engineeringWork: '', // 工种默认值
|
|
|
+ specialName: '',
|
|
|
+ bank_questionType: [], // 试题类别列表
|
|
|
+ typeConditionParentList: [], // 试题类型列表-父类
|
|
|
+ typeConditionParentValue: '', // 所选试题类型-父类
|
|
|
+ typeConditionChildrenList: [], // 试题类型列表-子类
|
|
|
+ typeConditionChildrenValue: '', // 所选试题类型-子类
|
|
|
+ questionInfo: {
|
|
|
+ singleNum: '', // 单选题数量
|
|
|
+ multiNum: '', // 多选题数量
|
|
|
+ trueFalseNum: '', // 判断题数量
|
|
|
+ gapFillingNum: '', // 填空题数量
|
|
|
+ }, // 试题数量信息
|
|
|
+ // 当前试题列表
|
|
|
+ current_columns: [], // form表单的列参数
|
|
|
+ current_tableData: [], // 表单数据
|
|
|
+ current_pagination: {
|
|
|
+ pageSize: 7,
|
|
|
+ current: 1,
|
|
|
+ total: 0,
|
|
|
+ }, // 分页参数
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -96,24 +269,84 @@ export default {
|
|
|
//初始化数据
|
|
|
initDataFun() {
|
|
|
// 工种类别
|
|
|
- this.engineeringWorkList = this.GET_ENGINEERING_WORK_LIST;
|
|
|
+ this.engineeringWorkList = [
|
|
|
+ { name: '不限', id: '' },
|
|
|
+ ...this.GET_ENGINEERING_WORK_LIST,
|
|
|
+ ];
|
|
|
this.engineeringWork = this.engineeringWorkList[0].id;
|
|
|
// 试题类型列表-父类
|
|
|
- this.questionTypeConditionParent = [
|
|
|
+ this.typeConditionParentList = [
|
|
|
{ name: '不限', id: '' },
|
|
|
...this.GET_EXAM_QUESTION_TYPE_CONDITION_PARENT,
|
|
|
];
|
|
|
+ this.typeConditionParentValue = this.typeConditionParentList[0].id;
|
|
|
+
|
|
|
+ // 试题类别
|
|
|
+ this.bank_questionType = [
|
|
|
+ { name: '全部', code: '' },
|
|
|
+ ...EXAM_QUESTION_TYPE,
|
|
|
+ ];
|
|
|
+
|
|
|
+ // 表单的列的配置参数
|
|
|
+ this.current_columns = [
|
|
|
+ {
|
|
|
+ title: '试题编号',
|
|
|
+ dataIndex: 'id',
|
|
|
+ key: 'id',
|
|
|
+ width: 240,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '试题',
|
|
|
+ dataIndex: 'content',
|
|
|
+ key: 'content',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '试题类别',
|
|
|
+ dataIndex: 'typeTxt',
|
|
|
+ key: 'typeTxt',
|
|
|
+ scopedSlots: { customRender: 'typeTxt' },
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '试题父类',
|
|
|
+ dataIndex: 'questionCategory',
|
|
|
+ key: 'questionCategory',
|
|
|
+ scopedSlots: { customRender: 'questionCategory' },
|
|
|
+ width: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '试题子类',
|
|
|
+ dataIndex: 'rootQuestionCategory',
|
|
|
+ key: 'rootQuestionCategory',
|
|
|
+ scopedSlots: { customRender: 'rootQuestionCategory' },
|
|
|
+ width: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '工种',
|
|
|
+ dataIndex: 'engineerTypeTxt',
|
|
|
+ key: 'engineerTypeTxt',
|
|
|
+ scopedSlots: { customRender: 'engineerTypeTxt' },
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'action',
|
|
|
+ key: 'action',
|
|
|
+ scopedSlots: { customRender: 'action' },
|
|
|
+ width: 150,
|
|
|
+ },
|
|
|
+ ];
|
|
|
},
|
|
|
// 查询:试题类型列表-子类
|
|
|
getTableChildrenListFun() {
|
|
|
- if (!this.checkedQuestionTypeConditionParent) {
|
|
|
- this.checkedQuestionTypeConditionChildren = '';
|
|
|
- this.questionTypeConditionChildren = [];
|
|
|
+ if (!this.typeConditionParentValue) {
|
|
|
+ this.typeConditionChildrenValue = '';
|
|
|
+ this.typeConditionChildrenList = [];
|
|
|
return;
|
|
|
}
|
|
|
this.loading = true;
|
|
|
let params = {
|
|
|
- categoryId: this.checkedQuestionTypeConditionParent,
|
|
|
+ categoryId: this.typeConditionParentValue,
|
|
|
};
|
|
|
this.$_http
|
|
|
.get(
|
|
@@ -123,33 +356,68 @@ export default {
|
|
|
)
|
|
|
)
|
|
|
.then((res) => {
|
|
|
- this.questionTypeConditionChildren = res.data;
|
|
|
- this.checkedQuestionTypeConditionChildren = this.questionTypeConditionChildren[0].id;
|
|
|
+ this.typeConditionChildrenList = res.data;
|
|
|
+ this.typeConditionChildrenValue = this.typeConditionChildrenList[0].id;
|
|
|
this.loading = false;
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
+ // 操作:选择了父类
|
|
|
+ selectTypeConditionParent() {
|
|
|
+ this.getTableChildrenListFun(); // 查询:试题类型列表-子类
|
|
|
+ },
|
|
|
// 操作:点击提交按钮
|
|
|
- handleSubmitFun() {
|
|
|
- let findCondition = this.formatQuestionTypeConditionChooseValue(
|
|
|
- this.checkedQuestionTypeConditionChildren
|
|
|
- ); // 获取试题类型信息-子类
|
|
|
- let params = {
|
|
|
- ruleType: ANSWER_MANAGEMENT_RULE_TYPE.WEEK.ruleType,
|
|
|
- questionCategories: findCondition ? [findCondition] : [],
|
|
|
- totalQuestionNum: this.questionsNum,
|
|
|
- };
|
|
|
- this.$_http
|
|
|
- .post(this.$_API.INTERFACE_POST_ANSWER_RULE_ADD, params)
|
|
|
- .then(() => {
|
|
|
- this.$message.success('创建每周答题成功');
|
|
|
- this.loading = false;
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.loading = false;
|
|
|
- });
|
|
|
+ handleSubmitAreaFun(e) {
|
|
|
+ // 验证:出题数量
|
|
|
+ e.preventDefault();
|
|
|
+ this.anserRuleSpecialNumForm.validateFields((err, values) => {
|
|
|
+ if (!err) {
|
|
|
+ this.questionInfo = {
|
|
|
+ singleNum: values.singleNum,
|
|
|
+ multiNum: values.multiNum,
|
|
|
+ trueFalseNum: values.trueFalseNum,
|
|
|
+ gapFillingNum: values.gapFillingNum,
|
|
|
+ };
|
|
|
+ // 验证:基础信息
|
|
|
+ document.getElementById('answerManagementSpecialBasic').click();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 验证:基础信息
|
|
|
+ handleSubmitBasicFun(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ this.anserRuleSpecialBasicForm.validateFields((err, values) => {
|
|
|
+ if (!err) {
|
|
|
+ let findCondition = this.formatQuestionTypeConditionChooseValue(
|
|
|
+ this.typeConditionChildrenValue
|
|
|
+ ); // 获取试题类型信息-子类
|
|
|
+ let engineerTypeInfo = this.formatEngineeringWorkChooseValue(
|
|
|
+ values.engineeringWorkChooseValue
|
|
|
+ ); // 获取工种信息
|
|
|
+ this.engineeringWork = values.engineeringWorkChooseValue;
|
|
|
+ this.specialName = values.name;
|
|
|
+ let params = {
|
|
|
+ name: values.name,
|
|
|
+ engineerTypes: [engineerTypeInfo], // 信息集合:工种
|
|
|
+ ruleType: ANSWER_MANAGEMENT_RULE_TYPE.CHALLENGE.ruleType,
|
|
|
+ questionCategories: findCondition ? [findCondition] : [],
|
|
|
+ totalQuestionNum:
|
|
|
+ Number(this.questionInfo.singleNum) +
|
|
|
+ Number(this.questionInfo.multiNum) +
|
|
|
+ Number(this.questionInfo.trueFalseNum) +
|
|
|
+ Number(this.questionInfo.gapFillingNum),
|
|
|
+ numPerQuestionType: {
|
|
|
+ DanXuan: Number(this.questionInfo.singleNum),
|
|
|
+ DuoXuan: Number(this.questionInfo.multiNum),
|
|
|
+ PanDuan: Number(this.questionInfo.trueFalseNum),
|
|
|
+ TianKong: Number(this.questionInfo.gapFillingNum),
|
|
|
+ },
|
|
|
+ };
|
|
|
+ this.httpQuestPreAssembledVolumeFun(params); // 表单提交请求:预组卷
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
// 获取试题类型信息-子类
|
|
|
formatQuestionTypeConditionChooseValue(id) {
|
|
@@ -157,8 +425,20 @@ export default {
|
|
|
return null;
|
|
|
}
|
|
|
let seleteItem = null;
|
|
|
- for (let i = 0; i < this.questionTypeConditionChildren.length; i++) {
|
|
|
- let item = this.questionTypeConditionChildren[i];
|
|
|
+ for (let i = 0; i < this.typeConditionChildrenList.length; i++) {
|
|
|
+ let item = this.typeConditionChildrenList[i];
|
|
|
+ if (item.id === id) {
|
|
|
+ seleteItem = item;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return seleteItem;
|
|
|
+ },
|
|
|
+ // 获取工种信息
|
|
|
+ formatEngineeringWorkChooseValue(id) {
|
|
|
+ let seleteItem = {};
|
|
|
+ for (let i = 0; i < this.engineeringWorkList.length; i++) {
|
|
|
+ let item = this.engineeringWorkList[i];
|
|
|
if (item.id === id) {
|
|
|
seleteItem = item;
|
|
|
break;
|
|
@@ -166,6 +446,114 @@ export default {
|
|
|
}
|
|
|
return seleteItem;
|
|
|
},
|
|
|
+ // 操作:详情
|
|
|
+ toQuestionDetailFun(record) {
|
|
|
+ console.log('查看某个试题的详情', record);
|
|
|
+ // if (!record || !record.id) {
|
|
|
+ // this.$message.error('数据异常,请重新进入当前页面');
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // switch (record.type) {
|
|
|
+ // case EXAM_QUESTION_TYPE[0].code:
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/examQuestionManagement/create/singleChoice',
|
|
|
+ // query: { id: record.id },
|
|
|
+ // });
|
|
|
+ // break;
|
|
|
+ // case EXAM_QUESTION_TYPE[1].code:
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/examQuestionManagement/create/multipleChoice',
|
|
|
+ // query: { id: record.id },
|
|
|
+ // });
|
|
|
+ // break;
|
|
|
+ // case EXAM_QUESTION_TYPE[2].code:
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/examQuestionManagement/create/trueOrFalse',
|
|
|
+ // query: { id: record.id },
|
|
|
+ // });
|
|
|
+ // break;
|
|
|
+ // case EXAM_QUESTION_TYPE[3].code:
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/examQuestionManagement/create/gapFilling',
|
|
|
+ // query: { id: record.id },
|
|
|
+ // });
|
|
|
+ // break;
|
|
|
+ // default:
|
|
|
+ // this.$message.error('试题类别异常,无法查看详情');
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ // 切换:表格页码
|
|
|
+ handleCurrentTableChangePage(pagination) {
|
|
|
+ const pager = { ...this.current_pagination };
|
|
|
+ pager.current = pagination.current;
|
|
|
+ this.current_pagination = pager;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 表单提交请求:预组卷
|
|
|
+ httpQuestPreAssembledVolumeFun(params) {
|
|
|
+ this.loading = true;
|
|
|
+ let urlParams = {
|
|
|
+ engineertypeid: this.engineeringWork,
|
|
|
+ };
|
|
|
+ this.$_http
|
|
|
+ .post(
|
|
|
+ formateUrlParams(
|
|
|
+ this.$_API.INTERFACE_POST_EXAM_QUESTIONS_AUTO,
|
|
|
+ urlParams
|
|
|
+ ),
|
|
|
+ params
|
|
|
+ )
|
|
|
+ .then((res) => {
|
|
|
+ let resData = res.data;
|
|
|
+ resData.forEach((item) => {
|
|
|
+ // 试题类别
|
|
|
+ this.bank_questionType.forEach((it) => {
|
|
|
+ if (item.type === it.code) {
|
|
|
+ item.typeTxt = it.name;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // 工种
|
|
|
+ if (
|
|
|
+ item.engineerTypes &&
|
|
|
+ item.engineerTypes[0] &&
|
|
|
+ item.engineerTypes[0].id
|
|
|
+ ) {
|
|
|
+ item.engineerTypeTxt = item.engineerTypes[0].name;
|
|
|
+ } else {
|
|
|
+ item.engineerTypeTxt = '不限';
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.current_tableData = resData;
|
|
|
+ this.current_pagination.total = resData.length;
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 操作:发布
|
|
|
+ handleSubmitAll() {
|
|
|
+ this.loading = true;
|
|
|
+ let params = {
|
|
|
+ name: this.specialName,
|
|
|
+ questionList: this.current_tableData,
|
|
|
+ };
|
|
|
+ this.$_http
|
|
|
+ .post(
|
|
|
+ formateUrlParams(this.$_API.INTERFACE_POST_ANSWER_RULE_ADD_SPECIAL, {
|
|
|
+ engineertypeid: this.engineeringWork,
|
|
|
+ }),
|
|
|
+ params
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ this.loading = false;
|
|
|
+ this.$message.success('添加专项答题成功');
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -174,4 +562,32 @@ export default {
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
@import '~@/styles/common/variable.less';
|
|
|
+.answer-select-div {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding-left: 50px;
|
|
|
+ margin: @paddingMarginVal 0;
|
|
|
+ .create-select-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ > span {
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ white-space: nowrap;
|
|
|
+ margin: 0 10px 0 @paddingMarginVal;
|
|
|
+ color: @mainColorBlack85;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.submit-row {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+
|
|
|
+.submit-row-add {
|
|
|
+ width: 100%;
|
|
|
+ padding: @navTopHight 0;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
</style>
|