CN-1612 feat: 部分css重构内容:策略policy列表与策略新增
This commit is contained in:
@@ -352,6 +352,10 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.padding-r-20 {
|
||||||
|
padding-right: 20px
|
||||||
|
}
|
||||||
|
|
||||||
.tooltip-column-name {
|
.tooltip-column-name {
|
||||||
color: #aeb0b9;
|
color: #aeb0b9;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
width: 328px;
|
width: 328px;
|
||||||
height: 89px;
|
height: 89px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
transition: all .2s;
|
transition: all var(--el-transition-duration-fast);
|
||||||
|
|
||||||
.header__bottom__line {
|
.header__bottom__line {
|
||||||
width:288px;
|
width:288px;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.pop-custom {
|
.pop-custom {
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
border: 1px solid #EBEEF5;
|
border: 1px solid var(--el-border-color-lighter);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 55px;
|
top: 55px;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
|
$text-color-primary: var(--el-text-color-primary);
|
||||||
|
|
||||||
.subscriber-map {
|
.subscriber-map {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: #fff;
|
fill: var(--el-fill-color-blank);
|
||||||
}
|
}
|
||||||
.subscriber-map-header {
|
.subscriber-map-header {
|
||||||
height: 34px;
|
height: 34px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -20,7 +22,7 @@
|
|||||||
}
|
}
|
||||||
.subscriber-map-body {
|
.subscriber-map-body {
|
||||||
position: relative;
|
position: relative;
|
||||||
border: 1px solid #E2E5EC;
|
border: 1px solid var(--el-border-color-light);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
height: calc(100% - 34px);
|
height: calc(100% - 34px);
|
||||||
|
|
||||||
@@ -44,7 +46,7 @@
|
|||||||
|
|
||||||
svg {
|
svg {
|
||||||
transition: height .1s linear, width .1s linear;
|
transition: height .1s linear, width .1s linear;
|
||||||
fill: #fff;
|
fill: var(--el-fill-color-blank);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.map-marker--human {
|
&.map-marker--human {
|
||||||
@@ -67,7 +69,7 @@
|
|||||||
&.map-marker--hover {
|
&.map-marker--hover {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
border: 2px solid rgba(255,255,255,1);
|
border: 2px solid var(--el-color-white);
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
&.map-marker--human svg {
|
&.map-marker--human svg {
|
||||||
@@ -82,7 +84,7 @@
|
|||||||
&.map-marker--highlight {
|
&.map-marker--highlight {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
border: 2px solid #fff;
|
border: 2px solid var(--el-color-white);
|
||||||
background-color: rgb(204,68,68);
|
background-color: rgb(204,68,68);
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
|
||||||
@@ -148,7 +150,7 @@
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
}
|
}
|
||||||
.item__value {
|
.item__value {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -163,7 +165,7 @@
|
|||||||
.item-record__header {
|
.item-record__header {
|
||||||
font-family: Helvetica;
|
font-family: Helvetica;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
@@ -219,7 +221,7 @@
|
|||||||
border-left: 2px #cccccc dotted;
|
border-left: 2px #cccccc dotted;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
transition: all 0.2s;
|
transition: all var(--el-transition-duration-fast);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.timeline__info--item {
|
.timeline__info--item {
|
||||||
@@ -282,7 +284,7 @@
|
|||||||
height: 34px;
|
height: 34px;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
transition: all 0.2s;
|
transition: all var(--el-transition-duration-fast);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,7 +328,7 @@
|
|||||||
.subscriber-map-point-tooltip__time {
|
.subscriber-map-point-tooltip__time {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.subscriber-map-point-tooltip__coordinates {
|
.subscriber-map-point-tooltip__coordinates {
|
||||||
@@ -342,7 +344,7 @@
|
|||||||
}
|
}
|
||||||
.coordinate__value {
|
.coordinate__value {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -426,7 +428,7 @@
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
}
|
}
|
||||||
.item__value {
|
.item__value {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -437,7 +439,7 @@
|
|||||||
.body__tracking {
|
.body__tracking {
|
||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #38ACD2;
|
color: var(--el-color-business);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
|
$text-color-primary: var(--el-text-color-primary);
|
||||||
|
$bg-color-page: var(--el-bg-color-page);
|
||||||
|
|
||||||
.detection-form {
|
.detection-form {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
|
||||||
.detection-form-header {
|
.detection-form-header {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
@@ -17,12 +20,16 @@
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
width: 1200px;
|
width: 1200px;
|
||||||
|
|
||||||
|
.rule-definition {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.el-collapse-item__header {
|
.el-collapse-item__header {
|
||||||
width: 1200px !important;
|
width: 1200px !important;
|
||||||
height: 56px !important;
|
height: 56px !important;
|
||||||
background: #FFFFFF !important;
|
background: var(--el-fill-color-blank) !important;
|
||||||
border-left: 1px solid #EFF2F5;
|
border-left: 1px solid $bg-color-page;
|
||||||
border-right: 1px solid #EFF2F5;
|
border-right: 1px solid $bg-color-page;
|
||||||
//box-shadow: 0 2px 4px 0 rgba(51,51,51,0.02) !important;
|
//box-shadow: 0 2px 4px 0 rgba(51,51,51,0.02) !important;
|
||||||
border-radius: 4px !important;
|
border-radius: 4px !important;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -38,7 +45,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-collapse-item__wrap {
|
.el-collapse-item__wrap {
|
||||||
border: 1px solid #EFF2F5;
|
border: 1px solid $bg-color-page;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,18 +68,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-collapse-header-no {
|
.form-collapse-header-no {
|
||||||
background: #E2E5EC;
|
background: var(--el-border-color-light);
|
||||||
color: #333333;
|
color: $text-color-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-collapse-header-no-active {
|
.form-collapse-header-no-active {
|
||||||
background: #38ACD2;
|
background: var(--el-color-business);
|
||||||
color: #FFFFFF;
|
color: var(--el-color-white);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-collapse-header-title {
|
.form-collapse-header-title {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #333333;
|
color: $text-color-primary;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -85,11 +92,11 @@
|
|||||||
height: 90px;
|
height: 90px;
|
||||||
padding: 16px 12px;
|
padding: 16px 12px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border: 1px #E2E5EC solid;
|
border: 1px var(--el-border-color-light) solid;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
||||||
.trigger-block-item {
|
.trigger-block-item {
|
||||||
@@ -132,6 +139,7 @@
|
|||||||
.el-collapse-item__content {
|
.el-collapse-item__content {
|
||||||
padding-bottom: 0 !important;
|
padding-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-input__wrapper, .el-select__wrapper {
|
.el-input__wrapper, .el-select__wrapper {
|
||||||
height: 24px !important;
|
height: 24px !important;
|
||||||
line-height: 24px !important;
|
line-height: 24px !important;
|
||||||
@@ -139,6 +147,7 @@
|
|||||||
width: 112px;
|
width: 112px;
|
||||||
margin: 0 12px;
|
margin: 0 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-input__inner {
|
.el-input__inner {
|
||||||
padding: 0 15px !important;
|
padding: 0 15px !important;
|
||||||
}
|
}
|
||||||
@@ -160,7 +169,7 @@
|
|||||||
width: calc(100% + 40px);
|
width: calc(100% + 40px);
|
||||||
height: 60px;
|
height: 60px;
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
box-shadow: 0 -1px 4px 0 rgba(0,0,0,0.10);
|
box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 0.10);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -169,9 +178,11 @@
|
|||||||
.el-overlay-message-box, .el-message-box {
|
.el-overlay-message-box, .el-message-box {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-overlay-message-box {
|
.el-overlay-message-box {
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-message-box .el-overlay-message-box {
|
.is-message-box .el-overlay-message-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -179,13 +190,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-switch {
|
.el-switch {
|
||||||
--el-switch-on-color: #38ACD2;
|
--el-switch-on-color: var(--el-color-business);
|
||||||
--el-switch-off-color: #C0CEDB;
|
--el-switch-off-color: #C0CEDB;
|
||||||
}
|
}
|
||||||
|
|
||||||
.del-model {
|
.del-model {
|
||||||
&.el-message-box {
|
&.el-message-box {
|
||||||
max-width: 480px !important;
|
max-width: 480px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding-bottom: 0 !important;
|
padding-bottom: 0 !important;
|
||||||
@@ -195,9 +208,9 @@
|
|||||||
.el-message-box__header {
|
.el-message-box__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid var(--el-border-color-lighter);
|
||||||
height: 42px;
|
height: 42px;
|
||||||
background: #F7F7F7;
|
background: var(--cn-bg-color-lighter);
|
||||||
box-shadow: 0 1px 0 0 rgba(53, 54, 54, 0.08);
|
box-shadow: 0 1px 0 0 rgba(53, 54, 54, 0.08);
|
||||||
padding-left: 21px;
|
padding-left: 21px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
@@ -220,7 +233,7 @@
|
|||||||
|
|
||||||
.el-message-box__title {
|
.el-message-box__title {
|
||||||
font-size: 14px !important;
|
font-size: 14px !important;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
@@ -229,7 +242,7 @@
|
|||||||
.el-message-box__content {
|
.el-message-box__content {
|
||||||
height: 96px;
|
height: 96px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@@ -245,13 +258,14 @@
|
|||||||
|
|
||||||
.el-message-box__btns {
|
.el-message-box__btns {
|
||||||
height: 52px;
|
height: 52px;
|
||||||
border-top: 1px solid #eee;
|
border-top: 1px solid var(--el-border-color-lighter);
|
||||||
box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.07);
|
box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.07);
|
||||||
padding: 13px 1px 12px 0 !important;
|
padding: 13px 1px 12px 0 !important;
|
||||||
|
|
||||||
.el-button {
|
.el-button {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-button--small {
|
.el-button--small {
|
||||||
padding: 8px 21px !important;
|
padding: 8px 21px !important;
|
||||||
line-height: 12px;
|
line-height: 12px;
|
||||||
@@ -264,7 +278,7 @@
|
|||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-button:nth-child(2) {
|
.el-button:nth-child(2) {
|
||||||
@@ -272,8 +286,10 @@
|
|||||||
height: 28px;
|
height: 28px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
background-color: #2d8cf0;
|
//background-color: #2d8cf0;
|
||||||
border-color: #2d8cf0;
|
//border-color: #2d8cf0;
|
||||||
|
background-color: var(--el-color-business);
|
||||||
|
border-color: var(--el-color-business);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
|
$text-color-primary: var(--el-text-color-primary);
|
||||||
|
|
||||||
.detection-drawer {
|
.detection-drawer {
|
||||||
padding: 20px;
|
height: 100vh;
|
||||||
height: 100%;
|
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
padding: 20px 20px 90px;
|
||||||
|
|
||||||
.el-drawer {
|
.el-drawer {
|
||||||
width: 440px !important;
|
width: 440px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-collapse-item__content {
|
.el-collapse-item__content {
|
||||||
padding-bottom: 0 !important;
|
padding-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
@@ -18,7 +21,7 @@
|
|||||||
.detection-drawer-title, .basic-function-value, basic-description-value, .drawer-trigger-minutes {
|
.detection-drawer-title, .basic-function-value, basic-description-value, .drawer-trigger-minutes {
|
||||||
font-family: NotoSansSChineseRegular;
|
font-family: NotoSansSChineseRegular;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #717171;
|
color: var(--el-text-color-regular);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -28,7 +31,7 @@
|
|||||||
.drawer-basic-header {
|
.drawer-basic-header {
|
||||||
font-family: NotoSansHans-Black;
|
font-family: NotoSansHans-Black;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
@@ -51,37 +54,45 @@
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.padding-b-0 {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.detection-drawer-title {
|
.detection-drawer-title {
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
.drawer-title__equal {
|
||||||
|
margin: 0 6px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.basic-description-value {
|
.basic-description-value {
|
||||||
font-family: NotoSansSChineseRegular;
|
font-family: NotoSansSChineseRegular;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
.basic-function-value {
|
.basic-function-value {
|
||||||
color: #046ECA;
|
color: var(--el-color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-trigger-minutes {
|
.drawer-trigger-minutes {
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detection-drawer-collapse {
|
.detection-drawer-collapse {
|
||||||
background: #FFFFFF;
|
background: var(--el-fill-color-blank);
|
||||||
border: 1px solid rgba(226, 229, 236, 1);
|
border: 1px solid var(--el-border-color-light);
|
||||||
border-radius: 4px;
|
border-radius: var(--el-border-radius-base);
|
||||||
//box-shadow: 0 1px 0 0 rgba(226, 229, 236, 1);
|
//box-shadow: 0 1px 0 0 rgba(226, 229, 236, 1);
|
||||||
|
|
||||||
.el-collapse-item__header {
|
.el-collapse-item__header {
|
||||||
height: 32px !important;
|
height: 32px !important;
|
||||||
background-color: #F7F7F7 !important;
|
background-color: var(--cn-bg-color-lighter) !important;
|
||||||
padding-left: 12px !important;
|
padding-left: 12px !important;
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: var(--el-border-radius-base) var(--el-border-radius-base) 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-collapse-content {
|
.drawer-collapse-content {
|
||||||
@@ -97,11 +108,19 @@
|
|||||||
.drawer-collapse-trigger {
|
.drawer-collapse-trigger {
|
||||||
font-family: NotoSansSChineseRegular;
|
font-family: NotoSansSChineseRegular;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #353636;
|
color: $text-color-primary;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
.trigger__value {
|
||||||
|
color: #046ECA;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detection-drawer-collapse__margin {
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -206,5 +206,10 @@ $color-light: var(--el-border-color-light);
|
|||||||
padding-left: 10px !important;
|
padding-left: 10px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content__display {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,24 @@
|
|||||||
|
$color-primary: var(--el-color-primary);
|
||||||
|
|
||||||
.detection-table {
|
.detection-table {
|
||||||
|
position: relative;
|
||||||
.el-table td, .el-table th {
|
.el-table td, .el-table th {
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-table th > .cell, .el-table .cell {
|
.el-table th > .cell, .el-table .cell {
|
||||||
padding-left: 0 !important;
|
padding-left: 0 !important;
|
||||||
padding-right: 0 !important;
|
padding-right: 0 !important;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-table--enable-row-transition .el-table__body td, .el-table--border th {
|
.el-table--enable-row-transition .el-table__body td, .el-table--border th {
|
||||||
border-left: 0 !important;
|
border-left: 0 !important;
|
||||||
border-right: 0 !important;
|
border-right: 0 !important;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #353636;
|
color: var(--el-text-color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-table--border th {
|
.el-table--border th {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -21,7 +27,7 @@
|
|||||||
.el-table__header-wrapper {
|
.el-table__header-wrapper {
|
||||||
height: 32px !important;
|
height: 32px !important;
|
||||||
line-height: 32px !important;
|
line-height: 32px !important;
|
||||||
border-bottom: 1px solid #EBEEF5;
|
border-bottom: 1px solid var(--el-border-color-lighter);
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-table__body td {
|
.el-table__body td {
|
||||||
@@ -32,15 +38,17 @@
|
|||||||
height: 32px !important;
|
height: 32px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.policy-library-tip {
|
.policy-library-tip {
|
||||||
max-width: 180px;
|
max-width: 180px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
|
||||||
.tip__header {
|
.tip__header {
|
||||||
color: #353636;
|
color: var(--el-text-color-primary);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tip__tags {
|
.tip__tags {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
@@ -48,21 +56,23 @@
|
|||||||
.tip__tag {
|
.tip__tag {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
padding: 2px 10px;
|
padding: 2px 10px;
|
||||||
background-color: #EBF7FA;
|
background-color: var(--el-color-primary-light-9);
|
||||||
color: #046ECA;
|
color: $color-primary;
|
||||||
box-shadow: 0 2px 4px 0 rgba(51,51,51,0.02);
|
box-shadow: 0 2px 4px 0 rgba(51, 51, 51, 0.02);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tip__description {
|
.tip__description {
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
color: #666;
|
color: var(--el-text-color-regular);
|
||||||
|
|
||||||
&.tip__description--non {
|
&.tip__description--non {
|
||||||
color: #999;
|
color: var(--el-color-info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.detection-tag-blue, .detection-tag-red, .detection-tag-gray, .detection-tag-status0, .detection-tag-status1 {
|
.detection-tag-blue, .detection-tag-red, .detection-tag-gray, .detection-tag-status0, .detection-tag-status1 {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
@@ -76,35 +86,35 @@
|
|||||||
.detection-tag-blue {
|
.detection-tag-blue {
|
||||||
background: rgba(56, 172, 210, 0.10);
|
background: rgba(56, 172, 210, 0.10);
|
||||||
box-shadow: 0 2px 4px 0 rgba(51, 51, 51, 0.02);
|
box-shadow: 0 2px 4px 0 rgba(51, 51, 51, 0.02);
|
||||||
color: #046ECA;
|
color: $color-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detection-tag-red {
|
.detection-tag-red {
|
||||||
background: rgba(226, 97, 84, 0.12);
|
background: rgba(226, 97, 84, 0.12);
|
||||||
color: #E26154;
|
color: var(--el-color-danger);
|
||||||
}
|
}
|
||||||
|
|
||||||
.detection-tag-gray {
|
.detection-tag-gray {
|
||||||
background: rgba(113, 113, 113, 0.12);
|
background: rgba(113, 113, 113, 0.12);
|
||||||
color: #717171;
|
color: var(--el-text-color-regular);
|
||||||
}
|
}
|
||||||
|
|
||||||
.detection-tag-status0 {
|
.detection-tag-status0 {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
background: rgba(113, 113, 113, 0.12);
|
background: rgba(113, 113, 113, 0.12);
|
||||||
color: #717171;
|
color: var(--el-text-color-regular);
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detection-tag-status1 {
|
.detection-tag-status1 {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
background: rgba(126, 159, 84, 0.12);
|
background: rgba(126, 159, 84, 0.12);
|
||||||
color: #7E9F54;
|
color: var(--el-color-success);
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detection-table-library {
|
.detection-table-library {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #046ECA;
|
color: $color-primary;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +1,29 @@
|
|||||||
|
$color-white: var(--el-color-white);
|
||||||
|
|
||||||
.top-tools__left {
|
.top-tools__left {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
|
.btn__width {
|
||||||
|
width: 72px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.top-tool-btn {
|
.top-tool-btn {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
width: 28px;
|
width: 28px;
|
||||||
border: 1px solid #DEDEDE;
|
border: 1px solid var(--el-color-info-light-7);
|
||||||
outline: none;
|
outline: none;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background-color: #F9F9F9;
|
background-color: var(--el-fill-color-lighter);
|
||||||
transition: background-color linear .1s;
|
transition: background-color linear .1s;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
//font-family: $fontFamily !important;
|
//font-family: $fontFamily !important;
|
||||||
i {
|
i {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #575757;
|
color: var(--el-text-color-regular);
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,73 +31,71 @@
|
|||||||
.top-tool-btn:disabled {
|
.top-tool-btn:disabled {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
opacity: 0.66;
|
opacity: 0.66;
|
||||||
|
|
||||||
i {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-tool-btn:hover:not(.cn-btn-disabled) {
|
.top-tool-btn:hover:not(.cn-btn-disabled) {
|
||||||
border: 1px solid #DEDEDE;
|
border: 1px solid var(--el-color-info-light-7);
|
||||||
background-color: #EBF1F4;
|
background-color: var(--cn-bg-color-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-tool-btn:focus:not(.cn-btn-disabled), .top-tool-btn.is-focus {
|
.top-tool-btn:focus:not(.cn-btn-disabled), .top-tool-btn.is-focus {
|
||||||
background-color: #E0E7EA;
|
background-color: var(--el-color-primary-light-9);
|
||||||
border: 1px solid #DEDEDE;
|
border: 1px solid var(--el-color-info-light-7);
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: #575757;
|
color: var(--el-text-color-regular);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-tool-btn--delete.top-tool-btn:focus:not(.cn-btn-disabled) {
|
.top-tool-btn--delete.top-tool-btn:focus:not(.cn-btn-disabled) {
|
||||||
background-color: #EBF1F4;
|
background-color: var(--cn-bg-color-light);
|
||||||
border-color: #FFC4B9;
|
//border-color: #FFC4B9;
|
||||||
|
border-color: var(--el-color-danger-light-5);
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: #F0745A;
|
//color: #F0745A;
|
||||||
|
color: var(--el-color-danger);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-tool-btn--create {
|
.top-tool-btn--create {
|
||||||
background-color: #38ACD2 !important;
|
background-color: var(--el-color-business) !important;
|
||||||
border-color: #2E88A6 !important;
|
border-color: #2E88A6 !important;
|
||||||
color: #FFFFFF;
|
color: $color-white;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: #FFFFFF;
|
color: $color-white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-tool-btn--create:hover {
|
.top-tool-btn--create:hover {
|
||||||
background-color: #57B8D9 !important;
|
background-color: #57B8D9 !important;
|
||||||
border-color: #2E88A6 !important;
|
border-color: #2E88A6 !important;
|
||||||
color: #FFFFFF;
|
color: $color-white;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: #FFFFFF;
|
color: $color-white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-tool-btn--create:focus {
|
.top-tool-btn--create:focus {
|
||||||
background-color: #31A5CD !important;
|
background-color: #31A5CD !important;
|
||||||
border-color: #2E88A6 !important;
|
border-color: #2E88A6 !important;
|
||||||
color: #FFFFFF !important;
|
color: $color-white !important;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: #FFFFFF !important;
|
color: $color-white !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-tool-btn--create:disabled {
|
.top-tool-btn--create:disabled {
|
||||||
opacity: 0.66;
|
opacity: 0.66;
|
||||||
background-color: #38ACD2 !important;
|
background-color: var(--el-color-business) !important;
|
||||||
border-color: #2E88A6 !important;
|
border-color: #2E88A6 !important;
|
||||||
color: #FFFFFF;
|
color: $color-white;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: #FFFFFF;
|
color: $color-white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -127,8 +131,17 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
.search__input {
|
||||||
|
height: 28px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search__btn {
|
||||||
|
border-radius: 0 2px 2px 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.el-input--small {
|
.el-input--small {
|
||||||
line-height: 27px;
|
line-height: 27px;
|
||||||
|
|
||||||
.el-input__wrapper {
|
.el-input__wrapper {
|
||||||
height: 28px !important;
|
height: 28px !important;
|
||||||
border-radius: 2px 0 0 2px !important;
|
border-radius: 2px 0 0 2px !important;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.detection__event-severity-bar {
|
.detection__event-severity-bar {
|
||||||
flex: 0 0 175px;
|
flex: 0 0 175px;
|
||||||
background-color: white;
|
background-color: var(--el-fill-color-blank);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
@@ -19,6 +19,59 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detection {
|
||||||
|
padding: 20px;
|
||||||
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
.detection-title {
|
||||||
|
font-family: NotoSansHans-Black;
|
||||||
|
line-height: 24px;
|
||||||
|
font-size: 24px;
|
||||||
|
color: var(--el-text-color-primary);
|
||||||
|
font-weight: 900;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.detection-title-label {
|
||||||
|
font-family: NotoSansSChineseRegular;
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--el-text-color-regular);
|
||||||
|
letter-spacing: 0;
|
||||||
|
line-height: 18px;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.detection-content {
|
||||||
|
margin-top: 15px;
|
||||||
|
width: 100%;
|
||||||
|
height: calc(100% - 96px);
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.detection-filter {
|
||||||
|
width: 320px;
|
||||||
|
height: calc(100% + 34px);
|
||||||
|
background: var(--el-fill-color-blank);
|
||||||
|
border: 1px solid var(--el-border-color-light);
|
||||||
|
border-radius: var(--el-border-radius-base);
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detection-block {
|
||||||
|
width: calc(100% - 340px);
|
||||||
|
|
||||||
|
.detection-table {
|
||||||
|
width: 100%;
|
||||||
|
height: calc(100% - 44px);
|
||||||
|
border-radius: var(--el-border-radius-base);
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.detection__list {
|
.detection__list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
background: #fff; //盖住fixed产生的阴影
|
background: #fff; //盖住fixed产生的阴影
|
||||||
:deep .is-leaf {
|
:deep .is-leaf {
|
||||||
color: #1b2e3b;
|
color: #1b2e3b;
|
||||||
background: #ebeef5;
|
background: var(--el-border-color-lighter);
|
||||||
}
|
}
|
||||||
.el-range-editor--small.el-input__wrapper {
|
.el-range-editor--small.el-input__wrapper {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
|
|||||||
@@ -231,32 +231,32 @@ export const eventSeverity = {
|
|||||||
info: 'info'
|
info: 'info'
|
||||||
}
|
}
|
||||||
export const eventSeverityColor = {
|
export const eventSeverityColor = {
|
||||||
critical: '#D84C4C',
|
critical: 'var(--cn-color-critical)',
|
||||||
high: '#FE845D',
|
high: 'var(--cn-color-high)',
|
||||||
medium: '#FFB65A',
|
medium: 'var(--cn-color-medium)',
|
||||||
low: '#FFD82D',
|
low: 'var(--cn-color-low)',
|
||||||
info: '#D1BD50'
|
info: 'var(--cn-color-info)'
|
||||||
}
|
}
|
||||||
export const riskLevelColor = {
|
export const riskLevelColor = {
|
||||||
5: '#D84C4C',
|
5: 'var(--cn-color-critical)',
|
||||||
4: '#FE845D',
|
4: 'var(--cn-color-high)',
|
||||||
3: '#FFB65A',
|
3: 'var(--cn-color-medium)',
|
||||||
2: '#FFD82D',
|
2: 'var(--cn-color-low)',
|
||||||
1: '#D1BD50'
|
1: 'var(--cn-color-info)'
|
||||||
}
|
}
|
||||||
export const riskLevelColor1 = {
|
export const riskLevelColor1 = {
|
||||||
'High Risk': '#D84C4C',
|
'High Risk': 'var(--cn-color-critical)',
|
||||||
Suspicious: '#FE845D',
|
Suspicious: 'var(--cn-color-high)',
|
||||||
'Moderate Risk': '#FFB65A',
|
'Moderate Risk': 'var(--cn-color-medium)',
|
||||||
'Low Risk': '#FFD82D',
|
'Low Risk': 'var(--cn-color-low)',
|
||||||
Trustworthy: '#D1BD50'
|
Trustworthy: 'var(--cn-color-info)'
|
||||||
}
|
}
|
||||||
export const eventSeverityColor1 = {
|
export const eventSeverityColor1 = {
|
||||||
Critical: '#D84C4C',
|
Critical: 'var(--cn-color-critical)',
|
||||||
High: '#FE845D',
|
High: 'var(--cn-color-high)',
|
||||||
Medium: '#FFB65A',
|
Medium: 'var(--cn-color-medium)',
|
||||||
Low: '#FFD82D',
|
Low: 'var(--cn-color-low)',
|
||||||
Info: '#D1BD50'
|
Info: 'var(--cn-color-info)'
|
||||||
}
|
}
|
||||||
export const securityType = {
|
export const securityType = {
|
||||||
commandAndControl: 'common and control',
|
commandAndControl: 'common and control',
|
||||||
@@ -2713,27 +2713,27 @@ export const securityLevel = [
|
|||||||
{
|
{
|
||||||
value: 'critical',
|
value: 'critical',
|
||||||
label: 'overall.critical',
|
label: 'overall.critical',
|
||||||
color: '#D84C4C'
|
color: 'var(--cn-color-critical)'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'high',
|
value: 'high',
|
||||||
label: 'overall.high',
|
label: 'overall.high',
|
||||||
color: '#FE845D'
|
color: 'var(--cn-color-high)'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'medium',
|
value: 'medium',
|
||||||
label: 'overall.medium',
|
label: 'overall.medium',
|
||||||
color: '#FFB65A'
|
color: 'var(--cn-color-medium)'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'low',
|
value: 'low',
|
||||||
label: 'overall.low',
|
label: 'overall.low',
|
||||||
color: '#FFD82D'
|
color: 'var(--cn-color-low)'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'info',
|
value: 'info',
|
||||||
label: 'overall.info',
|
label: 'overall.info',
|
||||||
color: '#D1BD50'
|
color: 'var(--cn-color-info)'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
:disableEdit="disableEdit"
|
:disableEdit="disableEdit"
|
||||||
:disableDelete="disableDelete"/>
|
:disableDelete="disableDelete"/>
|
||||||
|
|
||||||
<div class="detection-table" style="position: relative">
|
<div class="detection-table">
|
||||||
<loading :loading="loading"></loading>
|
<loading :loading="loading"></loading>
|
||||||
<detection-table
|
<detection-table
|
||||||
ref="dataTable"
|
ref="dataTable"
|
||||||
@@ -126,14 +126,14 @@ export default {
|
|||||||
myCellStyle: {
|
myCellStyle: {
|
||||||
padding: '4px 0px',
|
padding: '4px 0px',
|
||||||
'font-size': '12px',
|
'font-size': '12px',
|
||||||
color: '#353636',
|
color: 'var(--el-text-color-primary)',
|
||||||
'font-weight': 400
|
'font-weight': 400
|
||||||
},
|
},
|
||||||
myHeaderCellStyle: {
|
myHeaderCellStyle: {
|
||||||
padding: '4px 0px',
|
padding: '4px 0px',
|
||||||
background: '#F5F8FA',
|
background: 'var(--el-fill-color-light)',
|
||||||
'font-size': '12px',
|
'font-size': '12px',
|
||||||
color: '#353636',
|
color: 'var(--el-text-color-primary)',
|
||||||
'font-weight': 500
|
'font-weight': 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -347,58 +347,3 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.detection {
|
|
||||||
padding: 20px;
|
|
||||||
height: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
|
|
||||||
.detection-title {
|
|
||||||
font-family: NotoSansHans-Black;
|
|
||||||
line-height: 24px;
|
|
||||||
font-size: 24px;
|
|
||||||
color: #353636;
|
|
||||||
font-weight: 900;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
.detection-title-label {
|
|
||||||
font-family: NotoSansSChineseRegular;
|
|
||||||
font-size: 12px;
|
|
||||||
color: #717171;
|
|
||||||
letter-spacing: 0;
|
|
||||||
line-height: 18px;
|
|
||||||
font-weight: 400;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.detection-content {
|
|
||||||
margin-top: 15px;
|
|
||||||
width: 100%;
|
|
||||||
height: calc(100% - 96px);
|
|
||||||
display: flex;
|
|
||||||
|
|
||||||
.detection-filter {
|
|
||||||
width: 320px;
|
|
||||||
height: calc(100% + 34px);
|
|
||||||
background: #FFFFFF;
|
|
||||||
border: 1px solid rgba(226, 229, 236, 1);
|
|
||||||
border-radius: 4px;
|
|
||||||
margin-right: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.detection-block {
|
|
||||||
width: calc(100% - 340px);
|
|
||||||
|
|
||||||
.detection-table {
|
|
||||||
width: 100%;
|
|
||||||
height: calc(100% - 44px);
|
|
||||||
border-radius: 4px;
|
|
||||||
margin-top: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="detection-drawer" style="height: 100vh;overflow: scroll;padding-bottom: 90px">
|
<div class="detection-drawer">
|
||||||
<div class="drawer-basic">
|
<div class="drawer-basic">
|
||||||
<div class="drawer-basic-header">
|
<div class="drawer-basic-header">
|
||||||
<div class="drawer-basic-id">
|
<div class="drawer-basic-id">
|
||||||
@@ -91,11 +91,10 @@
|
|||||||
<div class="drawer-basic-function">
|
<div class="drawer-basic-function">
|
||||||
<div class="detection-drawer-title">{{ $t('detections.filters') }}</div>
|
<div class="detection-drawer-title">{{ $t('detections.filters') }}</div>
|
||||||
<span class="detection-tag-blue">Source Port</span>
|
<span class="detection-tag-blue">Source Port</span>
|
||||||
<span style="margin: 0 6px;">{{ $t('detections.equal') }}</span><span>19890</span>
|
<span class="drawer-title__equal">{{ $t('detections.equal') }}</span><span>19890</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="drawer-basic-function" v-for="item in severityList" :key="item.severity"
|
<div class="drawer-basic-function padding-b-0" v-for="item in severityList" :key="item.severity">
|
||||||
style="padding-bottom: 0">
|
|
||||||
<div class="detection-drawer-title">
|
<div class="detection-drawer-title">
|
||||||
<div class="detection__icon" :style="`background-color: ${eventSeverityColor[item.severity]}`"></div>
|
<div class="detection__icon" :style="`background-color: ${eventSeverityColor[item.severity]}`"></div>
|
||||||
<div>{{ toUpperCaseByString(item.severity) }}</div>
|
<div>{{ toUpperCaseByString(item.severity) }}</div>
|
||||||
@@ -112,16 +111,16 @@
|
|||||||
</el-collapse>
|
</el-collapse>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="detection-drawer-collapse" style="margin: 20px 0">
|
<div class="detection-drawer-collapse detection-drawer-collapse__margin">
|
||||||
<el-collapse v-model="activeTrigger">
|
<el-collapse v-model="activeTrigger">
|
||||||
<el-collapse-item :title="$t('detection.create.trigger')" name="trigger">
|
<el-collapse-item :title="$t('detection.create.trigger')" name="trigger">
|
||||||
<div class="drawer-collapse-content" v-if="language===EN">
|
<div class="drawer-collapse-content" v-if="language===EN">
|
||||||
<div class="drawer-collapse-trigger">
|
<div class="drawer-collapse-trigger">
|
||||||
Triggered when conditions occur at least
|
Triggered when conditions occur at least
|
||||||
<span style="color: #046ECA">
|
<span class="trigger__value">
|
||||||
{{ atLeast }} {{ times }}
|
{{ atLeast }} {{ times }}
|
||||||
</span> in
|
</span> in
|
||||||
<span style="color: #046ECA">
|
<span class="trigger__value">
|
||||||
{{ getNumberFromStr($_.get(detailData, 'ruleTriggerObj.interval', '0')) || '-' }}
|
{{ getNumberFromStr($_.get(detailData, 'ruleTriggerObj.interval', '0')) || '-' }}
|
||||||
{{ $_.get(detailData, 'ruleTriggerObj.intervalVal', '-') || '-' }}
|
{{ $_.get(detailData, 'ruleTriggerObj.intervalVal', '-') || '-' }}
|
||||||
</span>
|
</span>
|
||||||
@@ -138,11 +137,11 @@
|
|||||||
<div class="drawer-collapse-content" v-if="language===ZH">
|
<div class="drawer-collapse-content" v-if="language===ZH">
|
||||||
<div class="drawer-collapse-trigger">
|
<div class="drawer-collapse-trigger">
|
||||||
当条件为
|
当条件为
|
||||||
<span style="color: #046ECA">
|
<span class="trigger__value">
|
||||||
{{ getNumberFromStr($_.get(detailData, 'ruleTriggerObj.interval', '0')) || '-' }}
|
{{ getNumberFromStr($_.get(detailData, 'ruleTriggerObj.interval', '0')) || '-' }}
|
||||||
{{ changeValueToLabel(detailData.ruleTriggerObj) }}
|
{{ changeValueToLabel(detailData.ruleTriggerObj) }}
|
||||||
</span>内至少出现
|
</span>内至少出现
|
||||||
<span style="color: #046ECA">
|
<span class="trigger__value">
|
||||||
{{ $_.get(detailData, 'ruleTriggerObj.atLeast', '-') || '-' }} 次
|
{{ $_.get(detailData, 'ruleTriggerObj.atLeast', '-') || '-' }} 次
|
||||||
</span>时触发
|
</span>时触发
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="new-filter-content-title">{{ $t('overall.status') }}</div>
|
<div class="new-filter-content-title">{{ $t('overall.status') }}</div>
|
||||||
<div class="new-filter-content-content">
|
<div class="new-filter-content-content">
|
||||||
<el-checkbox-group v-model="checkStatus" @change="onChangeCategory" style="display: flex;flex-direction: column">
|
<el-checkbox-group v-model="checkStatus" @change="onChangeCategory" class="content__display">
|
||||||
<el-checkbox v-for="item in statusList" :key="item.name" class="new-filter-content-checkbox" :label="item.status">
|
<el-checkbox v-for="item in statusList" :key="item.name" class="new-filter-content-checkbox" :label="item.status">
|
||||||
<div>{{ item.name }}</div>
|
<div>{{ item.name }}</div>
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="new-filter-content-title">{{ $t('overall.type') }}</div>
|
<div class="new-filter-content-title">{{ $t('overall.type') }}</div>
|
||||||
<div class="new-filter-content-content">
|
<div class="new-filter-content-content">
|
||||||
<el-checkbox-group v-model="checkEventType" @change="onChangeCategory" style="display: flex;flex-direction: column">
|
<el-checkbox-group v-model="checkEventType" @change="onChangeCategory" class="content__display">
|
||||||
<el-checkbox v-for="item in eventTypeList" :key="item.name" class="new-filter-content-checkbox" :label="item.name">
|
<el-checkbox v-for="item in eventTypeList" :key="item.name" class="new-filter-content-checkbox" :label="item.name">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<!--第二步:Rule Definition-->
|
<!--第二步:Rule Definition-->
|
||||||
<div class="detection-form-collapse">
|
<div class="detection-form-collapse">
|
||||||
<el-collapse v-model="activeNames" style="position: relative;">
|
<el-collapse v-model="activeNames" class="rule-definition">
|
||||||
<el-collapse-item name="2">
|
<el-collapse-item name="2">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="form-collapse-header">
|
<div class="form-collapse-header">
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
{{ changeCategory(scope.row[item.prop]) }}
|
{{ changeCategory(scope.row[item.prop]) }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="item.prop === 'description'">
|
<template v-else-if="item.prop === 'description'">
|
||||||
<div style="padding-right: 20px">{{ scope.row[item.prop] }}</div>
|
<div class="padding-r-20">{{ scope.row[item.prop] }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="item.prop === 'dimensions' && scope.row[item.prop]">
|
<template v-else-if="item.prop === 'dimensions' && scope.row[item.prop]">
|
||||||
<span class="detection-tag-blue">{{ scope.row[item.prop] }}</span>
|
<span class="detection-tag-blue">{{ scope.row[item.prop] }}</span>
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
<div
|
<div
|
||||||
class="tip__tag"
|
class="tip__tag"
|
||||||
v-if="$_.get(scope.row.ruleConfigObj, 'knowledgeBase.color')"
|
v-if="$_.get(scope.row.ruleConfigObj, 'knowledgeBase.color')"
|
||||||
:style="{backgroundColor: $_.get(scope.row.ruleConfigObj, 'knowledgeBase.color'), color: 'white'}"
|
:style="{backgroundColor: $_.get(scope.row.ruleConfigObj, 'knowledgeBase.color'), color: 'var(--el-color-white)'}"
|
||||||
>{{colorText($_.get(scope.row.ruleConfigObj, 'knowledgeBase.color'))}}</div>
|
>{{colorText($_.get(scope.row.ruleConfigObj, 'knowledgeBase.color'))}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tip__description" :class="{ 'tip__description--non': !($_.get(scope.row.ruleConfigObj, 'knowledgeBase.description')) }">
|
<div class="tip__description" :class="{ 'tip__description--non': !($_.get(scope.row.ruleConfigObj, 'knowledgeBase.description')) }">
|
||||||
@@ -239,7 +239,3 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -5,9 +5,8 @@
|
|||||||
id="knowledge-base-add"
|
id="knowledge-base-add"
|
||||||
v-if="hasPermission('createDetectionPolicy')"
|
v-if="hasPermission('createDetectionPolicy')"
|
||||||
:title="$t('knowledgeBase.createKnowledgeBase')"
|
:title="$t('knowledgeBase.createKnowledgeBase')"
|
||||||
class="top-tool-btn margin-r-10 top-tool-btn--create"
|
class="top-tool-btn margin-r-10 top-tool-btn--create btn__width"
|
||||||
@click="onCreate"
|
@click="onCreate">
|
||||||
style="width:72px;">
|
|
||||||
<i class="cn-icon-xinjian cn-icon"></i>
|
<i class="cn-icon-xinjian cn-icon"></i>
|
||||||
<span>{{ $t('overall.create') }}</span>
|
<span>{{ $t('overall.create') }}</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -17,9 +16,8 @@
|
|||||||
v-if="hasPermission('editDetectionPolicy')"
|
v-if="hasPermission('editDetectionPolicy')"
|
||||||
id="knowledge-base-edit"
|
id="knowledge-base-edit"
|
||||||
:title="$t('knowledgeBase.editKnowledgeBase')"
|
:title="$t('knowledgeBase.editKnowledgeBase')"
|
||||||
class="top-tool-btn margin-r-10"
|
class="top-tool-btn margin-r-10 btn__width"
|
||||||
@click="onEdit"
|
@click="onEdit">
|
||||||
style="width:72px;">
|
|
||||||
<i class="cn-icon-edit cn-icon" ></i>
|
<i class="cn-icon-edit cn-icon" ></i>
|
||||||
<span>{{$t('overall.edit')}}</span>
|
<span>{{$t('overall.edit')}}</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -29,21 +27,18 @@
|
|||||||
v-if="hasPermission('deleteDetectionPolicy')"
|
v-if="hasPermission('deleteDetectionPolicy')"
|
||||||
id="knowledge-base-delete"
|
id="knowledge-base-delete"
|
||||||
:title="$t('knowledgeBase.deleteKnowledgeBase')"
|
:title="$t('knowledgeBase.deleteKnowledgeBase')"
|
||||||
class="top-tool-btn margin-r-10"
|
class="top-tool-btn margin-r-10 btn__width"
|
||||||
@click="onDelete"
|
@click="onDelete">
|
||||||
style="width:72px;">
|
|
||||||
<i class="cn-icon-delete cn-icon"></i>
|
<i class="cn-icon-delete cn-icon"></i>
|
||||||
<span>{{ $t('overall.delete') }}</span>
|
<span>{{ $t('overall.delete') }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="top-tool-search margin-l-10">
|
<div class="top-tool-search margin-l-10">
|
||||||
<el-input v-model="keyWord" size="small" style="height: 28px;" @keyup.enter="onSearch"></el-input>
|
<el-input v-model="keyWord" size="small" class="search__input" @keyup.enter="onSearch"></el-input>
|
||||||
<button
|
<button
|
||||||
class="top-tool-btn top-tool-btn--search"
|
class="top-tool-btn top-tool-btn--search search__btn"
|
||||||
style="border-radius: 0 2px 2px 0 !important;"
|
|
||||||
@click="onSearch">
|
@click="onSearch">
|
||||||
<el-icon><Search /></el-icon>
|
<el-icon><Search /></el-icon>
|
||||||
<!-- <i class="el-icon-search"></i>-->
|
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,7 +102,3 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user