refactor: cleanup
This commit is contained in:
parent
fad1b59981
commit
dd2202a7c7
5 changed files with 3 additions and 10 deletions
|
|
@ -1,6 +1,4 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import useUserStore from 'src/stores/user';
|
|
||||||
|
|
||||||
const firstName = defineModel<string>('firstName');
|
const firstName = defineModel<string>('firstName');
|
||||||
const lastName = defineModel<string>('lastName');
|
const lastName = defineModel<string>('lastName');
|
||||||
const firstNameEN = defineModel<string>('firstNameEN');
|
const firstNameEN = defineModel<string>('firstNameEN');
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue';
|
|
||||||
import { Icon } from '@iconify/vue';
|
import { Icon } from '@iconify/vue';
|
||||||
|
|
||||||
import AppBox from 'components/app/AppBox.vue';
|
import AppBox from 'components/app/AppBox.vue';
|
||||||
|
|
@ -27,8 +26,6 @@ defineEmits<{
|
||||||
(e: 'updateCard', id: string): void;
|
(e: 'updateCard', id: string): void;
|
||||||
(e: 'enterCard', id: string): void;
|
(e: 'enterCard', id: string): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const status = ref(false);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@ function triggerCreateHeadOffice() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function triggerEditHeadOffice(id: string) {
|
async function triggerEditHeadOffice(id: string) {
|
||||||
await clearData();
|
clearData();
|
||||||
formType.value = 'edit';
|
formType.value = 'edit';
|
||||||
typeBranch.value = 'headOffice';
|
typeBranch.value = 'headOffice';
|
||||||
currentBranchIdEdit.value = id;
|
currentBranchIdEdit.value = id;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import useUserStore from 'stores/user';
|
||||||
import useBranchStore from 'src/stores/branch';
|
import useBranchStore from 'src/stores/branch';
|
||||||
import { dialog } from 'src/stores/utils';
|
import { dialog } from 'src/stores/utils';
|
||||||
|
|
||||||
import { UserCreate, UserTypeStats, RoleData } from 'src/stores/user/types';
|
import { UserCreate, UserTypeStats } from 'src/stores/user/types';
|
||||||
import { BranchUserStats } from 'src/stores/branch/types';
|
import { BranchUserStats } from 'src/stores/branch/types';
|
||||||
|
|
||||||
import PersonCard from 'components/home/PersonCard.vue';
|
import PersonCard from 'components/home/PersonCard.vue';
|
||||||
|
|
@ -340,7 +340,7 @@ watch(
|
||||||
style="background-color: var(--cyan-6); color: white"
|
style="background-color: var(--cyan-6); color: white"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="row col full-width" style="overflow-x: auto">
|
<div class="row full-width q-py-md" style="overflow-x: auto">
|
||||||
<StatCardComponent
|
<StatCardComponent
|
||||||
v-if="userStats"
|
v-if="userStats"
|
||||||
:branch="
|
:branch="
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import { storeToRefs } from 'pinia';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
import useUserStore from 'stores/user';
|
import useUserStore from 'stores/user';
|
||||||
import useBranchStore from 'stores/branch';
|
|
||||||
|
|
||||||
import { User } from 'stores/user/types';
|
import { User } from 'stores/user/types';
|
||||||
import { Branch } from 'stores/branch/types';
|
import { Branch } from 'stores/branch/types';
|
||||||
|
|
@ -28,7 +27,6 @@ const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const addrStore = useAddressStore();
|
const addrStore = useAddressStore();
|
||||||
const branchStore = useBranchStore();
|
|
||||||
|
|
||||||
const { data: userData } = storeToRefs(userStore);
|
const { data: userData } = storeToRefs(userStore);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue