fix(消息管理): 新值消息设置跳转
--bug=1039050 --user=王旭 【消息管理】查看消息页面无消息设置入口 https://www.tapd.cn/55049933/s/1495470
This commit is contained in:
parent
e2aaab073b
commit
ed4a860bbb
|
@ -33,6 +33,13 @@
|
||||||
</div>
|
</div>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
|
<div class="case flex-1">
|
||||||
|
<a-divider direction="horizontal" margin="8px" />
|
||||||
|
<div class="flex items-center px-[20px]" :class="{ clickable: 'hovered' }" @click="openMessageManage">
|
||||||
|
<MsIcon type="icon-icon_setting_filled" class="folder-icon" />
|
||||||
|
<div class="folder-name mx-[4px]">{{ t('ms.message.setting') }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider direction="vertical" margin="8px"></a-divider>
|
<a-divider direction="vertical" margin="8px"></a-divider>
|
||||||
<div class="flex-1 justify-between p-[24px]">
|
<div class="flex-1 justify-between p-[24px]">
|
||||||
|
@ -118,6 +125,7 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
import { useVModel } from '@vueuse/core';
|
import { useVModel } from '@vueuse/core';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
|
@ -139,6 +147,7 @@
|
||||||
import usePathMap from '@/hooks/usePathMap';
|
import usePathMap from '@/hooks/usePathMap';
|
||||||
|
|
||||||
import { MessageItem } from '@/models/projectManagement/message';
|
import { MessageItem } from '@/models/projectManagement/message';
|
||||||
|
import { ProjectManagementRouteEnum } from '@/enums/routeEnum';
|
||||||
|
|
||||||
import useAppStore from '../../../store/modules/app';
|
import useAppStore from '../../../store/modules/app';
|
||||||
import useUserStore from '../../../store/modules/user';
|
import useUserStore from '../../../store/modules/user';
|
||||||
|
@ -154,7 +163,7 @@
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'update:visible', val: boolean): void;
|
(e: 'update:visible', val: boolean): void;
|
||||||
}>();
|
}>();
|
||||||
|
const router = useRouter();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { jumpRouteByMapKey, getRouteMapByAlias } = usePathMap();
|
const { jumpRouteByMapKey, getRouteMapByAlias } = usePathMap();
|
||||||
const innerVisible = useVModel(props, 'visible', emit);
|
const innerVisible = useVModel(props, 'visible', emit);
|
||||||
|
@ -249,6 +258,14 @@
|
||||||
loadMessageHistoryList('all', key);
|
loadMessageHistoryList('all', key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function openMessageManage() {
|
||||||
|
window.open(
|
||||||
|
`${window.location.origin}#${
|
||||||
|
router.resolve({ name: ProjectManagementRouteEnum.PROJECT_MANAGEMENT_MESSAGE_MANAGEMENT }).fullPath
|
||||||
|
}?orgId=${appStore.currentOrgId}&pId=${appStore.currentProjectId}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// 切换消息状态
|
// 切换消息状态
|
||||||
function changeShowType(value: string | number | boolean, ev: Event) {
|
function changeShowType(value: string | number | boolean, ev: Event) {
|
||||||
messageHistoryList.value = [];
|
messageHistoryList.value = [];
|
||||||
|
@ -358,4 +375,17 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
line-height: 1.8715;
|
line-height: 1.8715;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.case {
|
||||||
|
/* 底部样式 */
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
padding: 20px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clickable {
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.3s ease;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -12,4 +12,5 @@ export default {
|
||||||
'ms.message.make.as.read': 'Mark all as read',
|
'ms.message.make.as.read': 'Mark all as read',
|
||||||
'ms.message.notice.title': 'Notification Title',
|
'ms.message.notice.title': 'Notification Title',
|
||||||
'ms.message.me': ' {var}Me',
|
'ms.message.me': ' {var}Me',
|
||||||
|
'ms.message.setting': 'message setting',
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,4 +12,5 @@ export default {
|
||||||
'ms.message.make.as.read': '全部标为已读',
|
'ms.message.make.as.read': '全部标为已读',
|
||||||
'ms.message.notice.title': '通知标题',
|
'ms.message.notice.title': '通知标题',
|
||||||
'ms.message.me': ' {var}我',
|
'ms.message.me': ' {var}我',
|
||||||
|
'ms.message.setting': '消息设置',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue