gaoxizhong 1 jaar geleden
bovenliggende
commit
9f8c217cd5
3 gewijzigde bestanden met toevoegingen van 15 en 12 verwijderingen
  1. 1 1
      src/layout/components/AppMain.vue
  2. 2 1
      src/router/index.js
  3. 12 10
      src/views/data/query/components/CaseQualityBox.vue

+ 1 - 1
src/layout/components/AppMain.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <section class="app-main">
   <section class="app-main">
-    <div>
+    <div v-if="!$route.meta.nocrumb">
       <breadcrumb :keep-alive-component-instance="keepAliveComponentInstance" class="breadcrumb-container" />
       <breadcrumb :keep-alive-component-instance="keepAliveComponentInstance" class="breadcrumb-container" />
     </div>
     </div>
     <div ref="keepAliveContainer">
     <div ref="keepAliveContainer">

+ 2 - 1
src/router/index.js

@@ -735,7 +735,8 @@ export const constantRoutes = [
         meta: { 
         meta: { 
           keepAlive: 0,
           keepAlive: 0,
           canMultipleOpen: true,
           canMultipleOpen: true,
-          nocopy: true
+          nocopy: true,
+          nocrumb: true, // 不展示多页签tab栏
         },
         },
       },
       },
     ]
     ]

+ 12 - 10
src/views/data/query/components/CaseQualityBox.vue

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