codeMan преди 1 година
родител
ревизия
e703eaac2a

+ 3 - 0
src/system/IOT/equipmentMag/detail/modules/attributeTab/modules/Add.vue

@@ -165,6 +165,9 @@ let checkValue = async (rule,value) => {
   value.forEach(item => {
     console.log(!item.label || !item.value);
     if (form.value.datatype == 'boolean') {
+      if (typeof item.value == 'number') {
+        item.value.toString()
+      }
       if (!item.label || !item.value) {
         throw '请输入值或者描述'
       } else {

+ 3 - 0
src/system/IOT/equipmentMag/detail/modules/attributeTab/modules/Edit.vue

@@ -172,6 +172,9 @@ let checkValue = async (rule,value) => {
   value.forEach(item => {
     console.log(!item.label || !item.value);
     if (form.value.datatype == 'boolean') {
+      if (typeof item.value == 'number') {
+        item.value.toString()
+      }
       if (!item.label || !item.value) {
         throw '请输入值或者描述'
       } else {

+ 3 - 0
src/system/IOT/productManage/detail/modules/attributeTab/modules/Add.vue

@@ -159,6 +159,9 @@ let checkValue = async (rule,value) => {
   value.forEach(item => {
     console.log(!item.label || !item.value);
     if (form.value.datatype == 'boolean') {
+      if (typeof item.value == 'number') {
+        item.value.toString()
+      }
       if (!item.label || !item.value) {
         throw '请输入值或者描述'
       } else {

+ 3 - 0
src/system/IOT/productManage/detail/modules/attributeTab/modules/Edit.vue

@@ -163,6 +163,9 @@ let checkValue = async (rule,value) => {
   value.forEach(item => {
     console.log(!item.label || !item.value);
     if (form.value.datatype == 'boolean') {
+      if (typeof item.value == 'number') {
+        item.value.toString()
+      }
       if (!item.label || !item.value) {
         throw '请输入值或者描述'
       } else {