comparison client/src/components/importconfiguration/ScheduledImports.vue @ 5367:1695e17c5a83 extented-report

Adds schedualbility for reports as an import. In order to enable the sysadmin to schedule the automatic reports on dataquality there is now a new import type established. This import allows to edit the schedule for issuing the report. Besides: The layout for the usermanagement is now x-scrollable when overflown.
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 23 Jun 2021 14:46:14 +0200
parents 8d19d4701f0c
children 755ed195fdc3 23a330c5b10d
comparison
equal deleted inserted replaced
5366:cb46f50ba168 5367:1695e17c5a83
910 data["depth"] = this.depth * 1; 910 data["depth"] = this.depth * 1;
911 data["source-organization"] = this.sourceOrganization; 911 data["source-organization"] = this.sourceOrganization;
912 } 912 }
913 if (this.waitRetry) data["wait-retry"] = this.waitRetry; 913 if (this.waitRetry) data["wait-retry"] = this.waitRetry;
914 if (this.trys) data["trys"] = Number(this.trys); 914 if (this.trys) data["trys"] = Number(this.trys);
915
916 if (this.import_ === this.$options.IMPORTTYPES.REPORT) {
917 data["name"] = "default";
918 }
915 data["send-email"] = this.eMailNotification; 919 data["send-email"] = this.eMailNotification;
916 this.triggerActive = false; 920 this.triggerActive = false;
917 const type = 921 const type =
918 this.import_ === "fairwaymarks" 922 this.import_ === "fairwaymarks"
919 ? `fm_${this.selectedMark.toLowerCase()}` 923 ? `fm_${this.selectedMark.toLowerCase()}`
1001 if (this.scheduled) { 1005 if (this.scheduled) {
1002 config["cron"] = cron; 1006 config["cron"] = cron;
1003 } 1007 }
1004 if (this.waitRetry) config["wait-retry"] = this.waitRetry; 1008 if (this.waitRetry) config["wait-retry"] = this.waitRetry;
1005 if (this.trys) config["trys"] = Number(this.trys); 1009 if (this.trys) config["trys"] = Number(this.trys);
1010 if (this.import_ === this.$options.IMPORTTYPES.REPORT) {
1011 config["name"] = "default";
1012 }
1006 config["send-email"] = this.eMailNotification; 1013 config["send-email"] = this.eMailNotification;
1007 if (!this.id) { 1014 if (!this.id) {
1008 data["config"] = config; 1015 data["config"] = config;
1009 this.$store 1016 this.$store
1010 .dispatch("importschedule/saveCurrentSchedule", data) 1017 .dispatch("importschedule/saveCurrentSchedule", data)