ソースを参照

feature_20250926_数字题型&单行文本题型

sunny 3 週間 前
コミット
5479328aca
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/views/deviceWithin/addStoreVisit.vue

+ 2 - 2
src/views/deviceWithin/addStoreVisit.vue

@@ -4401,7 +4401,7 @@ export default {
       this.$set(itemData, 'answerValue', value);
       if (value) {
         // 最大值
-        let maxValue = item.collectionOptionList[0].maxValue;
+        let maxValue = item.collectionOptionList[0].maxValue.toString();
         if (maxValue && maxValue != '') {
           if (value > Number(maxValue)) {
             this.$set(itemData, 'ruleMessage', '最大值为:' + maxValue);
@@ -4412,7 +4412,7 @@ export default {
           }
         }
         //最小值
-        let minValue = item.collectionOptionList[0].minValue;
+        let minValue = item.collectionOptionList[0].minValue.toString();
         if (minValue && minValue != '') {
           if (value < Number(minValue)) {
             this.$set(itemData, 'ruleMessage', '最小值为:' + minValue);