[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 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 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)
@@ -22,7 +22,7 @@ module.exports = {
applicableVehicleType: 'Applicable vehicle type', // 适用车型
dynamicType: 'Dynamic type', // 动力类型
inputExample: 'Input example:', // 输入示例
// 国内标准
// 外来标准法规文本库
domesticStandard: {
treeSearchPlaceholder: 'Please enter the tree system', // 请输入树状图体系
collection: 'Invoice Collection', // 收藏
@@ -31,11 +31,6 @@ module.exports = {
exportZipName: 'Domestic standards (with documents)', // 国内标准法规(带文件)
templateName: 'Import templates for domestic standards' // 国内标准法规导入模板
},
overseasStandard: {
exportFileName: 'Overseas standard',
exportZipName: 'Overseas standard (with documentation)',
templateName: 'Import template of overseas standard'
},
standardDetail: {
standardNumber: 'Standard Number',
problemOccurrenceTime: 'Problem occurrence time',
@@ -22,7 +22,7 @@ module.exports = {
applicableVehicleType: '适用车型', // 适用车型
dynamicType: '动力类型', // 动力类型
inputExample: '输入示例:',
// 国内标准
// 外来标准法规文本库
foreignStandard: {
treeSearchPlaceholder: '请输入树状图体系',
collection: '收藏',
@@ -31,11 +31,6 @@ module.exports = {
exportZipName: '国内标准(带文件)',
templateName: '国内标准导入模板'
},
overseasStandard: {
exportFileName: '海外标准',
exportZipName: '海外标准(带文件)',
templateName: '海外标准导入模板'
},
standardDetail: {
standardNumber: '标准编号',
problemOccurrenceTime: '问题发生时间',
@@ -32,17 +32,17 @@
class="tree-operate-node-btn"
@click.stop="handleAddTreeNode(record)"
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"
@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">
<i class="iconfont icon-bianji" />
</a-button>
<!-- 删除根节点不能删除-->
<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"
@click.stop="handleDelTreeNode(record)">
<i class="iconfont icon-shanchu_" />
@@ -60,21 +60,21 @@
<search ref="searchRef"
:url="url"
:get-query-condition-func="getQueryConditionFunc"
search-has="foreignStandard:search"
search-has="domesticStandard:search"
@search="searchQuery"
@reset="searchReset" />
</div>
<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"
:showUploadList="false"
:multiple="false"
:headers="tokenHeader"
:action="importExcelUrl"
v-has="'foreignStandard:import'"
v-has="'domesticStandard:import'"
@change="handleImportExcel">
<a-button type="primary" icon="download" ghost>{{ $t('import') }}</a-button>
</a-upload>
@@ -82,7 +82,7 @@
<a-button icon="upload"
type="primary"
ghost
v-has="'foreignStandard:export'"
v-has="'domesticStandard:export'"
@click="handleExportXls($t('standardRegulationLibrary.foreignStandard.exportFileName'))">
{{ $t('export') }}
</a-button>
@@ -90,7 +90,7 @@
<a-button icon="upload"
type="primary"
ghost
v-has="'foreignStandard:exportFile'"
v-has="'domesticStandard:exportFile'"
@click="handleFileExport($t('standardRegulationLibrary.foreignStandard.exportFileName'))">
{{ $t('exportWithFile') }}
</a-button>
@@ -98,17 +98,17 @@
<a-button type="primary"
icon="download"
ghost
v-has="'foreignStandard:downTemplate'"
v-has="'domesticStandard:downTemplate'"
@click="downTemplate($t('standardRegulationLibrary.foreignStandard.templateName'))">
{{ $t('templateDownload') }}
</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')
}}
</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') }}
</a-button>
<!-- 移出标准-->
@@ -116,7 +116,7 @@
icon="minus-circle"
ghost
@click="handleRemoveStandard"
v-has="'foreignStandard:removeStandard'">
v-has="'domesticStandard:removeStandard'">
{{ $t('standardRegulationLibrary.removeStandard') }}
</a-button>
</div>
@@ -270,31 +270,31 @@ export default {
{
text: this.$t('standardRegulationLibrary.foreignStandard.cancelCollection'),
clickEvent: 'handleCollection',
has: 'foreignStandard:collection'
has: 'domesticStandard:collection'
},
// 编辑
{
text: this.$t('edit'),
clickEvent: 'handleEdit',
has: 'foreignStandard:edit'
has: 'domesticStandard:edit'
},
// 删除
{
text: this.$t('delete'),
clickEvent: 'handleDelete',
has: 'foreignStandard:delete'
has: 'domesticStandard:delete'
}
],
getTableHeaderFunc: getForeignStandardTableHeader,
getQueryConditionFunc: getForeignStandardSearchForm,
url: {
list: '/laws/standard/foreign/getCommonPage',
delete: '/laws/standard/foreign/deleteByIdsAndModule',
deleteBatch: '/laws/standard/foreign/deleteByIdsAndModule',
downTemplateUrl: '/laws/standard/foreign/templateDownload', // 下载模板
exportXlsUrl: '/laws/standard/foreign/exportData', // 导出
exportZipUrl: '/laws/standard/foreign/exportDataWithFile', // 带文件导出
importExcelUrl: '/laws/standard/foreign/importExcelWithData' // 导入
list: '/laws/standard/domestic/getCommonPage',
delete: '/laws/standard/domestic/deleteByIdsAndModule',
deleteBatch: '/laws/standard/domestic/deleteByIdsAndModule',
downTemplateUrl: '/laws/standard/domestic/templateDownload', // 下载模板
exportXlsUrl: '/laws/standard/domestic/exportData', // 导出
exportZipUrl: '/laws/standard/domestic/exportDataWithFile', // 带文件导出
importExcelUrl: '/laws/standard/domestic/importExcelWithData' // 导入
},
yesValue: YesOrNoEnum.YES.value,
noValue: YesOrNoEnum.NO.value,