|
@@ -58,7 +58,7 @@
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
<!-- 选择日期范围 -->
|
|
|
- <u-calendar v-model="showDate" @change="dateChange" mode="range" :isResetCon="isResetFlag"></u-calendar>
|
|
|
+ <u-calendar v-model="showDate" ref="dataInit" @change="dateChange" mode="range"></u-calendar>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -115,8 +115,7 @@
|
|
|
showDate: false, // 是否显示时间弹窗
|
|
|
isShow:this.showModal,
|
|
|
showTypeModal: false,
|
|
|
- brandModal:false,
|
|
|
- isResetFlag:false //是否点击重置按钮
|
|
|
+ brandModal:false
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -128,13 +127,12 @@
|
|
|
},
|
|
|
// 清空创建时间
|
|
|
clearTime(){
|
|
|
- this.isResetFlag = true;
|
|
|
+ this.$refs.dataInit.init();
|
|
|
this.form.date = ''
|
|
|
this.form.beginDate = ''
|
|
|
this.form.endDate = ''
|
|
|
},
|
|
|
checkboxChange(e,key,list){
|
|
|
- console.log(e,key)
|
|
|
list.map(item => {
|
|
|
item.checked = item.val == e.name
|
|
|
})
|
|
@@ -153,7 +151,7 @@
|
|
|
brandName: undefined,//车辆品牌
|
|
|
modelInfo: undefined//车型
|
|
|
}
|
|
|
- this.isResetFlag = true;
|
|
|
+ this.$refs.dataInit.init();
|
|
|
setTimeout(()=>{
|
|
|
this.handleSearch()
|
|
|
},300)
|