This commit is contained in:
@@ -456,7 +456,7 @@ export default {
|
||||
refresh() {
|
||||
this.getDataFromApi();
|
||||
},
|
||||
getDataTableSourceOptions() {
|
||||
getReportDataOptions(AyaType) {
|
||||
let vm = this;
|
||||
//called when parent form needs the selected id's or the list view options needed to rehydrate the entire list of id's in the same order and filter
|
||||
//i.e. for reporting, bulk operations etc
|
||||
@@ -471,7 +471,13 @@ export default {
|
||||
return z.id;
|
||||
});
|
||||
}
|
||||
/* public AyaType ObjectType { get; set; }
|
||||
public long[] SelectedRowIds { get; set; }
|
||||
public string DataListKey { get; set; }
|
||||
public string ListView { get; set; }//optional, if null or empty will use default list view built into DataList
|
||||
*/
|
||||
return {
|
||||
ObjectType:ayaType
|
||||
selectedRowIds: selectedRowIds,
|
||||
dataListKey: vm.dataListKey,
|
||||
listView: untokenizeListView(vm.listView)
|
||||
|
||||
@@ -63,7 +63,7 @@ export default {
|
||||
data: () => ({
|
||||
rights: window.$gz.role.getRights(window.$gz.type.Report),
|
||||
ayaType: null,
|
||||
sourceData: {},
|
||||
reportDataOptions: {},
|
||||
isVisible: false,
|
||||
resolve: null,
|
||||
reject: null,
|
||||
@@ -75,10 +75,10 @@ export default {
|
||||
selectedReport: null
|
||||
}),
|
||||
methods: {
|
||||
async open(ayaType, sourceData) {
|
||||
async open(ayaType, reportDataOptions) {
|
||||
let vm = this;
|
||||
if (ayaType == null || sourceData == null) {
|
||||
throw "report-selector:Open missing type and or sourceData";
|
||||
if (ayaType == null || reportDataOptions == null) {
|
||||
throw "report-selector:Open missing type and or reportDataOptions";
|
||||
}
|
||||
this.ayaType = ayaType;
|
||||
|
||||
@@ -90,7 +90,7 @@ export default {
|
||||
// listView: untokenizeListView(vm.listView)
|
||||
// }
|
||||
|
||||
this.sourceData = sourceData;
|
||||
this.reportDataOptions = reportDataOptions;
|
||||
|
||||
//rights
|
||||
|
||||
@@ -126,7 +126,7 @@ export default {
|
||||
params: {
|
||||
recordid: 0,
|
||||
ayaType: this.ayaType,
|
||||
sourceData: this.sourceData
|
||||
reportDataOptions: this.reportDataOptions
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user