|
@@ -137,15 +137,19 @@ const AddRulesTable = ref()
|
|
|
const subscribeInit = ref({})
|
|
const subscribeInit = ref({})
|
|
|
|
|
|
|
|
const DefaultTimeZone = ref()
|
|
const DefaultTimeZone = ref()
|
|
|
-const isInitSystem = JSON.parse(localStorage.getItem('userInfo')).subscribe_notification_default_init
|
|
|
|
|
|
|
+const isInitSystem = JSON.parse(
|
|
|
|
|
+ localStorage.getItem('userInfo')
|
|
|
|
|
+).subscribe_notification_default_init
|
|
|
DefaultTimeZone.value = 'UTC' + moment().tz(moment.tz.guess()).format('Z')
|
|
DefaultTimeZone.value = 'UTC' + moment().tz(moment.tz.guess()).format('Z')
|
|
|
const FirstInitSubscribe = () => {
|
|
const FirstInitSubscribe = () => {
|
|
|
- if(isInitSystem) {
|
|
|
|
|
- $api.FirstInitSubscribe({
|
|
|
|
|
- default_time_zone: DefaultTimeZone.value
|
|
|
|
|
- }).then((res:any) => {
|
|
|
|
|
- getsubscribe()
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (isInitSystem) {
|
|
|
|
|
+ $api
|
|
|
|
|
+ .FirstInitSubscribe({
|
|
|
|
|
+ default_time_zone: DefaultTimeZone.value
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ getsubscribe()
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
getsubscribe()
|
|
getsubscribe()
|
|
|
}
|
|
}
|
|
@@ -166,7 +170,7 @@ const getsubscribe = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handleTabClick = (tab: any) => {
|
|
const handleTabClick = (tab: any) => {
|
|
|
- if(tab.paneName == 'Subscribe Notifications') {
|
|
|
|
|
|
|
+ if (tab.paneName == 'Subscribe Notifications') {
|
|
|
isMilestoneChecked.value = false
|
|
isMilestoneChecked.value = false
|
|
|
isContainerChecked.value = false
|
|
isContainerChecked.value = false
|
|
|
isDepartureChecked.value = false
|
|
isDepartureChecked.value = false
|
|
@@ -266,7 +270,11 @@ onMounted(() => {
|
|
|
></AddRules>
|
|
></AddRules>
|
|
|
</div>
|
|
</div>
|
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
|
- <el-collapse-item style="margin: 8px 0;" name="Container" :class="isContainerChecked ? 'border_ischecked' : ''">
|
|
|
|
|
|
|
+ <el-collapse-item
|
|
|
|
|
+ style="margin: 8px 0"
|
|
|
|
|
+ name="Container"
|
|
|
|
|
+ :class="isContainerChecked ? 'border_ischecked' : ''"
|
|
|
|
|
+ >
|
|
|
<template #title>
|
|
<template #title>
|
|
|
<div class="flex">
|
|
<div class="flex">
|
|
|
<div class="collapse_left" :class="isContainerAdded ? 'text_ischecked' : ''">
|
|
<div class="collapse_left" :class="isContainerAdded ? 'text_ischecked' : ''">
|
|
@@ -286,7 +294,11 @@ onMounted(() => {
|
|
|
></AddRules>
|
|
></AddRules>
|
|
|
</div>
|
|
</div>
|
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
|
- <el-collapse-item style="margin-bottom: 8px;" name="Departure" :class="isDepartureChecked ? 'border_ischecked' : ''">
|
|
|
|
|
|
|
+ <el-collapse-item
|
|
|
|
|
+ style="margin-bottom: 8px"
|
|
|
|
|
+ name="Departure"
|
|
|
|
|
+ :class="isDepartureChecked ? 'border_ischecked' : ''"
|
|
|
|
|
+ >
|
|
|
<template #title>
|
|
<template #title>
|
|
|
<div class="flex">
|
|
<div class="flex">
|
|
|
<div class="collapse_left" :class="isDepartureAdded ? 'text_ischecked' : ''">
|
|
<div class="collapse_left" :class="isDepartureAdded ? 'text_ischecked' : ''">
|
|
@@ -377,6 +389,9 @@ onMounted(() => {
|
|
|
.SubscribeCollapse {
|
|
.SubscribeCollapse {
|
|
|
padding: 0 24px 24px 24px;
|
|
padding: 0 24px 24px 24px;
|
|
|
border-bottom: 1px solid var(--color-select-border);
|
|
border-bottom: 1px solid var(--color-select-border);
|
|
|
|
|
+ :deep(.el-icon svg) {
|
|
|
|
|
+ width: 0;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
:deep(.el-tabs__nav-wrap:after) {
|
|
:deep(.el-tabs__nav-wrap:after) {
|
|
|
height: 2px;
|
|
height: 2px;
|
|
@@ -471,9 +486,9 @@ onMounted(() => {
|
|
|
:deep(.el-collapse-item__arrow.is-active) {
|
|
:deep(.el-collapse-item__arrow.is-active) {
|
|
|
transform: rotate(-180deg);
|
|
transform: rotate(-180deg);
|
|
|
}
|
|
}
|
|
|
-:deep(.el-icon svg) {
|
|
|
|
|
- width: 0;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// :deep(.el-icon svg) {
|
|
|
|
|
+// width: 0;
|
|
|
|
|
+// }
|
|
|
.monitoring_flex {
|
|
.monitoring_flex {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|