浏览代码

fix: toFix comment, api add fileId

Mr. Robot 4 月之前
父节点
当前提交
6d103f4739
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 2 2
      src/api/index.ts
  2. 3 3
      src/views/HealthStatusAnalysis/index.vue

+ 2 - 2
src/api/index.ts

@@ -122,8 +122,8 @@ export function repairHisDel(id:number) {
  * @param source 来源 1是实时 2是模拟
  * @returns 
  */
-export function recordAssessmentResult(params:{source:string}) {
-  return post('/healthStatusAnalysis/recordAssessmentResult',{source:params.source});
+export function recordAssessmentResult(params) {
+  return post('/healthStatusAnalysis/recordAssessmentResult',params);
 }
 /**
  * @name 评估健康状态

+ 3 - 3
src/views/HealthStatusAnalysis/index.vue

@@ -518,9 +518,9 @@ const convertToChartData = (
 const formatPressure = (value: number | string) => {
   // console.log(typeof value,'------');
   
-  if (typeof value == 'string') {
-    return Number(value).toFixed(2);
-  }
+  // if (typeof value == 'string') {
+  //   return Number(value).toFixed(2);
+  // }
   return value;
 };
 let machineImgParamsRef = ref({