From 022296b66770d68edb142eeaf7a81a115002745e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Wed, 26 Jun 2024 15:07:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=9F=BA=E7=A1=80=E6=A8=A1=E5=9D=97bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8CJTable=E6=B3=A8=E5=86=8C=E4=B8=BA?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/system/en.js | 3 +- src/common/lang/system/zh.js | 3 +- src/main.js | 3 +- src/views/system/DictItemList.vue | 20 +- src/views/system/DictList.vue | 20 +- src/views/system/RoleUserList.vue | 187 ++++++---- src/views/system/UserList.vue | 60 ++-- .../FriendshipLinkList.vue | 35 +- .../modules/FriendshipLinkModal.vue | 39 +- src/views/system/modules/RoleModal.vue | 51 ++- src/views/system/modules/SelectUserModal.vue | 7 +- src/views/system/modules/UserModal.vue | 339 ++++++++++-------- .../tags/modules/TagContentDictListDrawer.vue | 8 +- .../system/tags/pages/ClauseSplittingList.vue | 8 +- src/views/system/tags/pages/StandardList.vue | 23 +- src/views/system/tags/pages/TagContent.vue | 6 +- 16 files changed, 487 insertions(+), 325 deletions(-) diff --git a/src/common/lang/system/en.js b/src/common/lang/system/en.js index 367e3f3..e1b7e41 100644 --- a/src/common/lang/system/en.js +++ b/src/common/lang/system/en.js @@ -84,7 +84,8 @@ module.exports = { isShelf: 'Shelf Or Not', sort: 'Sort', shelfWarn: 'the link is empty please fill in the link first', - maxLinksReached: '当前上架链接已达上限!' + maxLinksReached: 'The current link listing limit has been reached!', + logo: 'LOGO' }, // 联络人管理 contact: { diff --git a/src/common/lang/system/zh.js b/src/common/lang/system/zh.js index f3c204b..b0017ae 100644 --- a/src/common/lang/system/zh.js +++ b/src/common/lang/system/zh.js @@ -86,7 +86,8 @@ module.exports = { isShelf: '是否上架', sort: '排序', shelfWarn: '链接为空,请先填写链接', - maxLinksReached: '当前上架链接已达上限!' + maxLinksReached: '当前上架链接已达上限!', + logo: 'LOGO' }, // 联络人管理 contact: { diff --git a/src/main.js b/src/main.js index 01bd4a6..0859639 100644 --- a/src/main.js +++ b/src/main.js @@ -50,7 +50,7 @@ import JeroComponents from '@/components/jero/index' import JDictComponenets from '@comp/dict/index.js' -console.log('ant-design-vue version:', version) +import JTable from '@comp/jero/JTable.vue' // Vue.prototype.rules = rules Vue.config.productionTip = false Vue.use(Storage, config.storageOptions) @@ -62,6 +62,7 @@ Vue.use(VueI18n) Vue.use(Viewer) Vue.use(JeroComponents) Vue.use(JDictComponenets) +Vue.component('JTable', JTable) Viewer.setDefaults({ // 需要配置的属性 注意属性并没有引号 title: false, diff --git a/src/views/system/DictItemList.vue b/src/views/system/DictItemList.vue index 792b6bc..6c7dc4f 100644 --- a/src/views/system/DictItemList.vue +++ b/src/views/system/DictItemList.vue @@ -20,15 +20,12 @@ - + - - - + + + {{ $t('normal') }} {{ $t('disable') }} @@ -53,7 +50,6 @@ ref="table" can-drag :class="{'tree-table': attributeType === TagsAttributeTypeEnums.TREE.value}" - :bordered="true" size="middle" rowKey="id" :columns="columns" @@ -99,26 +95,26 @@ export default { { title: this.$t('name'), align: 'center', - ellipsis: true, + width: 120, dataIndex: 'itemText' }, { title: this.$t('englishName'), align: 'center', - ellipsis: true, + width: 120, dataIndex: 'enName' }, { title: this.$t('dict.dataValue'), align: 'center', - width: 150, + width: 100, dataIndex: 'itemValue' }, { title: this.$t('operation'), dataIndex: 'action', align: 'center', - width: 150, + width: 100, scopedSlots: { customRender: 'action' } } ], diff --git a/src/views/system/DictList.vue b/src/views/system/DictList.vue index 08aab7a..ccb4237 100644 --- a/src/views/system/DictList.vue +++ b/src/views/system/DictList.vue @@ -1,7 +1,5 @@