Bladeren bron

fix: 修复冰箱温度监控记录列表子表问题

johnsen 8 maanden geleden
bovenliggende
commit
199db85d61
1 gewijzigde bestanden met toevoegingen van 2 en 11 verwijderingen
  1. 2 11
      src/views/component/facility/facilityData.vue

+ 2 - 11
src/views/component/facility/facilityData.vue

@@ -199,10 +199,7 @@ export default {
         console.log('val--->', val)
         console.log('val--->', val)
         if (val.lieBiaoShuJu) {
         if (val.lieBiaoShuJu) {
           if (!this.isCul) {
           if (!this.isCul) {
-            this.forms = this.initData(
-              val.lieBiaoShuJu,
-              Object.hasOwn(val, 'component_1agji7i')
-            )
+            this.forms = this.initData(val.lieBiaoShuJu)
             this.forms.forEach((item) => {
             this.forms.forEach((item) => {
               item['rangeArr'] = item.range.map((t) => (t === null ? '/' : t))
               item['rangeArr'] = item.range.map((t) => (t === null ? '/' : t))
               item['rangeStr'] =
               item['rangeStr'] =
@@ -214,10 +211,7 @@ export default {
             })
             })
           } else {
           } else {
             if (this.isFirst) {
             if (this.isFirst) {
-              this.forms = this.initData(
-                val.lieBiaoShuJu,
-                Object.hasOwn(val, 'component_1agji7i')
-              )
+              this.forms = this.initData(val.lieBiaoShuJu)
               this.forms.forEach((item) => {
               this.forms.forEach((item) => {
                 item['rangeArr'] = item.range.map((t) => (t === null ? '/' : t))
                 item['rangeArr'] = item.range.map((t) => (t === null ? '/' : t))
                 item['rangeStr'] =
                 item['rangeStr'] =
@@ -291,9 +285,6 @@ export default {
         if (!Object.hasOwn(item, 'label')) {
         if (!Object.hasOwn(item, 'label')) {
           item.label = ''
           item.label = ''
         }
         }
-        if (bool) {
-          item.label = '冰箱温度'
-        }
         if (!Object.hasOwn(item, 'unit')) {
         if (!Object.hasOwn(item, 'unit')) {
           item.unit = '℃'
           item.unit = '℃'
         }
         }