|
@@ -6,8 +6,10 @@
|
|
:key="index + '-' + index2">
|
|
:key="index + '-' + index2">
|
|
<div class="testContent_title">{{ index2 + 1 }}、{{ item2.title }}</div>
|
|
<div class="testContent_title">{{ index2 + 1 }}、{{ item2.title }}</div>
|
|
<div class="testContent_input">
|
|
<div class="testContent_input">
|
|
- <el-input v-model="item2.uscore" class="c_input" @change="numberPan(index, index2, item2.score)"
|
|
|
|
- placeholder="请输入评分" />
|
|
|
|
|
|
+ <!-- <el-input v-model="item2.uscore" class="c_input" @change="numberPan(index, index2, item2.score)"
|
|
|
|
+ placeholder="请输入评分" /> -->
|
|
|
|
+ <el-rate v-model="item2.uscore" :allow-half="false" class="custom-rate"></el-rate>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-if="item.type == '2'">
|
|
<div v-if="item.type == '2'">
|
|
@@ -286,4 +288,21 @@ export default {
|
|
.btn {
|
|
.btn {
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.custom-rate{
|
|
|
|
+ height: auto;
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.custom-rate >>> .el-rate__icon {
|
|
|
|
+ font-size: 28px;
|
|
|
|
+ margin-right: 5px;
|
|
|
|
+}
|
|
|
|
+.custom-rate >>> .el-icon-star-on:before{
|
|
|
|
+ font-size: 32px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.custom-rate >>> .el-rate__icon.hover{
|
|
|
|
+ transform: scale(1);
|
|
|
|
+}
|
|
</style>
|
|
</style>
|