shanbinzhang há 1 mês atrás
pai
commit
9d9b130eda

+ 8 - 6
src/views/report_manage/reportV2/smartReport/editReport.vue

@@ -555,9 +555,10 @@ export default {
                         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
+                                let codeSuffix = params.uid?params.uid:params.code;
+                                let titleText = ($(`.title_iframe${codeSuffix}`)
+                                &&$(`.title_iframe${codeSuffix}`)[0])
+                                    ?$(`.title_iframe${codeSuffix}`)[0].innerText
                                     :'';
                                     
                                 return {
@@ -572,9 +573,10 @@ export default {
                 }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
+                        let codeSuffix = params.uid?params.uid:params.code;
+                        let titleText = ($(`.title_iframe${codeSuffix}`)
+                        &&$(`.title_iframe${codeSuffix}`)[0])
+                            ?$(`.title_iframe${codeSuffix}`)[0].innerText
                             :'';
                             
                         return {