Showing
1 changed file
with
4 additions
and
2 deletions
| ... | @@ -150,7 +150,7 @@ export default { | ... | @@ -150,7 +150,7 @@ export default { |
| 150 | watch: { | 150 | watch: { |
| 151 | open(val, oldVal) { | 151 | open(val, oldVal) { |
| 152 | if (val) { | 152 | if (val) { |
| 153 | - this.newDictionary = { flightNo: undefined, chineseName: undefined } | 153 | + this.newDictionary = { flightNo: undefined, chineseName: undefined, isEtesRoute: false } |
| 154 | if (this.status == 'add') { | 154 | if (this.status == 'add') { |
| 155 | this.title = '新增' | 155 | this.title = '新增' |
| 156 | } else if (this.status == 'allAdd') { | 156 | } else if (this.status == 'allAdd') { |
| ... | @@ -209,6 +209,7 @@ export default { | ... | @@ -209,6 +209,7 @@ export default { |
| 209 | } | 209 | } |
| 210 | addRoute(obj).then(res => { | 210 | addRoute(obj).then(res => { |
| 211 | this.loading = false | 211 | this.loading = false |
| 212 | + this.newDictionary.isEtesRoute = false | ||
| 212 | if (res.code === 200) { | 213 | if (res.code === 200) { |
| 213 | this.msgSuccess(res.msg) | 214 | this.msgSuccess(res.msg) |
| 214 | this.close() | 215 | this.close() |
| ... | @@ -217,6 +218,7 @@ export default { | ... | @@ -217,6 +218,7 @@ export default { |
| 217 | } | 218 | } |
| 218 | }).catch(err => { | 219 | }).catch(err => { |
| 219 | this.loading = false | 220 | this.loading = false |
| 221 | + this.newDictionary.isEtesRoute = false | ||
| 220 | console.log(err) | 222 | console.log(err) |
| 221 | }) | 223 | }) |
| 222 | } else { | 224 | } else { |
| ... | @@ -329,7 +331,7 @@ export default { | ... | @@ -329,7 +331,7 @@ export default { |
| 329 | }, | 331 | }, |
| 330 | //关闭 | 332 | //关闭 |
| 331 | close() { | 333 | close() { |
| 332 | - this.newDictionary = { chineseName: null, code: null, remark: null } | 334 | + this.newDictionary = { chineseName: null, code: null, remark: null, isEtesRoute: false } |
| 333 | this.routeList = [] | 335 | this.routeList = [] |
| 334 | this.clearValidate('add') | 336 | this.clearValidate('add') |
| 335 | this.$emit('close', false) | 337 | this.$emit('close', false) | ... | ... |
-
Please register or login to post a comment