diff --git a/src/views/homestead/index.vue b/src/views/homestead/index.vue index 6c06a11c..99c4406a 100644 --- a/src/views/homestead/index.vue +++ b/src/views/homestead/index.vue @@ -1599,27 +1599,27 @@ export default { if (res.code == 200) { let content = res.data; this.hcAreaInfoOption = content; - let currDeptId; // = "169"; - if (content[0].children && content[0].children.length != 0) { - if ( - content[0].children[0].children && - content[0].children[0].children.length != 0 - ) { - if ( - content[0].children[0].children[0].children && - content[0].children[0].children[0].children.length != 0 - ) { - currDeptId = - content[0].children[0].children[0].children[0].value; - } else { - currDeptId = content[0].children[0].children[0].value; - } - } else { - currDeptId = content[0].children[0].value; - } - } else { - currDeptId = content[0].value; - } + let currDeptId = "169"; //; + // if (content[0].children && content[0].children.length != 0) { + // if ( + // content[0].children[0].children && + // content[0].children[0].children.length != 0 + // ) { + // if ( + // content[0].children[0].children[0].children && + // content[0].children[0].children[0].children.length != 0 + // ) { + // currDeptId = + // content[0].children[0].children[0].children[0].value; + // } else { + // currDeptId = content[0].children[0].children[0].value; + // } + // } else { + // currDeptId = content[0].children[0].value; + // } + // } else { + // currDeptId = content[0].value; + // } // console.log(currDeptId); //获取村详细信息 this.deptGetFun(currDeptId); @@ -1947,7 +1947,8 @@ export default { obj.tdfl = trs.find("td").eq(23).text(); //集体/个人 obj.frontHouse = trs.find("td").eq(24).text(); //图片前 obj.behindHouse = trs.find("td").eq(25).text(); //图片后 - _this.houseInfoList = obj; + let cloneObj = JSON.parse(JSON.stringify(obj)); + _this.houseInfoList = cloneObj; _this.houseInfoList.frontland = ""; _this.houseInfoList.behindland = ""; _this.houseInfoLookList = obj; @@ -1974,7 +1975,8 @@ export default { obj.frontland = trs.find("td").eq(18).text(); //图片前 obj.behindland = trs.find("td").eq(19).text(); //图片后 _this.nydlxOptionsValue = trs.find("td").eq(5).text(); //农用地类型 - _this.landInfoList = obj; + let cloneObj = JSON.parse(JSON.stringify(obj)); + _this.landInfoList = cloneObj; //编辑图片清空 _this.landInfoList.frontland = ""; _this.landInfoList.behindland = "";