提交
This commit is contained in:
@ -11,9 +11,9 @@ VITE_APP_ENV = 'development'
|
||||
# 李陈杰 209
|
||||
# VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
||||
# 曾涛
|
||||
# VITE_APP_BASE_API = 'http://192.168.110.149:8899'
|
||||
VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
||||
# 罗成
|
||||
VITE_APP_BASE_API = 'http://192.168.110.149:8899'
|
||||
# VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
||||
# 朱银
|
||||
# VITE_APP_BASE_API = 'http://192.168.110.149:8899'
|
||||
#曾涛
|
||||
|
||||
@ -205,7 +205,9 @@ const getProjectAttendanceCount = async () => {
|
||||
try {
|
||||
const res = await allAttendanceCount();
|
||||
const { data, code } = res;
|
||||
if (code === 0 && data) {
|
||||
if (code === 200) {
|
||||
console.log(data, 222222222);
|
||||
|
||||
// 直接使用接口返回的数据
|
||||
attendanceCount.value = data.attendanceCount || 0;
|
||||
attendanceRate.value = data.attendanceRate || 0;
|
||||
|
||||
@ -90,7 +90,7 @@ export let barOption = {
|
||||
trigger: 'axis',
|
||||
// formatter: '{b0}:{c0}万元',
|
||||
formatter: (params: any) => {
|
||||
console.log(params);
|
||||
// console.log(params);
|
||||
const projectName = params[0].name;
|
||||
// params 是数组,对应每条柱子
|
||||
// return params.map((p: any) => `${p.name} <br/> ${p.seriesName}:${Number(p.value).toFixed(2)} MW`).join('<br/>');
|
||||
|
||||
@ -155,7 +155,7 @@ const initPieChart = () => {
|
||||
const getOutputData = async () => {
|
||||
const res = await outpuProgress();
|
||||
if (res.code == 200) {
|
||||
designAreaData.value = res.data.map((item: any) => Number(item.plannedCapacity * item.progressPercentage));
|
||||
designAreaData.value = res.data.map((item: any) => Number((item.plannedCapacity * item.progressPercentage) / 100));
|
||||
transferAreaData.value = res.data.map((item: any) => Number(item.plannedCapacity));
|
||||
barNames.value = res.data.map((item: any) => item.projectName);
|
||||
initLineChart();
|
||||
|
||||
Reference in New Issue
Block a user