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 @@ {{text}} - + {{$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.documentLibraryModuleDisplay') }} @@ -109,6 +110,13 @@ :placeholder="$t('system.tag.selectWhetherDisplayList')" /> + + + + + + @@ -126,6 +134,13 @@ :placeholder="$t('pleaseSelect') + $t('system.tag.search')" /> + + + + + + @@ -244,6 +259,10 @@ export default { isShowList: [ { required: true, message: this.$t('system.tag.selectWhetherDisplayList'), trigger: 'change' } ], + // 详情页展示 + isShowForm: [ + { required: true, message: this.$t('system.tag.isShowDetailMessage'), trigger: 'change' } + ], // 展示区域 showArea: [ { required: true, message: this.$t('pleaseSelect') + this.$t('system.tag.showArea'), trigger: 'change' } @@ -252,6 +271,10 @@ export default { isQuery: [ { required: true, message: this.$t('pleaseSelect') + this.$t('system.tag.search'), trigger: 'change' } ], + // 是否排序 + sortFlag: [ + { required: true, message: this.$t('pleaseSelect') + this.$t('system.tag.isSort'), trigger: 'change' } + ], // 其它模块展示 isShowLawsList: [ { required: true, message: this.$t('system.tag.selectDisplayListRegulations'), trigger: 'change' } @@ -276,24 +299,26 @@ export default { } }, watch: { + // 具体值对应关系可以去commonEnums.js中查看 FieldType 'form.fieldShowType' (val) { + val = val + '' // this.contentFlag=val - if (val == 0) { + if (val === '0') { this.contentOption = [...this.contentOption2] this.isTagContent = true - } else if (val == 3 || val == 4) { + } else if (val === '3' || val === '4') { this.contentOption = [...this.contentOption1] this.isTagContent = true } else { this.isTagContent = false } - if (val == 7) { + if (val === '7') { this.isSearch = false this.form.isQuery = 0 } else { this.isSearch = true } - if (val == 1 || val == 8 || val == 9 || val == 10 || val == 11 || val == 'sel_user') { + if (val === '1' || val === '8' || val === '9' || val === '10' || val === '11' || val === 'sel_user') { this.isLength = true } else { this.isLength = false @@ -306,12 +331,14 @@ export default { }, add () { this.edit({ - isModel: this.type + isModel: this.type, // 默认所属模块 + isShowForm: 1 // 默认在详情页展示 }) }, edit (record) { this.$refs.editForm && this.$refs.editForm.resetFields() this.form = Object.assign({}, record) + this.form.isModel = Number(this.form.isModel) this.isEdit = !!this.form.id this.initData() this.visible = true diff --git a/src/views/system/tags/modules/TagContentDictItemModal.vue b/src/views/system/tags/modules/TagContentDictItemModal.vue index 6b1ca7b7..ea037cb7 100644 --- a/src/views/system/tags/modules/TagContentDictItemModal.vue +++ b/src/views/system/tags/modules/TagContentDictItemModal.vue @@ -22,17 +22,17 @@ /> - + event.target.value = event.target.value.trim()" /> - + {{item.name}} @@ -63,13 +63,16 @@ - - diff --git a/src/views/system/tags/pages/ClauseSplittingList.vue b/src/views/system/tags/pages/ClauseSplittingList.vue index 1564869d..f634c5f0 100644 --- a/src/views/system/tags/pages/ClauseSplittingList.vue +++ b/src/views/system/tags/pages/ClauseSplittingList.vue @@ -51,7 +51,7 @@ - + {{ $t('edit') }} {{ text || text === 0 ? text : global.emptyLine }} - - + + {{ $t('edit') }} {{ text || text === 0 ? text : global.emptyLine }} - + {{ $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 @@
{{ $t('system.tag.documentLibraryModuleDisplay') }}