diff --git a/src/common/lang/standardRegulationLibrary/en-us.js b/src/common/lang/standardRegulationLibrary/en-us.js index 4f0f5ba..e55e1ed 100644 --- a/src/common/lang/standardRegulationLibrary/en-us.js +++ b/src/common/lang/standardRegulationLibrary/en-us.js @@ -80,7 +80,10 @@ module.exports = { haveStandardExist: 'Some standards already exist', pleaseSelectAListPublish: 'Please select a list to publish', pleaseSelectCorrectData: 'Select an unpublished or modified list to publish', - listNumberEnglishPart: 'List number English abbreviation' + listNumberEnglishPart: 'List number English abbreviation', + directRelease: 'Direct release', + confirmDirectRelease: 'Want to publish directly?', + directReleaseAData: 'Do you want to publish selected data directly?' }, // 市场清单详情列表字段 marketListField: { diff --git a/src/common/lang/standardRegulationLibrary/zh-cn.js b/src/common/lang/standardRegulationLibrary/zh-cn.js index c230e45..1225e44 100644 --- a/src/common/lang/standardRegulationLibrary/zh-cn.js +++ b/src/common/lang/standardRegulationLibrary/zh-cn.js @@ -80,7 +80,10 @@ module.exports = { haveStandardExist: '部分标准已存在', pleaseSelectAListPublish: '请选择一个清单进行发布', pleaseSelectCorrectData: '请选择未发布或者修改中的清单进行发布', - listNumberEnglishPart: '清单编号英文缩写' + listNumberEnglishPart: '清单编号英文缩写', + directRelease: '直接发布', + confirmDirectRelease: '确认直接发布?', + directReleaseAData: '是否直接发布选中数据?' }, // 市场清单详情列表字段 marketListField: { diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue index 68f797d..77953e7 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue @@ -87,6 +87,8 @@ {{ $t('view') }} + + {{ $t('standardRegulationLibrary.marketRegulationsList.directRelease') }} @@ -331,6 +333,32 @@ export default { } }) }, + // 直接发布 + handleDirectRelease () { + if (this.selectedRowKeys.length <= 0) { + 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 + marketRegulationDetailPublish({ ids: ids }).then((res) => { + if (res.success) { + that.$message.success(res.message) + that.loadData() + } else { + that.$message.warning(res.message) + } + }).finally(() => { + that.loading = false + }) + } + }) + } + }, // 点击清单编号/清单名称查看详情 toDetail (record) { this.$router.push({