This commit is contained in:
2021-12-28 19:11:55 +00:00
parent 9085b6e88d
commit 13aaf883ee
4 changed files with 11 additions and 9 deletions

View File

@@ -251,13 +251,12 @@ export default {
if (reportDataOptions == null) {
throw new Error("report-selector:Open missing reportDataOptions");
}
if (reportDataOptions.AType == null) {
throw new Error("report-selector:Open - AType is missing or empty");
}
this.reportDataOptions = reportDataOptions;
this.preSelectReportId = preSelectReportId;
if (!preSelectReportId) {
if (reportDataOptions.AType == null) {
throw new Error("report-selector:Open - AType is missing or empty");
}
//get report list from server
const res = await window.$gz.api.get(
`report/list/${reportDataOptions.AType}`