Mercurial > gemma
comparison client/src/components/importschedule/Importscheduledetail.vue @ 1997:74c03fec0a91 importschedulerefac
WIP
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 24 Jan 2019 13:46:09 +0100 |
parents | fda5c78fb7d3 |
children | ceb6aaff6c8b |
comparison
equal
deleted
inserted
replaced
1996:fda5c78fb7d3 | 1997:74c03fec0a91 |
---|---|
755 } | 755 } |
756 }, | 756 }, |
757 closeDetailview() { | 757 closeDetailview() { |
758 this.$store.commit("imports/clearCurrentSchedule"); | 758 this.$store.commit("imports/clearCurrentSchedule"); |
759 this.$store.commit("imports/setImportScheduleDetailInvisible"); | 759 this.$store.commit("imports/setImportScheduleDetailInvisible"); |
760 } | 760 }, |
761 isURLRequired() { | |
762 switch (this.import_) { | |
763 case this.$options.IMPORTTYPES.BOTTLENECK: | |
764 case this.$options.IMPORTTYPES.WATERWAYAXIS: | |
765 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT: | |
766 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY: | |
767 case this.$options.IMPORTTYPES.WATERWAYAREA: | |
768 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION: | |
769 case this.$options.IMPORTTYPES.WATERWAYGAUGES: | |
770 case this.$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL: | |
771 return true; | |
772 default: | |
773 return false; | |
774 } | |
775 }, | |
776 isFeatureTypeRequired() { | |
777 switch (this.import_) { | |
778 case this.$options.IMPORTTYPES.WATERWAYAXIS: | |
779 case this.$options.IMPORTTYPES.WATERWAYAREA: | |
780 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION: | |
781 return true; | |
782 default: | |
783 return false; | |
784 } | |
785 }, | |
786 isSortbyRequired() { | |
787 switch (this.import_) { | |
788 case this.$options.IMPORTTYPES.WATERWAYAXIS: | |
789 case this.$options.IMPORTTYPES.WATERWAYAREA: | |
790 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION: | |
791 return true; | |
792 default: | |
793 return false; | |
794 } | |
761 }, | 795 }, |
762 imports: [], | 796 imports: [], |
763 on: "on", | 797 on: "on", |
764 off: "off", | 798 off: "off", |
765 periods: { | 799 periods: { |