[update] 外来标准法规文本库

This commit is contained in:
lideqin
2024-06-19 14:14:11 +08:00
parent 6b5c64fa3e
commit 21d72188ea
4 changed files with 39 additions and 49 deletions
+15 -15
View File
@@ -69,37 +69,37 @@ const editOverseasStandard = (params) => postAction('/laws/standard/overseas/com
const submitOverseasQuestion = (params) => postAction('/laws/library/lawsProblemLibrary/addProblem/FB', params) const submitOverseasQuestion = (params) => postAction('/laws/library/lawsProblemLibrary/addProblem/FB', params)
// 外来标准法规-获取查询条件 // 外来标准法规-获取查询条件
const getForeignStandardSearchForm = (params) => getAction('/laws/standard/foreign/getQueryCondition', params) const getForeignStandardSearchForm = (params) => getAction('/laws/standard/domestic/getQueryCondition', params)
// 外来标准法规-获取表单模型 // 外来标准法规-获取表单模型
const getForeignStandardFormModal = (params) => getAction('/laws/standard/foreign/getFormModel', params) const getForeignStandardFormModal = (params) => getAction('/laws/standard/domestic/getFormModel', params)
// 外来标准法规-获取信息 // 外来标准法规-获取信息
const getForeignStandardDocumentInfo = (params) => getAction('/laws/standard/foreign/getByIdAndModule', params) const getForeignStandardDocumentInfo = (params) => getAction('/laws/standard/domestic/getByIdAndModule', params)
// 外来标准法规-获取表头信息 // 外来标准法规-获取表头信息
const getForeignStandardTableHeader = (params) => getAction('/laws/standard/foreign/getCommonHeader', params) const getForeignStandardTableHeader = (params) => getAction('/laws/standard/domestic/getCommonHeader', params)
// 外来标准法规-收藏 // 外来标准法规-收藏
const collectionForeignStandard = (params) => postAction('/personal/lawsStandardCollection/foreign/add', params) const collectionForeignStandard = (params) => postAction('/personal/lawsStandardCollection/domestic/add', params)
// 外来标准法规-取消收藏 // 外来标准法规-取消收藏
const cancelCollectionForeignStandard = (params) => postAction('/personal/lawsStandardCollection/foreign/delete', params) const cancelCollectionForeignStandard = (params) => postAction('/personal/lawsStandardCollection/domestic/delete', params)
// 外来标准法规-体系新增 // 外来标准法规-体系新增
const addForeignSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/foreign/add', params) const addForeignSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/domestic/add', params)
// 外来标准法规-体系编辑 // 外来标准法规-体系编辑
const editForeignSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/foreign/edit', params) const editForeignSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/domestic/edit', params)
// 外来标准法规-体系删除 // 外来标准法规-体系删除
const deleteForeignSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/foreign/delete', params) const deleteForeignSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/domestic/delete', params)
// 外来标准法规-配置标准 // 外来标准法规-配置标准
const configForeignStandard = (params) => getAction('/laws/standard/foreign/relatedStandard', params) const configForeignStandard = (params) => getAction('/laws/standard/domestic/relatedStandard', params)
// 外来标准法规-移出标准 // 外来标准法规-移出标准
const removeForeignStandard = (params) => getAction('/laws/standard/foreign/removeStandard', params) const removeForeignStandard = (params) => getAction('/laws/standard/domestic/removeStandard', params)
// 外来标准法规-获取体系树 // 外来标准法规-获取体系树
const getForeignStandardTree = (params) => getAction('/laws/standard/lawsTreeNode/foreign', params) const getForeignStandardTree = (params) => getAction('/laws/standard/lawsTreeNode/domestic', params)
// 外来标准法规-新增标准 // 外来标准法规-新增标准
const addForeignStandard = (params) => postAction('/laws/standard/foreign/commonAdd', params) const addForeignStandard = (params) => postAction('/laws/standard/domestic/commonAdd', params)
// 外来标准法规-编辑标准 // 外来标准法规-编辑标准
const editForeignStandard = (params) => postAction('/laws/standard/foreign/commonEdit', params) const editForeignStandard = (params) => postAction('/laws/standard/domestic/commonEdit', params)
// 外来标准法规-配置标准-过滤没有选中体系的数据 // 外来标准法规-配置标准-过滤没有选中体系的数据
const getForeignStandardNoSystem = (params) => getAction('/laws/standard/common/getStandardRightBox', params) const getForeignStandardNoSystem = (params) => getAction('/laws/standard/common/getStandardRightBox', params)
// 外来标准法规-获取详情信息 // 外来标准法规-获取详情信息
const getForeignStandardDetail = (params) => getAction('/laws/standard/foreign/getByIdAndModule', params) const getForeignStandardDetail = (params) => getAction('/laws/standard/domestic/getByIdAndModule', params)
// 动态消息-保存 // 动态消息-保存
const saveDynamicMessage = (params) => postAction('/laws/standard/lawsNewsFeed/save', params) const saveDynamicMessage = (params) => postAction('/laws/standard/lawsNewsFeed/save', params)
@@ -22,7 +22,7 @@ module.exports = {
applicableVehicleType: 'Applicable vehicle type', // 适用车型 applicableVehicleType: 'Applicable vehicle type', // 适用车型
dynamicType: 'Dynamic type', // 动力类型 dynamicType: 'Dynamic type', // 动力类型
inputExample: 'Input example:', // 输入示例 inputExample: 'Input example:', // 输入示例
// 国内标准 // 外来标准法规文本库
domesticStandard: { domesticStandard: {
treeSearchPlaceholder: 'Please enter the tree system', // 请输入树状图体系 treeSearchPlaceholder: 'Please enter the tree system', // 请输入树状图体系
collection: 'Invoice Collection', // 收藏 collection: 'Invoice Collection', // 收藏
@@ -31,11 +31,6 @@ module.exports = {
exportZipName: 'Domestic standards (with documents)', // 国内标准法规(带文件) exportZipName: 'Domestic standards (with documents)', // 国内标准法规(带文件)
templateName: 'Import templates for domestic standards' // 国内标准法规导入模板 templateName: 'Import templates for domestic standards' // 国内标准法规导入模板
}, },
overseasStandard: {
exportFileName: 'Overseas standard',
exportZipName: 'Overseas standard (with documentation)',
templateName: 'Import template of overseas standard'
},
standardDetail: { standardDetail: {
standardNumber: 'Standard Number', standardNumber: 'Standard Number',
problemOccurrenceTime: 'Problem occurrence time', problemOccurrenceTime: 'Problem occurrence time',
@@ -22,7 +22,7 @@ module.exports = {
applicableVehicleType: '适用车型', // 适用车型 applicableVehicleType: '适用车型', // 适用车型
dynamicType: '动力类型', // 动力类型 dynamicType: '动力类型', // 动力类型
inputExample: '输入示例:', inputExample: '输入示例:',
// 国内标准 // 外来标准法规文本库
foreignStandard: { foreignStandard: {
treeSearchPlaceholder: '请输入树状图体系', treeSearchPlaceholder: '请输入树状图体系',
collection: '收藏', collection: '收藏',
@@ -31,11 +31,6 @@ module.exports = {
exportZipName: '国内标准(带文件)', exportZipName: '国内标准(带文件)',
templateName: '国内标准导入模板' templateName: '国内标准导入模板'
}, },
overseasStandard: {
exportFileName: '海外标准',
exportZipName: '海外标准(带文件)',
templateName: '海外标准导入模板'
},
standardDetail: { standardDetail: {
standardNumber: '标准编号', standardNumber: '标准编号',
problemOccurrenceTime: '问题发生时间', problemOccurrenceTime: '问题发生时间',
@@ -32,17 +32,17 @@
class="tree-operate-node-btn" class="tree-operate-node-btn"
@click.stop="handleAddTreeNode(record)" @click.stop="handleAddTreeNode(record)"
v-if="record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value" v-if="record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value"
v-has="'foreignStandard:tree:add'"></a-button> v-has="'domesticStandard:tree:add'"></a-button>
<!-- 编辑根节点不能编辑--> <!-- 编辑根节点不能编辑-->
<a-button class="tree-operate-node-btn" <a-button class="tree-operate-node-btn"
@click.stop="handleEditTreeNode(record)" @click.stop="handleEditTreeNode(record)"
v-has="'foreignStandard:tree:edit'" v-has="'domesticStandard:tree:edit'"
v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value && record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value"> v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value && record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value">
<i class="iconfont icon-bianji" /> <i class="iconfont icon-bianji" />
</a-button> </a-button>
<!-- 删除根节点不能删除--> <!-- 删除根节点不能删除-->
<a-button class="tree-operate-node-btn" <a-button class="tree-operate-node-btn"
v-has="'foreignStandard:tree:delete'" v-has="'domesticStandard:tree:delete'"
v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value && record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value" v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value && record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value"
@click.stop="handleDelTreeNode(record)"> @click.stop="handleDelTreeNode(record)">
<i class="iconfont icon-shanchu_" /> <i class="iconfont icon-shanchu_" />
@@ -60,21 +60,21 @@
<search ref="searchRef" <search ref="searchRef"
:url="url" :url="url"
:get-query-condition-func="getQueryConditionFunc" :get-query-condition-func="getQueryConditionFunc"
search-has="foreignStandard:search" search-has="domesticStandard:search"
@search="searchQuery" @search="searchQuery"
@reset="searchReset" /> @reset="searchReset" />
</div> </div>
<div class="table-operator"> <div class="table-operator">
<!-- 新增--> <!-- 新增-->
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'foreignStandard:add'">{{ $t('newlyAdded') }}</a-button> <a-button icon="plus" type="primary" @click="handleAdd" v-has="'domesticStandard:add'">{{ $t('newlyAdded') }}</a-button>
<!-- 导入--> <!-- 导入-->
<a-upload name="file" <a-upload name="file"
:showUploadList="false" :showUploadList="false"
:multiple="false" :multiple="false"
:headers="tokenHeader" :headers="tokenHeader"
:action="importExcelUrl" :action="importExcelUrl"
v-has="'foreignStandard:import'" v-has="'domesticStandard:import'"
@change="handleImportExcel"> @change="handleImportExcel">
<a-button type="primary" icon="download" ghost>{{ $t('import') }}</a-button> <a-button type="primary" icon="download" ghost>{{ $t('import') }}</a-button>
</a-upload> </a-upload>
@@ -82,7 +82,7 @@
<a-button icon="upload" <a-button icon="upload"
type="primary" type="primary"
ghost ghost
v-has="'foreignStandard:export'" v-has="'domesticStandard:export'"
@click="handleExportXls($t('standardRegulationLibrary.foreignStandard.exportFileName'))"> @click="handleExportXls($t('standardRegulationLibrary.foreignStandard.exportFileName'))">
{{ $t('export') }} {{ $t('export') }}
</a-button> </a-button>
@@ -90,7 +90,7 @@
<a-button icon="upload" <a-button icon="upload"
type="primary" type="primary"
ghost ghost
v-has="'foreignStandard:exportFile'" v-has="'domesticStandard:exportFile'"
@click="handleFileExport($t('standardRegulationLibrary.foreignStandard.exportFileName'))"> @click="handleFileExport($t('standardRegulationLibrary.foreignStandard.exportFileName'))">
{{ $t('exportWithFile') }} {{ $t('exportWithFile') }}
</a-button> </a-button>
@@ -98,17 +98,17 @@
<a-button type="primary" <a-button type="primary"
icon="download" icon="download"
ghost ghost
v-has="'foreignStandard:downTemplate'" v-has="'domesticStandard:downTemplate'"
@click="downTemplate($t('standardRegulationLibrary.foreignStandard.templateName'))"> @click="downTemplate($t('standardRegulationLibrary.foreignStandard.templateName'))">
{{ $t('templateDownload') }} {{ $t('templateDownload') }}
</a-button> </a-button>
<!-- 批量删除--> <!-- 批量删除-->
<a-button type="primary" icon="delete" ghost @click="batchDel" v-has="'foreignStandard:batchDel'">{{ <a-button type="primary" icon="delete" ghost @click="batchDel" v-has="'domesticStandard:batchDel'">{{
$t('batchDelete') $t('batchDelete')
}} }}
</a-button> </a-button>
<!-- 配置标准--> <!-- 配置标准-->
<a-button type="primary" icon="setting" ghost @click="handleConfigStandard" v-has="'foreignStandard:configStandard'"> <a-button type="primary" icon="setting" ghost @click="handleConfigStandard" v-has="'domesticStandard:configStandard'">
{{ $t('standardRegulationLibrary.configStandard') }} {{ $t('standardRegulationLibrary.configStandard') }}
</a-button> </a-button>
<!-- 移出标准--> <!-- 移出标准-->
@@ -116,7 +116,7 @@
icon="minus-circle" icon="minus-circle"
ghost ghost
@click="handleRemoveStandard" @click="handleRemoveStandard"
v-has="'foreignStandard:removeStandard'"> v-has="'domesticStandard:removeStandard'">
{{ $t('standardRegulationLibrary.removeStandard') }} {{ $t('standardRegulationLibrary.removeStandard') }}
</a-button> </a-button>
</div> </div>
@@ -270,31 +270,31 @@ export default {
{ {
text: this.$t('standardRegulationLibrary.foreignStandard.cancelCollection'), text: this.$t('standardRegulationLibrary.foreignStandard.cancelCollection'),
clickEvent: 'handleCollection', clickEvent: 'handleCollection',
has: 'foreignStandard:collection' has: 'domesticStandard:collection'
}, },
// 编辑 // 编辑
{ {
text: this.$t('edit'), text: this.$t('edit'),
clickEvent: 'handleEdit', clickEvent: 'handleEdit',
has: 'foreignStandard:edit' has: 'domesticStandard:edit'
}, },
// 删除 // 删除
{ {
text: this.$t('delete'), text: this.$t('delete'),
clickEvent: 'handleDelete', clickEvent: 'handleDelete',
has: 'foreignStandard:delete' has: 'domesticStandard:delete'
} }
], ],
getTableHeaderFunc: getForeignStandardTableHeader, getTableHeaderFunc: getForeignStandardTableHeader,
getQueryConditionFunc: getForeignStandardSearchForm, getQueryConditionFunc: getForeignStandardSearchForm,
url: { url: {
list: '/laws/standard/foreign/getCommonPage', list: '/laws/standard/domestic/getCommonPage',
delete: '/laws/standard/foreign/deleteByIdsAndModule', delete: '/laws/standard/domestic/deleteByIdsAndModule',
deleteBatch: '/laws/standard/foreign/deleteByIdsAndModule', deleteBatch: '/laws/standard/domestic/deleteByIdsAndModule',
downTemplateUrl: '/laws/standard/foreign/templateDownload', // 下载模板 downTemplateUrl: '/laws/standard/domestic/templateDownload', // 下载模板
exportXlsUrl: '/laws/standard/foreign/exportData', // 导出 exportXlsUrl: '/laws/standard/domestic/exportData', // 导出
exportZipUrl: '/laws/standard/foreign/exportDataWithFile', // 带文件导出 exportZipUrl: '/laws/standard/domestic/exportDataWithFile', // 带文件导出
importExcelUrl: '/laws/standard/foreign/importExcelWithData' // 导入 importExcelUrl: '/laws/standard/domestic/importExcelWithData' // 导入
}, },
yesValue: YesOrNoEnum.YES.value, yesValue: YesOrNoEnum.YES.value,
noValue: YesOrNoEnum.NO.value, noValue: YesOrNoEnum.NO.value,