fix:修改计划添加页面

This commit is contained in:
zhaohy
2024-08-28 17:33:53 +08:00
parent cac9355b04
commit c21a79da87
5 changed files with 79 additions and 30 deletions

View File

@@ -43,6 +43,7 @@
const treeData = ref(props.treeData);
const selectedKeys = ref(props.selectedKeys || []);
const selectedRow = ref(props.selectedRow || {});
const { httpRequest } = useApi();
const requestConfig: AxiosRequestConfig = { method: 'get' };
const route = useRoute();
@@ -87,6 +88,7 @@
const handleSelect = (keys: any, selectedRows: any) => {
if (props.cancelable || !isEmpty(keys)) {
selectedKeys.value = keys;
selectedRow.value = selectedRows;
// props.onSelect && props.onSelect(keys, selectedRows);
emit('select', keys, selectedRows);
}
@@ -147,9 +149,10 @@
const clearSelectedKeys = () => {
selectedKeys.value = [];
selectedRow.value = {};
};
defineExpose({ treeReload, clearSelectedKeys });
defineExpose({ treeReload, clearSelectedKeys, selectedKeys, selectedRow });
</script>
<style lang="less" scoped>
@gap: 16px;