763dce47 by simon

增加日选择后回调

1 parent e3b9bce4
...@@ -141,6 +141,9 @@ export default { ...@@ -141,6 +141,9 @@ export default {
141 initData() { 141 initData() {
142 // console.log("this.insuredList = ", this.insuredList); 142 // console.log("this.insuredList = ", this.insuredList);
143 }, 143 },
144 datePickCompleteHandler(){
145 console.log("datePickCompleteHandler");
146 },
144 typeClickHandle(t) { 147 typeClickHandle(t) {
145 let index = this.typeSelected.indexOf(t); 148 let index = this.typeSelected.indexOf(t);
146 if (index > -1) { 149 if (index > -1) {
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
103 <div class="down-arrow"></div> 103 <div class="down-arrow"></div>
104 <div class="cont"> 104 <div class="cont">
105 <div class="ipt-date"> 105 <div class="ipt-date">
106 <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> 106 <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>
107 </div> 107 </div>
108 </div> 108 </div>
109 </div> 109 </div>
......
...@@ -74,6 +74,11 @@ export default { ...@@ -74,6 +74,11 @@ export default {
74 return {}; 74 return {};
75 } 75 }
76 }, 76 },
77 // 选择完日后触发
78 datePickComplete: {
79 type: Function,
80 default: null
81 },
77 }, 82 },
78 data() { 83 data() {
79 return { 84 return {
...@@ -272,6 +277,9 @@ export default { ...@@ -272,6 +277,9 @@ export default {
272 // this.dateValue = `${year}-${month}-${date}`; 277 // this.dateValue = `${year}-${month}-${date}`;
273 this.formatDateValue(year, month, date); 278 this.formatDateValue(year, month, date);
274 this.showCalendar(); 279 this.showCalendar();
280 if(this.datePickComplete){
281 this.datePickComplete();
282 }
275 }, 283 },
276 // 选择月份 284 // 选择月份
277 selectMonth(item) { 285 selectMonth(item) {
......