【修改】增加加载中
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
</el-upload>
|
||||
<div class="table">
|
||||
<vxe-table ref="xTable" :data="fileLists" :empty-render="{name: 'NotData'}" align="center" border stripe
|
||||
class="table-over" width="100%"
|
||||
class="table-over" width="100%" :loading="table_loading"
|
||||
v-table-min-height="'50px'">
|
||||
<vxe-column show-header-overflow field="name" title="文件名称">
|
||||
<template #default="{ row, rowIndex }">
|
||||
@@ -190,6 +190,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
table_loading:false,
|
||||
total:0,
|
||||
fileLists:[],
|
||||
delIds:[],
|
||||
@@ -338,6 +339,7 @@ export default {
|
||||
},
|
||||
handleCurrentChange(current){
|
||||
setTimeout(() => {
|
||||
|
||||
current = current ? current : this.q.pageNo
|
||||
this.q.pageNo = current
|
||||
this.fileLists = this.fileList.slice(this.q.pageSize * (current - 1), this.q.pageSize * current)
|
||||
@@ -347,6 +349,7 @@ export default {
|
||||
return false
|
||||
}
|
||||
this.total = this.fileList.length
|
||||
this.table_loading=false
|
||||
},500)
|
||||
},
|
||||
handlePreview(file){
|
||||
@@ -578,6 +581,7 @@ export default {
|
||||
},
|
||||
// 上传文件前
|
||||
beforeUploadFile(file) {
|
||||
this.table_loading=true
|
||||
let realFileType = file.name.split('.')[file.name.split('.').length - 1];
|
||||
const isType = (
|
||||
file.type === fileType.pdf || file.type === fileType.ppt || file.type === fileType.pptx || file.type === fileType.xlsx||
|
||||
|
||||
Reference in New Issue
Block a user