|
@@ -2,7 +2,7 @@
|
|
|
<div ref="box" class="box" :style="{width: width ? width + 'px' : '100%'}">
|
|
|
<!-- 评分 -->
|
|
|
<div class="storeBox">
|
|
|
- <div class="text">{{ data.score.score }}</div>
|
|
|
+ <div class="text">{{ data.score.score?data.score.score:'100' }}</div>
|
|
|
<div class="spa">
|
|
|
<!-- 0优 1良 2中 3差 -->
|
|
|
<div class="spaview" v-if="data.score.score>=97">优</div>
|
|
@@ -80,13 +80,18 @@
|
|
|
data(){
|
|
|
return {
|
|
|
is_tab: 'qz', // 'qz'、 强制 'jy、建议
|
|
|
- errorlist:[]
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
- this.clickTab(this.is_tab);
|
|
|
- },
|
|
|
computed: {
|
|
|
+ errorlist(){
|
|
|
+ let arr = [];
|
|
|
+ if(this.is_tab == 'qz'){
|
|
|
+ arr = this.data.qz
|
|
|
+ }else{
|
|
|
+ arr = this.data.jy
|
|
|
+ }
|
|
|
+ return arr
|
|
|
+ },
|
|
|
scrollHeight() {
|
|
|
return `calc(100vh - 320px)`
|
|
|
}
|
|
@@ -99,11 +104,6 @@
|
|
|
},
|
|
|
clickTab(n){
|
|
|
this.is_tab = n;
|
|
|
- if(this.is_tab == 'qz'){
|
|
|
- this.errorlist = this.data.qz
|
|
|
- }else{
|
|
|
- this.errorlist = this.data.jy
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -201,6 +201,8 @@
|
|
|
align-items: center;
|
|
|
text-align: center;
|
|
|
justify-content: center;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ border-radius: 4px;
|
|
|
}
|
|
|
.hoverClass{
|
|
|
border: 2px solid #185da6;
|