| | |
| | | <template> |
| | | <BaseCard class=""> |
| | | <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; |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | handleClick() { |
| | | this.$emit('search', this.formSearch); |
| | | this.$emit('search', { ...this.formSearch, mission: this.mission }); |
| | | } |
| | | } |
| | | }; |