bug修改

This commit is contained in:
zhujiyan
2024-11-01 13:55:45 +08:00
parent c55b89376f
commit e6bbee167b
4 changed files with 59 additions and 70 deletions

View File

@@ -4,20 +4,13 @@
<!-- 上传文件列表 -->
<div class="offline_data">
<div class="offline_data_btn">
<el-button
:loading="loading"
style="margin-left: 10px"
size="small"
type="primary"
@click="submitUpload"
>
<el-button :loading="loading" style="margin-left: 10px" type="primary" @click="submitUpload">
上传离线数据
</el-button>
<el-button
type="primary"
@click="handleUpload"
:loading="loading"
size="small"
:disabled="offLineFileList.length == 0 || disableHandleUpload"
>
开始上传
@@ -25,41 +18,38 @@
<el-button
type="primary"
@click="removeAllFile"
size="small"
:loading="loading"
:disabled="offLineFileList.length == 0"
>
清空文件
</el-button>
</div>
<div class="offline_data_list">
<div :style="tableHeight">
<vxe-table border auto-resize height="auto" :data="offLineFileList" v-bind="defaultAttribute">
<vxe-column field="name" align="center" title="文件名"></vxe-column>
<vxe-column field="webkitRelativePath" align="center" title="文件地址"></vxe-column>
<vxe-column field="status" align="center" title="状态" width="250">
<template v-slot:default="scoped">
<el-progress v-if="scoped.row.status == 0" :percentage="0">
<el-button text>等待上传</el-button>
</el-progress>
<el-progress v-if="scoped.row.status == -1" :percentage="30" :indeterminate="true">
<el-button text>上传中...</el-button>
</el-progress>
<el-progress v-if="scoped.row.status == 1" status="success" :percentage="100">
<el-button text>上传成功</el-button>
</el-progress>
</template>
</vxe-column>
<vxe-column title="操作" width="200px">
<template v-slot:default="scoped">
<el-button link size="small" type="danger" @click="removeFile(scoped.row)">
移除
</el-button>
</template>
</vxe-column>
</vxe-table>
</div>
<!-- <div class="offline_data_list"> -->
<div :style="tableHeight">
<vxe-table border auto-resize height="auto" :data="offLineFileList" v-bind="defaultAttribute">
<vxe-column field="name" align="center" title="文件名"></vxe-column>
<vxe-column field="webkitRelativePath" align="center" title="文件地址"></vxe-column>
<vxe-column field="status" align="center" title="状态" width="250">
<template v-slot:default="scoped">
<el-progress v-if="scoped.row.status == 0" :percentage="0">
<el-button text>等待上传</el-button>
</el-progress>
<el-progress v-if="scoped.row.status == -1" :percentage="30" :indeterminate="true">
<el-button text>上传中...</el-button>
</el-progress>
<el-progress v-if="scoped.row.status == 1" status="success" :percentage="100">
<el-button text>上传成功</el-button>
</el-progress>
</template>
</vxe-column>
<vxe-column title="操作" width="200px">
<template v-slot:default="scoped">
<el-button link type="danger" @click="removeFile(scoped.row)">移除</el-button>
</template>
</vxe-column>
</vxe-table>
</div>
<!-- </div> -->
</div>
<template #footer>
<div class="dialog-footer">
@@ -162,7 +152,6 @@ defineExpose({ open })
<style lang="scss" scoped>
.offline_data {
width: 100%;
height: 500px;
.offline_data_btn {
width: 100%;
height: 40px;
@@ -172,7 +161,6 @@ defineExpose({ open })
}
.offline_data_list {
width: 100%;
height: 300px;
}
}
</style>