LR 3 năm trước cách đây
mục cha
commit
0915a5f3b3
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/views/spectrum/configuration/type/ParamForm.vue

+ 3 - 3
src/views/spectrum/configuration/type/ParamForm.vue

@@ -12,7 +12,7 @@
           v-else-if="type === 'input-number'"
           v-model="formData[name]"
           :placeholder="`请输入${label}`"
-          v-bind="{ ...rest, ...getDefalutNumberProp() }"
+          v-bind="{ ...getDefalutNumberProp(), ...rest }"
           clearable
           controls-position="right"
         />
@@ -45,7 +45,7 @@
   import { IDeviceTypeParamDictionary, IDeviceTypeParam } from '../api/common'
   import { getDefalutNumberProp } from '@/utils/constant'
 
-  const getDefaultData = () => ({ isshow: 1 })
+  const getDefaultData = () => ({ isshow: 1, showNo: 0 })
 
   @Component({ name: 'ParamForm', components: {} })
   export default class ParamForm extends Vue {
@@ -91,7 +91,7 @@
         { label: '指标字段名', name: 'targetCode', disabled: true },
         { label: '指标单位', name: 'targetUnit', disabled: true },
         { label: '是否显示', name: 'isshow', type: 'switch', activeValue: 1, inactiveValue: 0 },
-        { label: '显示顺序', name: 'showNo', type: 'input-number' },
+        { label: '显示顺序', name: 'showNo', type: 'input-number', min: -9999 },
         { label: '备注', name: 'remark', type: 'textarea', rows: 4 }
       ]
     }