| | |
| | | </scroll-view> |
| | | </view> |
| | | <!-- 选择日期 --> |
| | | <u-calendar mode="range" :show="timeShow" :minDate="minDate" :maxDate="maxDate" @close="timeShow = false" |
| | | @confirm="timeConfirm"></u-calendar> |
| | | <!-- <u-calendar mode="range" :show="timeShow" :minDate="minDate" :maxDate="maxDate" @close="timeShow = false" |
| | | @confirm="timeConfirm"></u-calendar> --> |
| | | <l-calendar :lunar="false" v-model="timeShow" @change="timeConfirm" :isRange="true" activeBgColor="#305ED5" |
| | | rangeColor="#305ED5" rangeBgColor="rgba(48, 80, 213, 0.1)"></l-calendar> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | onReady() { |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | uni.createSelectorQuery().in(this).select('.content_search').boundingClientRect((rect) => { |
| | | that.height = `calc(100vh - ${rect.height + 80}px)` |
| | | that.top = `${rect.height}px` |
| | | }).exec() |
| | | uni.createSelectorQuery() |
| | | .in(this) |
| | | .select('.content_search') |
| | | .boundingClientRect((rect) => { |
| | | |
| | | that.height = `calc(100vh - ${rect.height + 80}px)` |
| | | that.top = `${rect.height}px` |
| | | }).exec() |
| | | }) |
| | | }, |
| | | onLoad() { |
| | |
| | | }, |
| | | // 日期确定 |
| | | timeConfirm(val) { |
| | | this.listData.planDateEnd = val[val.length - 1] |
| | | this.listData.planDateStart = val[0] |
| | | this.listData.planDateEnd = val.endDate |
| | | this.listData.planDateStart = val.startDate |
| | | this.timeShow = false |
| | | }, |
| | | // 切换工序 |