From e43bbdfc09479a8d3e38206046458c98906196ea Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 17 Jun 2024 16:29:02 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=9B=BD=E5=86=85=E6=A0=87=E5=87=86=E5=92=8C=E5=9B=BD=E5=A4=96?= =?UTF-8?q?=E6=A0=87=E5=87=86=E6=94=B9=E6=88=90=E5=A4=96=E6=9D=A5=E6=A0=87?= =?UTF-8?q?=E5=87=86=EF=BC=9B=E5=A2=9E=E5=8A=A0=E5=A4=96=E6=9D=A5=E6=A0=87?= =?UTF-8?q?=E5=87=86=E6=B3=95=E8=A7=84=E6=96=87=E6=9C=AC=E5=BA=93=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/standardRegulationLibraryApi.js | 51 ++ .../lang/standardRegulationLibrary/en-us.js | 44 +- .../lang/standardRegulationLibrary/zh-cn.js | 48 +- src/common/lang/system/en.js | 1 + src/common/lang/system/zh.js | 1 + src/enums/commonEnums.js | 6 +- .../foreignStandard/ForeignStandardList.vue | 692 ++++++++++++++++++ .../detail/ForeignStandardDetailPage.vue | 378 ++++++++++ .../modules/StandardResolutionSheetModal.vue | 84 +++ .../modules/ForeignStandardModal.vue | 143 ++++ .../modules/ForeignSystemTreeModal.vue | 103 +++ .../SelectionForeignStandardDrawer.vue | 238 ++++++ .../system/tags/modules/AreaFormModal.vue | 4 +- src/views/system/tags/modules/AreaModal.vue | 4 +- src/views/system/tags/pages/TagItem.vue | 3 +- 15 files changed, 1764 insertions(+), 36 deletions(-) create mode 100644 src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue create mode 100644 src/views/standardRegulationLibrary/foreignStandard/detail/ForeignStandardDetailPage.vue create mode 100644 src/views/standardRegulationLibrary/foreignStandard/detail/modules/StandardResolutionSheetModal.vue create mode 100644 src/views/standardRegulationLibrary/foreignStandard/modules/ForeignStandardModal.vue create mode 100644 src/views/standardRegulationLibrary/foreignStandard/modules/ForeignSystemTreeModal.vue create mode 100644 src/views/standardRegulationLibrary/foreignStandard/modules/SelectionForeignStandardDrawer.vue diff --git a/src/api/standardRegulationLibraryApi.js b/src/api/standardRegulationLibraryApi.js index a88beeb..4b9b1dd 100644 --- a/src/api/standardRegulationLibraryApi.js +++ b/src/api/standardRegulationLibraryApi.js @@ -68,6 +68,39 @@ const editOverseasStandard = (params) => postAction('/laws/standard/overseas/com // 海外标准-提出问题 const submitOverseasQuestion = (params) => postAction('/laws/library/lawsProblemLibrary/addProblem/FB', params) +// 外来标准法规-获取查询条件 +const getForeignStandardSearchForm = (params) => getAction('/laws/standard/foreign/getQueryCondition', params) +// 外来标准法规-获取表单模型 +const getForeignStandardFormModal = (params) => getAction('/laws/standard/foreign/getFormModel', params) +// 外来标准法规-获取信息 +const getForeignStandardDocumentInfo = (params) => getAction('/laws/standard/foreign/getByIdAndModule', params) +// 外来标准法规-获取表头信息 +const getForeignStandardTableHeader = (params) => getAction('/laws/standard/foreign/getCommonHeader', params) +// 外来标准法规-收藏 +const collectionForeignStandard = (params) => postAction('/personal/lawsStandardCollection/foreign/add', params) +// 外来标准法规-取消收藏 +const cancelCollectionForeignStandard = (params) => postAction('/personal/lawsStandardCollection/foreign/delete', params) +// 外来标准法规-体系新增 +const addForeignSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/foreign/add', params) +// 外来标准法规-体系编辑 +const editForeignSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/foreign/edit', params) +// 外来标准法规-体系删除 +const deleteForeignSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/foreign/delete', params) +// 外来标准法规-配置标准 +const configForeignStandard = (params) => getAction('/laws/standard/foreign/relatedStandard', params) +// 外来标准法规-移出标准 +const removeForeignStandard = (params) => getAction('/laws/standard/foreign/removeStandard', params) +// 外来标准法规-获取体系树 +const getForeignStandardTree = (params) => getAction('/laws/standard/lawsTreeNode/foreign', params) +// 外来标准法规-新增标准 +const addForeignStandard = (params) => postAction('/laws/standard/foreign/commonAdd', params) +// 外来标准法规-编辑标准 +const editForeignStandard = (params) => postAction('/laws/standard/foreign/commonEdit', params) +// 外来标准法规-配置标准-过滤没有选中体系的数据 +const getForeignStandardNoSystem = (params) => getAction('/laws/standard/common/getStandardRightBox', params) +// 外来标准法规-获取详情信息 +const getForeignStandardDetail = (params) => getAction('/laws/standard/foreign/getByIdAndModule', params) + // 动态消息-保存 const saveDynamicMessage = (params) => postAction('/laws/standard/lawsNewsFeed/save', params) // 动态消息-发布 @@ -139,6 +172,24 @@ export { editOverseasStandard, submitOverseasQuestion, + // 外来标准法规 + getForeignStandardSearchForm, + getForeignStandardFormModal, + getForeignStandardDocumentInfo, + getForeignStandardTableHeader, + collectionForeignStandard, + cancelCollectionForeignStandard, + addForeignSystemTree, + editForeignSystemTree, + deleteForeignSystemTree, + configForeignStandard, + removeForeignStandard, + getForeignStandardTree, + addForeignStandard, + editForeignStandard, + getForeignStandardNoSystem, + getForeignStandardDetail, + // 动态消息 saveDynamicMessage, releaseDynamicMessage, diff --git a/src/common/lang/standardRegulationLibrary/en-us.js b/src/common/lang/standardRegulationLibrary/en-us.js index fe64b94..ecce21d 100644 --- a/src/common/lang/standardRegulationLibrary/en-us.js +++ b/src/common/lang/standardRegulationLibrary/en-us.js @@ -52,8 +52,48 @@ module.exports = { dynamicDetails: 'Dynamic details', dataText: 'Data text' }, + // 资料中心 profileCenter: { typeOfOwnership: 'Type of ownership', - uploadData: 'Upload data' - } + uploadData: 'Upload data', + addAPeer: '新增同级', + newChild: '新增子级', + pleaseSelectTheDirectoryOnTheLeft: '请选择左侧目录' + }, + // 市场法规清单 + marketRegulationsList: { + listNumber: '清单编号', + listName: '清单名称', + countryRegion: '国家/地区', + drivingPosition: '驾驶位置', + author: '作者', + exportName: '市场法规清单表', + listVersion: '清单版本', + releaseTime: '发布时间', + listState: '清单状态', + customName: '自定义名称', + securityClass: '密级', + listDeclaration: '清单说明', + templateName: '市场法规清单导入模版' + }, + // 市场清单详情列表字段 + marketListField: { + standardEnglishName: '标准英文名称', + newProductionVehicleImplementationDate: '新生产车实施日期', + newCertifiedVehicleImplementationDate: '新认证车实施日期', + dateOfRegistration: '注册日期', + applicableCountryRegion: '适用国家/地区', + applicableVehicleType: '适用车型', + authenticationObject: '认证对象', + certifiedDeliverables: '认证交付物', + type: '类型', + dynamicType: '动力类型', + mainControlDepartment: '主控部门', + masterControlDepartmentProfessionalModule: '主控部门专业模块', + relatedDepartment: '关联部门', + associateDepartmentSpecializedModules: '关联部门专业模块', + batchRestriction: '批量限制', + automaticDrivingLevel: '自动驾驶等级', + requirementType: '要求类型' + }, } diff --git a/src/common/lang/standardRegulationLibrary/zh-cn.js b/src/common/lang/standardRegulationLibrary/zh-cn.js index fee9ee3..dc98b0e 100644 --- a/src/common/lang/standardRegulationLibrary/zh-cn.js +++ b/src/common/lang/standardRegulationLibrary/zh-cn.js @@ -23,7 +23,7 @@ module.exports = { dynamicType: '动力类型', // 动力类型 inputExample: '输入示例:', // 国内标准 - domesticStandard: { + foreignStandard: { treeSearchPlaceholder: '请输入树状图体系', collection: '收藏', cancelCollection: '取消收藏', @@ -79,8 +79,27 @@ module.exports = { customName: '自定义名称', securityClass: '密级', listDeclaration: '清单说明', - templateName: '市场法规清单导入模版', - + templateName: '市场法规清单导入模版' + }, + // 市场清单详情列表字段 + marketListField: { + standardEnglishName: '标准英文名称', + newProductionVehicleImplementationDate: '新生产车实施日期', + newCertifiedVehicleImplementationDate: '新认证车实施日期', + dateOfRegistration: '注册日期', + applicableCountryRegion: '适用国家/地区', + applicableVehicleType: '适用车型', + authenticationObject: '认证对象', + certifiedDeliverables: '认证交付物', + type: '类型', + dynamicType: '动力类型', + mainControlDepartment: '主控部门', + masterControlDepartmentProfessionalModule: '主控部门专业模块', + relatedDepartment: '关联部门', + associateDepartmentSpecializedModules: '关联部门专业模块', + batchRestriction: '批量限制', + automaticDrivingLevel: '自动驾驶等级', + requirementType: '要求类型' }, // 标准主计划 standardMasterPlan: { @@ -106,26 +125,5 @@ module.exports = { rectifyFinishingDate: '整改完成日期', viewMarketList: '查看市场清单', viewTroubleshootingResults: '查看排查结果' - }, - // 市场清单详情列表字段 - marketListField: { - standardEnglishName: '标准英文名称', - newProductionVehicleImplementationDate: '新生产车实施日期', - newCertifiedVehicleImplementationDate: '新认证车实施日期', - dateOfRegistration: '注册日期', - applicableCountryRegion: '适用国家/地区', - applicableVehicleType: '适用车型', - authenticationObject: '认证对象', - certifiedDeliverables: '认证交付物', - type: '类型', - dynamicType: '动力类型', - mainControlDepartment: '主控部门', - masterControlDepartmentProfessionalModule: '主控部门专业模块', - relatedDepartment: '关联部门', - associateDepartmentSpecializedModules: '关联部门专业模块', - batchRestriction: '批量限制', - automaticDrivingLevel: '自动驾驶等级', - requirementType: '要求类型', - - }, + } } diff --git a/src/common/lang/system/en.js b/src/common/lang/system/en.js index 1db66d2..367e3f3 100644 --- a/src/common/lang/system/en.js +++ b/src/common/lang/system/en.js @@ -17,6 +17,7 @@ module.exports = { essentialInformation: '基本信息', domesticLaws: '国内法规', foreignStandards: '海外标准', + foreignStandardRegulations: '外来标准法规', enterpriseStandards: '企业标准', clauseSplitting: '条款拆分', // 新增模态框中字段 diff --git a/src/common/lang/system/zh.js b/src/common/lang/system/zh.js index f26ba49..f3c204b 100644 --- a/src/common/lang/system/zh.js +++ b/src/common/lang/system/zh.js @@ -17,6 +17,7 @@ module.exports = { essentialInformation: '基本信息', domesticLaws: '国内法规', foreignStandards: '海外标准', + foreignStandardRegulations: '外来标准法规', enterpriseStandards: '企业标准', clauseSplitting: '条款拆分', // 新增模态框中字段 diff --git a/src/enums/commonEnums.js b/src/enums/commonEnums.js index 2e1ca89..d579a51 100644 --- a/src/enums/commonEnums.js +++ b/src/enums/commonEnums.js @@ -32,8 +32,7 @@ export const FieldType = { } export const TagsTypeEnums = new EsEnums({ - DOMESTIC_LIST: { text: '国内法规', langKey: 'system.tag.domesticLaws', value: 1 }, - FOREIGN_LIST: { text: '海外标准', langKey: 'system.tag.foreignStandards', value: 2 }, + FOREIGN_STANDARD_LIST: { text: '外来标准法规', langKey: 'system.tag.foreignStandardRegulations', value: 1 }, ENTERPRISE_LIST: { text: '企业标准', langKey: 'system.tag.enterpriseStandards', value: 3 }, CLAUSE_SPLITTING_LIST: { text: '条款拆分', langKey: 'system.tag.clauseSplitting', value: 4 } }) @@ -61,7 +60,8 @@ export const ProjectSource = { export const StandardSource = { DOMESTIC: { text: '国内', value: '1' }, OVERSEAS: { text: '海外', value: '2' }, - ENTERPRISE: { text: '企标', value: '3' } + ENTERPRISE: { text: '企标', value: '3' }, + FOREIGN: { text: '外来标准', value: '4' } } // 动态分类 diff --git a/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue b/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue new file mode 100644 index 0000000..439f6c1 --- /dev/null +++ b/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue @@ -0,0 +1,692 @@ + + + + + diff --git a/src/views/standardRegulationLibrary/foreignStandard/detail/ForeignStandardDetailPage.vue b/src/views/standardRegulationLibrary/foreignStandard/detail/ForeignStandardDetailPage.vue new file mode 100644 index 0000000..95eafb5 --- /dev/null +++ b/src/views/standardRegulationLibrary/foreignStandard/detail/ForeignStandardDetailPage.vue @@ -0,0 +1,378 @@ + + + + + diff --git a/src/views/standardRegulationLibrary/foreignStandard/detail/modules/StandardResolutionSheetModal.vue b/src/views/standardRegulationLibrary/foreignStandard/detail/modules/StandardResolutionSheetModal.vue new file mode 100644 index 0000000..c823350 --- /dev/null +++ b/src/views/standardRegulationLibrary/foreignStandard/detail/modules/StandardResolutionSheetModal.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/views/standardRegulationLibrary/foreignStandard/modules/ForeignStandardModal.vue b/src/views/standardRegulationLibrary/foreignStandard/modules/ForeignStandardModal.vue new file mode 100644 index 0000000..1bc452d --- /dev/null +++ b/src/views/standardRegulationLibrary/foreignStandard/modules/ForeignStandardModal.vue @@ -0,0 +1,143 @@ + + + + + diff --git a/src/views/standardRegulationLibrary/foreignStandard/modules/ForeignSystemTreeModal.vue b/src/views/standardRegulationLibrary/foreignStandard/modules/ForeignSystemTreeModal.vue new file mode 100644 index 0000000..27d46a4 --- /dev/null +++ b/src/views/standardRegulationLibrary/foreignStandard/modules/ForeignSystemTreeModal.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/views/standardRegulationLibrary/foreignStandard/modules/SelectionForeignStandardDrawer.vue b/src/views/standardRegulationLibrary/foreignStandard/modules/SelectionForeignStandardDrawer.vue new file mode 100644 index 0000000..77341b4 --- /dev/null +++ b/src/views/standardRegulationLibrary/foreignStandard/modules/SelectionForeignStandardDrawer.vue @@ -0,0 +1,238 @@ + + + + + diff --git a/src/views/system/tags/modules/AreaFormModal.vue b/src/views/system/tags/modules/AreaFormModal.vue index 4f00f05..11a22ee 100644 --- a/src/views/system/tags/modules/AreaFormModal.vue +++ b/src/views/system/tags/modules/AreaFormModal.vue @@ -62,8 +62,8 @@ export default { type: { required: false, type: Number, - // 默认显示国内法规的 - default: TagsTypeEnums.DOMESTIC_LIST.value + // 默认显示外来标准法规的 + default: TagsTypeEnums.FOREIGN_STANDARD_LIST.value } }, data () { diff --git a/src/views/system/tags/modules/AreaModal.vue b/src/views/system/tags/modules/AreaModal.vue index 51a75e1..0f1bb12 100644 --- a/src/views/system/tags/modules/AreaModal.vue +++ b/src/views/system/tags/modules/AreaModal.vue @@ -58,8 +58,8 @@ export default { type: { required: false, type: Number, - // 默认显示国内法规的 - default: TagsTypeEnums.DOMESTIC_LIST.value + // 默认显示外来标准法规的 + default: TagsTypeEnums.FOREIGN_STANDARD_LIST.value } }, components: { diff --git a/src/views/system/tags/pages/TagItem.vue b/src/views/system/tags/pages/TagItem.vue index 98154d6..f32d3e4 100644 --- a/src/views/system/tags/pages/TagItem.vue +++ b/src/views/system/tags/pages/TagItem.vue @@ -24,8 +24,7 @@ export default { return { spinning: false, tabArr: [ - { name: '国内法规', showText: this.$t('system.tag.domesticLaws'), value: 1, comp: StandardList }, - { name: '海外标准', showText: this.$t('system.tag.foreignStandards'), value: 2, comp: StandardList }, + { name: '外来标准法规', showText: this.$t('system.tag.foreignStandardRegulations'), value: 1, comp: StandardList }, { name: '企业标准', showText: this.$t('system.tag.enterpriseStandards'), value: 3, comp: StandardList }, { name: '条款拆分', showText: this.$t('system.tag.clauseSplitting'), value: 4, comp: ClauseSplittingList } ]