|
@@ -406,6 +406,7 @@
|
|
|
import * as sheetInterface from "@/api/modules/sheetApi.js";
|
|
|
import LegendEditDia from '@/views/dataEntry_manage/components/LegendEditDia.vue';
|
|
|
import { generateSeriesArray } from '@/views/dataEntry_manage/databaseComponents/util'
|
|
|
+import {etaBaseConfigInterence} from '@/api/modules/etaBaseConfigApi.js';
|
|
|
const tag_arr = generateSeriesArray();
|
|
|
const MAX_ADD_NUM = 30//添加指标最大数量
|
|
|
export default {
|
|
@@ -474,10 +475,13 @@ export default {
|
|
|
selectInput:'',
|
|
|
|
|
|
editChartInfoId:0,//编辑时的图表id
|
|
|
+
|
|
|
+ commonShowChartSource:false,//是否显示图表来源的公共配置
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.edbList.push(this.createEbdListItem('A'))
|
|
|
+ this.getChartCommonConfig()
|
|
|
},
|
|
|
methods: {
|
|
|
// 季节图点击编辑图例
|
|
@@ -777,7 +781,7 @@ export default {
|
|
|
this.formData={
|
|
|
chartName: '',
|
|
|
chartSource: '平衡表',
|
|
|
- showChartSource: false,
|
|
|
+ showChartSource: this.commonShowChartSource|| false,
|
|
|
chartType: 1,
|
|
|
leftMin: 0,
|
|
|
leftMax: 0,
|
|
@@ -883,6 +887,16 @@ export default {
|
|
|
item.leadVal = item.leadVal.replace(/[^\.\d]/g, '').replace('.', '');
|
|
|
},
|
|
|
|
|
|
+ // 获取图表公共的是否显示来源配置
|
|
|
+ async getChartCommonConfig(){
|
|
|
+ const res = await etaBaseConfigInterence.getBaseConfig()
|
|
|
+ if(res.Ret===200){
|
|
|
+ this.commonShowChartSource=res.Data.ChartSourceDisplay=='true'?true:false
|
|
|
+ this.formData.showChartSource=this.commonShowChartSource
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|