|
@@ -390,6 +390,7 @@ export default {
|
|
|
}
|
|
|
this.tableForm[this.tableOptions[data][0].setvalue] =
|
|
|
this.tableForm[data];
|
|
|
+ // console.log(this.tableForm)
|
|
|
},
|
|
|
inputChangeHandler (data) {
|
|
|
if (this.tableForm[data] === "") {
|
|
@@ -632,26 +633,8 @@ export default {
|
|
|
this.tableType = "add";
|
|
|
this.tableTitle = "新增";
|
|
|
this.tableForm = {};
|
|
|
- if (this.dataContent.nodeCode) {
|
|
|
- this.tableForm.nodeCode = this.dataContent.nodeCode;
|
|
|
- }
|
|
|
- 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.nodeCode) {
|
|
|
- this.tableForm.nodeCode = this.dataContent.nodeCode;
|
|
|
- }
|
|
|
- if (this.dataContent.IATACode) {
|
|
|
- this.tableForm.IATACode = this.dataContent.IATACode;
|
|
|
- }
|
|
|
- if (this.dataContent.companyID) {
|
|
|
- this.tableForm.companyID = this.dataContent.companyID;
|
|
|
- }
|
|
|
this.$emit("handleAdd");
|
|
|
}
|
|
|
|
|
@@ -666,30 +649,12 @@ export default {
|
|
|
row.queryTemplateColumnSetID
|
|
|
);
|
|
|
this.tableForm = JSON.parse(JSON.stringify(data));
|
|
|
- if (this.dataContent.nodeCode) {
|
|
|
- this.tableForm.nodeCode = this.dataContent.nodeCode;
|
|
|
- }
|
|
|
- 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.nodeCode) {
|
|
|
- this.tableForm.nodeCode = this.dataContent.nodeCode;
|
|
|
- }
|
|
|
- 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";
|
|
@@ -722,16 +687,8 @@ export default {
|
|
|
this.$refs["ruleForm"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (this.tableType == "add") {
|
|
|
- if (this.isTree && this.tableForm.companyID) {
|
|
|
- this.tableForm.parentID = this.tableForm.parentName
|
|
|
- delete this.tableForm.companyID
|
|
|
- }
|
|
|
this.tableForm.event = 1;
|
|
|
} else {
|
|
|
- if (this.isTree && this.tableForm.companyID) {
|
|
|
- this.tableForm.parentID = this.tableForm.parentName
|
|
|
- delete this.tableForm.companyID
|
|
|
- }
|
|
|
this.tableForm.event = 2;
|
|
|
}
|
|
|
this.generalDataReception(this.tableForm);
|