|
@@ -419,8 +419,11 @@ export default {
|
|
|
dataContent: {
|
|
|
handler(val) {
|
|
|
if (val) {
|
|
|
- this.resetTable();
|
|
|
- this.getQuery();
|
|
|
+ console.log(val);
|
|
|
+ if (val.companyID) {
|
|
|
+ this.resetTable();
|
|
|
+ this.getQuery();
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
deep: true,
|
|
@@ -692,7 +695,26 @@ export default {
|
|
|
this.tableType = "add";
|
|
|
this.tableTitle = "新增";
|
|
|
this.tableForm = {};
|
|
|
+ if (this.dataContent.nodeID) {
|
|
|
+ this.tableForm.nodeCode = this.dataContent.nodeID;
|
|
|
+ }
|
|
|
+ if (this.dataContent.companyID) {
|
|
|
+ this.tableForm.companyID = this.dataContent.companyID;
|
|
|
+ }
|
|
|
+ if (this.dataContent.IATACode) {
|
|
|
+ this.tableForm.IATACode = this.dataContent.IATACode;
|
|
|
+ }
|
|
|
+ // this.tableForm.
|
|
|
} else {
|
|
|
+ if (this.dataContent.nodeID) {
|
|
|
+ this.tableForm.nodeCode = this.dataContent.nodeID;
|
|
|
+ }
|
|
|
+ if (this.dataContent.IATACode) {
|
|
|
+ this.tableForm.IATACode = this.dataContent.IATACode;
|
|
|
+ }
|
|
|
+ if (this.dataContent.companyID) {
|
|
|
+ this.tableForm.companyID = this.dataContent.companyID;
|
|
|
+ }
|
|
|
this.$emit("handleAdd");
|
|
|
}
|
|
|
|
|
@@ -707,12 +729,30 @@ export default {
|
|
|
row.queryTemplateColumnSetID
|
|
|
);
|
|
|
this.tableForm = JSON.parse(JSON.stringify(data));
|
|
|
+ if (this.dataContent.nodeID) {
|
|
|
+ this.tableForm.nodeCode = this.dataContent.nodeID;
|
|
|
+ }
|
|
|
+ if (this.dataContent.companyID) {
|
|
|
+ this.tableForm.companyID = this.dataContent.companyID;
|
|
|
+ }
|
|
|
+ if (this.dataContent.IATACode) {
|
|
|
+ this.tableForm.IATACode = this.dataContent.IATACode;
|
|
|
+ }
|
|
|
// this.tableForm =this.tableForm;
|
|
|
// Object.entries(tableForm).forEach(([key, value]) => {
|
|
|
// this.tableForm[key] = value
|
|
|
// })
|
|
|
} else {
|
|
|
this.tableForm = JSON.parse(JSON.stringify(row));
|
|
|
+ if (this.dataContent.nodeID) {
|
|
|
+ this.tableForm.nodeCode = this.dataContent.nodeID;
|
|
|
+ }
|
|
|
+ if (this.dataContent.companyID) {
|
|
|
+ this.tableForm.companyID = this.dataContent.companyID;
|
|
|
+ }
|
|
|
+ if (this.dataContent.IATACode) {
|
|
|
+ this.tableForm.IATACode = this.dataContent.IATACode;
|
|
|
+ }
|
|
|
}
|
|
|
this.flag = true;
|
|
|
this.tableType = "edit";
|
|
@@ -790,7 +830,7 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: "/BasicsData/airportInfoChild",
|
|
|
query: {
|
|
|
- queryTemplateID: row.IATACode,
|
|
|
+ IATACode: row.IATACode,
|
|
|
},
|
|
|
});
|
|
|
},
|
|
@@ -799,7 +839,7 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: "/BasicsData/deployNodeChild",
|
|
|
query: {
|
|
|
- queryTemplateID: row.nodeID,
|
|
|
+ nodeID: row.nodeID,
|
|
|
},
|
|
|
});
|
|
|
},
|