Merge branch 'net' into development

This commit is contained in:
somnetsak123 2023-12-04 11:17:14 +07:00
commit 6cfba84b28
2 changed files with 10 additions and 9 deletions

View file

@ -18,9 +18,10 @@ const props = withDefaults(
}, },
) )
const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const
const { getFileInfo, getFileNameFormat } = useFileInfoStore() const { getFileInfo } = useFileInfoStore()
const { currentFolder, currentFile, currentDept, currentPath } = const { currentFolder, currentFile, currentDept, currentPath } = storeToRefs(
storeToRefs(useTreeDataStore()) useTreeDataStore()
)
const { const {
createFolder, createFolder,
editFolder, editFolder,
@ -37,8 +38,8 @@ const currentIcon = computed(() =>
currentDept.value === 0 currentDept.value === 0
? 'mdi-file-cabinet' ? 'mdi-file-cabinet'
: currentDept.value === 1 : currentDept.value === 1
? 'inbox' ? 'inbox'
: 'o_folder_open', : 'o_folder_open',
) )
const dialogDeleteState = ref<boolean>(false) const dialogDeleteState = ref<boolean>(false)

View file

@ -95,14 +95,14 @@ onMounted(getCabinet)
flat flat
dense dense
class="q-mr-sm q-px-sm" class="q-mr-sm q-px-sm"
v-if="currentDept > 0 && isSearch === false" v-if="isSearch == true || currentDept > 0"
@click=" @click="
() => { () => {
folderFormState = false isSearch
gotoParent() ? (isSearch = false)
: ((folderFormState = false), gotoParent())
} }
" "
id="btnGoback"
> >
<q-icon name="arrow_back" size="1rem" color="primary" /> <q-icon name="arrow_back" size="1rem" color="primary" />
</q-btn> </q-btn>