Selaa lähdekoodia

wulanhaote
liuminjian 3 vuotta sitten
vanhempi
commit
718baede48
1 muutettua tiedostoa jossa 22 lisäystä ja 22 poistoa
  1. +22
    -22
      src/views/homestead/index.vue

+ 22
- 22
src/views/homestead/index.vue Näytä tiedosto

@@ -942,7 +942,7 @@ export default {
villageValue: "",
//选中村相关信息
villageDataObj: {
deptName: " ", //村名
deptName: "  ", //村名
},
hcAreaInfoFieldName: {
text: "label",
@@ -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);


Ladataan…
Peruuta
Tallenna