Elements-SY

modify

...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
33 <el-input type="text" v-model="newDictionary.route" placeholder="请输入航线" maxlength="40"> 33 <el-input type="text" v-model="newDictionary.route" placeholder="请输入航线" maxlength="40">
34 </el-input> 34 </el-input>
35 </el-form-item> 35 </el-form-item>
36 - <!-- <el-form-item label="是否为ET86航线"> 36 + <el-form-item label="是否为ET86航线">
37 <el-checkbox v-model="newDictionary.isEtesRoute"></el-checkbox> 37 <el-checkbox v-model="newDictionary.isEtesRoute"></el-checkbox>
38 - </el-form-item> --> 38 + </el-form-item>
39 <el-form-item> 39 <el-form-item>
40 <div style="color:#ff4949;line-height: 30px;">注意:此处不能添加虚拟航班!</div> 40 <div style="color:#ff4949;line-height: 30px;">注意:此处不能添加虚拟航班!</div>
41 </el-form-item> 41 </el-form-item>
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
111 }, 111 },
112 data() { 112 data() {
113 return { 113 return {
114 - newDictionary: { flightNo: undefined, chineseName: undefined, route: undefined }, 114 + newDictionary: { flightNo: undefined, chineseName: undefined, route: undefined, isEtesRoute: false },
115 rules: { 115 rules: {
116 chineseName: [ 116 chineseName: [
117 { 117 {
...@@ -205,6 +205,7 @@ export default { ...@@ -205,6 +205,7 @@ export default {
205 let obj = { 205 let obj = {
206 fltNo: this.upCase(this.newDictionary.fltNo), 206 fltNo: this.upCase(this.newDictionary.fltNo),
207 route: this.upCase(this.newDictionary.route), 207 route: this.upCase(this.newDictionary.route),
208 + isEtesRoute: this.newDictionary.isEtesRoute == true ? "Y" : "N"
208 } 209 }
209 addRoute(obj).then(res => { 210 addRoute(obj).then(res => {
210 this.loading = false 211 this.loading = false
......