diff --git a/src/views/index.vue b/src/views/index.vue
index b4e4f79..ca17239 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -137,6 +137,7 @@
:key="k"
class="notice-feed__item"
:class="{ 'is-unread': !m.read }"
+ @click="onMessageClick(k)"
>
{{ m.message }}
@@ -506,6 +507,13 @@ const focusMessages = () => {
noticeTab.value = 'message';
};
+const onMessageClick = (index: number) => {
+ const notices = noticeStore.state.notices;
+ if (notices[index] && !notices[index].read) {
+ notices[index].read = true;
+ }
+};
+
const onSummaryClick = (card: { menuComponent?: string }) => {
if (card.menuComponent) {
openMenu(card.menuComponent);
@@ -558,6 +566,8 @@ onMounted(() => {
/* A. 欢迎区 */
.welcome-banner {
+ position: relative;
+ overflow: hidden;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
@@ -566,9 +576,17 @@ onMounted(() => {
padding: 20px 24px;
margin-bottom: 16px;
border-radius: 8px;
- background: linear-gradient(120deg, var(--el-color-primary) 0%, #53a8ff 45%, #79bbff 100%);
+ background: linear-gradient(to right, #0047ab 0%, #1e90ff 100%);
color: #fff;
- box-shadow: 0 4px 12px rgba(64, 158, 255, 0.25);
+ box-shadow:
+ 0 4px 20px rgba(0, 71, 171, 0.22),
+ 0 1px 4px rgba(30, 144, 255, 0.12);
+
+ &__main,
+ &__actions {
+ position: relative;
+ z-index: 1;
+ }
&__greet {
font-size: 22px;
diff --git a/src/views/oa/erp/salesContractDashboard/index.vue b/src/views/oa/erp/salesContractDashboard/index.vue
index 8a97ae2..7b0f007 100644
--- a/src/views/oa/erp/salesContractDashboard/index.vue
+++ b/src/views/oa/erp/salesContractDashboard/index.vue
@@ -164,9 +164,6 @@ const customerChartHeight = computed(() => {
/** 加载仪表盘数据 */
const loadDashboard = async () => {
- if (!checkPermi(DASHBOARD_QUERY_PERM)) {
- return;
- }
if (!dateRange.value?.length || dateRange.value.length !== 2) {
proxy?.$modal.msgWarning('请选择签订时间区间');
return;