| @@ -942,7 +942,7 @@ export default { | |||||
| villageValue: "", | villageValue: "", | ||||
| //选中村相关信息 | //选中村相关信息 | ||||
| villageDataObj: { | villageDataObj: { | ||||
| deptName: " ", //村名 | |||||
| deptName: " ", //村名 | |||||
| }, | }, | ||||
| hcAreaInfoFieldName: { | hcAreaInfoFieldName: { | ||||
| text: "label", | text: "label", | ||||
| @@ -1599,27 +1599,27 @@ export default { | |||||
| if (res.code == 200) { | if (res.code == 200) { | ||||
| let content = res.data; | let content = res.data; | ||||
| this.hcAreaInfoOption = content; | 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); | // console.log(currDeptId); | ||||
| //获取村详细信息 | //获取村详细信息 | ||||
| this.deptGetFun(currDeptId); | this.deptGetFun(currDeptId); | ||||