diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue index 4b7bb37..047a256 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue @@ -339,21 +339,21 @@ export default { this.$message.warning(this.$t('selectARecord')) } else { const ids = this.selectedRowKeys.join(',') - const that = this this.$confirm({ title: this.$t('standardRegulationLibrary.marketRegulationsList.confirmDirectRelease'), content: this.$t('standardRegulationLibrary.marketRegulationsList.directReleaseAData'), - onOk: function () { - that.loading = true + onOk: () => { + this.loading = true marketRegulationDirectRelease({ ids: ids }).then((res) => { if (res.success) { - that.$message.success(res.message) - that.loadData() + this.$message.success(res.message) + this.loadData() + this.onClearSelected() } else { - that.$message.warning(res.message) + this.$message.warning(res.message) } }).finally(() => { - that.loading = false + this.loading = false }) } })