Browse Source

保存上下限后清空oldOption,切换指标重置数据

cxmo 1 year ago
parent
commit
6641113b09

+ 1 - 1
src/views/dataEntry_manage/databaseComponents/chartTrendRender.vue

@@ -132,8 +132,8 @@ export default {
 	watch: {
 		edbid:{
 			handler(newVal){
-				console.log('??')
 				if(newVal){
+					this.init()
 					this.chart_type = 1
 					this.isShowOnyearData = false
 					this.getDataByPath()

+ 1 - 0
src/views/dataEntry_manage/databaseList.vue

@@ -1909,6 +1909,7 @@ export default {
 			}).then(res=>{
 				if(res.Ret!==200) return 
 				this.$message.success('保存成功')
+				this.$refs.createChart.oldOptions = {}
 			})
 		},
 		//重绘指标图表