Elements-SY

Merge branch 'et86' into uat

...@@ -125,14 +125,18 @@ export default { ...@@ -125,14 +125,18 @@ export default {
125 (item) => item.isEtesRoute == "N" 125 (item) => item.isEtesRoute == "N"
126 ); // 过滤ET86航线 126 ); // 过滤ET86航线
127 const routes = []; 127 const routes = [];
128 - isEtesRoute.map((item) => { 128 + if (isEtesRoute.length) {
129 - routes.push({ config: false, route: item.route }); 129 + isEtesRoute.map((item) => {
130 - }); 130 + routes.push({ config: false, route: item.route });
131 + });
132 + } else {
133 + this.msgWarning("暂无航线");
134 + }
131 this.routeList = isEtesRoute; 135 this.routeList = isEtesRoute;
132 this.routesInfo = routes; 136 this.routesInfo = routes;
133 } else { 137 } else {
134 this.routeList = []; 138 this.routeList = [];
135 - this.msgError("暂无航线"); 139 + this.msgWarning("暂无航线");
136 } 140 }
137 } 141 }
138 }) 142 })
......
...@@ -231,7 +231,7 @@ export default { ...@@ -231,7 +231,7 @@ export default {
231 flightDate: ruleDate, 231 flightDate: ruleDate,
232 purposeOfFlightNo: purposeOfFlightNo, 232 purposeOfFlightNo: purposeOfFlightNo,
233 flightRouteListStr: flightRoute, 233 flightRouteListStr: flightRoute,
234 - status: status, 234 + status: status == "1" ? "" : status == "3" ? status : "",
235 pageName: "flightAllocConfig", 235 pageName: "flightAllocConfig",
236 dataStatus: name, 236 dataStatus: name,
237 querySpecifyData: this.queryParams.querySpecifyData, 237 querySpecifyData: this.queryParams.querySpecifyData,
......
...@@ -82,14 +82,14 @@ export default { ...@@ -82,14 +82,14 @@ export default {
82 flightDate: "", 82 flightDate: "",
83 flightRoute: "", 83 flightRoute: "",
84 purposeOfFlightNo: parmas.purposeOfFlightNo, 84 purposeOfFlightNo: parmas.purposeOfFlightNo,
85 - status: "", 85 + status: parmas.status,
86 }, 86 },
87 dateParmas: { 87 dateParmas: {
88 flightDate: parmas.flightDate, 88 flightDate: parmas.flightDate,
89 flightRoute: "", 89 flightRoute: "",
90 flightRouteListStr: "", 90 flightRouteListStr: "",
91 purposeOfFlightNo: parmas.purposeOfFlightNo, 91 purposeOfFlightNo: parmas.purposeOfFlightNo,
92 - status: "", 92 + status: parmas.status,
93 }, 93 },
94 queryParmas: function () { 94 queryParmas: function () {
95 // 非日期级别 95 // 非日期级别
......
...@@ -358,7 +358,7 @@ ...@@ -358,7 +358,7 @@
358 </div> 358 </div>
359 </template> 359 </template>
360 <el-select 360 <el-select
361 - v-if="routeMultiple" 361 + v-show="routeMultiple == true"
362 ref="routeSelect" 362 ref="routeSelect"
363 class="wid80" 363 class="wid80"
364 v-model="form.route" 364 v-model="form.route"
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
389 </el-option> 389 </el-option>
390 </el-select> 390 </el-select>
391 <el-select 391 <el-select
392 - v-if="routeMultiple == false" 392 + v-show="routeMultiple == false"
393 ref="routeSelect" 393 ref="routeSelect"
394 class="wid80" 394 class="wid80"
395 v-model="form.route" 395 v-model="form.route"
...@@ -1005,7 +1005,7 @@ export default { ...@@ -1005,7 +1005,7 @@ export default {
1005 this.form.route = ""; 1005 this.form.route = "";
1006 } else if (item.chineseName.indexOf("Purple") >= 0) { 1006 } else if (item.chineseName.indexOf("Purple") >= 0) {
1007 this.routeMultiple = true; 1007 this.routeMultiple = true;
1008 - this.form.route = []; 1008 + this.$set(this.form, "route", []);
1009 } 1009 }
1010 this.routeError = true; 1010 this.routeError = true;
1011 } 1011 }
......
...@@ -258,11 +258,13 @@ export default { ...@@ -258,11 +258,13 @@ export default {
258 } 258 }
259 findFlightRoute(obj).then(res => { 259 findFlightRoute(obj).then(res => {
260 if (res.code === 200) { 260 if (res.code === 200) {
261 - res.data[0].route.indexOf(';') <= 0 ? 261 + if(res.data.length){
262 + res.data[0].route.indexOf(';') <= 0 ?
262 this.routeList = res.data : 263 this.routeList = res.data :
263 res.data[0].route.split(';').forEach(item => { 264 res.data[0].route.split(';').forEach(item => {
264 this.routeList.push({ id: res.data[0].id, route: item }) 265 this.routeList.push({ id: res.data[0].id, route: item })
265 }) 266 })
267 + }
266 } else { 268 } else {
267 this.msgWarning(res.msg) 269 this.msgWarning(res.msg)
268 } 270 }
......