|
@@ -1,5 +1,67 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
-const collapseVModel = ref<string[]>([])
|
|
|
|
|
|
|
+import NotificationCard from './components/NotificationCard.vue'
|
|
|
|
|
+
|
|
|
|
|
+const collapseVModel = ref<string[]>(['1'])
|
|
|
|
|
+
|
|
|
|
|
+const navList = [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: 'Milestone Update',
|
|
|
|
|
+ count: 2
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: 'Container Status Update',
|
|
|
|
|
+ count: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: 'Departure/Arrival Delay',
|
|
|
|
|
+ count: '99+'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: 'ETD/ETA Change',
|
|
|
|
|
+ count: 0
|
|
|
|
|
+ }
|
|
|
|
|
+]
|
|
|
|
|
+
|
|
|
|
|
+const activeItem = ref('Milestone Update')
|
|
|
|
|
+const setActiveItem = (item: string) => {
|
|
|
|
|
+ activeItem.value = item
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const activeName = ref('first')
|
|
|
|
|
+
|
|
|
|
|
+const handleClick = () => {}
|
|
|
|
|
+
|
|
|
|
|
+const data = {
|
|
|
|
|
+ isRead: true,
|
|
|
|
|
+ title: 'Milestone Update',
|
|
|
|
|
+ mode: 'Ocean Freight',
|
|
|
|
|
+ no: 'HBOL: SHJN2301234',
|
|
|
|
|
+ tag: 'Booking Confirmed',
|
|
|
|
|
+ location: 'Hong Kong',
|
|
|
|
|
+ time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
+}
|
|
|
|
|
+const notificationList = [
|
|
|
|
|
+ {
|
|
|
|
|
+ numericRecords: 3,
|
|
|
|
|
+ isRead: true,
|
|
|
|
|
+ title: 'Milestone Update',
|
|
|
|
|
+ mode: 'Ocean Freight',
|
|
|
|
|
+ no: 'HBOL: SHJN2301234',
|
|
|
|
|
+ tag: 'Booking Confirmed',
|
|
|
|
|
+ location: 'Hong Kong',
|
|
|
|
|
+ time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ numericRecords: 0,
|
|
|
|
|
+ isRead: false,
|
|
|
|
|
+ title: 'Milestone Update Daily Summary (Jan 10, 2025)',
|
|
|
|
|
+ mode: 'Air Freight',
|
|
|
|
|
+ no: 'HBOL: SHJN2301234',
|
|
|
|
|
+ tag: 'Booking Confirmed',
|
|
|
|
|
+ location: 'Hong Kong',
|
|
|
|
|
+ time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
+ }
|
|
|
|
|
+]
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
@@ -8,23 +70,49 @@ const collapseVModel = ref<string[]>([])
|
|
|
<div class="left-nav">
|
|
<div class="left-nav">
|
|
|
<el-collapse v-model="collapseVModel">
|
|
<el-collapse v-model="collapseVModel">
|
|
|
<el-collapse-item title="Event Notifications" name="1">
|
|
<el-collapse-item title="Event Notifications" name="1">
|
|
|
- <div class="collapse-item">
|
|
|
|
|
- <div class="active-sign"></div>
|
|
|
|
|
- <span>Milestone Update</span>
|
|
|
|
|
- <div class="count">
|
|
|
|
|
- <span>2</span>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ @click="setActiveItem(item.title)"
|
|
|
|
|
+ class="collapse-item"
|
|
|
|
|
+ :class="{ 'is-active': item.title === activeItem }"
|
|
|
|
|
+ v-for="item in navList"
|
|
|
|
|
+ :key="item.title"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div v-if="item.title === activeItem" class="active-sign"></div>
|
|
|
|
|
+ <span>{{ item.title }}</span>
|
|
|
|
|
+ <div class="count" v-if="item.count">
|
|
|
|
|
+ <span>{{ item.count }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="collapse-item">
|
|
|
|
|
- <div class="active-sign"></div>
|
|
|
|
|
- Container Status Update
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="collapse-item">Departure/Arrival Delay</div>
|
|
|
|
|
- <div class="collapse-item">ETD/ETA Change</div>
|
|
|
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
</el-collapse>
|
|
|
|
|
+ <div
|
|
|
|
|
+ @click="setActiveItem('Feature Update')"
|
|
|
|
|
+ class="collapse-item"
|
|
|
|
|
+ style="margin-top: 4px; font-weight: 700"
|
|
|
|
|
+ :class="{ 'is-active': activeItem === 'Feature Update' }"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div v-if="activeItem === 'Feature Update'" class="active-sign"></div>
|
|
|
|
|
+ <span>Feature Update</span>
|
|
|
|
|
+ <div class="count">
|
|
|
|
|
+ <span>33</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="right-content">
|
|
|
|
|
+ <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
|
|
|
|
+ <el-tab-pane label="All Notifications" name="first">
|
|
|
|
|
+ <div style="display: flex; flex-direction: column; gap: 16px; padding: 10px 16px">
|
|
|
|
|
+ <NotificationCard
|
|
|
|
|
+ v-for="(item, index) in notificationList"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :data="item"
|
|
|
|
|
+ ></NotificationCard>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="Unread" name="second">Config</el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="Read" name="third">Role</el-tab-pane>
|
|
|
|
|
+ </el-tabs>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="right-content"></div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -38,33 +126,44 @@ const collapseVModel = ref<string[]>([])
|
|
|
padding: 0 24px;
|
|
padding: 0 24px;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
}
|
|
}
|
|
|
|
|
+.system-message {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+}
|
|
|
.left-nav {
|
|
.left-nav {
|
|
|
width: 280px;
|
|
width: 280px;
|
|
|
padding: 24px;
|
|
padding: 24px;
|
|
|
- padding-right: 16px;
|
|
|
|
|
|
|
+ padding-right: 0;
|
|
|
|
|
+ border-right: 1px solid var(--color-border);
|
|
|
|
|
+ .el-collapse {
|
|
|
|
|
+ padding-right: 16px;
|
|
|
|
|
+ border-top: none;
|
|
|
|
|
+ :deep(.el-collapse-item__header) {
|
|
|
|
|
+ font-weight: 700;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
.collapse-item {
|
|
.collapse-item {
|
|
|
- position: relative;
|
|
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
|
|
+ position: relative;
|
|
|
width: 240px;
|
|
width: 240px;
|
|
|
height: 48px;
|
|
height: 48px;
|
|
|
|
|
+ margin-bottom: 4px;
|
|
|
padding: 0 16px;
|
|
padding: 0 16px;
|
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
|
&:hover {
|
|
&:hover {
|
|
|
- background-color: var(--color-table-header-bg);
|
|
|
|
|
- .active-sign {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: 50%;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- transform: translateY(-50%);
|
|
|
|
|
- width: 4px;
|
|
|
|
|
- height: 21px;
|
|
|
|
|
- border-radius: 12px;
|
|
|
|
|
- background-color: var(--color-theme);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ background-color: var(--color-system-message-nav-bg);
|
|
|
|
|
+ }
|
|
|
|
|
+ .active-sign {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 50%;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ transform: translateY(-50%);
|
|
|
|
|
+ width: 4px;
|
|
|
|
|
+ height: 21px;
|
|
|
|
|
+ border-radius: 12px;
|
|
|
|
|
+ background-color: var(--color-theme);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
.count {
|
|
.count {
|
|
|
display: inline-flex;
|
|
display: inline-flex;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
@@ -83,7 +182,14 @@ const collapseVModel = ref<string[]>([])
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
&.is-active {
|
|
&.is-active {
|
|
|
- background-color: var(--color-table-header-bg);
|
|
|
|
|
|
|
+ background-color: var(--color-system-message-nav-bg);
|
|
|
|
|
+ & > span {
|
|
|
|
|
+ font-weight: 700;
|
|
|
|
|
+ color: var(--color-theme);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ &:last-child {
|
|
|
|
|
+ margin-bottom: 8px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
:deep(.el-collapse-item__header) {
|
|
:deep(.el-collapse-item__header) {
|
|
@@ -91,4 +197,20 @@ const collapseVModel = ref<string[]>([])
|
|
|
padding: 16px;
|
|
padding: 16px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+.right-content {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ padding-top: 24px;
|
|
|
|
|
+ :deep(.el-tabs__nav-scroll) {
|
|
|
|
|
+ padding-left: 16px;
|
|
|
|
|
+ border-bottom: 1px solid var(--color-border);
|
|
|
|
|
+ .el-tabs__item {
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ color: var(--color-neutral-1);
|
|
|
|
|
+ &.is-active {
|
|
|
|
|
+ font-weight: 700;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|