批量删除 加载转圈

This commit is contained in:
zhaokaiyao@91isoft.com
2021-11-28 10:57:23 +08:00
parent 0a512fef2d
commit 065aa38a18
@@ -1142,7 +1142,8 @@ export default {
this.selectedList = [] this.selectedList = []
this.selectedAllList = data this.selectedAllList = data
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
this.selectedList.push(data[i].id,data[i].editFlag) this.selectedList.push(data[i].id)
this.selectedList1.push(data[i].editFlag)
} }
}, },
// 分页点击后方法 // 分页点击后方法
@@ -1407,6 +1408,7 @@ export default {
confirmButtonClass: 'common-button-primary', confirmButtonClass: 'common-button-primary',
roundButton: false roundButton: false
}).then(() => { }).then(() => {
this.loading = true
this.deleteItemsModal = false this.deleteItemsModal = false
this.$http.post('lawss/sarFileSplitItems/batchDeleteItems', { this.$http.post('lawss/sarFileSplitItems/batchDeleteItems', {
ids: this.selectedList.join(','), ids: this.selectedList.join(','),
@@ -1427,6 +1429,7 @@ export default {
nodeId = currentNode.id nodeId = currentNode.id
} }
this.selectSarMenu.id = nodeId this.selectSarMenu.id = nodeId
this.loading = false
}, e => { }, e => {
}) })
}).catch(() => {}) }).catch(() => {})