yuwandanmian 1 year ago
parent
commit
c473a27352
3 changed files with 31 additions and 34 deletions
  1. 0 1
      src/styles/custom.scss
  2. 8 8
      src/views/allcase/caseIndex.vue
  3. 23 25
      src/views/encoder/index.vue

+ 0 - 1
src/styles/custom.scss

@@ -59,7 +59,6 @@
   width: 100%;
   .bg-card {
     padding: 20px;
-    min-width: 1677px;
     background: #fff;
     border-radius: 5px;
     overflow-x: hidden;

+ 8 - 8
src/views/allcase/caseIndex.vue

@@ -57,7 +57,7 @@
             <!-- <el-table-column prop="denominator" :label="cloumn3" align="center"></el-table-column> -->
             <el-table-column align="center">
               <template slot="header" slot-scope="scope">
-                <span>{{ cloumn3 }}</span>
+                <span>{{ cloumn2 }}</span>
                 <i class="el-icon-edit table_edit" v-if="scope._self.tableData[0].source === '人工录入' && scope._self.judgeEdit" @click="onChangeValue"></i>
               </template>
               <template slot-scope="scope">
@@ -65,15 +65,15 @@
                 <!-- 非人工录入不可修改 -->
                 <!-- 菜单未标记的不可修改 -->
                 <div>
-                  <el-button type="text" v-if="scope.row.source !== '人工录入'" class="pointer link" @click="toCaseIndexPage(scope.row, 'numerator')">{{ scope.row.numerator }}</el-button>
-                  <span v-else>{{ scope.row.denominator }}</span>
-                  <i class="el-icon-edit table_edit" style="margin-left: 10px;" @click="onChangeValue(scope.row, 'numerator')" v-show="scope.row.source === '人工录入' && scope.row.time !== '全年'"></i>
+                  <el-button type="text" v-if="scope.row.source !== '人工录入'" class="pointer link" @click="toCaseIndexPage(scope.row, 'denominator')">{{ scope.row.denominator }}</el-button>
+                  <span v-else>{{ scope.row.numerator }}</span>
+                  <i class="el-icon-edit table_edit" style="margin-left: 10px;" @click="onChangeValue(scope.row, 'denominator')" v-show="scope.row.source === '人工录入' && scope.row.time !== '全年'"></i>
                 </div>
               </template>
             </el-table-column>
             <el-table-column align="center">
               <template slot="header" slot-scope="scope">
-                <span>{{ cloumn2 }}</span>
+                <span>{{ cloumn3 }}</span>
                 <i class="el-icon-edit table_edit" v-if="scope._self.tableData[0].source === '人工录入' && scope._self.judgeEdit" @click="onChangeValue"></i>
               </template>
               <template slot-scope="scope">
@@ -81,9 +81,9 @@
                 <!-- 非人工录入不可修改 -->
                 <!-- 菜单未标记的不可修改 -->
                 <div>
-                  <el-button type="text" v-if="scope.row.source !== '人工录入'" class="pointer link" @click="toCaseIndexPage(scope.row, 'denominator')">{{ scope.row.denominator }}</el-button>
-                  <span v-else>{{ scope.row.numerator }}</span>
-                  <i class="el-icon-edit table_edit" style="margin-left: 10px;" @click="onChangeValue(scope.row, 'denominator')" v-show="scope.row.source === '人工录入' && scope.row.time !== '全年'"></i>
+                  <el-button type="text" v-if="scope.row.source !== '人工录入'" class="pointer link" @click="toCaseIndexPage(scope.row, 'numerator')">{{ scope.row.numerator }}</el-button>
+                  <span v-else>{{ scope.row.denominator }}</span>
+                  <i class="el-icon-edit table_edit" style="margin-left: 10px;" @click="onChangeValue(scope.row, 'numerator')" v-show="scope.row.source === '人工录入' && scope.row.time !== '全年'"></i>
                 </div>
               </template>
             </el-table-column>

+ 23 - 25
src/views/encoder/index.vue

@@ -325,28 +325,28 @@
       },
       // 获取统计信息
       async getTongjiData() {
-        // await this.$axios_new.post('/api/bmy/qualityStatistics', this.formInline).then(res => {
-        //   this.tongjiData = res.data
-        // })
-        this.tongjiData = {
-          "blSum": 1,
-          "dayAvg": 1,
-          "qxSum": 1,
-          "averageError": "100.00",
-          "averageScore": "99.00",
-          "minScore": 99,
-          "you_sum": 1,
-          "liang_sum": 0,
-          "zhong_sum": 0,
-          "cha_sum": 0,
-          "you_ratio": "100.00",
-          "liang_ratio": "0.00",
-          "zhong_ratio": "0.00",
-          "cha_ratio": "0.00",
-          "jbxx": 7,
-          "zlxx": 1,
-          "fyxx": 0
-        }
+        await this.$axios_new.post('/api/bmy/qualityStatistics', this.formInline).then(res => {
+          this.tongjiData = res.data
+        })
+        // this.tongjiData = {
+        //   "blSum": 1,
+        //   "dayAvg": 1,
+        //   "qxSum": 1,
+        //   "averageError": "100.00",
+        //   "averageScore": "99.00",
+        //   "minScore": 99,
+        //   "you_sum": 1,
+        //   "liang_sum": 0,
+        //   "zhong_sum": 0,
+        //   "cha_sum": 0,
+        //   "you_ratio": "100.00",
+        //   "liang_ratio": "0.00",
+        //   "zhong_ratio": "0.00",
+        //   "cha_ratio": "0.00",
+        //   "jbxx": 7,
+        //   "zlxx": 1,
+        //   "fyxx": 0
+        // }
       },
       onToggleTongjiShow() {
         this.tongji_show = !this.tongji_show
@@ -441,7 +441,7 @@
             trigger: 'item'
           },
           legend: {
-            width: '60%',
+            width: '300',
             top: '10%',
             left: 'center',
             align: 'left',
@@ -629,12 +629,10 @@
   }
   .level-text {
     float: left;
-    padding: 0 8px;
     box-sizing: border-box;
   }
   .level-percent {
     float: right;
-    padding: 0 8px;
     box-sizing: border-box;
   }
 }