处理fileList加载文件后被覆盖的问题
This commit is contained in:
parent
c9ca7c1a5e
commit
60c2ed556e
|
@ -7,6 +7,7 @@
|
||||||
:loading="loading_list"
|
:loading="loading_list"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
bordered
|
bordered
|
||||||
|
:scroll="{ y: 450 }"
|
||||||
>
|
>
|
||||||
<template slot="sampleData" slot-scope="text, record">
|
<template slot="sampleData" slot-scope="text, record">
|
||||||
<div class="file-name file-ellipsis" :title="text" @dblclick="handleFileSelect('_S_',record)">
|
<div class="file-name file-ellipsis" :title="text" @dblclick="handleFileSelect('_S_',record)">
|
||||||
|
@ -307,7 +308,12 @@ export default {
|
||||||
this.loading_list = false
|
this.loading_list = false
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
let idx = res.result.length
|
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 {
|
} else {
|
||||||
this.$message.warning("This operation fails. Contact your system administrator")
|
this.$message.warning("This operation fails. Contact your system administrator")
|
||||||
}
|
}
|
||||||
|
@ -488,4 +494,7 @@ export default {
|
||||||
.ant-input{
|
.ant-input{
|
||||||
width: 380px;
|
width: 380px;
|
||||||
}
|
}
|
||||||
|
/deep/.ant-table-bordered.ant-table-fixed-header .ant-table-header > table{
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user