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