refactor: route and fn name
This commit is contained in:
parent
ae4bf285a0
commit
f5db816496
2 changed files with 14 additions and 4 deletions
|
|
@ -23,7 +23,17 @@ const routes: RouteRecordRaw[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/customer-management',
|
path: '/customer-management',
|
||||||
name: 'customerManagement',
|
name: 'CustomerManagement',
|
||||||
|
component: () => import('pages/03_customer-management/MainPage.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/customer-management/:customerId',
|
||||||
|
name: 'CustomerSpecificManagement',
|
||||||
|
component: () => import('pages/03_customer-management/MainPage.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/customer-management/:customerId/branch',
|
||||||
|
name: 'CustomerBranchManagement',
|
||||||
component: () => import('pages/03_customer-management/MainPage.vue'),
|
component: () => import('pages/03_customer-management/MainPage.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
const flowStore = useFlowStore();
|
const flowStore = useFlowStore();
|
||||||
const data = ref<Pagination<Customer[]>>();
|
const data = ref<Pagination<Customer[]>>();
|
||||||
|
|
||||||
async function fetchListById(
|
async function fetchById(
|
||||||
customerId: string,
|
customerId: string,
|
||||||
flow?: {
|
flow?: {
|
||||||
sessionId?: string;
|
sessionId?: string;
|
||||||
|
|
@ -307,7 +307,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
transactionId?: string;
|
transactionId?: string;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
const { id, statusSave , code, ...playload } = data;
|
const { id, statusSave, code, ...playload } = data;
|
||||||
|
|
||||||
const res = await api.post<
|
const res = await api.post<
|
||||||
Customer & {
|
Customer & {
|
||||||
|
|
@ -467,7 +467,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
getStatsCustomer,
|
getStatsCustomer,
|
||||||
|
|
||||||
fetchListCustomeBranch,
|
fetchListCustomeBranch,
|
||||||
fetchListById,
|
fetchById,
|
||||||
fetchList,
|
fetchList,
|
||||||
create,
|
create,
|
||||||
editById,
|
editById,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue