From c541c302d8f1624ae892e5acbe2c3b75eb400c46 Mon Sep 17 00:00:00 2001
From: lideqin <694785430@qq.com>
Date: Fri, 27 Sep 2024 11:47:35 +0800
Subject: [PATCH] =?UTF-8?q?[update]=20=E5=B8=82=E5=9C=BA=E6=B3=95=E8=A7=84?=
=?UTF-8?q?=E6=B8=85=E5=8D=95=E5=A2=9E=E5=8A=A0=E7=9B=B4=E6=8E=A5=E5=8F=91?=
=?UTF-8?q?=E5=B8=83=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../lang/standardRegulationLibrary/en-us.js | 5 +++-
.../lang/standardRegulationLibrary/zh-cn.js | 5 +++-
.../MarketRegulationsList.vue | 28 +++++++++++++++++++
3 files changed, 36 insertions(+), 2 deletions(-)
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({