|
@@ -83,6 +83,7 @@
|
|
<script>
|
|
<script>
|
|
import * as sheetInterface from '@/api/modules/sheetApi.js';
|
|
import * as sheetInterface from '@/api/modules/sheetApi.js';
|
|
import { dataBaseInterface } from 'api/api.js';
|
|
import { dataBaseInterface } from 'api/api.js';
|
|
|
|
+import {etaBaseConfigInterence} from '@/api/modules/etaBaseConfigApi.js';
|
|
import selectTarget from '@/views/chartRelevance_manage/components/selectTarget.vue';
|
|
import selectTarget from '@/views/chartRelevance_manage/components/selectTarget.vue';
|
|
import MixedTable from './components/MixedTable.vue'
|
|
import MixedTable from './components/MixedTable.vue'
|
|
import html2canvas from 'html2canvas';
|
|
import html2canvas from 'html2canvas';
|
|
@@ -149,7 +150,8 @@ export default {
|
|
|
|
|
|
updating:false,//更新状态
|
|
updating:false,//更新状态
|
|
sheetSourceFrom:null,
|
|
sheetSourceFrom:null,
|
|
- isShowSourceDialog:false
|
|
|
|
|
|
+ isShowSourceDialog:false,
|
|
|
|
+ showSourceFrom:true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -162,7 +164,12 @@ export default {
|
|
/* 获取表格详情 */
|
|
/* 获取表格详情 */
|
|
async getDetail(type='init') {
|
|
async getDetail(type='init') {
|
|
if(!this.sheetId){
|
|
if(!this.sheetId){
|
|
- this.sheetForm.SourcesFrom = this.setDefaultSource('')
|
|
|
|
|
|
+ const res = await etaBaseConfigInterence.getBaseConfig()
|
|
|
|
+ if(res.Ret==200){
|
|
|
|
+ const Data = res.Data||{}
|
|
|
|
+ this.showSourceFrom = Data.ChartSourceDisplay==='true'?true:false
|
|
|
|
+ }
|
|
|
|
+ this.sheetForm.SourcesFrom = this.setDefaultSource()
|
|
this.sheetSourceFrom = JSON.parse(this.sheetForm.SourcesFrom)
|
|
this.sheetSourceFrom = JSON.parse(this.sheetForm.SourcesFrom)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -203,7 +210,7 @@ export default {
|
|
},
|
|
},
|
|
setDefaultSource(sourceText){
|
|
setDefaultSource(sourceText){
|
|
return JSON.stringify({
|
|
return JSON.stringify({
|
|
- isShow: true,
|
|
|
|
|
|
+ isShow: this.showSourceFrom,
|
|
text: sourceText,
|
|
text: sourceText,
|
|
color: "#606266",
|
|
color: "#606266",
|
|
fontSize: 9
|
|
fontSize: 9
|