cxmo 1 年之前
父节点
当前提交
2f08cd5d8f

+ 1 - 1
src/views/dataEntry_manage/components/satterSeriesDia.vue

@@ -544,7 +544,7 @@ export default {
     /* 删除指标 */
     removeTarget(type,index) {
       type === 'x' ? this.targetInfo.xEdbs.splice(index,1) : this.targetInfo.yEdbs.splice(index,1);
-      if(type === 'x'){
+      if(type === 'x'&&this.IsNameDefault){
         this.form.series_name = this.targetInfo.xEdbs.length?this.targetInfo.xEdbs[0].date:''
       }
     },

+ 3 - 2
src/views/dataEntry_manage/editChart.vue

@@ -593,8 +593,9 @@ export default {
         .then((res) => {
           if (res.Ret !== 200) return;
 					const { ChartInfo,EdbInfoList,BarChartInfo} = res.Data;
-					const {IsNameDefault} = ChartInfo.ExtraConfig?JSON.parse(ChartInfo.ExtraConfig):{}
-					this.IsNameDefault = IsNameDefault||true
+					const {SeriesList=[]} = ChartInfo.ExtraConfig?JSON.parse(ChartInfo.ExtraConfig):{} 
+					const {IsNameDefault=true} = SeriesList.length?SeriesList[0]:[]
+					this.IsNameDefault = IsNameDefault
 
            this.chartInfo = {
 						...ChartInfo,