Browse Source

Merge branch 'dev_cbx' of http://47.97.161.140:10080/zhangchuang/ocean-engineer into dev_cbx

chenbaoxin 4 months ago
parent
commit
82ab6dd1bc
2 changed files with 6 additions and 6 deletions
  1. 2 2
      src/api/index.ts
  2. 4 4
      src/views/HealthStatusAnalysis/index.vue

+ 2 - 2
src/api/index.ts

@@ -124,8 +124,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 评估健康状态

+ 4 - 4
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({
@@ -761,7 +761,7 @@ const healthyStatusText = ref({
 });
 let flag = false
 const healthyMessage = (data: Object) => {
-  if (data.avg_num = 99) {
+  if (data.avg_num == 99) {
     if (flag) {
       data.avg_num = 92
       flag = false