This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
<v-card elevation="24">
|
||||
<v-card-title class="headline lighten-2" primary-title>
|
||||
<span> {{ $ay.t("Report") }} </span>
|
||||
TYPE: {{ ayaType }}, idList:{{ idList }} rights: {{ rights }}
|
||||
</v-card-title>
|
||||
|
||||
<v-card-text style="height: 500px;">
|
||||
@@ -64,7 +63,7 @@ export default {
|
||||
data: () => ({
|
||||
rights: window.$gz.role.getRights(window.$gz.type.Report),
|
||||
ayaType: null,
|
||||
idList: [],
|
||||
sourceData: {},
|
||||
isVisible: false,
|
||||
resolve: null,
|
||||
reject: null,
|
||||
@@ -76,13 +75,22 @@ export default {
|
||||
selectedReport: null
|
||||
}),
|
||||
methods: {
|
||||
async open(ayaType, idList) {
|
||||
async open(ayaType, sourceData) {
|
||||
let vm = this;
|
||||
if (ayaType == null || idList == null || idList.length == 0) {
|
||||
throw "report-selector:Open missing type and or idList";
|
||||
if (ayaType == null || sourceData == null) {
|
||||
throw "report-selector:Open missing type and or sourceData";
|
||||
}
|
||||
this.ayaType = ayaType;
|
||||
this.idList = idList;
|
||||
|
||||
//source data object
|
||||
//either need to rehydrate or send as is if not selectedRowIds
|
||||
// {
|
||||
// selectedRowIds: selectedRowIds,
|
||||
// dataListKey: vm.dataListKey,
|
||||
// listView: untokenizeListView(vm.listView)
|
||||
// }
|
||||
|
||||
this.sourceData = sourceData;
|
||||
|
||||
//rights
|
||||
|
||||
@@ -115,7 +123,11 @@ export default {
|
||||
this.resolve(null);
|
||||
this.$router.push({
|
||||
name: "ay-report-edit",
|
||||
params: { recordid: 0, ayaType: this.ayaType, idList: this.idList }
|
||||
params: {
|
||||
recordid: 0,
|
||||
ayaType: this.ayaType,
|
||||
sourceData: this.sourceData
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user