Commit b8cbf727 authored by zhengke's avatar zhengke

修改

parent 2122cfd5
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
<th width="10%">操作</th> <th width="10%">操作</th>
</tr> </tr>
<tr> <tr>
<td colspan="8" align="center" v-show="list.length==0">暂无数据</td> <td colspan="9" align="center" v-show="list.length==0">暂无数据</td>
</tr> </tr>
<tr v-for="(item,index) in list"> <tr v-for="(item,index) in list">
<td>{{item.CustomerName}}</td> <td>{{item.CustomerName}}</td>
......
...@@ -618,6 +618,8 @@ ...@@ -618,6 +618,8 @@
{ {
this.addMsg.synchronization=0; this.addMsg.synchronization=0;
} }
this.checkIsRightTime(this.addMsg.Departure_time,1);
this.checkIsRightTime(this.addMsg.Arrival_time,2);
this.apipost( this.apipost(
"flight_post_Set", "flight_post_Set",
this.addMsg, this.addMsg,
...@@ -634,6 +636,20 @@ ...@@ -634,6 +636,20 @@
err => {} err => {}
); );
}, },
checkIsRightTime(time,type){
let arrTime = time.split(':');
    if (arrTime[1]>24 || arrTime[2]>60)
    {
if(type==1){
        this.Error('请输入正确的起飞时间格式!');
}
if(type==2){
        this.Error('请输入正确的到达时间格式!');
}
    }
},
//提交创建、修改表单 //提交创建、修改表单
submitForm(addMsg) { submitForm(addMsg) {
this.$refs[addMsg].validate(valid => { this.$refs[addMsg].validate(valid => {
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
<th width="10%">操作</th> <th width="10%">操作</th>
</tr> </tr>
<tr> <tr>
<td colspan="8" align="center" v-show="list.length==0">暂无数据</td> <td colspan="9" align="center" v-show="list.length==0">暂无数据</td>
</tr> </tr>
<tr v-for="(item,index) in list"> <tr v-for="(item,index) in list">
<td>{{item.CustomerName}}</td> <td>{{item.CustomerName}}</td>
......
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