This commit is contained in:
2020-08-31 21:00:39 +00:00
parent 896e710aa4
commit 525ae9f9bc
2 changed files with 8 additions and 4 deletions

View File

@@ -68,12 +68,12 @@ export default {
}),
methods: {
open(ayaType, idList) {
let vm=this;
let vm = this;
if (ayaType == null || idList == null || idList.length == 0) {
throw "report-selector:Open missing type and or idList";
}
this.ayaType=ayaType;
this.idList=idList;
this.ayaType = ayaType;
this.idList = idList;
//get report list from server
//for now we'll fake it
let fakeReportList = [];

View File

@@ -637,7 +637,11 @@ async function clickHandler(menuItem) {
});
} else {
//general report selector chosen
let res = await m.vm.$refs.reportSelector.open();
let res = await m.vm.$refs.reportSelector.open(
window.$gz.type.Widget,
[m.vm.obj.id]
);
//if null for no selection
//just bail out