fix transition
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main class="page-content scroll column">
|
<main class="page-content scroll column">
|
||||||
<t-cell-group title="导出范围" theme="card">
|
<t-cell-group title="导出范围" theme="card" v-entrance-transition>
|
||||||
<t-cell title="时间范围" :note="dateFilterLabel" arrow @click="openDateFilterPicker" />
|
<t-cell title="时间范围" :note="dateFilterLabel" arrow @click="openDateFilterPicker" />
|
||||||
<t-cell title="导出附件">
|
<t-cell title="导出附件">
|
||||||
<template #rightIcon>
|
<template #rightIcon>
|
||||||
@@ -57,6 +57,7 @@
|
|||||||
:key="item.value"
|
:key="item.value"
|
||||||
class="module-cell"
|
class="module-cell"
|
||||||
:title="item.label"
|
:title="item.label"
|
||||||
|
v-entrance-transition="{ step: 30 }"
|
||||||
@click="toggleModule(item.value)"
|
@click="toggleModule(item.value)"
|
||||||
>
|
>
|
||||||
<template #left-icon>
|
<template #left-icon>
|
||||||
@@ -140,7 +141,7 @@ const endDatePickerVisible = ref(false);
|
|||||||
const beginDateDraft = ref("");
|
const beginDateDraft = ref("");
|
||||||
const endDateDraft = ref("");
|
const endDateDraft = ref("");
|
||||||
const isStatLoading = ref(false);
|
const isStatLoading = ref(false);
|
||||||
const isNextDisabled = computed(() => !allTime.value && (!beginDate.value || !endDate.value));
|
const isNextDisabled = computed(() => moduleList.value.length < 1 || (!allTime.value && (!beginDate.value || !endDate.value)));
|
||||||
const dateFilterLabel = computed(() => dateFilterOptions.find(item => item.value === dateFilterType.value)?.label || "自定义");
|
const dateFilterLabel = computed(() => dateFilterOptions.find(item => item.value === dateFilterType.value)?.label || "自定义");
|
||||||
const isAllModuleSelected = computed(() => dataExportModuleOptionList.every(item => isModuleSelected(item.value)));
|
const isAllModuleSelected = computed(() => dataExportModuleOptionList.every(item => isModuleSelected(item.value)));
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main v-if="request && stat" class="page-content scroll column content">
|
<main v-if="request && stat" class="page-content scroll column content">
|
||||||
<t-cell-group title="统计范围" theme="card">
|
<t-cell-group title="统计范围" theme="card" v-entrance-transition>
|
||||||
<t-cell v-if="request.allTime" title="时间范围" note="全部时间" />
|
<t-cell v-if="request.allTime" title="时间范围" note="全部时间" />
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<t-cell title="开始时间" :note="request.beginDate" />
|
<t-cell title="开始时间" :note="request.beginDate" />
|
||||||
@@ -24,6 +24,7 @@
|
|||||||
<card-container
|
<card-container
|
||||||
description="数据统计"
|
description="数据统计"
|
||||||
:tips="request.includeAttachment ? '数据大小为预估,附件大小为精确' : '数据大小为预估'"
|
:tips="request.includeAttachment ? '数据大小为预估,附件大小为精确' : '数据大小为预估'"
|
||||||
|
v-entrance-transition
|
||||||
>
|
>
|
||||||
<t-table
|
<t-table
|
||||||
class="table"
|
class="table"
|
||||||
@@ -34,7 +35,7 @@
|
|||||||
table-layout="auto"
|
table-layout="auto"
|
||||||
/>
|
/>
|
||||||
</card-container>
|
</card-container>
|
||||||
<t-cell-group class="stat-card" title="统计合计" theme="card">
|
<t-cell-group class="stat-card" title="统计合计" theme="card" v-entrance-transition>
|
||||||
<t-cell title="业务数据量" :note="formatDataExportCount(stat.recordCount)" />
|
<t-cell title="业务数据量" :note="formatDataExportCount(stat.recordCount)" />
|
||||||
<t-cell v-if="request.includeAttachment" title="附件数量" :note="formatDataExportCount(stat.attachmentCount)" />
|
<t-cell v-if="request.includeAttachment" title="附件数量" :note="formatDataExportCount(stat.attachmentCount)" />
|
||||||
<t-cell title="业务数据预估大小" :note="formatDataExportFileSize(stat.businessEstimateSize)" />
|
<t-cell title="业务数据预估大小" :note="formatDataExportFileSize(stat.businessEstimateSize)" />
|
||||||
@@ -128,6 +129,10 @@ onMounted(async () => {
|
|||||||
:deep(td) {
|
:deep(td) {
|
||||||
padding: .5rem;
|
padding: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(tbody tr:last-child) {
|
||||||
|
--td-component-border: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
<div class="page-layout navbar data-export-task-page">
|
<div class="page-layout navbar data-export-task-page">
|
||||||
<t-navbar fixed :z-index="20" title="导出任务" left-arrow @left-click="router.back()" />
|
<t-navbar fixed :z-index="20" title="导出任务" left-arrow @left-click="router.back()" />
|
||||||
<main v-if="task" class="page-content scroll column">
|
<main v-if="task" class="page-content scroll column">
|
||||||
<t-cell-group class="task-card" title="导出任务" theme="card">
|
<t-cell-group
|
||||||
|
class="task-card"
|
||||||
|
title="导出任务"
|
||||||
|
theme="card"
|
||||||
|
v-entrance-transition
|
||||||
|
>
|
||||||
<t-cell title="当前状态" :note="taskStatusText" />
|
<t-cell title="当前状态" :note="taskStatusText" />
|
||||||
<t-cell title="任务进度">
|
<t-cell title="任务进度">
|
||||||
<template #note>
|
<template #note>
|
||||||
@@ -19,6 +24,7 @@
|
|||||||
class="cell-button"
|
class="cell-button"
|
||||||
theme="primary"
|
theme="primary"
|
||||||
content="下载 ZIP 文件"
|
content="下载 ZIP 文件"
|
||||||
|
v-entrance-transition
|
||||||
@click="downloadTask"
|
@click="downloadTask"
|
||||||
/>
|
/>
|
||||||
<t-button
|
<t-button
|
||||||
@@ -26,6 +32,7 @@
|
|||||||
class="cell-button"
|
class="cell-button"
|
||||||
theme="default"
|
theme="default"
|
||||||
content="发起新的导出"
|
content="发起新的导出"
|
||||||
|
v-entrance-transition
|
||||||
@click="restartExport"
|
@click="restartExport"
|
||||||
/>
|
/>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user