|
@@ -143,8 +143,12 @@
|
|
|
<a style="display: block" :href="prefixUrl+item.file.url" v-if="item.file" target="_blank" class="d-in-block mr30 mb15">{{item.file.title}}</a
|
|
|
>
|
|
|
</div>
|
|
|
- <el-input type="text" class="f-input f-inputAdd" v-model="recordMine_pfxz[index].hx_fs " @blur="calculeScore(index,item.hp_dffw,)" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,1})?).*$/g, '$1')" ></el-input>
|
|
|
- </div>
|
|
|
+ <div>
|
|
|
+ <el-input type="text" class="f-input f-inputAdd" v-model="recordMine_pfxz[index].hx_fs " :placeholder="'最大分值:'+item.hp_dffw" @blur="calculeScore(index,item.hp_dffw)" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,1})?).*$/g, '$1')" ></el-input>
|
|
|
+ <span class="maxScoreText">最大分值:{{item.hp_dffw}}分</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -225,7 +229,7 @@ export default {
|
|
|
} else {
|
|
|
this.recordMine_pfxz.push({
|
|
|
hp_id: '',
|
|
|
- hx_fs:0
|
|
|
+ hx_fs:0,
|
|
|
})
|
|
|
this.totalScore = 0;
|
|
|
}
|
|
@@ -458,10 +462,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
calculeScore(index,limitScore) {
|
|
|
- console.log(limitScore, "00")
|
|
|
let curScore = Number(this.recordMine_pfxz[index].hx_fs);
|
|
|
let maxScore = Number(limitScore);
|
|
|
- if (curScore < maxScore) {
|
|
|
+ if (curScore <= maxScore) {
|
|
|
this.totalScore = 0;
|
|
|
this.recordMine_pfxz.forEach(item => {
|
|
|
this.totalScore += Number(item.hx_fs);
|
|
@@ -584,4 +587,9 @@ li {
|
|
|
.f-inputAdd{
|
|
|
border: 0px solid #d5d8de!important;
|
|
|
}
|
|
|
+.maxScoreText{
|
|
|
+ font-size: 12px;
|
|
|
+ color:#606266;
|
|
|
+ margin-left:5px;
|
|
|
+}
|
|
|
</style>
|