Commit 8ea2cc7d authored by zhengke's avatar zhengke

文件修改

parent eecfb114
...@@ -124,9 +124,9 @@ ...@@ -124,9 +124,9 @@
<tr v-for="(item,index) in DataList" :key="index"> <tr v-for="(item,index) in DataList" :key="index">
<td><input type="checkbox" :value="item.ID" /></td> <td><input type="checkbox" :value="item.ID" /></td>
<td>{{item.FDateStr}}</td> <td>{{item.FDateStr}}</td>
<td>{{item.Flight_number}}}</td> <td>{{item.Flight_number}}</td>
<td>{{item.CDepartTime}}}</td> <td>{{item.CDepartTime}}</td>
<td>{{item.CArrivalTime}}}</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">
...@@ -136,18 +136,18 @@ ...@@ -136,18 +136,18 @@
</td> </td>
</tr> </tr>
</table> </table>
<div class="noData" v-show="noData"> <div class="noData" v-show="DataList.length<=0">
{{$t('system.content_noData')}} {{$t('system.content_noData')}}
</div> </div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.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="msg.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>
<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:20px 0 20px 30px;">
<div style="margin-bottom:5px;">开始日期:<el-date-picker clearable class="w135" v-model="PostData.StartDate" <div style="margin-bottom:5px;">开始日期:<el-date-picker clearable class="w135" v-model="PostData.StartDate"
type="date" :picker-options="beforeCheck" value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker> type="date" :picker-options="beforeCheck" value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div> </div>
...@@ -156,21 +156,21 @@ ...@@ -156,21 +156,21 @@
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>
<select v-model="PostData.UpdateType"> <el-select v-model="PostData.UpdateType" class="w100" style="margin-top:20px;">
<el-option :value="1" :label="全部"></el-option> <el-option :value="1" label="全部"></el-option>
<el-option :value="2" :label="星期"></el-option> <el-option :value="2" label="星期"></el-option>
</select> </el-select>
</td> </td>
<td> <td>
<div v-if="PostData.UpdateType==2" class="FweekList" v-for="item in dateObj"> <div v-if="PostData.UpdateType==1" class="FweekList" v-for="subItem in dateObj2">
<el-input type="text" v-model="item.week" class="w60"></el-input> <span>{{subItem.week}}</span>
<el-date-picker clearable class="w135" v-model="item.CDepartTime" type="date" value-format="yyyy-MM-dd" <el-date-picker clearable class="w135" v-model="subItem.CDepartTime" type="date" 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.CArrivalTime" type="date" value-format="yyyy-MM-dd" <el-date-picker clearable class="w135" v-model="subItem.CArrivalTime" type="date" value-format="yyyy-MM-dd"
:placeholder="$t('admin.admin_choDate')"></el-date-picker> :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div> </div>
<div v-else class="FweekList" v-for="item in dateObj2"> <div v-if="PostData.UpdateType==2" class="FweekList" v-for="item in dateObj">
<el-checkbox type="text" v-model="item.CheckStatus" ></el-checkbox> <el-input type="text" v-model="item.week" class="w60"></el-input>
<el-date-picker clearable class="w135" v-model="item.CDepartTime" type="date" value-format="yyyy-MM-dd" <el-date-picker clearable class="w135" v-model="item.CDepartTime" type="date" 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.CArrivalTime" type="date" value-format="yyyy-MM-dd" <el-date-picker clearable class="w135" v-model="item.CArrivalTime" type="date" value-format="yyyy-MM-dd"
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
</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;
<button class="hollowFixedBtn" @click="outerVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -204,7 +204,6 @@ ...@@ -204,7 +204,6 @@
currentPage: 1, currentPage: 1,
}, },
loading: true, loading: true,
noData: false,
PostData: { PostData: {
StartDate: "", StartDate: "",
EndDate: "", EndDate: "",
...@@ -222,7 +221,7 @@ ...@@ -222,7 +221,7 @@
dateObj2: [{ dateObj2: [{
week: '全部', week: '全部',
CDepartTime: '', CDepartTime: '',
CArrivalTime: '' CArrivalTime: '',
}], }],
dateObj: [{ dateObj: [{
week: '周一', week: '周一',
...@@ -280,6 +279,19 @@ ...@@ -280,6 +279,19 @@
return startTime.getTime() >= time.getTime(); return startTime.getTime() >= time.getTime();
} }
}, },
pickerBeginDateBefore: {
disabledDate: time => {
let endTime = new Date(this.msg.QEndDate)
return endTime.getTime() < time.getTime()
}
},
pickerBeginDateAfter: {
disabledDate: time => {
let startTime = new Date(this.msg.QStartDate)
return startTime.getTime() >= time.getTime()
}
},
airlineList: [], airlineList: [],
DataList: [], DataList: [],
}; };
...@@ -324,15 +336,6 @@ ...@@ -324,15 +336,6 @@
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.msg.currentPage = 1; this.msg.currentPage = 1;
}, },
closeChangeMachie(done) {
//弹出框关闭初始化弹框内表单
done();
this.resetForm("addMsg");
},
resetForm(formName) {
//弹出框取消 初始化谈框内表单
this.$refs[formName].clearValidate();
},
}, },
mounted() { mounted() {
this.getList(); this.getList();
......
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