|
@@ -60,10 +60,14 @@
|
|
|
<div class="itemScroll">
|
|
|
<div
|
|
|
:key="score"
|
|
|
- v-for="score in itemScores"
|
|
|
+ v-for="(score, index) in itemScores"
|
|
|
class="pull-left scoretitle"
|
|
|
>
|
|
|
- <div @click="scoreClick(score)" class="scorebutton">
|
|
|
+ <div
|
|
|
+ @click="scoreClick(score, index)"
|
|
|
+ class="scorebutton"
|
|
|
+ v-bind:class="{ 'score-btn': itemScoreBtn[index] }"
|
|
|
+ >
|
|
|
<span class="score-item">{{ score }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -152,9 +156,9 @@
|
|
|
v-for="tag in tags"
|
|
|
:key="tag.code"
|
|
|
>
|
|
|
- <el-radio :label="tag.code" :key="tag.code">
|
|
|
- {{ tag.name }}
|
|
|
- </el-radio>
|
|
|
+ <el-radio :label="tag.code" :key="tag.code">{{
|
|
|
+ tag.name
|
|
|
+ }}</el-radio>
|
|
|
</div>
|
|
|
</el-radio-group>
|
|
|
</span>
|
|
@@ -223,10 +227,12 @@ export default {
|
|
|
curIndex: 0,
|
|
|
steps: [],
|
|
|
loading: false,
|
|
|
+ btnflag: false,
|
|
|
tmpSignItem: this.signItem,
|
|
|
tags: [],
|
|
|
unusualType: "",
|
|
|
- scoreError: []
|
|
|
+ scoreError: [],
|
|
|
+ itemScoreBtn: []
|
|
|
};
|
|
|
},
|
|
|
props: [
|
|
@@ -314,6 +320,8 @@ export default {
|
|
|
this.signScores.splice(0, this.signScores.length);
|
|
|
}
|
|
|
this.positionDiv(order);
|
|
|
+ //重置打分板样式
|
|
|
+ this.itemScoreBtn = [];
|
|
|
},
|
|
|
positionDiv(order) {
|
|
|
EVENTHUB.$emit("positionDiv", order);
|
|
@@ -375,7 +383,7 @@ export default {
|
|
|
}
|
|
|
return true;
|
|
|
},
|
|
|
- scoreClick(score) {
|
|
|
+ scoreClick(score, index1) {
|
|
|
//轨迹模式处理分值问题
|
|
|
if (this.markSign) {
|
|
|
if (this.checkSignScore(score)) {
|
|
@@ -393,6 +401,15 @@ export default {
|
|
|
//正常模式
|
|
|
this.resultItem.score = score;
|
|
|
this.resultItems[this.curIndex].score = score;
|
|
|
+ //设置动态样式(打分板)
|
|
|
+ this.itemScoreBtn = [];
|
|
|
+ for (let i = 0; i < this.itemScores.length; i++) {
|
|
|
+ if (i == index1) {
|
|
|
+ this.itemScoreBtn.push(true);
|
|
|
+ } else {
|
|
|
+ this.itemScoreBtn.push(false);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//键盘打分板change事件
|
|
@@ -859,6 +876,11 @@ li {
|
|
|
border: 1px solid rgb(77, 124, 196);
|
|
|
text-align: center;
|
|
|
}
|
|
|
+.scorebutton:hover {
|
|
|
+ background: rgb(85, 191, 255);
|
|
|
+ color: white;
|
|
|
+ border-color: rgb(85, 191, 255);
|
|
|
+}
|
|
|
.titlebutton {
|
|
|
border-radius: 15px;
|
|
|
cursor: pointer;
|
|
@@ -1003,4 +1025,9 @@ textarea {
|
|
|
margin-right: 10px;
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
+.score-btn {
|
|
|
+ background: rgb(85, 191, 255);
|
|
|
+ color: white;
|
|
|
+ border-color: rgb(85, 191, 255);
|
|
|
+}
|
|
|
</style>
|