[update] 市场法规清单直接发布
This commit is contained in:
@@ -339,21 +339,21 @@ export default {
|
|||||||
this.$message.warning(this.$t('selectARecord'))
|
this.$message.warning(this.$t('selectARecord'))
|
||||||
} else {
|
} else {
|
||||||
const ids = this.selectedRowKeys.join(',')
|
const ids = this.selectedRowKeys.join(',')
|
||||||
const that = this
|
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: this.$t('standardRegulationLibrary.marketRegulationsList.confirmDirectRelease'),
|
title: this.$t('standardRegulationLibrary.marketRegulationsList.confirmDirectRelease'),
|
||||||
content: this.$t('standardRegulationLibrary.marketRegulationsList.directReleaseAData'),
|
content: this.$t('standardRegulationLibrary.marketRegulationsList.directReleaseAData'),
|
||||||
onOk: function () {
|
onOk: () => {
|
||||||
that.loading = true
|
this.loading = true
|
||||||
marketRegulationDirectRelease({ ids: ids }).then((res) => {
|
marketRegulationDirectRelease({ ids: ids }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
that.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
that.loadData()
|
this.loadData()
|
||||||
|
this.onClearSelected()
|
||||||
} else {
|
} else {
|
||||||
that.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
that.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user