ออกคำสั่ง === fix filter
This commit is contained in:
parent
8ede2c6d09
commit
810115eb41
13 changed files with 227 additions and 2517 deletions
|
|
@ -169,7 +169,7 @@ const isLoad = ref<boolean>(false);
|
|||
|
||||
/** ดึงข้อมูล active */
|
||||
async function getTreeData() {
|
||||
nodes.value = await fetchStructureTree(route.meta.Key as string,true);
|
||||
nodes.value = await fetchStructureTree(route.meta.Key as string, true);
|
||||
isLoad.value = true;
|
||||
}
|
||||
|
||||
|
|
@ -261,12 +261,7 @@ onMounted(async () => {
|
|||
>
|
||||
<q-input dense outlined v-model="filter" label="ค้นหา">
|
||||
<template v-slot:append>
|
||||
<q-icon
|
||||
v-if="filter !== ''"
|
||||
name="clear"
|
||||
class="cursor-pointer"
|
||||
@click="filter = ''"
|
||||
/>
|
||||
<q-icon name="search" />
|
||||
</template>
|
||||
</q-input>
|
||||
<q-tree
|
||||
|
|
@ -327,17 +322,10 @@ onMounted(async () => {
|
|||
outlined
|
||||
debounce="300"
|
||||
placeholder="ค้นหา"
|
||||
style="max-width: 200px"
|
||||
class="q-ml-sm"
|
||||
>
|
||||
<template v-slot:append>
|
||||
<q-icon v-if="filterModal == ''" name="search" />
|
||||
<q-icon
|
||||
v-if="filterModal !== ''"
|
||||
name="clear"
|
||||
class="cursor-pointer"
|
||||
@click="filterModal = ''"
|
||||
/>
|
||||
<q-icon name="search" />
|
||||
</template>
|
||||
</q-input>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue