From 93e23da64db03afabae16fd58ffaeb1cf259fa4a Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 22 Aug 2023 09:10:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=AE=A1=E7=90=86-=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 8 +- src/assets/less/common.less | 7 ++ src/common/lang/system/en.js | 1 + src/common/lang/system/zh.js | 4 + src/components/customField/TableData.vue | 4 +- .../pages/CollectionDocumentLibraryList.vue | 2 +- src/views/system/tags/modules/AreaModal.vue | 2 +- .../system/tags/modules/StandardDrawer.vue | 39 +++++++-- .../tags/modules/TagContentDictItemModal.vue | 82 +++++++++++++------ .../tags/modules/TagContentDictListDrawer.vue | 57 +++++++++++-- .../system/tags/modules/TagContentModal.vue | 5 ++ src/views/system/tags/modules/TagTable.vue | 30 ------- .../system/tags/pages/ClauseSplittingList.vue | 8 +- src/views/system/tags/pages/StandardList.vue | 6 +- src/views/system/tags/pages/TagContent.vue | 6 +- src/views/system/tags/pages/TagItem.vue | 5 +- 16 files changed, 181 insertions(+), 85 deletions(-) delete mode 100644 src/views/system/tags/modules/TagTable.vue diff --git a/src/api/api.js b/src/api/api.js index 27dd5d1f..c2365ed4 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -109,6 +109,10 @@ const editAreaData = (params) => postAction('/tag/LawsArea/edit', params) const addTag = (params) => postAction('/tag/lawsTag/add', params) // 标签管理- 编辑 const editTag = (params) => postAction('/tag/lawsTag/edit', params) +// 标签内容管理- 新增 +const addCategoryItem = (params) => postAction('/sys/category/add', params) +const editCategoryItem = (params) => postAction('/sys/category/edit', params) + // 通过文件的id获取文件的相应信息 const getFileInfo = (params) => getAction('/sys/oss/file/queryById', params) @@ -175,5 +179,7 @@ export { getFileInfo, addTag, - editTag + editTag, + addCategoryItem, + editCategoryItem } diff --git a/src/assets/less/common.less b/src/assets/less/common.less index 0e79a95b..a3f8e35f 100644 --- a/src/assets/less/common.less +++ b/src/assets/less/common.less @@ -62,6 +62,13 @@ padding-top: 15px; padding-bottom: 15px; } +// 表格内操作列按钮的样式 +.ant-table-tbody .table-action a{ + margin: 0 8px; +} +.ant-table-tbody .table-action a:nth-of-type(1) { + margin-left: 0; +} /*列表页面弹出modal*/ .ant-modal-cust-warp { diff --git a/src/common/lang/system/en.js b/src/common/lang/system/en.js index df713a20..c46e99c7 100644 --- a/src/common/lang/system/en.js +++ b/src/common/lang/system/en.js @@ -26,6 +26,7 @@ module.exports = { documentLibraryListDisplay: '文档库列表展示', selectWhetherDisplayList: '请选择是否文档库列表展示', search: '是否搜索', + isSort: '是否排序', displayOtherModules: '其它模块展示', regulationsListDisplay: '法规清单展示', selectDisplayListRegulations: '请选择法规清单是否展示', diff --git a/src/common/lang/system/zh.js b/src/common/lang/system/zh.js index df713a20..8f612d03 100644 --- a/src/common/lang/system/zh.js +++ b/src/common/lang/system/zh.js @@ -23,9 +23,13 @@ module.exports = { required: '是否必填', optionContent: '选项内容', documentLibraryModuleDisplay: '文档库模块展示', + documentLibraryListDisplay: '文档库列表展示', selectWhetherDisplayList: '请选择是否文档库列表展示', + isShowDetail: '详情页展示', + isShowDetailMessage: '请选择是否详情页展示', search: '是否搜索', + isSort: '是否排序', displayOtherModules: '其它模块展示', regulationsListDisplay: '法规清单展示', selectDisplayListRegulations: '请选择法规清单是否展示', diff --git a/src/components/customField/TableData.vue b/src/components/customField/TableData.vue index 057acb55..e5f39cb9 100644 --- a/src/components/customField/TableData.vue +++ b/src/components/customField/TableData.vue @@ -13,7 +13,7 @@ :columns="columns" @change="tableOnChange" > - + {{ !record.collectFlag || record.collectFlag === 0 ? $t('collection') :$t('cancelCollection') }} @@ -26,7 +26,7 @@ {{ ol.text }} - + {{text}} diff --git a/src/views/personalCenter/myCollection/pages/CollectionDocumentLibraryList.vue b/src/views/personalCenter/myCollection/pages/CollectionDocumentLibraryList.vue index 761a9f01..19d332d2 100644 --- a/src/views/personalCenter/myCollection/pages/CollectionDocumentLibraryList.vue +++ b/src/views/personalCenter/myCollection/pages/CollectionDocumentLibraryList.vue @@ -66,7 +66,7 @@ -
+
{{$t('personalCenter.collection.cancelCollection')}}
diff --git a/src/views/system/tags/modules/AreaModal.vue b/src/views/system/tags/modules/AreaModal.vue index 7d5d6b56..c8c44749 100644 --- a/src/views/system/tags/modules/AreaModal.vue +++ b/src/views/system/tags/modules/AreaModal.vue @@ -39,7 +39,7 @@ -
+
{{ $t('edit') }} - + -
+ - -
+ + -
+
{{ $t('system.tag.dictionaryConfiguration') }} {{ $t('edit') }} @@ -68,7 +68,7 @@ - + @@ -107,7 +107,7 @@ export default { title: this.$t('system.tag.labelType'), align: 'left', width: 100, - dataIndex: 'attributeTypeName', + dataIndex: 'attributeType_dictText', scopedSlots: { customRender: 'text' } }, { diff --git a/src/views/system/tags/pages/TagItem.vue b/src/views/system/tags/pages/TagItem.vue index 774c8447..f8a7871f 100644 --- a/src/views/system/tags/pages/TagItem.vue +++ b/src/views/system/tags/pages/TagItem.vue @@ -11,14 +11,13 @@