|
@@ -21,7 +21,7 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- props: ['buildingType'],
|
|
|
+ props: ['buildingType', 'currentOrganId'],
|
|
|
data() {
|
|
|
return {
|
|
|
filterText: '',
|
|
@@ -35,17 +35,16 @@ export default {
|
|
|
watch: {
|
|
|
filterText(val) {
|
|
|
this.$refs.tree.filter(val);
|
|
|
+ },
|
|
|
+ currentOrganId(va) {
|
|
|
+ this.getOrgTreeList({ communityId: va.communityId, buildingId: va.buildingId, unitName: va.unitName });
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- getOrgTreeList() {
|
|
|
- this.$http.get('/sc-gate-web/gate/list').then(({ status, data, msg }) => {
|
|
|
+ getOrgTreeList(row) {
|
|
|
+ this.$http.get('/sc-gate-web/gate/list', row).then(({ status, data, msg }) => {
|
|
|
if (status === 0 && data) {
|
|
|
this.organList = data;
|
|
|
- // this.$nextTick().then(() => {
|
|
|
- // const firstNode = document.querySelector('.el-tree-node');
|
|
|
- // firstNode.click();
|
|
|
- // });
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -57,9 +56,7 @@ export default {
|
|
|
this.$emit('doorGuid', e);
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
- this.getOrgTreeList();
|
|
|
- }
|
|
|
+ created() {}
|
|
|
};
|
|
|
</script>
|
|
|
|