|
@@ -67,7 +67,7 @@
|
|
|
<div
|
|
|
class="add-cont"
|
|
|
v-if="!chartInstruction.text"
|
|
|
- @click="addChartInductionHandle"
|
|
|
+ @click="addChartInductionHandle('add')"
|
|
|
>
|
|
|
<img
|
|
|
src="~@/assets/img/set_m/add_ico.png"
|
|
@@ -155,8 +155,8 @@ export default {
|
|
|
chartInstruction:{
|
|
|
text: '',
|
|
|
isShow: true,
|
|
|
- color: this.chartInfo.ChartThemeStyle?JSON.parse(this.chartInfo.ChartThemeStyle).markerOptions.style.color:'#333',
|
|
|
- fontSize: this.chartInfo.ChartThemeStyle?JSON.parse(this.chartInfo.ChartThemeStyle).markerOptions.style.fontSize:12
|
|
|
+ color: '',
|
|
|
+ fontSize: ''
|
|
|
} ,
|
|
|
|
|
|
/* 标识线区弹窗 */
|
|
@@ -213,13 +213,13 @@ export default {
|
|
|
this.updateChartHandle()
|
|
|
},
|
|
|
|
|
|
- addChartInductionHandle() {
|
|
|
+ addChartInductionHandle(type='') {
|
|
|
const { text,color,fontSize } = this.chartInstruction;
|
|
|
this.chartInductionDiaForm = {
|
|
|
show: true,
|
|
|
text,
|
|
|
- color,
|
|
|
- fontSize
|
|
|
+ color:type==='add'?JSON.parse(this.chartInfo.ChartThemeStyle).markerOptions.style.color:color,
|
|
|
+ fontSize: type==='add'?JSON.parse(this.chartInfo.ChartThemeStyle).markerOptions.style.fontSize:fontSize
|
|
|
}
|
|
|
},
|
|
|
|