修复:
删除文件后,移除列表失败的问题
This commit is contained in:
parent
1832a9d339
commit
a599bbd5b3
@ -2634,6 +2634,7 @@
|
|||||||
},
|
},
|
||||||
// 移除选中项
|
// 移除选中项
|
||||||
removeSelectItme(){
|
removeSelectItme(){
|
||||||
|
console.log(this.$refs.fileListTable.tableSelectData.length,this.$refs.fileListTable.tableSelectData)
|
||||||
let removeFileIndexList = []
|
let removeFileIndexList = []
|
||||||
if(this.$refs.fileListTable.tableSelectData.length > 0){
|
if(this.$refs.fileListTable.tableSelectData.length > 0){
|
||||||
this.$refs.fileListTable.tableSelectData.forEach(item => {
|
this.$refs.fileListTable.tableSelectData.forEach(item => {
|
||||||
@ -2647,8 +2648,8 @@
|
|||||||
this.$refs.fileListTable.doLayout()
|
this.$refs.fileListTable.doLayout()
|
||||||
this.$refs.fileListTable.clearSelection()
|
this.$refs.fileListTable.clearSelection()
|
||||||
this.$refs.fileListTable.tableSelectData = []
|
this.$refs.fileListTable.tableSelectData = []
|
||||||
// 反序
|
// 倒序
|
||||||
removeFileIndexList = removeFileIndexList.reverse()
|
removeFileIndexList = removeFileIndexList.sort((a,b)=> b-a)
|
||||||
const that = this
|
const that = this
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
// 再执行移除
|
// 再执行移除
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user