|
@@ -1,8 +1,11 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import NotificationMessageCard from '@/components/NotificationMessageCard/src/NotificationMessageCard.vue'
|
|
import NotificationMessageCard from '@/components/NotificationMessageCard/src/NotificationMessageCard.vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
|
|
|
+import { useNotificationMessage } from '@/stores/modules/notificationMessage'
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
|
|
+const notificationMsgStore = useNotificationMessage()
|
|
|
|
|
+
|
|
|
const loading = ref(false)
|
|
const loading = ref(false)
|
|
|
|
|
|
|
|
const notificationType = ref('all')
|
|
const notificationType = ref('all')
|
|
@@ -65,6 +68,7 @@ const handleSettingMessage = () => {
|
|
|
const closeDrawer = () => {
|
|
const closeDrawer = () => {
|
|
|
notificationList.value = []
|
|
notificationList.value = []
|
|
|
notificationType.value = 'all'
|
|
notificationType.value = 'all'
|
|
|
|
|
+ notificationMsgStore.markMessageAsRead()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const notificationListRef = ref<HTMLElement | null>(null)
|
|
const notificationListRef = ref<HTMLElement | null>(null)
|
|
@@ -119,7 +123,12 @@ const notificationListRef = ref<HTMLElement | null>(null)
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="notification-content" ref="notificationListRef">
|
|
<div class="notification-content" ref="notificationListRef">
|
|
|
- <NotificationMessageCard @see-all="drawerRef.handleClose()" :data="notificationList" />
|
|
|
|
|
|
|
+ <NotificationMessageCard
|
|
|
|
|
+ @see-all="drawerRef.handleClose()"
|
|
|
|
|
+ @view-more="drawerRef.handleClose()"
|
|
|
|
|
+ @jump-tracking="drawerRef.handleClose()"
|
|
|
|
|
+ :data="notificationList"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
|
</template>
|
|
</template>
|