Просмотр исходного кода

Merge branch 'master' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-qms

wsx 11 месяцев назад
Родитель
Сommit
e882ac5f6e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/inspectionWork/components/newQualityContentTabs.vue

+ 2 - 2
src/views/inspectionWork/components/newQualityContentTabs.vue

@@ -209,13 +209,13 @@
                 </template>
                 </template>
                 <template v-else-if="column.prop === 'weight'">
                 <template v-else-if="column.prop === 'weight'">
                   <el-input
                   <el-input
-                    type="number"
                     v-model="scope.row.weight"
                     v-model="scope.row.weight"
                     :disabled="status"
                     :disabled="status"
+                    oninput="value = value.replace(/[^\d.]/g, '')"
                     :min="0"
                     :min="0"
                     @input="inputWeight(scope.row, scope.$index)"
                     @input="inputWeight(scope.row, scope.$index)"
-                    v-direction="{ x: 3, y: scope.$index }"
                     size="mini"
                     size="mini"
+                    v-direction="{ x: 3, y: scope.$index }"
                   ></el-input>
                   ></el-input>
                 </template>
                 </template>
                 <template v-else>
                 <template v-else>