fix store list style
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-can="permissionCodes.store.read" class="store-list">
|
<div v-can="permissionCodes.store.read" class="store-list">
|
||||||
<t-pull-down-refresh
|
<t-pull-down-refresh
|
||||||
|
class="list-wrapper"
|
||||||
v-model="isRefreshing"
|
v-model="isRefreshing"
|
||||||
:refresh-timeout="30000"
|
:refresh-timeout="30000"
|
||||||
@refresh="refresh"
|
@refresh="refresh"
|
||||||
@@ -100,7 +101,6 @@ async function fetch(): Promise<void> {
|
|||||||
if (isLoading.value || isNoMore.value) {
|
if (isLoading.value || isNoMore.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
try {
|
try {
|
||||||
const result = await StoreAPI.list(page);
|
const result = await StoreAPI.list(page);
|
||||||
@@ -121,7 +121,6 @@ async function exportExcel(): Promise<void> {
|
|||||||
if (isExporting.value) {
|
if (isExporting.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
isExporting.value = true;
|
isExporting.value = true;
|
||||||
try {
|
try {
|
||||||
const blob = await StoreAPI.exportXSSF({
|
const blob = await StoreAPI.exportXSSF({
|
||||||
@@ -140,7 +139,6 @@ async function toEdit(item: Store): Promise<void> {
|
|||||||
if (!item.id) {
|
if (!item.id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await router.push(`/management/stores/${item.id}`);
|
await router.push(`/management/stores/${item.id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,17 +167,21 @@ onUnmounted(() => {
|
|||||||
display: grid;
|
display: grid;
|
||||||
padding: calc(var(--app-nav-height) + 1rem) 0 6rem 0;
|
padding: calc(var(--app-nav-height) + 1rem) 0 6rem 0;
|
||||||
|
|
||||||
.item {
|
.list-wrapper {
|
||||||
|
min-height: 50vh;
|
||||||
|
|
||||||
.header {
|
.item {
|
||||||
gap: .5rem;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.description {
|
.header {
|
||||||
display: flex;
|
gap: .5rem;
|
||||||
flex-direction: column;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user