上传任务列表.

This commit is contained in:
lijiahangmax
2024-05-11 00:17:13 +08:00
parent 978d94dddf
commit 792ec067ab
6 changed files with 640 additions and 3 deletions

View File

@@ -0,0 +1,47 @@
<template>
<div class="layout-container" v-if="render">
<!-- 列表-表格 -->
<upload-task-table ref="table"
@open-clear="(e) => clear.open(e)"
@open-detail="(e) => detail.open(e)" />
<!-- 清理模态框 -->
<upload-task-clear-modal ref="clear"
@clear="clearCallback" />
</div>
</template>
<script lang="ts">
export default {
name: 'uploadTask'
};
</script>
<script lang="ts" setup>
import { ref, onBeforeMount } from 'vue';
import { useDictStore } from '@/store';
import { dictKeys } from './types/const';
import UploadTaskTable from './components/upload-task-table.vue';
import UploadTaskClearModal from './components/upload-task-clear-modal.vue';
const render = ref(false);
const table = ref();
const detail = ref();
const clear = ref();
// 清理回调
const clearCallback = () => {
table.value.fetchTableData();
};
// 加载字典值
onBeforeMount(async () => {
const dictStore = useDictStore();
await dictStore.loadKeys(dictKeys);
render.value = true;
});
</script>
<style lang="less" scoped>
</style>