[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
@@ -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,