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 @@ - - @@ -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 @@ + + 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 @@