|
@@ -3,7 +3,7 @@
|
|
|
<div class="notificationSelectionBar">
|
|
<div class="notificationSelectionBar">
|
|
|
<div
|
|
<div
|
|
|
:class="
|
|
:class="
|
|
|
- currentNotification === notificationType.system ? 'notificationSelected' : 'notification'
|
|
|
|
|
|
|
+ currentNotification === notificationType.system ? 'snotificationSelected' : 'notification'
|
|
|
"
|
|
"
|
|
|
@click="changeNotification(notificationType.system)"
|
|
@click="changeNotification(notificationType.system)"
|
|
|
>系统消息通知</div
|
|
>系统消息通知</div
|
|
@@ -11,7 +11,7 @@
|
|
|
<div
|
|
<div
|
|
|
:class="
|
|
:class="
|
|
|
currentNotification === notificationType.problemHandle
|
|
currentNotification === notificationType.problemHandle
|
|
|
- ? 'notificationSelected'
|
|
|
|
|
|
|
+ ? 'pnotificationSelected'
|
|
|
: 'notification'
|
|
: 'notification'
|
|
|
"
|
|
"
|
|
|
@click="changeNotification(notificationType.problemHandle)"
|
|
@click="changeNotification(notificationType.problemHandle)"
|
|
@@ -25,52 +25,59 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
- import { ref } from 'vue';
|
|
|
|
|
- import systemNotificationTable from './components/systemNotificationTable.vue';
|
|
|
|
|
- import problemHandleTable from './components/problemHandleTable.vue';
|
|
|
|
|
|
|
+import { ref } from 'vue';
|
|
|
|
|
+import systemNotificationTable from './components/systemNotificationTable.vue';
|
|
|
|
|
+import problemHandleTable from './components/problemHandleTable.vue';
|
|
|
|
|
|
|
|
- enum notificationType {
|
|
|
|
|
- system,
|
|
|
|
|
- problemHandle,
|
|
|
|
|
- }
|
|
|
|
|
- const currentNotification = ref(notificationType.system);
|
|
|
|
|
|
|
+enum notificationType {
|
|
|
|
|
+ system,
|
|
|
|
|
+ problemHandle,
|
|
|
|
|
+}
|
|
|
|
|
+const currentNotification = ref(notificationType.system);
|
|
|
|
|
|
|
|
- const changeNotification = (notificationType: notificationType) => {
|
|
|
|
|
- currentNotification.value = notificationType;
|
|
|
|
|
- };
|
|
|
|
|
|
|
+const changeNotification = (notificationType: notificationType) => {
|
|
|
|
|
+ currentNotification.value = notificationType;
|
|
|
|
|
+};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
- .notificationPage {
|
|
|
|
|
- height: calc(100vh - 64px - 18px);
|
|
|
|
|
- background-color: rgba(255, 255, 255, 1);
|
|
|
|
|
- padding: 24px 44px 35px 21px;
|
|
|
|
|
- position: relative;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+.notificationPage {
|
|
|
|
|
+ height: calc(100vh - 64px - 18px);
|
|
|
|
|
+ background-color: rgba(255, 255, 255, 1);
|
|
|
|
|
+ padding: 24px 44px 35px 21px;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- .notificationSelectionBar {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- width: 376px;
|
|
|
|
|
- height: 38px;
|
|
|
|
|
- border: 1px solid #d9d9d9;
|
|
|
|
|
- border-radius: 4px;
|
|
|
|
|
|
|
+.notificationSelectionBar {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ width: 376px;
|
|
|
|
|
+ height: 38px;
|
|
|
|
|
+ border: 1px solid #d9d9d9;
|
|
|
|
|
+ background: rgba(0, 0, 0, 0.02);
|
|
|
|
|
+ margin-bottom: 24px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ .notification {
|
|
|
|
|
+ width: 50%;
|
|
|
background: rgba(0, 0, 0, 0.02);
|
|
background: rgba(0, 0, 0, 0.02);
|
|
|
- margin-bottom: 24px;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- .notification {
|
|
|
|
|
- width: 50%;
|
|
|
|
|
- border-radius: 4px;
|
|
|
|
|
- background: rgba(0, 0, 0, 0.02);
|
|
|
|
|
- line-height: 36px;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- }
|
|
|
|
|
- .notificationSelected {
|
|
|
|
|
- width: 50%;
|
|
|
|
|
- outline: 1px solid #1890ff;
|
|
|
|
|
- border-radius: 4px;
|
|
|
|
|
- background: rgba(24, 144, 255, 0.15);
|
|
|
|
|
- line-height: 36px;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ line-height: 36px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
|
|
+ .snotificationSelected {
|
|
|
|
|
+ width: 50%;
|
|
|
|
|
+ outline: 1px solid #1890ff;
|
|
|
|
|
+ background: rgba(24, 144, 255, 0.15);
|
|
|
|
|
+ line-height: 36px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ border-radius: 4px 0 0 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .pnotificationSelected {
|
|
|
|
|
+ width: 50%;
|
|
|
|
|
+ outline: 1px solid #1890ff;
|
|
|
|
|
+ background: rgba(24, 144, 255, 0.15);
|
|
|
|
|
+ line-height: 36px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ border-radius: 0 4px 4px 0;
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|