|
@@ -147,10 +147,120 @@
|
|
|
<div ref="echarts_ld" style="width: 100%; height: 600px"></div>
|
|
|
<div ref="echarts_zhu" style="width: 100%; height: 600px"></div>
|
|
|
<div class="cpmpare_all" v-if="userData1.length > 0 && userData2.length > 0">
|
|
|
+ <div v-for="(item, index) in userData1" :key="item.id">
|
|
|
+ <div v-show="index<userData2.length-1">
|
|
|
+ <div class="dimensionality_out">
|
|
|
+ <div class="left">
|
|
|
+ <span class="totol_all">维度:</span
|
|
|
+ >{{ userData1[index].dimensionName }}
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <span class="totol_all">维度:</span
|
|
|
+ >{{ userData2[index].dimensionName }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="allScore_out">
|
|
|
+ <div class="left">
|
|
|
+ <span class="totol_all">总分:</span
|
|
|
+ ><span
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ parseFloat(userData1[index].dimensionScore) >
|
|
|
+ parseFloat(userData2[index].dimensionScore)
|
|
|
+ ? 'red'
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ >{{ userData1[index].dimensionScore }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <!-- {{userData1[index].dimensionScore>userData2[index].dimensionScore}} -->
|
|
|
+ <span class="totol_all">总分:</span
|
|
|
+ ><span
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ parseFloat(userData1[index].dimensionScore) <
|
|
|
+ parseFloat(userData2[index].dimensionScore)
|
|
|
+ ? 'red'
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ >{{ userData2[index].dimensionScore }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="allScore_out">
|
|
|
+ <div class="left">
|
|
|
+ <span class="totol_all">结论:</span
|
|
|
+ ><span
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ parseFloat(userData1[index].dimensionScore) >
|
|
|
+ parseFloat(userData2[index].dimensionScore)
|
|
|
+ ? 'red'
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ >{{ userData1[index].dimensionSymptom }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <span class="totol_all">结论:</span
|
|
|
+ ><span
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ parseFloat(userData1[index].dimensionScore) <
|
|
|
+ parseFloat(userData2[index].dimensionScore)
|
|
|
+ ? 'red'
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ >{{ userData2[index].dimensionSymptom }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="allScore_out">
|
|
|
+ <div class="left">
|
|
|
+ <span class="totol_all">说明:</span
|
|
|
+ ><span
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ parseFloat(userData1[index].dimensionScore) >
|
|
|
+ parseFloat(userData2[index].dimensionScore)
|
|
|
+ ? 'red'
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ >{{ userData1[index].dimensionDesc }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <span class="totol_all">说明:</span
|
|
|
+ ><span
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ parseFloat(userData1[index].dimensionScore) <
|
|
|
+ parseFloat(userData2[index].dimensionScore)
|
|
|
+ ? 'red'
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ >{{ userData2[index].dimensionDesc }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="allScore_out">
|
|
|
+ <div class="left">
|
|
|
+ <span class="totol_all">建议:</span
|
|
|
+ >{{ userData1[index].dimensionSuggestion }}
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <span class="totol_all">建议:</span
|
|
|
+ >{{ userData2[index].dimensionSuggestion }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="cpmpare_all" v-if="userData1.length > 0 && userData2.length > 0">
|
|
|
<div class="compare_score_detail_left">
|
|
|
<div v-for="(item, index) in userData1" :key="item.id">
|
|
|
<div class="compare_score_inner" v-show="userData1.length - 1 !== index">
|
|
|
- <!-- {{index}}{{item}} -->
|
|
|
<div class="compare_score_left_back">
|
|
|
维度:{{ item.dimensionName }}
|
|
|
</div>
|
|
@@ -194,7 +304,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -712,105 +822,68 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.cpmpare_all {
|
|
|
+ // height: 100px;
|
|
|
display: flex;
|
|
|
- .compare_score_detail_left {
|
|
|
- flex: 1;
|
|
|
- .compare_score_inner {
|
|
|
- padding-left: 20px;
|
|
|
+ flex-direction: column;
|
|
|
+ .dimensionality_out {
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .left {
|
|
|
+ margin-right: 10px;
|
|
|
flex: 1;
|
|
|
- .compare_score_left_back {
|
|
|
+
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-bottom: 4px;
|
|
|
+ font-size: 20px;
|
|
|
+ letter-spacing: 3px;
|
|
|
+ background-color: #f1f7ff;
|
|
|
+ .totol_all {
|
|
|
color: #006fff;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 10px;
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- background-color: #f1f7ff;
|
|
|
- }
|
|
|
- .compare_score_right_back {
|
|
|
- color: #ff3014;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 10px;
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- background-color: #fff4f2;
|
|
|
}
|
|
|
- .compare_score_left {
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ margin-left: 10px;
|
|
|
+ flex: 1;
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-bottom: 4px;
|
|
|
+ font-size: 20px;
|
|
|
+ letter-spacing: 3px;
|
|
|
+ background-color: #f1f7ff;
|
|
|
+ .totol_all {
|
|
|
color: #006fff;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 10px;
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- }
|
|
|
- .compare_score_right {
|
|
|
- color: #ff3014;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 10px;
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- }
|
|
|
- .compare_result {
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- }
|
|
|
- .compare_result_new {
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- margin-top: 10px;
|
|
|
- .title {
|
|
|
- color: #006fff;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .compare_score_detail_right {
|
|
|
- flex: 1;
|
|
|
+ .allScore_out {
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
- .compare_score_inner {
|
|
|
- padding-left: 20px;
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .left {
|
|
|
+ margin-right: 10px;
|
|
|
flex: 1;
|
|
|
- .compare_score_left_back {
|
|
|
+
|
|
|
+ // margin-top: 10px;
|
|
|
+ margin-bottom: 4px;
|
|
|
+ font-size: 20px;
|
|
|
+ letter-spacing: 3px;
|
|
|
+ // background-color: #f1f7ff;
|
|
|
+ .totol_all {
|
|
|
color: #006fff;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 10px;
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- background-color: #f1f7ff;
|
|
|
}
|
|
|
- .compare_score_right_back {
|
|
|
- color: #ff3014;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 10px;
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- background-color: #fff4f2;
|
|
|
- }
|
|
|
- .compare_score_left {
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ margin-left: 10px;
|
|
|
+ flex: 1;
|
|
|
+ flex: 1;
|
|
|
+
|
|
|
+ // margin-top: 10px;
|
|
|
+ margin-bottom: 4px;
|
|
|
+ font-size: 20px;
|
|
|
+ letter-spacing: 3px;
|
|
|
+ // background-color: #f1f7ff;
|
|
|
+ .totol_all {
|
|
|
color: #006fff;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 10px;
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- }
|
|
|
- .compare_score_right {
|
|
|
- color: #ff3014;
|
|
|
- margin-top: 20px;
|
|
|
- margin-bottom: 10px;
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- }
|
|
|
- .compare_result {
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- }
|
|
|
- .compare_result_new {
|
|
|
- font-size: 20px;
|
|
|
- letter-spacing: 3px;
|
|
|
- margin-top: 10px;
|
|
|
- .title {
|
|
|
- color: #006fff;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|