Commit 555910e0 authored by zhengke's avatar zhengke

修改页面

parent c0aae9b2
......@@ -108,7 +108,7 @@ export default {
}
</script>
<style>
@import "//at.alicdn.com/t/font_635492_2e8rmd21ktq.css";
@import "//at.alicdn.com/t/font_635492_0whkhalyx8tm.css";
@import "./assets/css/Semibold.css";
@import "./assets/css/global/config.css";
@import "./assets/css/fileIcon.css";
......
<style>
.clearfix:after {
content: "\0020";
display: block;
height: 0;
clear: both;
}
.flightMg .addCompany {
width: 440px;
max-height: 600px;
}
.flightMg .addCompany .el-dialog__body {
height: 486px;
overflow: auto;
}
.flightMg .addCompany input {
width: 208px;
height: 34px;
border-radius: 17px;
}
.flightMg .name_input .el-form-item__content,
.other_input .el-form-item__content .el-input input {
width: 208px;
}
.flightMg .name_input .el-form-item__content .el-input input {
border-radius: 0;
}
.flightMg .name_input .el-form-item__content .el-input:first-child input {
border-top-left-radius: 17px;
border-bottom-left-radius: 17px;
border-right: 0;
}
.flightMg
.cn_name
.el-form-item:nth-child(2)
.el-form-item__content
.el-input:last-child
input,
.is-error .el-form-item__content {
border-top-right-radius: 17px;
border-bottom-right-radius: 17px;
}
.flightMg .el-form-item__content .el-textarea {
width: 208px;
.flightMg .flightAddCompany {
width: 900px;
min-height:300px;
}
.flightMg .cn_name .el-form-item:nth-child(1) {
width: 55%;
......@@ -102,6 +62,37 @@
font-style: normal;
margin: 0 20px 0 0;
}
.FweekList{
width:100%;
margin-top:5px;
padding-bottom: 5px;
border-bottom:1px solid #d1d1d1;
}
.FweekList:last-child{
border:0;
}
.flightChildTable{
width:100%;
text-align: center;
}
.flightChildTable td{
border: 1px solid #d1d1d1;
}
.flightaddICon{
float:right;
width:30px;
height:30px;
line-height: 30px;
border-radius:50%;
cursor: pointer;
border:1px solid #d1d1d1;
margin:20px 20px 0 0;
}
.flightaddICon:hover{
color:#fff;
background-color:#E95252;
border-color:#E95252;
}
</style>
<template>
<div class="flexOne flightMg">
......@@ -119,77 +110,10 @@
<label>{{$t('system.query_flightNum')}}</label>
<el-input v-model="msg.Flight_number" placeholder="" @keyup.native.enter="getList" class="w210"></el-input>
</li>
<li>
<label>{{$t('system.query_type')}}</label>
<el-select v-model="msg.Type" filterable :placeholder="$t('system.ph_buxian')" class="w210">
<el-option :label='$t("system.ph_buxian")' value='0'></el-option>
<el-option :label='$t("system.label_zhifei")' value='1'></el-option>
<el-option :label='$t("system.label_jingting")' value='2'></el-option>
</el-select>
</li>
<li>
<label>{{$t('system.query_flightCity')}}</label>
<el-select v-model="msg.Departure_city" filterable :placeholder="$t('system.ph_buxian')" @change="getaAirport(msg.Departure_city,false)"
class="w210">
<el-option :label='$t("system.ph_buxian")' value='0'></el-option>
<el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</li>
<li>
<label>{{$t('system.query_flightAir')}}</label>
<el-select v-model="msg.Departure_airport" filterable :placeholder="$t('system.ph_buxian')" class="w210">
<el-option :label='$t("system.ph_buxian")' value='0'></el-option>
<el-option v-for='item in Departure_airport' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</li>
<li>
<label>{{$t('system.query_stopCity')}}</label>
<el-select v-model="msg.Stopover_city" filterable :placeholder="$t('system.ph_buxian')" @change="getaStopAirport(msg.Stopover_city,false)"
class="w210">
<el-option :label='$t("system.ph_buxian")' value='0'></el-option>
<el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</li>
<li>
<label>{{$t('system.query_stopAir')}}</label>
<el-select v-model="msg.Stopover_airport" filterable :placeholder="$t('system.ph_buxian')" class="w210">
<el-option :label='$t("system.ph_buxian")' value='0'></el-option>
<el-option v-for='item in Stopover_airport' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</li>
<li>
<label>{{$t('system.query_arrivalCity')}}</label>
<el-select v-model="msg.Arrival_city" filterable :placeholder="$t('system.ph_buxian')" @change="getaArrivalAirport(msg.Arrival_city,false)"
class="w210">
<el-option :label='$t("system.ph_buxian")' value='0'></el-option>
<el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</li>
<li>
<label>{{$t('system.query_arrivalAir')}}</label>
<el-select v-model="msg.Arrival_airport" filterable :placeholder="$t('system.ph_buxian')" class="w210">
<el-option :label='$t("system.ph_buxian")' value='0'></el-option>
<el-option v-for='item in Arrival_airport' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</li>
<li>
<label>{{$t('admin.admin_status')}}</label>
<el-select v-model="msg.Status" filterable :placeholder="$t('system.ph_buxian')" class="w210">
<el-option :label="$t('system.ph_buxian')" value='-1'></el-option>
<el-option :label="$t('system.ph_zhengchang')" value='0'></el-option>
<el-option :label="$t('system.ph_shanchu')" value='1'></el-option>
</el-select>
</li>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" />
&nbsp;
<input type="button" class="normalBtn" :value="$t('pub.addBtn')" @click="outerVisible = true,dialogTitle='新增航班',initAddMsg()" />
<input type="button" class="normalBtn" :value="$t('pub.addBtn')" @click="outerVisible = true,dialogTitle='新增航班'" />
</li>
</ul>
</div>
......@@ -200,30 +124,19 @@
<th>航班号</th>
<th>起飞时间</th>
<th>到达时间</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in DataList" :key="index">
<td>{{item.Flight_number}} <!--{{item.SeasonTypeStr}}--></td>
<td>{{item.DName}}</td>
<td>{{item.Departure_time}}</td>
<td>{{item.SName}}</td>
<td>{{item.Arrival_stopover_time}}</td>
<td>{{item.Departure_stopover_time}}</td>
<td>{{item.AName}}</td>
<td>{{item.Arrival_time}}</td>
<td>{{item.emName}}</td>
<td>{{item.UpdateDate}}</td>
<td style="position: relative;">
<td><input type="checkbox"/></td>
<td>2018-08-09</td>
<td>123456</td>
<td>2019-09-09</td>
<td>2018-09-09</td>
<td>
<el-row>
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
<el-button type="primary" icon="el-icon-edit" circle @click="outerVisible = true,dialogTitle='修改航班',updateData(item.ID)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('pub.revoke')" placement="top-start" v-if="item.Status==1">
<el-button type="danger" icon="iconfont icon-web-icon-revoke" circle @click="deletelist(index,2)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start" v-else>
<el-button type="danger" icon="el-icon-delete" circle @click="deletelist(index,1)"></el-button>
</el-tooltip>
</el-row>
</td>
</tr>
......@@ -231,94 +144,39 @@
<div class="noData" v-show="noData">
{{$t('system.content_noData')}}
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper"
<!-- <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize" :total="total">
</el-pagination>
<el-dialog custom-class='addCompany' :title="dialogTitle" :visible.sync="outerVisible" center :before-close="closeChangeMachie">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="120px">
开始日期 结束日期 周几 起飞时间 到达时间
周几 起飞时间 到达时间
周几 起飞时间 到达时间
<el-form-item :label="$t('system.query_flightNum')" prop="Flight_number" class="other_input">
<el-input v-model="addMsg.Flight_number" :placeholder="$t('system.ph_airNum')"></el-input>
</el-form-item>
<el-form-item label="时间类型" style="display:none">
<el-select v-model="addMsg.SeasonType">
<el-option v-for='item in SeasonTypeList' :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.query_type')" prop="Type">
<el-select v-model="addMsg.Type" :placeholder="$t('system.ph_type')">
<el-option :label='$t("system.label_zhifei")' :value='1'></el-option>
<el-option :label='$t("system.label_jingting")' :value='2'></el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.query_flightCity')" prop="Departure_city">
<el-select v-model="addMsg.Departure_city" filterable :placeholder="$t('system.ph_flightCity')" @change="getaAirport(addMsg.Departure_city,false)">
<el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.query_flightAir')" prop="Departure_airport">
<el-select v-model="addMsg.Departure_airport" filterable :placeholder="$t('system.ph_flightAir')">
<el-option v-for='item in layer_Departure_airport' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.ph_flightTime')" prop="Departure_time" class='flightMg_delete_icon time'>
<el-input type="text" v-model="addMsg.Departure_time" @keyup.native="changeV(addMsg)" maxlength="5"
:placeholder="$t('system.ph_time')"></el-input>
</el-form-item>
<div v-if='addMsg.Type=="2"'>
<el-form-item :label="$t('system.query_stopCity')" prop="Stopover_city">
<el-select v-model="addMsg.Stopover_city" filterable :placeholder="$t('system.ph_stopCity')" @change="getaStopAirport(addMsg.Stopover_city,false)">
<el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.query_stopAir')" prop="Stopover_airport">
<el-select v-model="addMsg.Stopover_airport" filterable :placeholder="$t('system.ph_stopAir')">
<el-option v-for='item in layer_Stopover_airport' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.ph_stopFlightTime')" prop="Arrival_stopover_time" class='flightMg_delete_icon time'>
<el-input type="text" v-model="addMsg.Arrival_stopover_time" :placeholder="$t('system.ph_time')"></el-input>
</el-form-item>
<el-form-item :label="$t('system.ph_toFlightTime')" prop="Departure_stopover_time" class='flightMg_delete_icon time'>
<el-input type="text" v-model="addMsg.Departure_stopover_time" :placeholder="$t('system.ph_time')"></el-input>
</el-form-item>
</el-pagination> -->
<el-dialog custom-class='flightAddCompany' :title="dialogTitle" :visible.sync="outerVisible" center :before-close="closeChangeMachie">
<el-form>
<table class="flightChildTable" style="border-collapse: collapse;">
<tr>
<td width="350">
<div style="float:left;margin-left:30px;">
<div style="margin-bottom:5px;">开始日期:<el-date-picker clearable class="w135" v-model="startDate" type="date"
:picker-options="beforeCheck"
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div>
<el-form-item :label="$t('system.query_arrivalCity')" prop="Arrival_city">
<el-select v-model="addMsg.Arrival_city" filterable :placeholder="$t('system.ph_flightCity')" @change="getaArrivalAirport(addMsg.Arrival_city,false)">
<el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.query_arrivalAir')" prop="Arrival_airport">
<el-select v-model="addMsg.Arrival_airport" filterable :placeholder="$t('system.ph_flightAir')">
<el-option v-for='item in layer_Arrival_airport' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.query_arrivalTime')" prop="Arrival_time" class='flightMg_delete_icon time'>
<el-input type="text" v-model="addMsg.Arrival_time" @keyup.native="changeV2(addMsg)" maxlength="5"
:placeholder="$t('system.ph_time')"></el-input>
</el-form-item>
<el-form-item class="flightMg_info">
<el-checkbox v-model="checked">{{$t('system.table_tips_fmgCk')}}</el-checkbox>
</el-form-item>
<div v-if="checked">
<p class="flightMg_info_tips">{{$t('system.table_tips_fmgInfo')}}</p>
<el-form-item :label="$t('system.table_begTime')" class='time'>
<el-date-picker v-model='addMsg.StartDate' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
</el-form-item>
<el-form-item :label="$t('system.table_overTime')" class='time'>
<el-date-picker v-model='addMsg.EndDate' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
</el-form-item>
<div>
结束日期:<el-date-picker clearable class="w135" v-model="endDate" type="date" :picker-options="afterCheck"
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div>
</div>
<div class="flightaddICon">
<i class="iconfont icon-img_haha"></i>
</div>
</td>
<td>
<div class="FweekList" v-for="item in dateObj">
<el-input type="text" v-model="item.week" class="w60"></el-input>
<el-date-picker clearable class="w135" v-model="item.Departure_date" type="date"
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
<el-date-picker clearable class="w135" v-model="item.Arrival_date" type="date"
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div>
</td>
</tr>
</table>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button> &nbsp;
......@@ -348,113 +206,37 @@
Arrival_airport: "0",
Status: "0"
},
addMsg: {
ID: 0,
Flight_number: "",
Departure_city: "",
Arrival_city: "",
Departure_airport: "",
Arrival_airport: "",
Departure_time: "",
Arrival_time: "",
Type: "",
AirlineID: "",
Stopover_city: "",
Stopover_airport: "",
Arrival_stopover_time: "",
Departure_stopover_time: "",
SeasonType: 0,
//是否同步
synchronization:0,
StartDate:"",
EndDate:""
},
SeasonTypeList: [],
DataList: [],
chosenIndex: -1,
total: 0,
currentPage: 1,
airlineList: [],
Departure_airport: [],
layer_Departure_airport: [],
Stopover_airport: [],
layer_Stopover_airport: [],
Arrival_airport: [],
layer_Arrival_airport: [],
cityList: [],
stopShow: false,
dialogTitle: "",
insideDialogTxt: "保存成功!",
loading: true,
noData: false,
rules: {
//表单必填验证
AirlineID: [{
required: true,
message: "请选择航空公司",
trigger: "change"
}],
Flight_number: [{
required: true,
message: "请输入航班号",
trigger: "blur"
}],
Type: [{
required: true,
message: "请选择类型",
trigger: "change"
}],
Departure_city: [{
required: true,
message: "请选择起飞城市",
trigger: "change"
}],
Departure_airport: [{
required: true,
message: "请选择起飞机场",
trigger: "change"
}],
Departure_time: [{
required: true,
message: "请填写起飞时间",
trigger: "change"
}],
Arrival_time: [{
required: true,
message: "请填写到达时间",
trigger: "change"
}],
Stopover_city: [{
required: true,
message: "请选择经停城市",
trigger: "change"
}],
Stopover_airport: [{
required: true,
message: "请选择起飞机场",
trigger: "change"
}],
Arrival_stopover_time: [{
required: true,
message: "请填写经停到达时间",
trigger: "change"
}],
Departure_stopover_time: [{
required: true,
message: "请填写经停起飞时间",
trigger: "change"
}],
Arrival_city: [{
required: true,
message: "请选择到达城市",
trigger: "change"
}],
Arrival_airport: [{
required: true,
message: "请选择到达机场",
trigger: "change"
}]
dialogTitle:'',
dateObj:[
{
week:'周一',
Departure_date:'2018-09-09',
Arrival_date:'2019-09-18'
},
{
week:'周二',
Departure_date:'2018-09-09',
Arrival_date:'2019-09-18'
}
],
startDate:'',
endDate:'',
beforeCheck: {
disabledDate: time => {
let endTime = new Date(this.endDate);
return endTime.getTime() < time.getTime();
}
},
afterCheck: {
disabledDate: time => {
let startTime = new Date(this.startDate);
return startTime.getTime() >= time.getTime();
}
},
airlineList:[],
DataList:[],
};
},
methods: {
......@@ -477,103 +259,6 @@
err => {}
);
},
//获取城市列表
getDepartureCityList() {
this.apipost(
"dict_post_Destination_GetCityList", {},
res => {
this.cityList = res.data.data;
},
err => {}
);
},
getaAirport(ID, blo) {
//根据城市获取起飞机场
let msg = {
City_id: ID
};
this.apipost(
"airport_post_GetList",
msg,
res => {
if (this.outerVisible) {
if (!blo) {
this.addMsg.Departure_airport = "";
}
this.layer_Departure_airport = res.data.data;
} else {
this.msg.Departure_airport = "0";
this.Departure_airport = res.data.data;
}
},
err => {}
);
},
initAddMsg() {
let newMsg = {
ID: 0,
Flight_number: "",
Departure_city: "",
Arrival_city: "",
Departure_airport: "",
Arrival_airport: "",
Departure_time: "",
Arrival_time: "",
Type: "",
AirlineID: "",
Stopover_city: "",
Stopover_airport: "",
Arrival_stopover_time: "",
Departure_stopover_time: "",
SeasonType: 0,
synchronization:0,
StartDate:"",
EndDate:""
};
this.addMsg = newMsg;
},
//根据城市获取经停机场
getaStopAirport(ID, blo) {
this.apipost(
"airport_post_GetList", {
City_id: ID
},
res => {
if (this.outerVisible) {
if (!blo) {
this.addMsg.Stopover_airport = "";
}
this.layer_Stopover_airport = res.data.data;
} else {
this.msg.Stopover_airport = "0";
this.Stopover_airport = res.data.data;
}
},
err => {}
);
},
getaArrivalAirport(ID, blo) {
//根据城市获取到达机场
let msg = {
City_id: ID
};
this.apipost(
"airport_post_GetList",
msg,
res => {
if (this.outerVisible) {
if (!blo) {
this.addMsg.Arrival_airport = "";
}
this.layer_Arrival_airport = res.data.data;
} else {
this.msg.Arrival_airport = "0";
this.Arrival_airport = res.data.data;
}
},
err => {}
);
},
//获取航空公司*
getAirlineList() {
this.apipost(
......@@ -584,32 +269,7 @@
err => {}
);
},
//添加
addGroupGuide() {
if(this.checked)
{
this.addMsg.synchronization=1;
}
else
{
this.addMsg.synchronization=0;
}
this.apipost(
"flight_post_Set",
this.addMsg,
res => {
if (res.data.resultCode == 1) {
this.Success("保存成功");
this.getList();
this.outerVisible = false;
this.resetForm("addMsg");
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
//提交创建、修改表单
submitForm(addMsg) {
this.$refs[addMsg].validate(valid => {
......@@ -620,56 +280,6 @@
}
});
},
deletelist(index, type) {
//删除
var text = "";
var text2 = "";
if (type == 1) {
text = "是否删除?";
text2 = "删除成功";
} else {
text = "是否恢复?";
text2 = "恢复成功";
}
this.$confirm(text, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.$message({
type: "success",
message: text2
});
this.deleteFligt(index);
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除"
});
});
},
//删除
deleteFligt(index) {
let msg = {
ID: this.DataList[index].ID
};
this.apipost(
"flight_post_Remove",
msg,
res => {
if (res.data.resultCode == 1) {
this.getList();
}
},
err => {}
);
},
//显示功能操作按钮
menuShow(index) {
this.chosenIndex = this.chosenIndex == index ? -1 : index;
},
//翻页功能按钮
handleCurrentChange(val) {
this.msg.pageIndex = val;
......@@ -680,26 +290,6 @@
this.msg.pageIndex = 1;
this.currentPage = 1;
},
//修改
updateData(ID) {
let msg = {
ID: ID
};
this.apipost(
"flight_post_Get",
msg,
res => {
var newMsg = res.data.data;
this.getaAirport(newMsg.Departure_city, true);
if (newMsg.Stopover_city) {
this.getaStopAirport(newMsg.Stopover_city, true);
}
this.getaArrivalAirport(newMsg.Arrival_city, true);
this.addMsg = res.data.data;
},
err => {}
);
},
closeChangeMachie(done) {
//弹出框关闭初始化弹框内表单
done();
......@@ -709,111 +299,10 @@
//弹出框取消 初始化谈框内表单
this.$refs[formName].clearValidate();
},
//验证时间格式
changeV(addMsg) {
var date = addMsg.Departure_time;
if (date.length == 1) {
var v1 = date.substring(0, 1);
addMsg.Departure_time = v1.replace(/[^0-2]{1}/g, '');
}
if (date.length == 2) {
var v1 = date.substring(0, 1);
if (v1 == 2) {
var reg = /[^0-3]{1}/g;
} else {
var reg = /[^0-9]{1}/g;
}
var v2 = date.substring(1, 2);
if (!reg.test(v2)) {
addMsg.Departure_time = date + ":"
} else {
addMsg.Departure_time = date.substring(0, 1);
}
}
if (date.length == 4) {
reg = /[^0-5]{1}/g;
var v3 = date.substring(3, 4);
if (!reg.test(v3)) {
addMsg.Departure_time = date;
} else {
addMsg.Departure_time = date.substring(0, 3);
}
}
if (date.length == 5) {
var reg = /[^0-9]{1}/g;
var v4 = date.substring(4, 5);
if (!reg.test(v4)) {
addMsg.Departure_time = date
} else {
addMsg.Departure_time = date.substring(0, 4);
}
}
if (date.length > 5) {
addMsg.Departure_time = date.substring(0, 5);
}
this.$forceUpdate();
},
//验证时间格式
changeV2(addMsg) {
var date = addMsg.Arrival_time;
if (date.length == 1) {
var v1 = date.substring(0, 1);
addMsg.Arrival_time = v1.replace(/[^0-2]{1}/g, '');
}
if (date.length == 2) {
var v1 = date.substring(0, 1);
if (v1 == 2) {
var reg = /[^0-3]{1}/g;
} else {
var reg = /[^0-9]{1}/g;
}
var v2 = date.substring(1, 2);
if (!reg.test(v2)) {
addMsg.Arrival_time = date + ":"
} else {
addMsg.Arrival_time = date.substring(0, 1);
}
}
if (date.length == 4) {
reg = /[^0-5]{1}/g;
var v3 = date.substring(3, 4);
if (!reg.test(v3)) {
addMsg.Arrival_time = date;
} else {
addMsg.Arrival_time = date.substring(0, 3);
}
}
if (date.length == 5) {
var reg = /[^0-9]{1}/g;
var v4 = date.substring(4, 5);
if (!reg.test(v4)) {
addMsg.Arrival_time = date
} else {
addMsg.Arrival_time = date.substring(0, 4);
}
}
if (date.length > 5) {
addMsg.Arrival_time = date.substring(0, 5);
}
this.$forceUpdate();
},
//获取季节类型枚举列表
getSeasonTypeList() {
this.apipost(
"flight_get_GetSeasonTypeList", {},
res => {
this.SeasonTypeList = res.data.data;
},
err => {}
);
}
},
mounted() {
this.getSeasonTypeList()
this.getList();
this.getAirlineList();
this.getDepartureCityList();
}
};
......
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