From 143a1edf7a7575894bf27b01b1bc7352e7792706 Mon Sep 17 00:00:00 2001
From: lideqin <694785430@qq.com>
Date: Thu, 20 Jun 2024 17:11:52 +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?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/standardRegulationLibraryApi.js | 20 +-
.../lang/standardRegulationLibrary/zh-cn.js | 3 +-
src/common/lang/zh-cn.js | 1 +
.../MarketRegulationsDetailPage.vue | 48 ++-
.../MarketRegulationsFormPage.vue | 387 +++++++++++++++++-
.../MarketRegulationsList.vue | 27 +-
.../modules/HistoryVersionModal.vue | 94 +++++
.../modules/MarketRegulationsModal.vue | 56 ++-
8 files changed, 599 insertions(+), 37 deletions(-)
create mode 100644 src/views/standardRegulationLibrary/marketRegulationsList/modules/HistoryVersionModal.vue
diff --git a/src/api/standardRegulationLibraryApi.js b/src/api/standardRegulationLibraryApi.js
index 7c941e4..42a2b6c 100644
--- a/src/api/standardRegulationLibraryApi.js
+++ b/src/api/standardRegulationLibraryApi.js
@@ -134,6 +134,17 @@ const addStandardMasterPlan = (params) => postAction('/laws/StandardMasterPlan/a
// 标准主计划-编辑
const editStandardMasterPlan = (params) => postAction('/laws/StandardMasterPlan/edit', params)
+// 市场法规清单-根据id查询-用于编辑
+const getMarketRegulationListById = (params) => getAction('', params)
+// 市场法规清单-根据ids获取多个清单的清单列表-用于复制
+const getMarketRegulationListByIds = (params) => getAction('', params)
+// 市场法规清单-新增
+const marketRegulationListAdd = (params) => postAction('', params)
+// 市场法规清单-编辑
+const marketRegulationListEdit = (params) => postAction('', params)
+// 市场法规清单-获取历史版本列表
+const marketRegulationListHistoryList = (params) => getAction('', params)
+
export {
// 国内标准
getDomesticStandardSearchForm,
@@ -209,5 +220,12 @@ export {
// 标准主计划
getStandardMasterPlanById,
addStandardMasterPlan,
- editStandardMasterPlan
+ editStandardMasterPlan,
+
+ // 市场法规清单
+ getMarketRegulationListById,
+ getMarketRegulationListByIds,
+ marketRegulationListAdd,
+ marketRegulationListEdit,
+ marketRegulationListHistoryList
}
diff --git a/src/common/lang/standardRegulationLibrary/zh-cn.js b/src/common/lang/standardRegulationLibrary/zh-cn.js
index c2a2f72..9fa5b67 100644
--- a/src/common/lang/standardRegulationLibrary/zh-cn.js
+++ b/src/common/lang/standardRegulationLibrary/zh-cn.js
@@ -74,7 +74,8 @@ module.exports = {
customName: '自定义名称',
securityClass: '密级',
listDeclaration: '清单说明',
- templateName: '市场法规清单导入模版'
+ templateName: '市场法规清单导入模版',
+ historicalVersion: '历史版本'
},
// 市场清单详情列表字段
marketListField: {
diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js
index 1fd73c1..17d29b0 100644
--- a/src/common/lang/zh-cn.js
+++ b/src/common/lang/zh-cn.js
@@ -197,6 +197,7 @@ module.exports = {
clauseNo: '条款号',
clauseName: '条款名称',
clauseContent: '条款内容',
+ maximumSelectFive: '最多选择五条记录!',
// 标准字段
standardField: {
standardEnglishName: '标准英文名称',
diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue
index 0b83ada..02905b6 100644
--- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue
+++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue
@@ -94,12 +94,6 @@
-
- {{ $t('edit') }}
-
- {{ $t('delete') }}
-
-
@@ -111,10 +105,12 @@
import InternalDetailPage from '../../../components/InternalDetailPage'
import FileEcho from '../../../components/FileEcho'
import { JeroListMixin } from '../../../mixins/JeroListMixin'
+import { getMarketRegulationListById } from '../../../api/standardRegulationLibraryApi'
+import JTable from '../../../components/jero/JTable'
export default {
name: 'MarketRegulationsDetailPage',
- components: { InternalDetailPage, FileEcho },
+ components: { InternalDetailPage, FileEcho, JTable },
mixins: [JeroListMixin],
data () {
return {
@@ -270,12 +266,44 @@ export default {
fixed: 'right',
width: 170
}
- ]
+ ],
+ disableMixinCreated: true
+ }
+ },
+ mounted () {
+ if (this.$route.query.ids) {
+ this.filters.ids = this.$route.query.ids
+ }
+ if (this.$route.query.versionNumber) {
+ this.filters.versionNumber = this.$route.query.versionNumber
+ }
+ this.initData()
+ },
+ methods: {
+ initData (id) {
+ this.loading = true
+ getMarketRegulationListById({ id }).then(res => {
+ if (res.success) {
+ this.model = Object.assign({}, res.result)
+ this.dataSource = JSON.parse(JSON.stringify(this.model.data))
+ this.dataList = JSON.parse(JSON.stringify(this.model.data))
+ }
+ }).finally(() => {
+ this.loading = false
+ })
+ },
+ toDetail (record) {
+
}
}
}
-
diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue
index 90e15d2..bc14b8f 100644
--- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue
+++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue
@@ -1,5 +1,10 @@
+
+
+
+ {{ $t('standardRegulationLibrary.marketRegulationsList.historicalVersion') }}
+
@@ -140,7 +145,7 @@
:can-drag="true"
:scroll="{x: '100%', y: yScrollHeight}"
ref="table"
- rowKey="id"
+ rowKey="uid"
:columns="columns"
:dataSource="dataSource"
:pagination="false"
@@ -159,7 +164,7 @@
{{ $t('edit') }}
- {{ $t('delete') }}
+ {{ $t('delete') }}
@@ -178,29 +183,85 @@
-
+
-
+
+
+
+
+
diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue b/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue
index e62751e..7b8b5d4 100644
--- a/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue
+++ b/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue
@@ -17,7 +17,8 @@
+ @listChange="selectStandardChange"
+ v-decorator.trim="[ 'standardNumber', validatorRules.standardNumber ]" />
@@ -141,6 +142,8 @@