NEZ-1946 fix: 打开底部弹窗 删除对应元素 底部弹窗不关闭的问题

This commit is contained in:
zhangyu
2022-06-20 16:31:52 +08:00
parent dcf070fb7e
commit 34ddcc0b82
7 changed files with 29 additions and 6 deletions

View File

@@ -10,6 +10,7 @@
</template>
<script>
import bus from '@/libs/bus'
export default {
name: 'deleteButton',
props: {
@@ -44,6 +45,7 @@ export default {
if (response.code === 200) {
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.deleteSuccess') })
this.$emit('after')
bus.$emit('delTableRow', this.deleteObjs.map(item => item.id))
} else {
this.$message.error(response.msg)
}