|
@@ -472,7 +472,7 @@ export default {
|
|
|
elevationHeight: "",
|
|
|
latitude: "",
|
|
|
sightcing: "",
|
|
|
-
|
|
|
+thisrow:"",
|
|
|
fileList: [],
|
|
|
globalFileList: [],
|
|
|
nuedialog: false,
|
|
@@ -595,6 +595,7 @@ export default {
|
|
|
},
|
|
|
// 确认
|
|
|
submitForm(formName) {
|
|
|
+
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
const objData = {
|
|
|
fieldCode: this.ruleForm.fieldCode,
|
|
@@ -606,7 +607,7 @@ export default {
|
|
|
latitude: this.ruleForm.latitude,
|
|
|
hubHeight: this.ruleForm.hubHeight,
|
|
|
sightcing: this.ruleForm.sightcing,
|
|
|
-
|
|
|
+ engineCode:this.thisrow
|
|
|
};
|
|
|
|
|
|
if (valid) {
|
|
@@ -714,12 +715,14 @@ export default {
|
|
|
|
|
|
// 编辑
|
|
|
compile(row) {
|
|
|
+ this.thisrow=row.engineCode
|
|
|
getWindEngineGroup({ engineCode: row.engineCode }).then((res) => {
|
|
|
const item = JSON.parse(JSON.stringify(res.data));
|
|
|
this.detail = item;
|
|
|
Object.keys(this.ruleForm).forEach((key) => {
|
|
|
this.ruleForm[key] = item[key];
|
|
|
});
|
|
|
+
|
|
|
});
|
|
|
this.nuedialog = true;
|
|
|
this.title = "编辑";
|