This commit is contained in:
@@ -307,6 +307,7 @@
|
||||
</v-form>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -852,6 +853,26 @@ export default {
|
||||
});
|
||||
},
|
||||
async render() {
|
||||
// console.log(JSON.stringify(this.$route.params.reportDataOptions));
|
||||
const vm = this;
|
||||
if (vm.$route.params.recordid == 0) {
|
||||
return;
|
||||
}
|
||||
const reportDataOptions = vm.$route.params.reportDataOptions;
|
||||
if (!reportDataOptions) {
|
||||
throw new Error(
|
||||
"Missing report data: to view report must come here from an object edit form or list so data can be provided for viewing the report"
|
||||
);
|
||||
}
|
||||
reportDataOptions.ReportId = vm.obj.id;
|
||||
//Meta data from client for use by report script
|
||||
reportDataOptions.ClientMeta = window.$gz.api.reportClientMetaData();
|
||||
const res = await vm.$refs.reportSelector.open(
|
||||
reportDataOptions,
|
||||
vm.obj.id
|
||||
);
|
||||
},
|
||||
async xxrender() {
|
||||
const vm = this;
|
||||
if (vm.$route.params.recordid == 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user