jwyu 5 ヶ月 前
コミット
a9ed11f9b6

+ 2 - 2
src/views/chartRelevance_manage/components/selectTarget.vue

@@ -208,10 +208,10 @@ export default {
                 14: 6
               }
 
-              let FilterSource = (this.$route.path==='/addMixedSheet' && this.$parent.isCalculateDia)
+              let FilterSource = (['/addMixedSheet','/editBalanceSheet'].includes(this.$route.path) && this.$parent.isCalculateDia)
                 ? filterMap[this.$parent.formData.source]||1 
                 : 1;
-              let Frequency = (this.$route.path==='/addMixedSheet' && this.$parent.isCalculateDia && this.$parent.formData.source===2)
+              let Frequency = (['/addMixedSheet','/editBalanceSheet'].includes(this.$route.path) && this.$parent.isCalculateDia && this.$parent.formData.source===2)
                 ? '季度' 
                 : ''
               res = await sheetInterface.searchTarget({

+ 1 - 1
src/views/datasheet_manage/components/BalanceAddChart.vue

@@ -856,7 +856,7 @@ export default {
           IsOrder:item.IsOrder,
           EdbInfoType:item.EdbInfoType,
           LeadUnit:item.leadUnit,
-          LeadValue:item.leadVal,
+          LeadValue:Number(item.leadVal),
           MaxData:item.maxData,
           MinData:item.minData,
           DateSequenceStr:item.timeSerial,

+ 4 - 4
src/views/datasheet_manage/sheetList.vue

@@ -699,6 +699,10 @@ export default {
           params && this.selectCurrentNode(params);
         });
       });
+      // 更新一下分类把 新增平衡表时要
+      if(this.sourceMap[this.$route.path]===5){
+        this.getBalanceClassifyOpts()
+      }
     },
 
     /* 搜索表格 */
@@ -1240,10 +1244,6 @@ export default {
     if(this.$route.path == '/sheetList'){
       window.addEventListener('beforeunload',this.unloadMark)
     }
-
-    if(this.$route.path==='/sheetBalanceList'){
-      this.getBalanceClassifyOpts()
-    }
   },
   destroyed() {
     window.removeEventListener("resize", this.reloadRightWid);