From 1df2cd7d3f7c4e2d2d6aecbe195eef629a94ac08 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Thu, 25 Jan 2024 11:54:20 +0800 Subject: [PATCH] up --- public/dashboard/index.html | 67 ++++++++++++++----------------------- 1 file changed, 26 insertions(+), 41 deletions(-) diff --git a/public/dashboard/index.html b/public/dashboard/index.html index 595d258..b7c08ef 100644 --- a/public/dashboard/index.html +++ b/public/dashboard/index.html @@ -96,7 +96,7 @@

最新陪护单信息

- +
@@ -151,44 +151,8 @@

上月满意度评价分析

-
张** 第一人民医院内科楼15床
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
工号103 -
-
100
 
工号267 -
-
90
 
工号032 -
-
80
 
工号011 -
-
60
+
@@ -336,7 +300,17 @@ projectChartY.push(item.total) }) // 最近订单 lastOrder - + var lasts = datas.lastOrder + $(".last").empty("") + lasts.map(item=>{ + var contactName = item.contact? + item.contact.charAt(0) + item.contact.slice(1).replace(new RegExp(item.contact.charAt(1), "g"), '*') + :'**' + $(".last").append("" + +contactName+""+item.project.name+""+ + ""+item.status_name+""+ + "") + }) // 最新出院 outOrder var outs = datas.outOrder $(".outOrder").empty("") @@ -358,7 +332,18 @@ :'**' $(".tip").append(""+ contactName+"评价:"+item.comment+""+ - ""+item.project.name+""+ + ""+item.project.name+""+ + "") + }) + // 满意度 satisfied + var satisfieds = datas.satisfied + $(".satisfied").empty("") + satisfieds.map(item=>{ + var score = parseInt(item.score)*20 + var per = score +'%' + $(".satisfied").append(""+item.paramedic.name+""+ + "
"+ + ""+score+"分"+ "") }) console.log("result", result)