jwyu пре 5 месеци
родитељ
комит
3c967409b9

+ 2 - 2
src/views/dataEntry_manage/mixins/chartPublic.js

@@ -480,7 +480,7 @@ export const chartSetMixin = {
         placeholder:/* '请输入图表名称' */this.$t('Chart.InputHolderAll.input_common',{label:this.$t('Chart.Detail.chart_name')})
       })
 
-      if([1,2,5].includes(this.chartInfo.Source)){ //需要设置指标的
+      if([1,2,5,11].includes(this.chartInfo.Source)){ //需要设置指标的
         this.tableData.map(item =>{
             this.formItemArray.chartsList.push([
               {
@@ -749,7 +749,7 @@ export const chartSetMixin = {
         const useTableLimit = ['/predictEdb','/addpredictEdb','/editpredictEdb','/chartThemeSet'].includes(this.$route.path)
         //非ETA图库图表也不设置自定义上下限,相关性和统计特征也会用到曲线图
         //若chartInfo.Source为1,需在之前调用setLimitData
-        const isETASource = this.chartInfo.Source===1
+        const isETASource = [1,11].includes(this.chartInfo.Source)
         let minLimit = 0,maxLimit = 0
         if(useTableLimit||!isETASource){
             minLimit = newval[sameSideIndex].MinData

+ 2 - 0
src/views/datasheet_manage/components/BalanceSheetChartItem.vue

@@ -76,6 +76,8 @@ export default {
         initData(data){
             this.chartInfo=data.ChartInfo
             this.tableData=data.EdbInfoList
+            //初始化上下限
+            this.setLimitData(this.tableData)
             this.tableData.length&&this.setChartOptionHandle(this.tableData)
         },