|
@@ -136,12 +136,12 @@
|
|
|
</div>
|
|
|
<div class="cont-bottom">
|
|
|
<div class="chart-show-cont" v-show="options.series">
|
|
|
- <div class="chartWrapper" id="chartWrapper">
|
|
|
- <!-- :style="`
|
|
|
+ <div class="chartWrapper" id="chartWrapper" :style="`
|
|
|
textAlign:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.align};
|
|
|
fontSize:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.style.fontSize}px;
|
|
|
color:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.style.color}
|
|
|
- `" -->
|
|
|
+ `">
|
|
|
+
|
|
|
<h2 class="chart-title" v-show="chartInfo.ChartName || chartName">
|
|
|
{{ chartInfo.ChartName || chartName }}
|
|
|
</h2>
|
|
@@ -206,7 +206,7 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
|
|
|
- <div class="chart-bottom-insruction-info" v-if="false">
|
|
|
+ <div class="chart-bottom-insruction-info">
|
|
|
<div class="chart-source">
|
|
|
<span
|
|
|
v-if="chartInfo.SourcesFrom"
|
|
@@ -539,15 +539,22 @@ export default {
|
|
|
handleChartSetChange(e) {
|
|
|
this.chartInfo.ChartThemeStyle = e.ChartThemeStyle
|
|
|
this.chartInfo.ChartThemeId = e.formData.themeId
|
|
|
- let sourceObj = this.chartInfo.SourcesFrom ? JSON.parse(this.chartInfo.SourcesFrom) : ''
|
|
|
- if (sourceObj) {
|
|
|
- sourceObj = {
|
|
|
- ...sourceObj,
|
|
|
- isShow: e.formData.showSource,
|
|
|
- text: e.formData.source
|
|
|
+ let SourcesFrom = this.chartInfo.SourcesFrom ? JSON.parse(this.chartInfo.SourcesFrom) : ''
|
|
|
+
|
|
|
+ let sourceObj = {
|
|
|
+ isShow: e.formData.showSource,
|
|
|
+ text: e.formData.source
|
|
|
+ }
|
|
|
+ if(SourcesFrom){
|
|
|
+ sourceObj={
|
|
|
+ ...SourcesFrom,
|
|
|
+ ...sourceObj
|
|
|
}
|
|
|
}
|
|
|
+ console.log(sourceObj,this.chartInfo);
|
|
|
this.chartInfo.SourcesFrom = JSON.stringify(sourceObj)
|
|
|
+ console.log(this.chartInfo);
|
|
|
+ this.chartInfo.MinMaxSave=Number(!this.getLimitInfo())
|
|
|
this.tableData = e.edbList
|
|
|
this.$refs.edbComputedWrap.updateEdbListData(e.edbList)
|
|
|
// 重新渲染图表
|
|
@@ -612,6 +619,9 @@ export default {
|
|
|
// 新增图
|
|
|
handleSaveChart(e) {
|
|
|
const edbParams = this.$refs.edbComputedWrap.getParams()
|
|
|
+ const {
|
|
|
+ min, max, rightMin, rightMax, rightTwoMin, rightTwoMax
|
|
|
+ } = this.chartLimit
|
|
|
const params = {
|
|
|
ChartEdbInfoList: edbParams.ChartEdbInfoList,
|
|
|
ExtraConfig: JSON.stringify(edbParams.ExtraConfig),
|
|
@@ -619,6 +629,20 @@ export default {
|
|
|
ChartName: e.name,
|
|
|
ChartType: 1,
|
|
|
DateType: this.year_select,
|
|
|
+ StartDate: [5, 6].includes(this.year_select)
|
|
|
+ ? this.select_date[0]
|
|
|
+ : '',
|
|
|
+ EndDate: this.year_select === 5 ? this.select_date[1] : '',
|
|
|
+ StartYear: this.count_year || 0,
|
|
|
+ LeftMin: min + '',
|
|
|
+ LeftMax: max + '',
|
|
|
+ RightMin: rightMin + '',
|
|
|
+ RightMax: rightMax + '',
|
|
|
+ Right2Min: rightTwoMin + '',
|
|
|
+ Right2Max: rightTwoMax + '',
|
|
|
+ MinMaxSave: Number(!this.getLimitInfo()),
|
|
|
+ ChartThemeId: this.chartInfo.ChartThemeId,
|
|
|
+ SourcesFrom: this.chartInfo.SourcesFrom
|
|
|
}
|
|
|
apiIntervalAnalysis.chartAdd(params).then(res => {
|
|
|
if (res.Ret === 200) {
|
|
@@ -771,6 +795,9 @@ export default {
|
|
|
this.initEditData(res.Data)
|
|
|
this.tableData=res.Data.EdbInfoList
|
|
|
this.chartInfo=res.Data.ChartInfo
|
|
|
+ this.MultipleGraphConfigId=res.Data.DataResp.MultipleGraphConfigId
|
|
|
+ this.hasSaveEdbFlag=res.Data.DataResp.ConfigEdbNum>0
|
|
|
+
|
|
|
this.setDefaultDateSelect()
|
|
|
|
|
|
this.initIntervalAnalysisChartData(res.Data)
|