Forráskód Böngészése

fix: 修复数据查询和配置字段错误

yusheng 6 hónapja
szülő
commit
ec9edfb20c

+ 3 - 2
src/views/energyClassification/index.vue

@@ -202,9 +202,10 @@
           },
           {
             label: '创建时间',
-            value: 'createTime',
+            value: 'time',
             type: 'date',
-            valueAr: ['createTime', 'endTimeEnd']
+            width:'300px',
+            valueAr: ['createTimeStart', 'createTimeEnd']
           }
         ];
       }

+ 1 - 1
src/views/energyConsumptionStatistics/index.vue

@@ -245,7 +245,7 @@
             formatter: (row) => {
               return energyConsumingUnitList
                 .find((item) => item.value == row.energyClassificationCode)
-                ?.unit.find((item) => item.value == row.priceUnit)?.label;
+                ?.priceUnit.find((item) => item.value == row.priceUnit)?.label;
             },
             showOverflowTooltip: true
           },

+ 2 - 1
src/views/useEnergyZoning/components/energyPriceConfig.vue

@@ -265,9 +265,10 @@
           this.$message.error('同一用能分类不能重复配置');
           return;
         }
+      
 
         this.$emit('success', {
-          id: this.areaRow.id,
+          id: this.areaId,
           priceSchemeId: this.tableData.map((row) => row.priceSchemeId)
         });
         this.handleCancel();