Explorar el Código

替换全局变量名称

cfort hace 1 año
padre
commit
8cac3b8e49

+ 1 - 1
src/business/platform/data/templaterender/templates/list.vue

@@ -994,7 +994,7 @@ export default {
                                 this.$message.warning('请先配置对应报表路径!')
                                 return
                             }
-                            src = `${this.$reportPash.replace('show', 'pdf')}${button.reportPath}&id_=${selection}`
+                            src = `${this.$reportPath.replace('show', 'pdf')}${button.reportPath}&id_=${selection}`
                             // console.log(src)
                             preview(this, src)
                         }

+ 1 - 1
src/components/ibps-link/index.vue

@@ -169,7 +169,7 @@ export default {
         router: this.$router,
         message: this.$message,
         link: this,
-        reportPash:this.$reportPash,
+        reportPath:this.$reportPath,
         reportPashs:this.$reportPashs,
       }
       if (this.$utils.isEmpty(scrip)) return

+ 5 - 5
src/views/platform/bpmn/bpmInstHis/corresponding/getReport.js

@@ -18,7 +18,7 @@ export default {
             return data
         },
         alertReport (value, id_) {
-            this.srcUrl = `${this.$reportPash.replace('show', 'pdf')}${value}&id_=${id_}`
+            this.srcUrl = `${this.$reportPath.replace('show', 'pdf')}${value}&id_=${id_}`
             this.visible = true
         },
         /* 2、打开内容与附件,获取相关报告与附件内容*/
@@ -43,20 +43,20 @@ export default {
         },
         /* 3打开报告 */
         clickCont (cont, i) {
-            this.srcUrl = this.$reportPash.replace('show', "pdf") + cont.report[i] + '&id_=' + cont.formId
+            this.srcUrl = this.$reportPath.replace('show', "pdf") + cont.report[i] + '&id_=' + cont.formId
             this.visible = true
         },
         clickConts_GuanLiPingShen (i) {
-            this.srcUrl = this.$reportPash.replace('show', 'pdf') + '37管理评审程序/GDYR-CX30-R04C 管理评审改进跟踪验证表.rpx&id_=' + i
+            this.srcUrl = this.$reportPath.replace('show', 'pdf') + '37管理评审程序/GDYR-CX30-R04C 管理评审改进跟踪验证表.rpx&id_=' + i
             this.visible = true
         },
         clickConts_BuFuHeXiang (i) {
-            this.srcUrl = this.$reportPash.replace('show', 'pdf') + '36内部审核程序/GDYR-CX22-R01B 不符合项报告与纠正措施记录表.rpx&id_=' + i
+            this.srcUrl = this.$reportPath.replace('show', 'pdf') + '36内部审核程序/GDYR-CX22-R01B 不符合项报告与纠正措施记录表.rpx&id_=' + i
             this.visible = true
         },
         // 检测管理打开润乾报表
         clickConts_jianCe (name, i) {
-            this.srcUrl = this.$reportPash.replace('show', 'pdf') + name + '&id_=' + i
+            this.srcUrl = this.$reportPath.replace('show', 'pdf') + name + '&id_=' + i
             this.visible = true
         },
         /*3 获取文件内容,以表名和id去获取对应参数

+ 1 - 1
src/views/platform/bpmn/bpmInstHis/list.vue

@@ -540,7 +540,7 @@ export default {
         },
         // 打开报表
         openReport (path, id) {
-            this.srcUrl = `${this.$reportPash.replace('show', 'pdf')}${path}&id_=${id}`
+            this.srcUrl = `${this.$reportPath.replace('show', 'pdf')}${path}&id_=${id}`
             this.visible = true
             // 系统管理角色、实验室主任、档案管理员、信息管理角色可下载打印
             if (this.hasRole) {

+ 1 - 1
src/views/platform/bpmn/bpmInstHis/ori-List.vue

@@ -323,7 +323,7 @@ export default {
     },
     /* 3打开报告 */
     clickCont(cont, i) {
-      this.srcUrl = this.$reportPash.replace("show", "pdf") + cont.report[i] + '&id_=' + cont.formId
+      this.srcUrl = this.$reportPath.replace("show", "pdf") + cont.report[i] + '&id_=' + cont.formId
       this.visible = true
     },
     /*3 获取文件内容, 以表名+ id 去获取对应参数*/

+ 1 - 1
src/views/platform/bpmn/bpmInstHis/record/component/testingRecord.vue

@@ -410,7 +410,7 @@ export default {
             this.loadData()
         },
         alertReport (path, id) {
-            this.srcUrl = `${this.$reportPash.replace('show', 'pdf')}${path}&id_=${id}`
+            this.srcUrl = `${this.$reportPath.replace('show', 'pdf')}${path}&id_=${id}`
             this.visible = true
             // 系统管理角色、实验室主任、档案管理员、信息管理角色可下载打印
             if (this.hasRole) {