Commit c98d4b87 authored by liudong1993's avatar liudong1993

1日期修复

parent c7617d5d
......@@ -171,11 +171,15 @@
},
methods: {
getDates(){
console.log(this.Datelist)
if(this.Datelist[0]){
this.msg.StartTime = this.Datelist[0]
}if(this.Datelist[1]){
this.msg.EndTime = this.Datelist[1]
if(this.Datelist){
if(this.Datelist[0]){
this.msg.StartTime = this.Datelist[0]
}if(this.Datelist[1]){
this.msg.EndTime = this.Datelist[1]
}
}else{
this.msg.StartTime = ''
this.msg.EndTime = ''
}
},
setEdate() {
......
......@@ -100,7 +100,7 @@
<em>门票时间</em>
<el-date-picker style="height: 34px;" value-format="yyyy-MM-dd" v-model="DatelistUse" type="daterange"
:range-separator="$t('OrderList.zhi')" :start-placeholder="$t('OrderList.star')"
:end-placeholder="$t('OrderList.end')" @change="getDates">
:end-placeholder="$t('OrderList.end')" @change="getDatesUse">
</el-date-picker>
</span>
</li>
......@@ -179,19 +179,27 @@ export default {
},
methods: {
getDatesUse() {
console.log(this.Datelist)
if (this.DatelistUse[0]) {
this.msg.UseSTime = this.DatelistUse[0]
} if (this.DatelistUse[1]) {
this.msg.UseETime = this.DatelistUse[1]
if(this.DatelistUse){
if (this.DatelistUse[0]) {
this.msg.UseSTime = this.DatelistUse[0]
} if (this.DatelistUse[1]) {
this.msg.UseETime = this.DatelistUse[1]
}
}else{
this.msg.UseSTime = ''
this.msg.UseETime = ''
}
},
getDates() {
console.log(this.Datelist)
if (this.Datelist[0]) {
this.msg.StartTime = this.Datelist[0]
} if (this.Datelist[1]) {
this.msg.EndTime = this.Datelist[1]
if(this.Datelist){
if (this.Datelist[0]) {
this.msg.StartTime = this.Datelist[0]
} if (this.Datelist[1]) {
this.msg.EndTime = this.Datelist[1]
}
}else{
this.msg.StartTime = ''
this.msg.EndTime = ''
}
},
setEdate() {
......
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