763dce47 by simon

增加日选择后回调

1 parent e3b9bce4
......@@ -141,6 +141,9 @@ export default {
initData() {
// console.log("this.insuredList = ", this.insuredList);
},
datePickCompleteHandler(){
console.log("datePickCompleteHandler");
},
typeClickHandle(t) {
let index = this.typeSelected.indexOf(t);
if (index > -1) {
......
......@@ -103,7 +103,7 @@
<div class="down-arrow"></div>
<div class="cont">
<div class="ipt-date">
<date-picker v-model="data.contactDate" :formatter="'dd-MM-yyyy'" :filtModel="['future']" :check="checkDate" :readonly="true" :cusStyle="{border:'none !important','background-color':'transparent !important','height':'58px', 'color':'#ff6839','font-weight':'bold','text-align': 'center'}"></date-picker>
<date-picker v-model="data.contactDate" :datePickComplete="datePickCompleteHandler" :formatter="'dd-MM-yyyy'" :filtModel="['future']" :check="checkDate" :readonly="true" :cusStyle="{border:'none !important','background-color':'transparent !important','height':'58px', 'color':'#ff6839','font-weight':'bold','text-align': 'center'}"></date-picker>
</div>
</div>
</div>
......
......@@ -74,6 +74,11 @@ export default {
return {};
}
},
// 选择完日后触发
datePickComplete: {
type: Function,
default: null
},
},
data() {
return {
......@@ -272,6 +277,9 @@ export default {
// this.dateValue = `${year}-${month}-${date}`;
this.formatDateValue(year, month, date);
this.showCalendar();
if(this.datePickComplete){
this.datePickComplete();
}
},
// 选择月份
selectMonth(item) {
......