| | |
| | | <template> |
| | | <BaseCard class="map-date-selector flexbox-col align-items"> |
| | | <BaseCard size="middle-s" direction="down"> |
| | | <template #content> |
| | | <el-form :inline="true"> |
| | | <OptionMission v-model="formSearch.missionCode"></OptionMission> |
| | | <OptionMission v-model="mission"></OptionMission> |
| | | <OptionType v-model="formSearch.type"></OptionType> |
| | | <OptionDevice |
| | | :type="formSearch.type" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | mission: {}, |
| | | formSearch: { |
| | | missionCode: '', |
| | | type: '', |
| | | deviceCode: '', |
| | | timeArray: [] |
| | |
| | | watch: { |
| | | searchTime(nV, oV) { |
| | | if (nV != oV) { |
| | | this.timeArray = this.searchTime; |
| | | this.formSearch.timeArray = this.searchTime; |
| | | } |
| | | }, |
| | | mission(nV, oV) { |
| | | if (nV != oV) { |
| | | this.formSearch.timeArray = [ |
| | | new Date(nV.startTime), |
| | | new Date(nV.endTime) |
| | | ]; |
| | | this.formSearch.type = nV.deviceType; |
| | | this.formSearch.deviceCode = nV.deviceCode; |
| | | } |
| | | } |
| | | }, |
| | | method: { |
| | | methods: { |
| | | handleClick() { |
| | | this.$emit('search', this.formSearch); |
| | | this.$emit('search', { ...this.formSearch, mission: this.mission }); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss"> |
| | | .fy-container { |
| | | .map-date-selector { |
| | | display: inline-block; |
| | | position: relative; |
| | | /* left: 0; |
| | | right: 0; |
| | | top: 0px; */ |
| | | /* padding: 0 4px; */ |
| | | /* color: ffffffbd; */ |
| | | /* background-color: antiquewhite; */ |
| | | } |
| | | |
| | | .p-events-auto { |
| | | } |
| | | </style> |