感谢回复,这是我从网上搜索到的在vue集成AR的例子,请问有和下面这个例子相似的官方文档和demo吗?在下面的例子中,我可以设置报表所在的URL地址、要展示的报表路径、报表参数等,但是上面的官方demo中,并没有可以设置参数的地方!
<template>
<div>
<ar-viewer :serviceUrl="serviceUrl" :reportPath="reportPath" :parameters="parameters" :culture="culture"></ar-viewer>
</div>
</template>
<script>
import { ArViewer } from "@grapecity/activereports-vue";
export default {
name: "MyComponent",
components: {
ArViewer
},
data() {
return {
serviceUrl: "http://myserver/myapp",
reportPath: "reports/myreport.rdlx",
parameters: [
{ name: "param1", value: "Hello" },
{ name: "param2", value: "World" }
],
culture: "en-US"
};
}
};
</script> |