市场认证清单-导入,导入成功后没有自动刷新列表

This commit is contained in:
范强强
2023-03-24 15:02:59 +08:00
parent 018b59fd6b
commit 0d4544f85c
5 changed files with 50 additions and 23 deletions
@@ -280,6 +280,7 @@
let _this = this
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let isTrue
let idList = []
for (let i = 0; i < selectedRowKeys.length; i++) {
selectedRowKeys[i] = JSON.parse(selectedRowKeys[i])
if (selectedRowKeys[i].state == 1) {
@@ -287,13 +288,13 @@
break
} else {
isTrue = true
idList.push(selectedRowKeys[i].id)
}
}
if (isTrue){
this.$confirm({
content: _this.$t('ConfirmBatchDeletion'),
onOk() {
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
@@ -306,7 +307,7 @@
}
})
}else{
this.$message.warning(this.$t(''))
this.$message.warning(this.$t('onlyDataWithListStatusDraftCanBeDeleted'))
}
} else {
this.$message.warning(this.$t('selectLeastOne'))
@@ -103,6 +103,7 @@
<!-- v-if="isTrue"-->
<div v-if="isTrue" class="operator-text" v-has="'dummyInventoryInfo:importData'">
<ImportFile :url="url" :authDummyInventoryBaseId="$route.query.id" :isTrue="true"
@getList="getPersonnelList"
:accept="'.zip'"/>
</div>
<!-- 模板下载-->
@@ -498,6 +499,9 @@
}
this.getList()
},
getPersonnelList(){
this.getList()
},
getList() {
let query = {
...this.queryParam,