Commit 123c7172 by 王志慧

样式调整

1 parent 7cc91e35
......@@ -337,8 +337,9 @@ export default {
}
.dig-content {
width: fit-content;
// min-width: 404px;
// width: fit-content;
min-width: 400px;
max-width: 70%;
background: #e6eeff;
border-radius: 4px;
font-size: 14px;
......@@ -349,6 +350,7 @@ export default {
margin-left: 50px;
margin-top: -20px;
line-height: 20px;
display: inline-block;
.improve-btn {
margin-top: 14px;
margin-left: 4px;
......
......@@ -10,7 +10,12 @@
<div class="left">
<div class="title">质检得分</div>
<div class="content">
{{ (itemData.inspectionConversationCheck.score||itemData.inspectionConversationCheck.score===0)?itemData.inspectionConversationCheck.score:'-' }}<span>/100</span>
{{
itemData.inspectionConversationCheck.score ||
itemData.inspectionConversationCheck.score === 0
? itemData.inspectionConversationCheck.score
: "-"
}}<span>/100</span>
</div>
</div>
<div class="center"></div>
......@@ -53,9 +58,19 @@
<div class="attack-index">
{{ item.detailList ? "意图匹配" : "意图不匹配" }}
</div>
<img class="index-logo" v-if="item.detailList" src="@/assets/index-logo.png" alt="" />
<img class="index-logo" v-else src="@/assets/index-red-logo.png" alt="" />
<img
class="index-logo"
v-if="item.detailList"
src="@/assets/index-logo.png"
alt=""
/>
<img
class="index-logo"
v-else
src="@/assets/index-red-logo.png"
alt=""
/>
</div>
<template v-if="item.detailList && item.detailList.length > 0">
<div
......@@ -69,6 +84,7 @@
'nth-child': content.role % 2 === 0
}"
>
<div class="right-box">
<div class="name">
<img
class="role"
......@@ -82,43 +98,49 @@
v-if="content.role % 2 === 0"
/>
</div>
<div class="dig-content">{{ content.content }}</div>
</div>
<div
:class="[
'suggest',
'matching-child',
content.role == 1 ? 'rightAuto' : ''
]"
v-if="content.hit"
>
<div class="matching" @click="changeDown(content)">
<div class="title">
意图匹配
<div
:class="['triangle', content.isdown ? 'down' : '']"
></div>
</div>
<div>
{{ item.firstClassify }}/{{ item.secondClassify
}}<span class="score"
>{{
item.score || item.score === 0 ? item.score : "-"
}}分</span
>
<div class="dig-content-wrap">
<div class="dig-content">{{ content.content }}</div>
<div
:class="[
'suggest',
'matching-child',
content.role == 1 ? 'rightAuto' : ''
]"
v-if="content.hit"
>
<div class="matching" @click="changeDown(content)">
<div class="title">
意图匹配
<div
:class="['triangle', content.isdown ? 'down' : '']"
></div>
</div>
<div>
{{ item.firstClassify }}/{{ item.secondClassify
}}<span class="score"
>{{
item.score || item.score === 0 ? item.score : "-"
}}分</span
>
</div>
</div>
<template v-if="content.isdown">
<div class="improve">
<img src="@/assets/improve.png" class="improve-img" />
话术建议
</div>
<template v-if="item.suggestions">
<div
class="improve-text"
v-html="item.suggestions"
></div
></template>
<div class="no-data" v-else>暂无数据</div>
</template>
</div>
</div>
<template v-if="content.isdown">
<div class="improve">
<img src="@/assets/improve.png" class="improve-img" />
话术建议
</div>
<template v-if="item.suggestions">
<div class="improve-text" v-html="item.suggestions"></div
></template>
<div class="no-data" v-else>暂无数据</div>
</template>
</div>
</div>
</div>
</template>
......@@ -303,7 +325,7 @@ export default {
justify-content: space-around;
align-items: center;
box-sizing: border-box;
margin: 16px 0 12px;
margin: 16px 0 10px;
.tab {
font-weight: 400;
font-size: 14px;
......@@ -403,32 +425,34 @@ export default {
margin-right: 0;
}
}
.dig-content {
.dig-content-wrap {
width: fit-content;
min-width: 400px;
max-width: 70%;
background: #e4ecf7;
text-align: left;
}
.dig-content {
width: 100%;
border-radius: 4px;
font-size: 14px;
color: #333333;
padding: 10px 12px;
white-space: pre-wrap;
text-align: left;
margin: -14px 0 0 40px;
line-height: 20px;
background: #e4ecf7;
box-sizing: border-box;
margin-left:40px;
}
.suggest {
width: fit-content;
max-width: 70%;
width: 100%;
background: #fff;
border-radius: 4px;
font-size: 14px;
color: #333333;
padding: 12px;
white-space: pre-wrap;
text-align: left;
line-height: 20px;
margin-top: 12px;
margin-right: 40px;
display: inline-block;
.improve {
width: 94px;
......@@ -462,12 +486,26 @@ export default {
}
}
.nth-child {
text-align: right;
.dig-content {
display: inline-block;
background: #ffffff;
display: flex;
justify-content: flex-end;
.right-box {
display: flex;
flex-direction: column;
.name {
margin-left: auto;
}
}
.dig-content-wrap {
display: flex;
flex-direction: column;
margin-right: 38px;
line-height: 22px;
margin-left:auto;
.dig-content {
background: #ffffff;
margin-left:0;
}
}
}
}
......@@ -478,7 +516,7 @@ export default {
border-radius: 4px;
font-size: 14px;
color: #333333;
padding: 10px 12px;
padding: 0 12px;
white-space: pre-wrap;
text-align: left;
line-height: 20px;
......@@ -495,7 +533,6 @@ export default {
font-weight: 500;
font-size: 14px;
color: #333333;
margin-bottom: 6px;
box-sizing: border-box;
white-space: nowrap;
.improve-img {
......@@ -506,17 +543,19 @@ export default {
}
.improve-text {
margin: 0 8px;
padding: 6px 0;
}
.no-data {
font-weight: 400;
font-size: 14px;
color: #8a8c90;
text-align: center;
padding: 6px 0;
}
}
.matching-child {
margin-left: auto;
max-width: 612px;
width: fit-content;
}
.rightAuto {
margin-right: auto !important;
......@@ -524,29 +563,31 @@ export default {
}
.matching {
width: 100%;
display: flex;
font-size: 14px;
color: #b38442;
height: 28px;
height: 48px;
align-items: center;
margin-bottom: 12px;
// padding: 0 12px;
.title {
width: 94px;
background-image: linear-gradient(90deg, #fcf1e3 0%, #fcf5ed 100%);
border-radius: 14px;
height: 100%;
height: 28px;
padding: 0 8px;
line-height: 28px;
text-align: center;
font-weight: 500;
margin-right: 4px;
display: flex;
align-items: center;
box-sizing: border-box;
}
.triangle {
margin-left: 4px;
margin-top:-6px;
margin-top: -6px;
width: 0px;
height: 0px;
border-bottom: 5px solid #b38442;
......@@ -554,9 +595,9 @@ export default {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
}
.down{
.down {
transform: rotate(180deg);
margin-top:4px;
margin-top: 4px;
}
.score {
......
......@@ -323,6 +323,7 @@ export default {
}
.dig-content {
width: fit-content;
min-width: 400px;
max-width: 70%;
background: #e4ecf7;
border-radius: 4px;
......@@ -333,6 +334,7 @@ export default {
text-align: left;
margin: -14px 0 0 40px;
line-height: 20px;
box-sizing: border-box;
}
.suggest {
width: fit-content;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!