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