Elements-SY

取消是否ET86勾选

......@@ -150,7 +150,7 @@ export default {
watch: {
open(val, oldVal) {
if (val) {
this.newDictionary = { flightNo: undefined, chineseName: undefined }
this.newDictionary = { flightNo: undefined, chineseName: undefined, isEtesRoute: false }
if (this.status == 'add') {
this.title = '新增'
} else if (this.status == 'allAdd') {
......@@ -209,6 +209,7 @@ export default {
}
addRoute(obj).then(res => {
this.loading = false
this.newDictionary.isEtesRoute = false
if (res.code === 200) {
this.msgSuccess(res.msg)
this.close()
......@@ -217,6 +218,7 @@ export default {
}
}).catch(err => {
this.loading = false
this.newDictionary.isEtesRoute = false
console.log(err)
})
} else {
......@@ -329,7 +331,7 @@ export default {
},
//关闭
close() {
this.newDictionary = { chineseName: null, code: null, remark: null }
this.newDictionary = { chineseName: null, code: null, remark: null, isEtesRoute: false }
this.routeList = []
this.clearValidate('add')
this.$emit('close', false)
......