|
@@ -39,6 +39,12 @@ export default {
|
|
|
const finished = ref(false);
|
|
|
let index = 0;
|
|
|
let zjList = ref([]);
|
|
|
+ let mechanism1 = ref([]); //宗教
|
|
|
+ new placeRegister().treeDate2().then((res) => {
|
|
|
+ mechanism1.value.push(res[0]);
|
|
|
+ Getzj(mechanism1.value);
|
|
|
+ });
|
|
|
+
|
|
|
const onLoad = () => {
|
|
|
// 异步更新数据
|
|
|
new placeRegister()
|
|
@@ -58,26 +64,32 @@ export default {
|
|
|
});
|
|
|
let placeAddress = "";
|
|
|
placeAddress = props.placeAddress.split("/");
|
|
|
- let mechanism1 = ref([]); //宗教
|
|
|
- new placeRegister().treeDate2().then((res) => {
|
|
|
- mechanism1.value.push(res[0]);
|
|
|
- Getzj(mechanism1.value);
|
|
|
- let listone = [];
|
|
|
- let itemId = [];
|
|
|
- zjList.value.forEach((item1) => {
|
|
|
- if (item1.regionLevel5 == placeAddress[2]) {
|
|
|
- itemId.push(item1.id);
|
|
|
+ let itemId = [];
|
|
|
+ let listTwo = [];
|
|
|
+ zjList.value.forEach((item1) => {
|
|
|
+ if (item1.regionLevel5 == placeAddress[2]) {
|
|
|
+ itemId.push(item1.id);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ itemId.forEach((N1) => {
|
|
|
+ if (!listTwo.includes(N1)) {
|
|
|
+ listTwo.push(N1);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ list.value.forEach((item2) => {
|
|
|
+ listTwo.forEach((ID) => {
|
|
|
+ if (ID == item2.officeDTO.id) {
|
|
|
+ list3.value.push(item2);
|
|
|
}
|
|
|
});
|
|
|
- itemId.forEach((ID) => {
|
|
|
- list.value.forEach((item2) => {
|
|
|
- if (ID == item2.officeDTO.id) {
|
|
|
- listone.push(item2);
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- list3.value = listone;
|
|
|
});
|
|
|
+ let listOne = [];
|
|
|
+ list3.value.forEach((N2)=>{
|
|
|
+ if(!listOne.includes(N2)){
|
|
|
+ listOne.push(N2)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ list3.value = listOne
|
|
|
};
|
|
|
//获取宗教部门数组
|
|
|
function Getzj(list) {
|
|
@@ -88,6 +100,9 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ const close = ()=>{
|
|
|
+ list3.value.splice(0,list3.value.length);
|
|
|
+ }
|
|
|
//获取公安部门数组
|
|
|
// function Getga(list) {
|
|
|
// list.forEach((item) => {
|
|
@@ -163,6 +178,7 @@ export default {
|
|
|
// 单选
|
|
|
selectes,
|
|
|
list3,
|
|
|
+ close
|
|
|
};
|
|
|
},
|
|
|
};
|