|
@@ -43,12 +43,16 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="题目数量" prop="count">
|
|
|
- <el-input
|
|
|
- class="search_width"
|
|
|
- v-model.number="paperUnitForm.count"
|
|
|
- :disabled="true">
|
|
|
+ <el-input
|
|
|
+ class="search_width_80px"
|
|
|
+ v-model.number="paperUnitForm.count"
|
|
|
+ :disabled="true"
|
|
|
+ >
|
|
|
</el-input>
|
|
|
- <el-button @click="propertyDialog = true" icon="el-icon-plus"></el-button>
|
|
|
+ <el-button
|
|
|
+ @click="propertyDialog = true"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ ></el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -200,7 +204,11 @@
|
|
|
>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="题型结构" prop="questionType">
|
|
|
+ <el-form-item
|
|
|
+ label="题型结构"
|
|
|
+ prop="questionType"
|
|
|
+ label-width="78px"
|
|
|
+ >
|
|
|
<el-select
|
|
|
class="form_width"
|
|
|
@change="getQuesNameList"
|
|
@@ -217,7 +225,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="每题分值" prop="score">
|
|
|
+ <el-form-item label="每题分值" prop="score" label-width="78px">
|
|
|
<el-input
|
|
|
class="form_width"
|
|
|
v-model.number="paperUnitForm2.score"
|
|
@@ -229,7 +237,11 @@
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="题型总分" prop="totalScore">
|
|
|
+ <el-form-item
|
|
|
+ label="题型总分"
|
|
|
+ prop="totalScore"
|
|
|
+ label-width="78px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
class="form_width"
|
|
|
v-model="paperUnitForm2.totalScore"
|
|
@@ -238,7 +250,11 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="来源大题" prop="quesNames">
|
|
|
+ <el-form-item
|
|
|
+ label="来源大题"
|
|
|
+ prop="quesNames"
|
|
|
+ label-width="78px"
|
|
|
+ >
|
|
|
<el-select
|
|
|
class="form_width"
|
|
|
multiple
|
|
@@ -1124,11 +1140,11 @@ export default {
|
|
|
paperUnitForm.totalScore =
|
|
|
(paperUnitForm.score * 1000 * paperUnitForm.count) / 1000;
|
|
|
}, 5);
|
|
|
- if(this.clearCheck(paperUnitForm.count)){
|
|
|
- this.$refs['paperUnitForm'].clearValidate('count');
|
|
|
+ if (this.clearCheck(paperUnitForm.count)) {
|
|
|
+ this.$refs["paperUnitForm"].clearValidate("count");
|
|
|
}
|
|
|
},
|
|
|
- clearCheck(value){
|
|
|
+ clearCheck(value) {
|
|
|
var reg = /^\d+(?=\.{0,1}\d+$|$)/;
|
|
|
if (!value) {
|
|
|
return true;
|