feat: 分组管理设备树

This commit is contained in:
xuziqiang
2024-07-09 18:04:09 +08:00
parent 6b93422b08
commit 717b2aad72
4 changed files with 48 additions and 11 deletions

View File

@@ -80,7 +80,7 @@
treeState.loading = loading;
};
const httpPrams = computed(() => {
return { ...route.params, ...route.query, ...props.params };
return { ...route.params, ...route.query, ...props.params, ...formModel };
});
const getData = (params = {}) => {
@@ -109,7 +109,11 @@
getData(params);
};
defineExpose({ treeReload });
const clearSelectedKeys = () => {
selectedKeys.value = [];
};
defineExpose({ treeReload, clearSelectedKeys });
</script>
<style lang="less" scoped>
@gap: 16px;