统一项目分析弹窗圆角样式
This commit is contained in:
@@ -250,6 +250,7 @@ export default {
|
||||
.abnormal-card {
|
||||
padding: 20px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
@@ -274,7 +275,8 @@ export default {
|
||||
}
|
||||
|
||||
.abnormal-table {
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -315,6 +317,7 @@ export default {
|
||||
.object-card {
|
||||
padding: 16px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 6px;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
@@ -364,6 +367,7 @@ export default {
|
||||
margin-top: 12px;
|
||||
padding: 12px;
|
||||
border: 1px solid #dbeafe;
|
||||
border-radius: 6px;
|
||||
background: #eff6ff;
|
||||
}
|
||||
|
||||
|
||||
@@ -217,22 +217,21 @@ export default {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: calc(96vh - 64px);
|
||||
border: 1px solid #dde3ec;
|
||||
background: #ffffff;
|
||||
background: #f5f7fb;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.project-analysis-header {
|
||||
padding: 32px 36px 24px;
|
||||
border-bottom: 1px solid #dde3ec;
|
||||
padding: 20px 28px 18px;
|
||||
border-bottom: 1px solid #dbe4ef;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.project-analysis-header__main {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.project-analysis-header__title-group {
|
||||
@@ -240,52 +239,52 @@ export default {
|
||||
}
|
||||
|
||||
.project-analysis-header__eyebrow {
|
||||
color: #65758d;
|
||||
font-size: 16px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
letter-spacing: 0;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.project-analysis-header__title {
|
||||
margin-top: 18px;
|
||||
color: #101a2b;
|
||||
font-size: 30px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
margin-top: 8px;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.project-analysis-header__meta {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: 34px;
|
||||
gap: 12px;
|
||||
min-height: 32px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid #bfd0e2;
|
||||
border-radius: 2px;
|
||||
border-radius: 6px;
|
||||
background: #eef4f9;
|
||||
}
|
||||
|
||||
.project-analysis-header__meta-label {
|
||||
color: #637187;
|
||||
font-size: 13px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #637187;
|
||||
}
|
||||
|
||||
.project-analysis-header__meta-value {
|
||||
color: #245b8f;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #245b8f;
|
||||
}
|
||||
|
||||
.project-analysis-workspace {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 36px;
|
||||
gap: 20px;
|
||||
min-height: 700px;
|
||||
max-height: calc(96vh - 168px);
|
||||
padding: 36px;
|
||||
max-height: calc(96vh - 164px);
|
||||
padding: 24px;
|
||||
overflow: auto;
|
||||
background: #ffffff;
|
||||
background: #f5f7fb;
|
||||
}
|
||||
|
||||
.project-analysis-layout {
|
||||
@@ -295,57 +294,90 @@ export default {
|
||||
}
|
||||
|
||||
.project-analysis-layout__sidebar {
|
||||
flex: 0 0 420px;
|
||||
flex: 0 0 320px;
|
||||
}
|
||||
|
||||
.project-analysis-layout__main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
border-left: 1px solid #dde3ec;
|
||||
padding-left: 36px;
|
||||
border: 1px solid #dbe4ef;
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.project-analysis-layout__alert {
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.project-analysis-tabs {
|
||||
margin-top: -6px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.project-analysis-workspace {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.project-analysis-layout__sidebar {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.project-analysis-layout__main {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
.project-analysis-dialog {
|
||||
margin-top: 2vh !important;
|
||||
border-radius: 0;
|
||||
background: #f5f6f8;
|
||||
border-radius: 8px;
|
||||
background: #f5f7fb;
|
||||
overflow: hidden;
|
||||
|
||||
.el-dialog__header {
|
||||
display: none;
|
||||
padding: 18px 24px;
|
||||
border-bottom: 1px solid #dbe4ef;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.el-dialog__title {
|
||||
color: #101a2b;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.el-dialog__headerbtn {
|
||||
top: 18px;
|
||||
right: 22px;
|
||||
}
|
||||
|
||||
.el-dialog__body {
|
||||
padding: 0;
|
||||
background: #f5f6f8;
|
||||
background: #f5f7fb;
|
||||
}
|
||||
}
|
||||
|
||||
.project-analysis-tabs {
|
||||
.el-tabs__header {
|
||||
margin: 0;
|
||||
padding: 0 20px;
|
||||
border-bottom: 1px solid #dbe4ef;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.el-tabs__nav-wrap::after {
|
||||
height: 1px;
|
||||
background: #dde3ec;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.el-tabs__item {
|
||||
height: 46px;
|
||||
padding: 0 24px !important;
|
||||
padding: 0 22px !important;
|
||||
color: #2a374a;
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 46px;
|
||||
}
|
||||
@@ -356,12 +388,13 @@ export default {
|
||||
}
|
||||
|
||||
.el-tabs__active-bar {
|
||||
height: 3px;
|
||||
height: 2px;
|
||||
background: #245b8f;
|
||||
}
|
||||
|
||||
.el-tabs__content {
|
||||
padding-top: 20px;
|
||||
padding: 20px;
|
||||
background: #ffffff;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,52 +1,51 @@
|
||||
<template>
|
||||
<aside class="project-analysis-sidebar">
|
||||
<div class="sidebar-profile-card">
|
||||
<section class="sidebar-profile">
|
||||
<div class="sidebar-profile__identity">
|
||||
<div class="sidebar-profile__identity-label">人物档案</div>
|
||||
<div class="sidebar-profile__name-row">
|
||||
<div class="sidebar-profile__name">{{ sidebarData.basicInfo.name || "-" }}</div>
|
||||
<div class="sidebar-risk-badge">{{ sidebarData.basicInfo.riskLevel || "-" }}</div>
|
||||
</div>
|
||||
<section class="sidebar-profile">
|
||||
<div class="sidebar-profile__name-row">
|
||||
<div>
|
||||
<div class="sidebar-section__eyebrow">人物档案</div>
|
||||
<div class="sidebar-profile__name">{{ sidebarData.basicInfo.name || "-" }}</div>
|
||||
</div>
|
||||
<div class="sidebar-profile__meta">
|
||||
<div class="sidebar-profile__item">
|
||||
<span class="sidebar-profile__label">工号</span>
|
||||
<span class="sidebar-profile__value">{{ sidebarData.basicInfo.staffCode || "-" }}</span>
|
||||
</div>
|
||||
<div class="sidebar-profile__item">
|
||||
<span class="sidebar-profile__label">部门</span>
|
||||
<span class="sidebar-profile__value">{{ sidebarData.basicInfo.department || "-" }}</span>
|
||||
</div>
|
||||
<div class="sidebar-profile__item">
|
||||
<span class="sidebar-profile__label">所属项目</span>
|
||||
<span class="sidebar-profile__value">{{ sidebarData.basicInfo.projectName || "-" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="sidebar-risk-badge">{{ sidebarData.basicInfo.riskLevel || "-" }}</div>
|
||||
</div>
|
||||
|
||||
<section class="sidebar-summary">
|
||||
<div class="sidebar-summary__title">命中模型摘要</div>
|
||||
<div class="sidebar-summary__count">
|
||||
<span class="sidebar-summary__count-label">命中模型数</span>
|
||||
<span class="sidebar-summary__count-value">{{ sidebarData.modelSummary.modelCount || "-" }}</span>
|
||||
<div class="sidebar-profile__meta">
|
||||
<div class="sidebar-profile__item">
|
||||
<span class="sidebar-profile__label">工号</span>
|
||||
<span class="sidebar-profile__value">{{ sidebarData.basicInfo.staffCode || "-" }}</span>
|
||||
</div>
|
||||
<div class="sidebar-summary__tags">
|
||||
<span class="sidebar-profile__label">核心异常标签</span>
|
||||
<div v-if="sidebarData.modelSummary.riskTags.length" class="sidebar-tag-list">
|
||||
<el-tag
|
||||
v-for="(tag, index) in sidebarData.modelSummary.riskTags"
|
||||
:key="`${formatRiskTag(tag)}-${index}`"
|
||||
size="mini"
|
||||
effect="plain"
|
||||
>
|
||||
{{ formatRiskTag(tag) }}
|
||||
</el-tag>
|
||||
</div>
|
||||
<span v-else class="sidebar-profile__value">暂无异常标签</span>
|
||||
<div class="sidebar-profile__item">
|
||||
<span class="sidebar-profile__label">部门</span>
|
||||
<span class="sidebar-profile__value">{{ sidebarData.basicInfo.department || "-" }}</span>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="sidebar-profile__item">
|
||||
<span class="sidebar-profile__label">所属项目</span>
|
||||
<span class="sidebar-profile__value">{{ sidebarData.basicInfo.projectName || "-" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="sidebar-summary">
|
||||
<div class="sidebar-section__eyebrow">命中模型摘要</div>
|
||||
<div class="sidebar-summary__count">
|
||||
<span class="sidebar-summary__count-label">命中模型数</span>
|
||||
<span class="sidebar-summary__count-value">{{ sidebarData.modelSummary.modelCount || "-" }}</span>
|
||||
</div>
|
||||
<div class="sidebar-summary__tags">
|
||||
<span class="sidebar-profile__label">核心异常标签</span>
|
||||
<div v-if="sidebarData.modelSummary.riskTags.length" class="sidebar-tag-list">
|
||||
<el-tag
|
||||
v-for="(tag, index) in sidebarData.modelSummary.riskTags"
|
||||
:key="`${formatRiskTag(tag)}-${index}`"
|
||||
size="mini"
|
||||
effect="plain"
|
||||
>
|
||||
{{ formatRiskTag(tag) }}
|
||||
</el-tag>
|
||||
</div>
|
||||
<span v-else class="sidebar-profile__value">暂无异常标签</span>
|
||||
</div>
|
||||
</section>
|
||||
</aside>
|
||||
</template>
|
||||
|
||||
@@ -82,126 +81,97 @@ export default {
|
||||
.project-analysis-sidebar {
|
||||
width: 100%;
|
||||
align-self: flex-start;
|
||||
border: 1px solid #dbe4ef;
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sidebar-profile-card {
|
||||
border: 1px solid #dde3ec;
|
||||
border-radius: 3px;
|
||||
.sidebar-profile,
|
||||
.sidebar-summary {
|
||||
padding: 22px 24px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.sidebar-profile {
|
||||
padding: 24px 26px 20px;
|
||||
border-bottom: 1px solid #edf1f5;
|
||||
}
|
||||
|
||||
.sidebar-summary {
|
||||
padding: 22px 26px 26px;
|
||||
border-top: 1px solid #dde3ec;
|
||||
background: #fcfdfe;
|
||||
margin-top: 0;
|
||||
background: #fbfcfe;
|
||||
}
|
||||
|
||||
.sidebar-profile__identity-label {
|
||||
color: #637187;
|
||||
font-size: 15px;
|
||||
.sidebar-section__eyebrow {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 16px;
|
||||
letter-spacing: 0;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.sidebar-profile__name-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.sidebar-profile__name {
|
||||
color: #111827;
|
||||
font-size: 30px;
|
||||
font-weight: 700;
|
||||
margin-top: 8px;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.sidebar-risk-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 64px;
|
||||
height: 28px;
|
||||
min-height: 26px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid #edcaca;
|
||||
border-radius: 2px;
|
||||
border-radius: 6px;
|
||||
background: #fbefef;
|
||||
color: #ad2f2f;
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 26px;
|
||||
text-align: center;
|
||||
line-height: 24px;
|
||||
color: #ad2f2f;
|
||||
}
|
||||
|
||||
.sidebar-profile__meta {
|
||||
display: grid;
|
||||
gap: 0;
|
||||
margin-top: 18px;
|
||||
gap: 14px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.sidebar-profile__item {
|
||||
display: grid;
|
||||
grid-template-columns: 88px minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid #edf1f5;
|
||||
}
|
||||
|
||||
.sidebar-profile__item:last-child {
|
||||
border-bottom: 0;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.sidebar-profile__label,
|
||||
.sidebar-summary__count-label {
|
||||
color: #637187;
|
||||
font-size: 15px;
|
||||
font-size: 12px;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.sidebar-profile__value,
|
||||
.sidebar-summary__count-value {
|
||||
color: #172033;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
color: #0f172a;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.sidebar-summary__title {
|
||||
margin: 0 0 18px;
|
||||
color: #223047;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sidebar-summary__count {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 12px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 22px;
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.sidebar-summary__tags {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.sidebar-summary__count-label {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.sidebar-summary__count-value {
|
||||
color: #172033;
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.sidebar-tag-list {
|
||||
@@ -212,14 +182,14 @@ export default {
|
||||
}
|
||||
|
||||
.sidebar-tag-list ::v-deep(.el-tag) {
|
||||
height: 28px;
|
||||
padding: 0 10px;
|
||||
height: 26px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid #bfd0e2;
|
||||
border-radius: 2px;
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
color: #245b8f;
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 26px;
|
||||
line-height: 24px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user