Browse Source

调整匹配度相差值显示成%

littleblue55 1 month ago
parent
commit
bbb195d607
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/match/index.vue

+ 6 - 2
src/views/match/index.vue

@@ -162,7 +162,11 @@
         label="相差值"
         width="200"
         sortable
-      ></el-table-column>
+      >
+      <template v-slot="scope">
+          <span>{{ scope.row.trueThreshold }}%</span>
+        </template>
+      </el-table-column>
     </el-table>
     <!-- <el-pagination
       v-show="total > 0"
@@ -397,7 +401,7 @@ export default {
             this.tableData = res.rows.map((item) => {
               return {
                 ...item,
-                trueThreshold: parseFloat(item.trueThreshold).toFixed(4), // 转换并保留4位小数
+                trueThreshold: parseFloat(item.trueThreshold).toFixed(1), // 转换并保留4位小数
               };
             });
           }