Commit 8442c7e7 authored by 黄奎's avatar 黄奎

页面修改

parent 6969f3bd
......@@ -44,7 +44,7 @@
<template>
<div class="page-body">
<div>
组卷题库(<span style="color:red;">*</span>)
组卷题库
<q-btn color="accent" size="sm" @click="showQuestionBank" class="q-mr-md" label="选择题库"  /><br />
</div>
<div class="setpaperCreat" v-if="QuestionArray.length>0">
......@@ -84,7 +84,7 @@
<q-radio v-model="item.ChooseType" :val="1" label="从题库选题" />
<template v-if="item.ChooseType==1">
<span style="position:relative;top:2px;">{{item.QuestionTypeNum}} 道 抽
<el-input style="width:100px;" size="small" :disabled="item.QuestionTypeNum<=0"
<el-input style="width:100px;" size="small" :disabled="templateMsg.TemplateBankIds!=''&&item.QuestionTypeNum<=0"
@input="getMaxInput(item)" v-model="item.ChooseNum" @keyup.native="checkInteger(item,'ChooseNum')"
maxlength="5"></el-input>
&nbsp;&nbsp;</span>
......@@ -97,7 +97,7 @@
<div style="margin:0 0 20px 40px;" v-for="(subItem,subIndex) in item.ChooseList" :key="subIndex">
{{subItem.DifficultyTypeName}} (共
{{subItem.DifficultyTypeCount}} 道) 抽
<el-input style="width:100px;" size="small" :disabled="subItem.DifficultyTypeCount<=0"
<el-input style="width:100px;" size="small" :disabled="templateMsg.TemplateBankIds!=''&&subItem.DifficultyTypeCount<=0"
@input="getMaxMiniInput(subItem)" @keyup.native="checkInteger(subItem,'ChooseNum')"
v-model="subItem.ChooseNum" maxlength="5"></el-input>
&nbsp;&nbsp;
......@@ -192,12 +192,12 @@
methods: {
//设置最大值
getMaxInput(item) {
if (item.ChooseNum > item.QuestionTypeNum) {
if (templateMsg.TemplateBankIds!=''&& item.ChooseNum > item.QuestionTypeNum) {
item.ChooseNum = '';
}
},
getMaxMiniInput(item) {
if (item.ChooseNum > item.DifficultyTypeCount) {
if (templateMsg.TemplateBankIds!=''&&item.ChooseNum > item.DifficultyTypeCount) {
item.ChooseNum = '';
}
},
......@@ -327,14 +327,14 @@
},
//显示试卷模板
showExamTemplate() {
if (this.templateMsg.TemplateBankIds == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请先选择题库`
})
return;
}
// if (this.templateMsg.TemplateBankIds == '') {
// this.$q.notify({
// type: 'negative',
// position: "top",
// message: `请先选择题库`
// })
// return;
// }
this.isShowExamTemplate = true;
},
//关闭题库
......
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