|
|
|
@ -14,6 +14,16 @@
|
|
|
|
|
});
|
|
|
|
|
setTimeout(callback, 3000)
|
|
|
|
|
},
|
|
|
|
|
showLoad:function(message){
|
|
|
|
|
if(message) {
|
|
|
|
|
this.indicator.open(message);
|
|
|
|
|
}else {
|
|
|
|
|
this.indicator.open();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
closeLoad:function(){
|
|
|
|
|
this.indicator.close();
|
|
|
|
|
},
|
|
|
|
|
alert: function (message, callback) {
|
|
|
|
|
this.$messageBox.alert(message, "").then(callback);
|
|
|
|
|
},
|
|
|
|
@ -135,9 +145,12 @@
|
|
|
|
|
|
|
|
|
|
Vue.component('wb-field-date', {
|
|
|
|
|
data: function () {
|
|
|
|
|
var startDate = new Date();
|
|
|
|
|
startDate.setFullYear(1990, 0, 1);
|
|
|
|
|
return {
|
|
|
|
|
selectValue: '',
|
|
|
|
|
clearVisible: false,
|
|
|
|
|
startDate:startDate
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
@ -172,7 +185,7 @@
|
|
|
|
|
' <div class="mint-field-clear" v-if="clearVisible" @click="onClear"><i class="mintui mintui-field-error"></i></div>' +
|
|
|
|
|
' </div>' +
|
|
|
|
|
' </div>' +
|
|
|
|
|
' <mt-datetime-picker ref="picker" type="date" v-model="selectValue" @confirm="onConfirm" year-format="{value}" month-format="{value}" date-format="{value}"></mt-datetime-picker>' +
|
|
|
|
|
' <mt-datetime-picker ref="picker" type="date" :startDate="startDate" v-model="selectValue" @confirm="onConfirm" year-format="{value}" month-format="{value}" date-format="{value}"></mt-datetime-picker>' +
|
|
|
|
|
'</a>'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|