diff --git a/src/components/Table/DrawerListTable/index.vue b/src/components/Table/DrawerListTable/index.vue index 4c1d34113..a34d47186 100644 --- a/src/components/Table/DrawerListTable/index.vue +++ b/src/components/Table/DrawerListTable/index.vue @@ -196,18 +196,23 @@ export default { } let title = this.title + if (!title && this.resource) { title = this.resource } + if (!title) { title = this.$route.meta?.title title = title.replace('List', '').replace('列表', '') title = _.trimEnd(title, 's') } + if (!title) { title = this.$t('NoTitle') } + let actionLabel = '' + if (action === 'clone' || action === 'create') { actionLabel = this.$t('Create') } else if (action === 'update') { @@ -215,7 +220,9 @@ export default { } else if (action === 'detail') { actionLabel = this.$t('Detail') } + title = actionLabel + this.$t('WordSep') + toLowerCaseExcludeAbbr(title) + return title }, getDefaultDrawer(action) { diff --git a/src/styles/ztree_icon.scss b/src/styles/ztree_icon.scss index 17bd7e276..c3554de7c 100644 --- a/src/styles/ztree_icon.scss +++ b/src/styles/ztree_icon.scss @@ -50,7 +50,8 @@ .ztree li span.button, .view_icon { - &.windows_ico_docu { + &.windows_ico_docu, + &.windows_ad_ico_docu { background: url('./icons/windows.png') no-repeat center left transparent; }