fix(系统设置): 菜单布局调整

--bug=1037884 --user=宋昌昌 建议:页面布局建议 https://www.tapd.cn/55049933/s/1482238
This commit is contained in:
song-cc-rock 2024-03-27 18:52:14 +08:00 committed by Craftsman
parent b979c71ee4
commit 4f5980d46c
4 changed files with 41 additions and 37 deletions

View File

@ -64,7 +64,7 @@
size: 'medium',
}
);
const emit = defineEmits(['update:modelValue', 'update:inputValue', 'change', 'clear']);
const emit = defineEmits(['update:modelValue', 'update:inputValue', 'change', 'clear', 'blur']);
const { t } = useI18n();
@ -142,6 +142,7 @@
innerInputValue.value = '';
tagsLength.value += 1;
}
emit('blur');
}
function tagInputEnter() {

View File

@ -132,26 +132,6 @@ const Setting: AppRouteRecordRaw = {
],
},
},
{
path: 'authorizedmanagement',
name: SettingRouteEnum.SETTING_SYSTEM_AUTHORIZED_MANAGEMENT,
component: () => import('@/views/setting/system/authorizedManagement/index.vue'),
meta: {
locale: 'menu.settings.system.authorizedManagement',
roles: ['SYSTEM_AUTH:READ'],
isTopMenu: true,
},
},
{
path: 'log',
name: SettingRouteEnum.SETTING_SYSTEM_LOG,
component: () => import('@/views/setting/system/log/index.vue'),
meta: {
locale: 'menu.settings.system.log',
roles: ['SYSTEM_LOG:READ'],
isTopMenu: true,
},
},
// 任务中心
{
path: 'taskCenter',
@ -173,6 +153,26 @@ const Setting: AppRouteRecordRaw = {
isTopMenu: true,
},
},
{
path: 'authorizedmanagement',
name: SettingRouteEnum.SETTING_SYSTEM_AUTHORIZED_MANAGEMENT,
component: () => import('@/views/setting/system/authorizedManagement/index.vue'),
meta: {
locale: 'menu.settings.system.authorizedManagement',
roles: ['SYSTEM_AUTH:READ'],
isTopMenu: true,
},
},
{
path: 'log',
name: SettingRouteEnum.SETTING_SYSTEM_LOG,
component: () => import('@/views/setting/system/log/index.vue'),
meta: {
locale: 'menu.settings.system.log',
roles: ['SYSTEM_LOG:READ'],
isTopMenu: true,
},
},
],
},
{
@ -395,16 +395,6 @@ const Setting: AppRouteRecordRaw = {
],
},
},
{
path: 'log',
name: SettingRouteEnum.SETTING_ORGANIZATION_LOG,
component: () => import('@/views/setting/organization/log/index.vue'),
meta: {
locale: 'menu.settings.organization.log',
roles: ['ORGANIZATION_LOG:READ'],
isTopMenu: true,
},
},
// 任务中心
{
path: 'taskCenter',
@ -416,6 +406,16 @@ const Setting: AppRouteRecordRaw = {
isTopMenu: true,
},
},
{
path: 'log',
name: SettingRouteEnum.SETTING_ORGANIZATION_LOG,
component: () => import('@/views/setting/organization/log/index.vue'),
meta: {
locale: 'menu.settings.organization.log',
roles: ['ORGANIZATION_LOG:READ'],
isTopMenu: true,
},
},
],
},
],

View File

@ -180,14 +180,10 @@
<MsTagsInput
v-model:model-value="tags"
:disabled="!hasAnyPermission(['PROJECT_BUG:READ+UPDATE'])"
@blur="changeTag"
/>
</a-form-item>
</a-form>
<!-- <span class="label"> {{ t('bugManagement.detail.tag') }}</span>-->
<!-- <span style="width: 200px">-->
<!-- <MsTag v-for="item of tags" :key="item"> {{ item }} </MsTag>-->
<!-- </span>-->
</div>
</div>
@ -195,7 +191,7 @@
</div>
<!-- 所属平台不一致, 详情不展示, 展示空面板 -->
<div v-else>
<a-empty> 暂无内容 </a-empty>
<a-empty> {{ $t('messageBox.noContent') }} </a-empty>
</div>
</a-spin>
</template>
@ -563,6 +559,12 @@
bugDetailTabRef.value?.handleSave();
}, 300);
const changeTag = debounce(() => {
detailInfo.value.tags = tags.value;
rightLoading.value = true;
bugDetailTabRef.value?.handleSave();
}, 300);
//
const options = {
resetBtn: false, //

View File

@ -496,6 +496,7 @@
id: props.detailInfo.id,
projectId: currentProjectId.value,
templateId: props.detailInfo.templateId,
tags: props.detailInfo.tags,
deleteLocalFileIds: form.value.deleteLocalFileIds,
unLinkRefIds: form.value.unLinkRefIds,
linkFileIds: form.value.linkFileIds,