|
@@ -160,6 +160,12 @@
|
|
align="center"
|
|
align="center"
|
|
width="240"
|
|
width="240"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
|
+ <el-table-column label="上传状态" width="240" align="center">
|
|
|
|
+ <template v-slot="scope">
|
|
|
|
+ {{scope.row.status==0?'🟡上传中':scope.row.status==1?'🔵成功':'🔴失败'}}
|
|
|
|
+
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="remark"
|
|
prop="remark"
|
|
label="备注"
|
|
label="备注"
|
|
@@ -298,13 +304,17 @@ const getMockTotal = () => {
|
|
};
|
|
};
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getMockTotal();
|
|
getMockTotal();
|
|
|
|
+
|
|
|
|
+ setInterval(()=>{
|
|
|
|
+ fetchData()
|
|
|
|
+ },5000)
|
|
});
|
|
});
|
|
const fetchDataFunction = async (
|
|
const fetchDataFunction = async (
|
|
page: number,
|
|
page: number,
|
|
pageSize: number
|
|
pageSize: number
|
|
): Promise<PaginationResponse<DataItem>> => {
|
|
): Promise<PaginationResponse<DataItem>> => {
|
|
try {
|
|
try {
|
|
- proxy.$loading.start();
|
|
|
|
|
|
+ // proxy.$loading.start();
|
|
const response = await fileList({
|
|
const response = await fileList({
|
|
current: page,
|
|
current: page,
|
|
size: pageSize,
|
|
size: pageSize,
|
|
@@ -315,11 +325,11 @@ const fetchDataFunction = async (
|
|
total: response.data.total,
|
|
total: response.data.total,
|
|
};
|
|
};
|
|
} catch (error) {
|
|
} catch (error) {
|
|
- proxy.$loading.stop();
|
|
|
|
|
|
+ // proxy.$loading.stop();
|
|
console.error("获取数据失败:", error);
|
|
console.error("获取数据失败:", error);
|
|
throw error;
|
|
throw error;
|
|
} finally {
|
|
} finally {
|
|
- proxy.$loading.stop();
|
|
|
|
|
|
+ // proxy.$loading.stop();
|
|
}
|
|
}
|
|
};
|
|
};
|
|
const pagination = useServerPagination<DataItem>(fetchDataFunction);
|
|
const pagination = useServerPagination<DataItem>(fetchDataFunction);
|