完善上传关闭,进度条消失的问题
This commit is contained in:
parent
06638fe04c
commit
aa794aceef
@ -189,7 +189,6 @@
|
||||
reqData[config.request.sort_orders] = this.sort_orders;
|
||||
delete reqData[config.request.prop]
|
||||
delete reqData[config.request.order]
|
||||
console.log(this.tableParams,344)
|
||||
}
|
||||
if(this.hidePagination){
|
||||
delete reqData[config.request.page]
|
||||
|
||||
@ -52,7 +52,6 @@
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
<!-- <el-button type="primary" plain :size="size" icon="el-icon-sort"></el-button>-->
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<scExportList :size="size" @updateShow="exportChangeShow" :exportList="exportList" :show="exportShow" type="14">
|
||||
|
||||
@ -35,7 +35,6 @@
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
<!-- <el-button type="primary" plain :size="size" icon="el-icon-sort" :disabled="selection.length==0"></el-button>-->
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
<slot name="download"></slot>
|
||||
</span>
|
||||
</div>
|
||||
<div class="importBox" v-if="progressShow && fileList.length>0">
|
||||
<div class="importBox" v-if="progressShow && (fileList.length>0 || listProgress.length>0)">
|
||||
<div v-if="uploadShow">
|
||||
<div class="item" v-for="(item,index) in fileList" :key="item">
|
||||
<div class="name">{{item.name}}</div>
|
||||
@ -94,7 +94,11 @@ export default {
|
||||
|
||||
},
|
||||
watch:{
|
||||
|
||||
visible(val){
|
||||
if(!val){
|
||||
this.$TOOL.data.set('docsList', this.listProgress);
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
eventBus.$on('sockBack', this.getWsResult);
|
||||
@ -107,20 +111,26 @@ export default {
|
||||
if(res.data && (res.data.type == 12)){
|
||||
this.progressShow = true;
|
||||
|
||||
if(this.listProgress.length == 0){
|
||||
const docsList = this.$TOOL.data.get('docsList');
|
||||
this.listProgress = docsList;
|
||||
}
|
||||
this.listProgress.forEach(em=>{
|
||||
if(em.uuid == res.data.file_unique_id){
|
||||
em.rate = res.data.rate
|
||||
if(res.data.status == 1){
|
||||
// this.listProgress.splice(index,1);
|
||||
}
|
||||
// if(res.data.status == 1){
|
||||
// this.listProgress.splice(index,1);
|
||||
// }
|
||||
}
|
||||
})
|
||||
if(this.listProgress.length==0 && res.data.status == 1){
|
||||
|
||||
let list = this.listProgress.filter(em=> em.rate != 100);
|
||||
if(list.length==0 && res.data.status == 1){
|
||||
this.progressShow = false;
|
||||
this.$TOOL.data.set('docsList', []);
|
||||
}
|
||||
if(res.data.status == 1){
|
||||
this.fileList.splice(this.fileList[0],1);
|
||||
// this.handleRemove('',this.fileList,true);
|
||||
this.$emit('uploadFileSuccess');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user