Commit 4c9c7c51 authored by 祁新's avatar 祁新

fix: 修改报表系统打印模板使用文档

parent 7eb67983
...@@ -79,7 +79,10 @@ export default { ...@@ -79,7 +79,10 @@ export default {
/** /**
* 打开预览报表页面 * 打开预览报表页面
* 第一个参数为当前页面功能id, 动态挂载的页面会经过路由设置,自动会将funcId挂到meta对象上 * 第一个参数为当前页面功能id, 动态挂载的页面会经过路由设置,自动会将funcId挂到meta对象上
* 第二个参数为替换对象, 如果报表模板设置了url参数那么getReportUrl 返回的url的地址需要替换参数, 如"/ureport-service/open/urv?reportid=36681d5743d33ab479e23b23c16f5ad1&userAccount={userAccount}" * 第二个参数为替换对象, 如果报表模板设置了url参数那么getReportUrl 返回的url的地址需要替换参数,格式为{变量}
* 如"/ureport-service/open/urv?reportid=36681d5743d33ab479e23b23c16f5ad1&realmcode={realmcode}&userAccount={userAccount}"
* realmcode为必须参数。 默认会使用当前脚手架中环境配置的`process.env.VUE_APP_REALMCODE`值替换
* 如果不替换直接打开地址,可能会url地址解析失败,或者造成参数错误等问题。
*/ */
openReportPreview(this.$route.meta.funcId, { openReportPreview(this.$route.meta.funcId, {
userAccount: 'admin' userAccount: 'admin'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment