Commit 62423293 authored by liwei's avatar liwei

合并了a分支的岗位题库相关问题

parent 3be49a7d
......@@ -337,7 +337,9 @@
<p>请您排查以下原因:</p>
<p>1、题干输入的内容过长或标准答案过长</p>
<p>2、是否有为空的地方</p>
<p>3、题目编号或权重是否重复</p>
<p>3、题目编号是否重复</p>
<p>4、题型、难度是否填错</p>
<p>5、分数、权重是否过长(最大为9999)</p>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible111 = false">关闭</el-button>
</span>
......@@ -770,9 +772,12 @@ export default {
res.data.optionD = optionD
// 当题目是多选的时候,处理题目答案选项
if (res.data.questionType === 2) {
res.data.answerList = []
res.data.answerList = res.data.answer.split(',')
res.data.answer = null
// res.data.answerList = []
this.form.answerList = res.data.answer.split(',')
console.log('this.form.answer', this.form.answerList)
// res.data.answer = null
} else {
this.form.answer = res.data.answer
}
// 处理选项内容
// this.form = res.data,
......@@ -782,8 +787,8 @@ export default {
this.form.questionStem = res.data.questionStem
this.form.difficulty = res.data.difficulty
this.form.content = res.data.content
this.form.answer = res.data.answer
this.form.answerList = res.data.answerList
// this.form.answer = res.data.answer
// this.form.answerList = res.data.answerList
this.form.optionA = res.data.optionA
this.form.optionB = res.data.optionB
this.form.optionC = res.data.optionC
......
......@@ -95,7 +95,7 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">取 消</el-button>
<el-button @click="cancel()">取 消</el-button>
<el-button :type="commonField.typePrimary" @click="createClass('form')">保 存</el-button>
</div>
</el-dialog>
......@@ -756,6 +756,10 @@ export default {
this.loadData()
},
methods: {
cancel() {
this.form = {}
this.dialogFormVisible = false
},
innerClose() {
console.log('KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK')
this.multipleSelection = []
......@@ -859,6 +863,7 @@ export default {
* 新增
* **/
handleAdd() {
this.form = {}
this.dialogFormVisible = true
this.title = '新建题库'
},
......@@ -1270,6 +1275,7 @@ export default {
return false
}
})
this.form = {}
this.loadData()
},
callOf(formName) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment