理论题管理调整

This commit is contained in:
fan 2020-10-27 12:14:17 +08:00
parent 02f5652141
commit 66aaa9f201
2 changed files with 23 additions and 1 deletions

View File

@ -41,3 +41,10 @@ export function importQuestionBand(data, companyId) {
data data
}); });
} }
/** 查询公司下题目类型数量 */
export function selectQuestionTypeNum(companyId) {
return request({
url: `/api/questionBank/type/number?companyId=${companyId}`,
method: 'get'
});
}

View File

@ -1,6 +1,21 @@
<template> <template>
<el-dialog v-dialogDrag title="添加出题规则" :visible.sync="dialogVisible" width="640px" :before-close="handleClose" center :close-on-click-modal="false"> <el-dialog v-dialogDrag title="添加出题规则" :visible.sync="dialogVisible" width="640px" :before-close="handleClose" center :close-on-click-modal="false">
<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" :inline="true" /> <!--<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" :inline="true" />-->
<el-form ref="form" :model="formModel" label-width="80px" :inline="true">
<el-form-item label="单位">
<el-select v-model="formModel.companyId" placeholder="请选择单位" clearable size="small">
<el-option
v-for="item in options"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
<el-form-item label="判断题数量">
<el-input-number v-model="formModel.judgeNum" :min="0" :max="10" label="描述文字" />
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="doSave">{{ update? '修改' : $t('global.confirm') }}</el-button> <el-button type="primary" @click="doSave">{{ update? '修改' : $t('global.confirm') }}</el-button>
<el-button @click="dialogVisible = false">{{ $t('global.cancel') }}</el-button> <el-button @click="dialogVisible = false">{{ $t('global.cancel') }}</el-button>