@monoui/vuejs 1.1.79 → 1.1.81
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 +14 -10
package/package.json
CHANGED
|
@@ -714,17 +714,15 @@ export default {
|
|
|
714
714
|
// Update existing filter
|
|
715
715
|
this.$set(this.filters, existingIndex, {
|
|
716
716
|
Column: this.finalTimeFrame.column,
|
|
717
|
-
Value:
|
|
718
|
-
Operator: 5
|
|
719
|
-
AddMonths: true
|
|
717
|
+
Value: this.calculateStartDate(opt),
|
|
718
|
+
Operator: 5
|
|
720
719
|
});
|
|
721
720
|
} else {
|
|
722
721
|
// Add new filter
|
|
723
722
|
this.filters.push({
|
|
724
723
|
Column: this.finalTimeFrame.column,
|
|
725
|
-
Value:
|
|
726
|
-
Operator: 5
|
|
727
|
-
AddMonths: true
|
|
724
|
+
Value: this.calculateStartDate(opt),
|
|
725
|
+
Operator: 5
|
|
728
726
|
});
|
|
729
727
|
}
|
|
730
728
|
}
|
|
@@ -732,6 +730,12 @@ export default {
|
|
|
732
730
|
this.getValues();
|
|
733
731
|
},
|
|
734
732
|
|
|
733
|
+
calculateStartDate(months) {
|
|
734
|
+
const date = new Date();
|
|
735
|
+
date.setMonth(date.getMonth() - months);
|
|
736
|
+
return date.toISOString().split("T")[0]; // Return in YYYY-MM-DD format
|
|
737
|
+
},
|
|
738
|
+
|
|
735
739
|
getCorrelationClass(row, tableData) {
|
|
736
740
|
var correlationCount = 0;
|
|
737
741
|
tableData.forEach(element => {
|
|
@@ -866,8 +870,8 @@ export default {
|
|
|
866
870
|
);
|
|
867
871
|
if (result && result.status === 200) {
|
|
868
872
|
this.$successToast(
|
|
869
|
-
"Export
|
|
870
|
-
"
|
|
873
|
+
"Export In Progress",
|
|
874
|
+
"It will be available on the Reports/Exports page shortly."
|
|
871
875
|
);
|
|
872
876
|
} else {
|
|
873
877
|
this.$errorToast(
|
|
@@ -885,8 +889,8 @@ export default {
|
|
|
885
889
|
|
|
886
890
|
if (exportScope) {
|
|
887
891
|
this.$successToast(
|
|
888
|
-
"Export
|
|
889
|
-
"
|
|
892
|
+
"Export In Progress",
|
|
893
|
+
"It will be available on the Reports/Exports page shortly."
|
|
890
894
|
);
|
|
891
895
|
}
|
|
892
896
|
|