@monoui/vuejs 1.1.72 → 1.1.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2 -2
- package/package.json +1 -1
- package/src/components/Table/Table.vue +24 -0
package/package.json
CHANGED
|
@@ -699,6 +699,30 @@ export default {
|
|
|
699
699
|
initialLoad = false,
|
|
700
700
|
exportScope = 0
|
|
701
701
|
) {
|
|
702
|
+
if (exportScope !== 0) {
|
|
703
|
+
const { currentPage, itemPerPage } = this.settings;
|
|
704
|
+
let result = await this.requestFunction(
|
|
705
|
+
this.filters,
|
|
706
|
+
this.sorting,
|
|
707
|
+
currentPage,
|
|
708
|
+
itemPerPage,
|
|
709
|
+
exportScope
|
|
710
|
+
);
|
|
711
|
+
if (result && result.status === 200) {
|
|
712
|
+
this.$successToast(
|
|
713
|
+
"Export Started",
|
|
714
|
+
"The export process has begun. Please wait... Once completed, you can download it from the Reports/Exports page."
|
|
715
|
+
);
|
|
716
|
+
} else {
|
|
717
|
+
this.$errorToast(
|
|
718
|
+
"Export Failed",
|
|
719
|
+
"An error occurred while exporting the data. Please try again."
|
|
720
|
+
);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
|
|
702
726
|
this.isLoading = true;
|
|
703
727
|
this.$emit("loading", this.isLoading);
|
|
704
728
|
const { currentPage, itemPerPage } = this.settings;
|