处理fileList加载文件后被覆盖的问题

This commit is contained in:
renpy 2023-09-11 14:51:56 +08:00
parent c9ca7c1a5e
commit 60c2ed556e

View File

@ -7,6 +7,7 @@
:loading="loading_list"
:pagination="false"
bordered
:scroll="{ y: 450 }"
>
<template slot="sampleData" slot-scope="text, record">
<div class="file-name file-ellipsis" :title="text" @dblclick="handleFileSelect('_S_',record)">
@ -307,7 +308,12 @@ export default {
this.loading_list = false
if (res.success) {
let idx = res.result.length
this.list.splice(0,idx,...res.result)
let staIdx = this.list.filter(item => Object.keys(item).length>4).length
if (staIdx<10) {
this.list.splice(staIdx,idx,...res.result)
} else {
this.list.push(...res.result)
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
}
@ -488,4 +494,7 @@ export default {
.ant-input{
width: 380px;
}
/deep/.ant-table-bordered.ant-table-fixed-header .ant-table-header > table{
border: none;
}
</style>