|
@@ -96,18 +96,20 @@
|
|
<div>
|
|
<div>
|
|
<div v-if="k.type == 1" class="ScoreStep">
|
|
<div v-if="k.type == 1" class="ScoreStep">
|
|
<el-input
|
|
<el-input
|
|
|
|
+ class="num_input"
|
|
v-if="allData.type * 1 != 2"
|
|
v-if="allData.type * 1 != 2"
|
|
@blur="
|
|
@blur="
|
|
saveTab(
|
|
saveTab(
|
|
- k.sco1 > k.score
|
|
|
|
|
|
+ parseFloat(k.sco1) > k.score
|
|
? (k.sco1 = k.score)
|
|
? (k.sco1 = k.score)
|
|
: '' || k.sco1 < 0
|
|
: '' || k.sco1 < 0
|
|
? (k.sco1 = '')
|
|
? (k.sco1 = '')
|
|
: ''
|
|
: ''
|
|
)
|
|
)
|
|
"
|
|
"
|
|
- v-model.number="k.sco1"
|
|
|
|
|
|
+ v-model="k.sco1"
|
|
v-stopMousewheel
|
|
v-stopMousewheel
|
|
|
|
+ type="number"
|
|
></el-input>
|
|
></el-input>
|
|
<div v-else>{{ k.sco1 }}</div>
|
|
<div v-else>{{ k.sco1 }}</div>
|
|
</div>
|
|
</div>
|
|
@@ -364,6 +366,7 @@ export default {
|
|
},
|
|
},
|
|
// 保存
|
|
// 保存
|
|
saveTab() {
|
|
saveTab() {
|
|
|
|
+ this.$forceUpdate();
|
|
let PageBaseDataCopy = JSON.parse(JSON.stringify(this.PageBaseData));
|
|
let PageBaseDataCopy = JSON.parse(JSON.stringify(this.PageBaseData));
|
|
|
|
|
|
for (const e of PageBaseDataCopy) {
|
|
for (const e of PageBaseDataCopy) {
|
|
@@ -921,4 +924,16 @@ input[type="number"] {
|
|
.dialog_diy >>> .el-dialog__footer {
|
|
.dialog_diy >>> .el-dialog__footer {
|
|
background: #fafafa;
|
|
background: #fafafa;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.num_input>>>input{
|
|
|
|
+ padding-right: 0px;
|
|
|
|
+ -moz-appearance: textfield;
|
|
|
|
+ -webkit-appearance: textfield;
|
|
|
|
+ line-height: 1px !important;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.num_input>>>input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
|
|
|
|
+ -webkit-appearance: none;
|
|
|
|
+ margin: 0;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|