修改柱状图hover显示

This commit is contained in:
Vce 2024-06-04 22:23:06 +08:00
parent 99c597d136
commit ca1a598607
2 changed files with 6 additions and 4 deletions

View File

@ -23,8 +23,8 @@ NODE_ENV = 'development'
# 七参数标准版(测试平台) # 七参数标准版(测试平台)
# VITE_API_URL = 'http://182.90.224.237:15551' # VITE_API_URL = 'http://182.90.224.237:15551'
# agjt # agjt
VITE_API_URL = 'http://42.180.188.17:9809' #生产环境 # VITE_API_URL = 'http://42.180.188.17:9809' #生产环境
# VITE_API_URL = 'http://42.180.188.17:11211' #测试环境 VITE_API_URL = 'http://42.180.188.17:11211' #测试环境
# VITE_API_URL = 'http://42.180.188.17:11211' #测试环境 # VITE_API_URL = 'http://42.180.188.17:11211' #测试环境
# VITE_API_URL = 'http://jxj.zhgdyun.com:19812' # VITE_API_URL = 'http://jxj.zhgdyun.com:19812'
# 苏立信 # 苏立信

View File

@ -1,4 +1,4 @@
<template> s<template>
<div class="leftBottom"> <div class="leftBottom">
<div class="header"> <div class="header">
<div class="hLeft">项目人员考勤</div> <div class="hLeft">项目人员考勤</div>
@ -305,7 +305,9 @@ function drawBar() {
if (!attendanceRhbRate) { if (!attendanceRhbRate) {
attendanceRhbRate = "--"; attendanceRhbRate = "--";
} else { } else {
attendanceRhbRate = attendanceRhbRate + "%"; if(attendanceRhbRate > 0) attendanceRhbRate = "<span style='color:blue;margin-right:5px'>↑</span>"+Math.abs(attendanceRhbRate)+"%"
if(attendanceRhbRate < 0) attendanceRhbRate = "<span style='color:darkred;margin-right:5px'>↓</span>"+Math.abs(attendanceRhbRate)+"%"
// attendanceRhbRate = attendanceRhbRate + "%";
} }
console.log(params); console.log(params);
console.log(123123, projectCompanyWorkTotalList.value[params.dataIndex].attendancePersonRate); console.log(123123, projectCompanyWorkTotalList.value[params.dataIndex].attendancePersonRate);