|
@@ -298,7 +298,11 @@ export default {
|
|
handler (val) {
|
|
handler (val) {
|
|
val && (this.formItems = val);
|
|
val && (this.formItems = val);
|
|
this.formData.dateTime = [Format("yyyy-MM-dd", new Date()),Format("yyyy-MM-dd", new Date())]
|
|
this.formData.dateTime = [Format("yyyy-MM-dd", new Date()),Format("yyyy-MM-dd", new Date())]
|
|
- this.formData[val[0].prop] = val[0].placeholder
|
|
|
|
|
|
+ // this.formData[val[0].prop] ? this.formData[val[0].prop] : val[0].placeholder
|
|
|
|
+ // console.log(this.formData,val)
|
|
|
|
+ // if (!this.formData[val[0].prop]) {
|
|
|
|
+ // this.formData[val[0].prop]
|
|
|
|
+ // }
|
|
// this.formData.aircompany = val
|
|
// this.formData.aircompany = val
|
|
},
|
|
},
|
|
deep: true,
|
|
deep: true,
|
|
@@ -309,6 +313,12 @@ export default {
|
|
if (this.action === 14 || this.action === 2 || this.action === 19) {
|
|
if (this.action === 14 || this.action === 2 || this.action === 19) {
|
|
this.$emit("fore", val);
|
|
this.$emit("fore", val);
|
|
}
|
|
}
|
|
|
|
+ if (!this.formData.aircompany.length === 0) {
|
|
|
|
+ this.formData.aircompany = 'CZ'
|
|
|
|
+ }
|
|
|
|
+ if (!this.formData.airport === 0) {
|
|
|
|
+ this.formData.airport = 'CAN'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
deep: true,
|
|
deep: true,
|
|
immediate: true,
|
|
immediate: true,
|