Commit 123c7172 by 王志慧

样式调整

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