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

页面修改

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