update: 组件更换测试

This commit is contained in:
JiangQiming 2023-03-09 20:00:52 +08:00
parent 204a916e48
commit cfff69bd43
1 changed files with 3 additions and 6 deletions

View File

@ -1,10 +1,7 @@
<template>
<div class="channel-tree">
<div class="channel-tree-query">
<j-input
@change="debounce(queryTree, 300)"
placeholder="请输入目录名称"
>
<j-input @change="queryTree" placeholder="请输入目录名称">
<template #suffix>
<AIcon type="SearchOutlined" />
</template>
@ -71,13 +68,13 @@ const getDeviceDetail = async (id: string) => {
}
};
const queryTree = (e: any) => {
const queryTree = debounce((e: any) => {
getTreeData(props.deviceId, {
terms: [
{ column: 'name', termType: 'like', value: `%${e.target.value}%` },
],
});
};
}, 300);
watchEffect(() => {
getDeviceDetail(props.deviceId);