Commit 11812ead authored by 13841799530's avatar 13841799530

解润东

20220609
bug修复
parent 4394fe06
Pipeline #8467 passed with stage
in 5 minutes and 11 seconds
......@@ -15,7 +15,7 @@
<van-icon name="calendar-o" @click="show=true"/>
</template>
</van-search>
<van-calendar v-model="show" type="range" :default-date="null" @confirm="onConfirm" />
<van-calendar v-model="show" type="range" :min-date="minDate" :default-date="defaultData" @confirm="onConfirm" />
<!-- 内容列表 -->
<!-- 接口对接4 START -->
<div class="con-list" @touchmove="showIndex = null">
......@@ -114,6 +114,9 @@ export default {
},
data() {
return {
minDate: new Date(1900, 0, 1),
defaultData:[new Date(new Date().getFullYear(), new Date().getMonth(), 1)
,new Date(new Date().getFullYear(), new Date().getMonth(), new Date(new Date().getFullYear(),new Date().getMonth()+1,0).getDate())],
startTime:'',
endTime:'',
Loading: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment