| | |
| | | <view class="line"> |
| | | <text>用车时段</text> |
| | | <text> |
| | | {{ item.startTime.slice(5, 16) }}至{{ |
| | | {{ item.startTime.slice(5, 16) }} 至 {{ |
| | | item.endTime.slice(5, 16) |
| | | }}</text |
| | | > |
| | |
| | | :show="isShowDate" |
| | | ref="startPick" |
| | | title="开始时间" |
| | | :formatter="formatter" |
| | | :minDate="minDate" |
| | | @close="isShowDate = false" |
| | | :closeOnClickOverlay="true" |
| | |
| | | mode="datetime" |
| | | :show="isShowEndDate" |
| | | title="结束时间" |
| | | :formatter="formatter" |
| | | :minDate="new Date(param.startTime || null).getTime()" |
| | | @close="endtimeClose" |
| | | :closeOnClickOverlay="true" |
| | |
| | | this.initData() |
| | | }, |
| | | methods: { |
| | | formatter(type, value) { |
| | | if (type === 'year') { |
| | | return `${value}年` |
| | | } |
| | | if (type === 'month') { |
| | | return `${value}月` |
| | | } |
| | | if (type === 'day') { |
| | | return `${value}日` |
| | | } |
| | | if (type === 'hour') { |
| | | return `${value}时` |
| | | } |
| | | if (type === 'minute') { |
| | | return `${value}分` |
| | | } |
| | | return value |
| | | }, |
| | | showDate() { |
| | | this.isShowDate = true |
| | | if (!this.param.startTime) { |