|
@@ -514,20 +514,42 @@ export default {
|
|
|
|
|
|
/* 表格标题可修改,保存时获取每个sheet最新的title存进conList */
|
|
|
formatContentListElData() {
|
|
|
+ console.log(this.conList)
|
|
|
let newList = this.conList.map(_ => {
|
|
|
- if(_.compId===4) {
|
|
|
- let params = GetQueryString(_.content);
|
|
|
- let titleText = ($(`.title_iframe${params.code}`)
|
|
|
- &&$(`.title_iframe${params.code}`)[0])
|
|
|
- ?$(`.title_iframe${params.code}`)[0].innerText
|
|
|
- :'';
|
|
|
-
|
|
|
+ if(_.child&&_.child.length) { //一行多个
|
|
|
return {
|
|
|
- ..._,
|
|
|
- titleText
|
|
|
+ child: _.child.map(subCom => {
|
|
|
+ if(subCom.compId===4) {
|
|
|
+ let params = GetQueryString(subCom.content);
|
|
|
+ let titleText = ($(`.title_iframe${params.code}`)
|
|
|
+ &&$(`.title_iframe${params.code}`)[0])
|
|
|
+ ?$(`.title_iframe${params.code}`)[0].innerText
|
|
|
+ :'';
|
|
|
+
|
|
|
+ return {
|
|
|
+ ...subCom,
|
|
|
+ titleText
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ return subCom
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else { //一行单个
|
|
|
+ if(_.compId===4) {
|
|
|
+ let params = GetQueryString(_.content);
|
|
|
+ let titleText = ($(`.title_iframe${params.code}`)
|
|
|
+ &&$(`.title_iframe${params.code}`)[0])
|
|
|
+ ?$(`.title_iframe${params.code}`)[0].innerText
|
|
|
+ :'';
|
|
|
+
|
|
|
+ return {
|
|
|
+ ..._,
|
|
|
+ titleText
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ return _
|
|
|
}
|
|
|
- }else {
|
|
|
- return _
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -690,7 +712,7 @@ export default {
|
|
|
resArr.child.push({
|
|
|
compId:3,
|
|
|
compType:'chart',
|
|
|
- content:`${LINK_CHART_URL}?code=${e.UniqueCode}`,
|
|
|
+ content:`${LINK_CHART_URL}?code=${e.UniqueCode}&lang=${this.currentLang}`,
|
|
|
id:this.getCompId(`chart${e.UniqueCode}_`),
|
|
|
style:'height:350px',
|
|
|
child:[]
|