Browse Source

fix 固定number字段 方便后端解析

cxmo 8 months ago
parent
commit
a081ff06de
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/views/dataEntry_manage/components/addMarkerDialog.vue

+ 8 - 0
src/views/dataEntry_manage/components/addMarkerDialog.vue

@@ -59,6 +59,7 @@
                             class="number-input"
                             style="width: 100px;"
                             type="number"
+                            @change="e => {markerForm.value=Number(e);}"
                             :placeholder="$t('Edb.InputHolderAll.input_number')"
                             :disabled="markerForm.markLineType===2"
                         />
@@ -70,6 +71,7 @@
                             v-model="markerForm.value"
                             style="width: 100px;"
                             type="number"
+                            @change="e => {markerForm.value=Number(e);}"
                             class="number-input"
                             :placeholder="$t('Edb.InputHolderAll.input_number')"
                             :disabled="markerForm.markLineType===2"
@@ -118,6 +120,7 @@
                     class="number-input"
                     style="width: 90px;"
                     type="number"
+                    @change="e => {markerForm.fromValue=Number(e);}"
                     :placeholder="$t('Edb.InputHolderAll.input_number')"
                   />
                   <!-- 至 -->{{$t('Common.to')}}
@@ -126,6 +129,7 @@
                     class="number-input"
                     style="width: 90px;"
                     type="number"
+                    @change="e => {markerForm.toValue=Number(e);}"
                     :placeholder="$t('Edb.InputHolderAll.input_number')"
                   />
 
@@ -139,6 +143,7 @@
                   class="number-input"
                   style="width: 90px;"
                   type="number"
+                  @change="e => {markerForm.fromValue=Number(e);}"
                   :placeholder="$t('Edb.InputHolderAll.input_number')"
                 />
                 <!-- 至 -->{{$t('Common.to')}}
@@ -147,6 +152,7 @@
                   class="number-input"
                   style="width: 90px;"
                   type="number"
+                  @change="e => {markerForm.toValue=Number(e);}"
                   :placeholder="$t('Edb.InputHolderAll.input_number')"
                 />
 
@@ -368,6 +374,7 @@
                 v-model="markerForm.lineWidth"
                 style="width: 90px"
                 type="number"
+                @change="e => {markerForm.lineWidth=Number(e);}"
                 :min="1"
                 />
             </el-form-item>
@@ -405,6 +412,7 @@
                 class="number-input"
                 style="width: 90px"
                 type="number"
+                @change="e => {markerForm.textFontSize=Number(e);}"
                 :min="1"
                 />
             </el-form-item>