refactor: import and icon
This commit is contained in:
parent
575e9f1ab8
commit
57c08dabd5
1 changed files with 17 additions and 31 deletions
|
|
@ -1,19 +1,15 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { ref, onMounted } from 'vue';
|
||||||
|
import { Icon } from '@iconify/vue';
|
||||||
|
|
||||||
import useBranchStore from 'stores/branch';
|
import useBranchStore from 'stores/branch';
|
||||||
|
|
||||||
import AppBox from 'components/app/AppBox.vue';
|
import AppBox from 'components/app/AppBox.vue';
|
||||||
import BtnAddComponet from 'components/01_branch-management/BtnAddComponent.vue';
|
import BtnAddComponent from 'components/01_branch-management/BtnAddComponent.vue';
|
||||||
import TableCardComponet from 'components/01_branch-management/TableCardComponent.vue';
|
import TooltipComponent from 'components/TooltipComponent.vue';
|
||||||
import CardDetailsComponent from 'components/01_branch-management/CardDetailsComponent.vue';
|
import StatCardComponent from 'components/StatCardComponent.vue';
|
||||||
import StatCardComponet from 'components/StatCardComponent.vue';
|
|
||||||
import TooltipComponet from 'components/TooltipComponent.vue';
|
|
||||||
import { ref } from 'vue';
|
|
||||||
|
|
||||||
import { onMounted } from 'vue';
|
|
||||||
|
|
||||||
const BranchStore = useBranchStore();
|
const BranchStore = useBranchStore();
|
||||||
const test = ref<string>('');
|
const test = ref<string>('');
|
||||||
const testDate = ref<string>();
|
|
||||||
|
|
||||||
const shape = ref<boolean>(false);
|
const shape = ref<boolean>(false);
|
||||||
|
|
||||||
|
|
@ -94,9 +90,7 @@ const simple = ref<
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{ label: 'Bui1001' },
|
||||||
label: 'Bui1001',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -159,14 +153,14 @@ onMounted(() => {
|
||||||
class="q-mb-md"
|
class="q-mb-md"
|
||||||
:class="{ 'bg-card-branch-title': $q.dark.isActive }"
|
:class="{ 'bg-card-branch-title': $q.dark.isActive }"
|
||||||
>
|
>
|
||||||
<stat-card-componet :branch="branchStat" />
|
<StatCardComponent :branch="branchStat" />
|
||||||
</app-box>
|
</app-box>
|
||||||
|
|
||||||
<app-box v-if="false" bordered style="width: 100%; height: 500px">
|
<app-box v-if="false" bordered style="width: 100%; height: 500px">
|
||||||
<div class="column" style="height: 100%">
|
<div class="column" style="height: 100%">
|
||||||
<div class="col-1 self-end">
|
<div class="col-1 self-end">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<tooltip-componet
|
<TooltipComponent
|
||||||
title="branchNoMainOfficeYet"
|
title="branchNoMainOfficeYet"
|
||||||
caption="branchClickToCreateMainOffice"
|
caption="branchClickToCreateMainOffice"
|
||||||
imgSrc="img-table-"
|
imgSrc="img-table-"
|
||||||
|
|
@ -178,13 +172,9 @@ onMounted(() => {
|
||||||
class="col test self-center"
|
class="col test self-center"
|
||||||
style="display: flex; align-items: center"
|
style="display: flex; align-items: center"
|
||||||
>
|
>
|
||||||
<btn-add-componet
|
<BtnAddComponent
|
||||||
:label="'สร้างสำนักงานใหญ่'"
|
:label="'สร้างสำนักงานใหญ่'"
|
||||||
@trigger="
|
@trigger="() => console.log('test')"
|
||||||
() => {
|
|
||||||
console.log('test');
|
|
||||||
}
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -212,7 +202,7 @@ onMounted(() => {
|
||||||
label="ค้นหา"
|
label="ค้นหา"
|
||||||
>
|
>
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<iconify-icon icon="ic:baseline-search" />
|
<Icon icon="ic:baseline-search" />
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -222,11 +212,7 @@ onMounted(() => {
|
||||||
<q-card-section class="no-padding row" style="height: 423px">
|
<q-card-section class="no-padding row" style="height: 423px">
|
||||||
<div class="bordered q-pa-md bg-branch-tree-box" style="width: 21%">
|
<div class="bordered q-pa-md bg-branch-tree-box" style="width: 21%">
|
||||||
<div
|
<div
|
||||||
@click="
|
@click="() => console.log('test')"
|
||||||
() => {
|
|
||||||
console.log('test');
|
|
||||||
}
|
|
||||||
"
|
|
||||||
class="btn-add col-2 text-weight-bold cursor-pointer color-card-branch-btn"
|
class="btn-add col-2 text-weight-bold cursor-pointer color-card-branch-btn"
|
||||||
>
|
>
|
||||||
<div class="text-h4 q-mr-md">+</div>
|
<div class="text-h4 q-mr-md">+</div>
|
||||||
|
|
@ -269,12 +255,12 @@ onMounted(() => {
|
||||||
v-if="prop.node.isHeadOffice"
|
v-if="prop.node.isHeadOffice"
|
||||||
dense
|
dense
|
||||||
>
|
>
|
||||||
<iconify-icon
|
<Icon
|
||||||
v-if="expanded.includes(prop.node.label)"
|
v-if="expanded.includes(prop.node.label)"
|
||||||
icon="eva:file-add-fill"
|
icon="eva:file-add-fill"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<iconify-icon v-else icon="eva:file-add-outline" />
|
<Icon v-else icon="eva:file-add-outline" />
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|
@ -285,7 +271,7 @@ onMounted(() => {
|
||||||
flat
|
flat
|
||||||
name="menu"
|
name="menu"
|
||||||
>
|
>
|
||||||
<iconify-icon icon="ri:more-2-fill" />
|
<Icon icon="ri:more-2-fill" />
|
||||||
<q-menu class="bordered" style="width: 150px">
|
<q-menu class="bordered" style="width: 150px">
|
||||||
<q-list class="q-pa-sm">
|
<q-list class="q-pa-sm">
|
||||||
<q-item clickable v-close-popup class="no-padding">
|
<q-item clickable v-close-popup class="no-padding">
|
||||||
|
|
@ -379,7 +365,7 @@ onMounted(() => {
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<table-card-componet :subBranch="true" :rows="rows" />
|
<table-card-component :subBranch="true" :rows="rows" />
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue