refactor: mode ListView
This commit is contained in:
parent
6348ea0ba6
commit
2b07b0fba5
4 changed files with 260 additions and 5 deletions
|
|
@ -9,6 +9,7 @@ import TreeExplorer from '@/components/TreeExplorer.vue'
|
|||
import SearchBar from '@/modules/01_user/components/SearchBar.vue'
|
||||
import FileSearched from '@/components/FileSearched.vue'
|
||||
import FileDownload from '@/modules/01_user/components/FileDownload.vue'
|
||||
import ListView from '@/components/ListView.vue'
|
||||
|
||||
const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย', 'ไฟล์']
|
||||
|
||||
|
|
@ -83,8 +84,8 @@ onMounted(getCabinet)
|
|||
<span v-if="isSearch === false">{{ DEPT_NAME[currentDept] }}</span>
|
||||
<span v-if="isSearch === true">ผลการค้นหา</span>
|
||||
<q-btn
|
||||
v-if="mode === 'admin' && viewMode === 'view_module'"
|
||||
class="q-px-md q-ml-md"
|
||||
v-if="mode === 'admin' && viewMode === 'view_module' && currentDept === 0"
|
||||
class="q-px-md q-ml-md al"
|
||||
label="สร้างตู้เก็บเอกสาร"
|
||||
type="submit"
|
||||
color="primary"
|
||||
|
|
@ -110,8 +111,9 @@ onMounted(getCabinet)
|
|||
<file-item
|
||||
:viewMode="viewMode"
|
||||
:action="props.mode === 'admin'"
|
||||
v-if="isSearch === false"
|
||||
v-if="isSearch === false && viewMode === 'view_list'"
|
||||
/>
|
||||
<list-view v-if="viewMode === 'view_module'" :mode="mode" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue