Showing
3 changed files
with
26 additions
and
27 deletions
| ... | @@ -34,8 +34,8 @@ | ... | @@ -34,8 +34,8 @@ |
| 34 | params: { handle: 'add', fltNo: 'new', fltDate: ' ', status: null, routeStatus: '' }, | 34 | params: { handle: 'add', fltNo: 'new', fltDate: ' ', status: null, routeStatus: '' }, |
| 35 | }) | 35 | }) |
| 36 | ">添加</el-button> | 36 | ">添加</el-button> |
| 37 | - <el-switch style="margin-left: 10px;" v-model="queryParams.querySpecifyData" inactive-text="日期查询" active-value="1" inactive-value="2" active-color="#13ce66" | 37 | + <el-switch style="margin-left: 10px;" v-model="queryParams.querySpecifyData" inactive-text="日期查询" active-value="1" |
| 38 | - inactive-color="#909399" @change="switchChange"></el-switch> | 38 | + inactive-value="2" active-color="#13ce66" inactive-color="#909399" @change="switchChange"></el-switch> |
| 39 | </div> | 39 | </div> |
| 40 | </el-form> | 40 | </el-form> |
| 41 | <Tables ref="newTables" ductName="FlightAlloc" :data="flyList" :headerData="tableHeaders['flightAlloc']" :order="true" | 41 | <Tables ref="newTables" ductName="FlightAlloc" :data="flyList" :headerData="tableHeaders['flightAlloc']" :order="true" |
| ... | @@ -152,7 +152,7 @@ export default { | ... | @@ -152,7 +152,7 @@ export default { |
| 152 | fltDate: fltDate != null ? fltDate : ' ', | 152 | fltDate: fltDate != null ? fltDate : ' ', |
| 153 | route: ' ', | 153 | route: ' ', |
| 154 | routeStatus: 'FlightAllocConfig', | 154 | routeStatus: 'FlightAllocConfig', |
| 155 | - status: status, | 155 | + status: status == '3' ? '3' : ' ', |
| 156 | createStatus: 1 | 156 | createStatus: 1 |
| 157 | } | 157 | } |
| 158 | this.$router.push({ | 158 | this.$router.push({ | ... | ... |
This diff is collapsed. Click to expand it.
| ... | @@ -47,8 +47,7 @@ | ... | @@ -47,8 +47,7 @@ |
| 47 | </el-form-item> | 47 | </el-form-item> |
| 48 | </el-col> | 48 | </el-col> |
| 49 | </el-row> | 49 | </el-row> |
| 50 | - <el-button class="mt10" type="primary" icon="el-icon-search" size="mini" :loading="loading" | 50 | + <el-button class="mt10" type="primary" icon="el-icon-search" size="mini" :loading="loading" @click="handleQuery">搜索 |
| 51 | - @click="handleQuery">搜索 | ||
| 52 | </el-button> | 51 | </el-button> |
| 53 | <el-button class="mt10" icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | 52 | <el-button class="mt10" icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| 54 | <el-button class="mt10" type="primary" icon="el-icon-plus" size="mini" @click="handleAdd" | 53 | <el-button class="mt10" type="primary" icon="el-icon-plus" size="mini" @click="handleAdd" |
| ... | @@ -81,8 +80,8 @@ | ... | @@ -81,8 +80,8 @@ |
| 81 | <Tables ref="flightInfoTable" ductName="FlightInformation" :data="findAllFltDatList" :headerData="tableHeader" | 80 | <Tables ref="flightInfoTable" ductName="FlightInformation" :data="findAllFltDatList" :headerData="tableHeader" |
| 82 | :order="true" :selection="true" :totalCount="total" :loading="loading" :limitSize="queryParams.limitSize" | 81 | :order="true" :selection="true" :totalCount="total" :loading="loading" :limitSize="queryParams.limitSize" |
| 83 | :page="queryParams.pageNum" :shiftKey="shiftKey" :height="tableHeight" :pageSizes="[20, 30, 40, 50, 100]" | 82 | :page="queryParams.pageNum" :shiftKey="shiftKey" :height="tableHeight" :pageSizes="[20, 30, 40, 50, 100]" |
| 84 | - @tableSelect="tableSelect" @tableSelectAll="tableSelectAll" @currentChange="currentChange" | 83 | + @tableSelect="tableSelect" @tableSelectAll="tableSelectAll" @currentChange="currentChange" @sortChange="sortChange" |
| 85 | - @sortChange="sortChange" @sizeChange="sizeChange"> | 84 | + @sizeChange="sizeChange"> |
| 86 | <template slot="optionColumn"> | 85 | <template slot="optionColumn"> |
| 87 | <el-table-column v-if="findAllFltDatList.length > 0" label="操作" align="center" | 86 | <el-table-column v-if="findAllFltDatList.length > 0" label="操作" align="center" |
| 88 | class-name="small-padding fixed-width" :fixed="tableHeader.length > 10 ? 'right' : false" width="160"> | 87 | class-name="small-padding fixed-width" :fixed="tableHeader.length > 10 ? 'right' : false" width="160"> |
| ... | @@ -116,8 +115,8 @@ | ... | @@ -116,8 +115,8 @@ |
| 116 | <el-row> | 115 | <el-row> |
| 117 | <el-col :span="12"> | 116 | <el-col :span="12"> |
| 118 | <el-form-item label="航班日期" prop="fltDate"> | 117 | <el-form-item label="航班日期" prop="fltDate"> |
| 119 | - <el-date-picker class="wid80" :disabled="formdisabled.fltDate" clearable size="small" | 118 | + <el-date-picker class="wid80" :disabled="formdisabled.fltDate" clearable size="small" v-model="form.fltDate" |
| 120 | - v-model="form.fltDate" type="date" value-format="yyyy-MM-dd" placeholder="选择航班日期"> | 119 | + type="date" value-format="yyyy-MM-dd" placeholder="选择航班日期"> |
| 121 | </el-date-picker> | 120 | </el-date-picker> |
| 122 | </el-form-item> | 121 | </el-form-item> |
| 123 | </el-col> | 122 | </el-col> |
| ... | @@ -143,15 +142,15 @@ | ... | @@ -143,15 +142,15 @@ |
| 143 | </el-tooltip> | 142 | </el-tooltip> |
| 144 | </div> | 143 | </div> |
| 145 | </template> | 144 | </template> |
| 146 | - <el-select v-if="routeMultiple" ref="routeSelect" class="wid80" v-model="form.route" :disabled="formdisabled.route" | 145 | + <el-select v-if="routeMultiple" ref="routeSelect" class="wid80" v-model="form.route" |
| 147 | - placeholder="请选择航线" no-data-text="未查询到航线" @change="routeChange" :loading="routeLoading" | 146 | + :disabled="formdisabled.route" placeholder="请选择航线" no-data-text="未查询到航线" @change="routeChange" |
| 148 | - :multiple='true' :key="routeMultiple"> | 147 | + :loading="routeLoading" :multiple='true' :key="routeMultiple"> |
| 149 | <el-option v-for="item in routeList" :key="item.id" :label="item.route" :value="item.route"> | 148 | <el-option v-for="item in routeList" :key="item.id" :label="item.route" :value="item.route"> |
| 150 | </el-option> | 149 | </el-option> |
| 151 | </el-select> | 150 | </el-select> |
| 152 | - <el-select v-if="routeMultiple == false" ref="routeSelect" class="wid80" v-model="form.route" :disabled="formdisabled.route" | 151 | + <el-select v-if="routeMultiple == false" ref="routeSelect" class="wid80" v-model="form.route" |
| 153 | - placeholder="请选择航线" no-data-text="未查询到航线" @change="routeChange" :loading="routeLoading" | 152 | + :disabled="formdisabled.route" placeholder="请选择航线" no-data-text="未查询到航线" @change="routeChange" |
| 154 | - :multiple='false' :key="routeMultiple"> | 153 | + :loading="routeLoading" :multiple='false' :key="routeMultiple"> |
| 155 | <el-option v-for="item in routeList" :key="item.id" :label="item.route" :value="item.route"> | 154 | <el-option v-for="item in routeList" :key="item.id" :label="item.route" :value="item.route"> |
| 156 | </el-option> | 155 | </el-option> |
| 157 | </el-select> | 156 | </el-select> |
| ... | @@ -617,7 +616,7 @@ export default { | ... | @@ -617,7 +616,7 @@ export default { |
| 617 | this.routeLoading = false | 616 | this.routeLoading = false |
| 618 | if (res.code === 200) { | 617 | if (res.code === 200) { |
| 619 | this.routeList = res.data.list | 618 | this.routeList = res.data.list |
| 620 | - if(res.data.list.length == 0){ | 619 | + if (res.data.list.length == 0) { |
| 621 | this.form.route = ""; | 620 | this.form.route = ""; |
| 622 | this.msgError("该航班没有设置航线"); | 621 | this.msgError("该航班没有设置航线"); |
| 623 | } | 622 | } |
| ... | @@ -628,7 +627,7 @@ export default { | ... | @@ -628,7 +627,7 @@ export default { |
| 628 | this.routeLoading = false | 627 | this.routeLoading = false |
| 629 | console.log(err) | 628 | console.log(err) |
| 630 | }) | 629 | }) |
| 631 | - }else{ | 630 | + } else { |
| 632 | this.form.route = ""; | 631 | this.form.route = ""; |
| 633 | this.routeList = []; | 632 | this.routeList = []; |
| 634 | } | 633 | } |
| ... | @@ -729,7 +728,7 @@ export default { | ... | @@ -729,7 +728,7 @@ export default { |
| 729 | this.formdisabled.typeId = false; | 728 | this.formdisabled.typeId = false; |
| 730 | //原始重量 | 729 | //原始重量 |
| 731 | this.formdisabled.originalWeight = false; | 730 | this.formdisabled.originalWeight = false; |
| 732 | - this.$nextTick(()=>{ | 731 | + this.$nextTick(() => { |
| 733 | this.$refs.form.clearValidate() | 732 | this.$refs.form.clearValidate() |
| 734 | }) | 733 | }) |
| 735 | }, | 734 | }, |
| ... | @@ -898,11 +897,11 @@ export default { | ... | @@ -898,11 +897,11 @@ export default { |
| 898 | }) | 897 | }) |
| 899 | }, | 898 | }, |
| 900 | // 航班状态 | 899 | // 航班状态 |
| 901 | - flightState(multipleSelection, statusName){ | 900 | + flightState(multipleSelection, statusName) { |
| 902 | - let flightState = multipleSelection.some(item=>item.statusName == statusName); | 901 | + let flightState = multipleSelection.some(item => item.statusName == statusName); |
| 903 | - if(flightState){ | 902 | + if (flightState) { |
| 904 | this.msgError(`勾选的航班,航班状态为${statusName},不可操作该按钮`); | 903 | this.msgError(`勾选的航班,航班状态为${statusName},不可操作该按钮`); |
| 905 | - }else{ | 904 | + } else { |
| 906 | flightState = false | 905 | flightState = false |
| 907 | } | 906 | } |
| 908 | return flightState | 907 | return flightState |
| ... | @@ -914,7 +913,7 @@ export default { | ... | @@ -914,7 +913,7 @@ export default { |
| 914 | fIds.push(item.id) | 913 | fIds.push(item.id) |
| 915 | }); | 914 | }); |
| 916 | // 航班状态 | 915 | // 航班状态 |
| 917 | - if(this.flightState(this.ids, "已删除")) return | 916 | + if (this.flightState(this.ids, "已删除")) return |
| 918 | this.$confirm("是否确认删除所选数据?", "警告", { | 917 | this.$confirm("是否确认删除所选数据?", "警告", { |
| 919 | confirmButtonText: "确定", | 918 | confirmButtonText: "确定", |
| 920 | cancelButtonText: "取消", | 919 | cancelButtonText: "取消", |
| ... | @@ -1022,7 +1021,7 @@ export default { | ... | @@ -1022,7 +1021,7 @@ export default { |
| 1022 | //批量开启/关闭航班 | 1021 | //批量开启/关闭航班 |
| 1023 | handleFlightStatus(status) { | 1022 | handleFlightStatus(status) { |
| 1024 | // 航班状态 | 1023 | // 航班状态 |
| 1025 | - if(this.flightState(this.ids, "已删除")) return | 1024 | + if (this.flightState(this.ids, "已删除")) return |
| 1026 | let handle = status == "flightStatus80" ? "关闭" : "开启"; | 1025 | let handle = status == "flightStatus80" ? "关闭" : "开启"; |
| 1027 | let data = { | 1026 | let data = { |
| 1028 | updateIds: [], | 1027 | updateIds: [], |
| ... | @@ -1053,7 +1052,7 @@ export default { | ... | @@ -1053,7 +1052,7 @@ export default { |
| 1053 | //自动推送开关 | 1052 | //自动推送开关 |
| 1054 | autoPushBatch(status) { | 1053 | autoPushBatch(status) { |
| 1055 | // 航班状态 | 1054 | // 航班状态 |
| 1056 | - if(this.flightState(this.ids, "已删除")) return | 1055 | + if (this.flightState(this.ids, "已删除")) return |
| 1057 | let msg = status == "open" ? "开启" : "关闭"; | 1056 | let msg = status == "open" ? "开启" : "关闭"; |
| 1058 | let data = { | 1057 | let data = { |
| 1059 | updateIds: [], | 1058 | updateIds: [], |
| ... | @@ -1092,7 +1091,7 @@ export default { | ... | @@ -1092,7 +1091,7 @@ export default { |
| 1092 | //白名单配舱开关 | 1091 | //白名单配舱开关 |
| 1093 | whiteListSwitchStatus(val) { | 1092 | whiteListSwitchStatus(val) { |
| 1094 | // 航班状态 | 1093 | // 航班状态 |
| 1095 | - if(this.flightState(this.ids, "已删除")) return | 1094 | + if (this.flightState(this.ids, "已删除")) return |
| 1096 | let obj = { | 1095 | let obj = { |
| 1097 | updateIds: [] | 1096 | updateIds: [] |
| 1098 | } | 1097 | } |
| ... | @@ -1114,7 +1113,7 @@ export default { | ... | @@ -1114,7 +1113,7 @@ export default { |
| 1114 | //黑名单配舱开关 | 1113 | //黑名单配舱开关 |
| 1115 | BlackListSwitchStatus(val) { | 1114 | BlackListSwitchStatus(val) { |
| 1116 | // 航班状态 | 1115 | // 航班状态 |
| 1117 | - if(this.flightState(this.ids, "已删除")) return | 1116 | + if (this.flightState(this.ids, "已删除")) return |
| 1118 | let obj = { | 1117 | let obj = { |
| 1119 | updateIds: [] | 1118 | updateIds: [] |
| 1120 | } | 1119 | } | ... | ... |
-
Please register or login to post a comment