Commit 908da6c6 authored by 黄奎's avatar 黄奎

修改

parent 26affe74
<style> <style>
.flightMg .flightAddCompany { .flightMg .flightAddCompany {
width: 900px; width: 900px;
min-height:300px; min-height:300px;
} }
...@@ -99,21 +99,16 @@ ...@@ -99,21 +99,16 @@
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<label>{{$t('system.query_airCompanyName')}}</label> <label>日期范围:</label>
<el-select v-model="msg.airlineID" filterable :placeholder="$t('system.ph_buxian')" class="w210"> <el-date-picker class="w150" type="date" v-model="msg.QStartDate" :picker-options="pickerBeginDateBefore"
<el-option :label='$t("system.ph_buxian")' value='0'></el-option> value-format="yyyy-MM-dd" placeholder></el-date-picker>
<el-option v-for="item in airlineList" :key="item.AirLineId" :label="item.AlName" :value="item.AirLineId"> <el-date-picker class="w150" type="date" v-model="msg.QEndDate" :picker-options="pickerBeginDateAfter"
</el-option> value-format="yyyy-MM-dd" placeholder></el-date-picker>
</el-select>
</li>
<li>
<label>{{$t('system.query_flightNum')}}</label>
<el-input v-model="msg.Flight_number" placeholder="" @keyup.native.enter="getList" class="w210"></el-input>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" /> <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" />
&nbsp; &nbsp;
<input type="button" class="normalBtn" :value="$t('pub.addBtn')" @click="outerVisible = true,dialogTitle='新增航班'" /> <input type="button" class="normalBtn" :value="$t('pub.addBtn')" @click="outerVisible = true,dialogTitle='新增效期'" />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -127,11 +122,11 @@ ...@@ -127,11 +122,11 @@
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(item,index) in DataList" :key="index"> <tr v-for="(item,index) in DataList" :key="index">
<td><input type="checkbox"/></td> <td><input type="checkbox" :value="item.ID" /></td>
<td>2018-08-09</td> <td>{{item.FDateStr}}</td>
<td>123456</td> <td>{{item.Flight_number}}}</td>
<td>2019-09-09</td> <td>{{item.CDepartTime}}}</td>
<td>2018-09-09</td> <td>{{item.CArrivalTime}}}</td>
<td> <td>
<el-row> <el-row>
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
...@@ -144,39 +139,38 @@ ...@@ -144,39 +139,38 @@
<div class="noData" v-show="noData"> <div class="noData" v-show="noData">
{{$t('system.content_noData')}} {{$t('system.content_noData')}}
</div> </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="msg.currentPage" layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize" :total="total"> :page-size="msg.pageSize" :total="msg.total">
</el-pagination> --> </el-pagination>
<el-dialog custom-class='flightAddCompany' :title="dialogTitle" :visible.sync="outerVisible" center :before-close="closeChangeMachie"> <el-dialog custom-class='flightAddCompany' :title="dialogTitle" :visible.sync="outerVisible" center :before-close="closeChangeMachie">
<el-form> <el-form>
<table class="flightChildTable" style="border-collapse: collapse;"> <table class="flightChildTable" style="border-collapse: collapse;">
<tr> <tr>
<td width="350"> <td width="350">
<div style="float:left;margin-left:30px;"> <div style="float:left;margin-left:30px;">
<div style="margin-bottom:5px;">开始日期:<el-date-picker clearable class="w135" v-model="startDate" type="date" <div style="margin-bottom:5px;">开始日期:<el-date-picker clearable class="w135" v-model="PostData.StartDate" type="date"
:picker-options="beforeCheck" :picker-options="beforeCheck" value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div> </div>
<div> <div>
结束日期:<el-date-picker clearable class="w135" v-model="endDate" type="date" :picker-options="afterCheck" 结束日期:<el-date-picker clearable class="w135" v-model="PostData.EndDate" type="date" :picker-options="afterCheck"
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker> value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div> </div>
</div> </div>
<div class="flightaddICon"> <div class="flightaddICon">
<i class="iconfont icon-img_haha"></i> <i class="iconfont icon-img_haha"></i>
</div> </div>
</td> </td>
<td> <td>
<div class="FweekList" v-for="item in dateObj"> <div class="FweekList" v-for="item in dateObj">
<el-input type="text" v-model="item.week" class="w60"></el-input> <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" <el-date-picker clearable class="w135" v-model="item.Departure_date" type="date" value-format="yyyy-MM-dd"
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker> :placeholder="$t('admin.admin_choDate')"></el-date-picker>
<el-date-picker clearable class="w135" v-model="item.Arrival_date" type="date" <el-date-picker clearable class="w135" v-model="item.Arrival_date" type="date" value-format="yyyy-MM-dd"
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker> :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button> &nbsp; <button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button> &nbsp;
...@@ -195,48 +189,54 @@ ...@@ -195,48 +189,54 @@
//请求数据参数 //请求数据参数
pageIndex: 1, pageIndex: 1,
pageSize: 15, pageSize: 15,
airlineID: "0", FlightId: this.$route.query.id,
Flight_number: "", QStartDate: "",
Type: "0", QEndDate: "",
Departure_city: "0", total: 0,
Departure_airport: "0", currentPage: 1,
Stopover_city: "0",
Stopover_airport: "0",
Arrival_city: "0",
Arrival_airport: "0",
Status: "0"
}, },
loading: true, loading: true,
noData: false, noData: false,
dialogTitle:'', PostData: {
dateObj:[ StartDate: "",
{ EndDate: "",
week:'周一', FlightId: this.$route.query.id,
Departure_date:'2018-09-09', //1-全部更新,2,按周一,周二更新
Arrival_date:'2019-09-18' UpdateType: 1,
SubList: [{
CDepartTime: "09:00",
CArrivalTime: "16:40",
//0-全部,1周一...7周日
WeekDay: 0
}]
},
dialogTitle: '',
dateObj: [{
week: '周一',
Departure_date: '2018-09-09',
Arrival_date: '2019-09-18'
}, },
{ {
week:'周二', week: '周二',
Departure_date:'2018-09-09', Departure_date: '2018-09-09',
Arrival_date:'2019-09-18' Arrival_date: '2019-09-18'
} }
], ],
startDate:'',
endDate:'',
beforeCheck: { beforeCheck: {
disabledDate: time => { disabledDate: time => {
let endTime = new Date(this.endDate); let endTime = new Date(this.msg.QEndDate);
return endTime.getTime() < time.getTime(); return endTime.getTime() < time.getTime();
} }
}, },
afterCheck: { afterCheck: {
disabledDate: time => { disabledDate: time => {
let startTime = new Date(this.startDate); let startTime = new Date(this.msg.QStartDate);
return startTime.getTime() >= time.getTime(); return startTime.getTime() >= time.getTime();
} }
}, },
airlineList:[], airlineList: [],
DataList:[], DataList: [],
}; };
}, },
methods: { methods: {
...@@ -244,12 +244,12 @@ ...@@ -244,12 +244,12 @@
getList() { getList() {
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"flight_post_GetPageList", "flight_get_GetChildPageList",
this.msg, this.msg,
res => { res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.msg.total = res.data.data.count;
this.noData = !this.total > 0; this.noData = !this.total > 0;
this.DataList = res.data.data.pageData; this.DataList = res.data.data.pageData;
} else { } else {
...@@ -259,17 +259,6 @@ ...@@ -259,17 +259,6 @@
err => {} err => {}
); );
}, },
//获取航空公司*
getAirlineList() {
this.apipost(
"airline_post_GetList", {},
res => {
this.airlineList = res.data.data;
},
err => {}
);
},
//提交创建、修改表单 //提交创建、修改表单
submitForm(addMsg) { submitForm(addMsg) {
this.$refs[addMsg].validate(valid => { this.$refs[addMsg].validate(valid => {
...@@ -288,7 +277,7 @@ ...@@ -288,7 +277,7 @@
//查询初始化页码 //查询初始化页码
resetPageIndex() { resetPageIndex() {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.currentPage = 1; this.msg.currentPage = 1;
}, },
closeChangeMachie(done) { closeChangeMachie(done) {
//弹出框关闭初始化弹框内表单 //弹出框关闭初始化弹框内表单
...@@ -302,7 +291,6 @@ ...@@ -302,7 +291,6 @@
}, },
mounted() { mounted() {
this.getList(); this.getList();
this.getAirlineList();
} }
}; };
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
<el-button type="danger" icon="el-icon-delete" circle @click="deletelist(index,1)"></el-button> <el-button type="danger" icon="el-icon-delete" circle @click="deletelist(index,1)"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="效期维护" placement="top-start" style="display:none;"> <el-tooltip class="item" effect="dark" content="效期维护" placement="top-start">
<el-button type="danger" icon="el-icon-delete" circle @click="gotoChild(item)"></el-button> <el-button type="danger" icon="el-icon-delete" circle @click="gotoChild(item)"></el-button>
</el-tooltip> </el-tooltip>
</el-row> </el-row>
......
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