fix: BUG修改
This commit is contained in:
parent
e8a62defc5
commit
386d714c3e
@ -13,7 +13,7 @@ NODE_ENV = 'development'
|
||||
# 沈阳合盈线上
|
||||
# VITE_API_URL = "http://101.43.164.214:45022"
|
||||
# 演示平台
|
||||
VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
|
||||
# 百色七参数线上地址
|
||||
# VITE_API_URL = 'http://101.43.164.214:11111'
|
||||
# 七参数标准版(测试平台)
|
||||
@ -21,7 +21,7 @@ VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
|
||||
# 七参数标准版(测试平台)
|
||||
# VITE_API_URL = 'http://182.90.224.237:15551'
|
||||
# agjt
|
||||
# VITE_API_URL = 'http://47.93.215.234:9809'
|
||||
VITE_API_URL = 'http://47.93.215.234:9809'
|
||||
# 上传
|
||||
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='
|
||||
|
||||
|
||||
@ -15,13 +15,13 @@ NODE_ENV = "production"
|
||||
# VITE_API_URL = 'http://101.43.164.214:11111'
|
||||
|
||||
# 七参数标准版(演示平台)
|
||||
VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
|
||||
# 七参数标准版(测试平台)
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:15551'
|
||||
# 七参数标准版(测试平台)
|
||||
# VITE_API_URL = 'http://182.90.224.237:15551'
|
||||
# agjt
|
||||
# VITE_API_URL = 'http://47.93.215.234:9809'
|
||||
VITE_API_URL = 'http://47.93.215.234:9809'
|
||||
|
||||
# 打包
|
||||
VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url='
|
||||
|
||||
@ -23,9 +23,9 @@ export const BAIDU_MAP_KEY: string = "";
|
||||
export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL;
|
||||
|
||||
// 项目环境标识配置 部署时需更改对应的项目
|
||||
export const COMPANY: string = ""; //标准版
|
||||
// export const COMPANY: string = ""; //标准版
|
||||
// export const COMPANY: string = "as"; //鞍山项目
|
||||
// export const COMPANY: string = "agjt"; //鞍钢集团
|
||||
export const COMPANY: string = "agjt"; //鞍钢集团
|
||||
// export const COMPANY: string = "hfqc"; //合肥启程项目
|
||||
// export const COMPANY: string = "jsyc"; // 江苏盐城项目
|
||||
// export const COMPANY: string = "syhy"; //沈阳合盈盘锦项目 (需要去src\routers\modules\staticRouter.ts更换首页)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="box">
|
||||
<div class="num">{{ totalNum }}</div>
|
||||
<!-- <div class="num">{{ totalNum }}</div> -->
|
||||
<div class="styleImg"></div>
|
||||
<div id="echartsTest" style="width: 100%; height: 100%"></div>
|
||||
<div class="selectRight">
|
||||
@ -287,7 +287,7 @@ const seriesOption = reactive([
|
||||
name: "",
|
||||
type: "pie",
|
||||
clockWise: false,
|
||||
center: ["51%", "51.6%"],
|
||||
center: ["52%", "51%"],
|
||||
|
||||
radius: [70, 60],
|
||||
hoverAnimation: false,
|
||||
@ -320,7 +320,7 @@ const seriesOption = reactive([
|
||||
{
|
||||
type: "pie",
|
||||
radius: [50, 50],
|
||||
center: ["51%", "51.6%"],
|
||||
center: ["52%", "51%"],
|
||||
zlevel: 2,
|
||||
silent: true,
|
||||
label: {
|
||||
@ -341,11 +341,18 @@ const option = reactive({
|
||||
// backgroundColor: "#0A2E5D",
|
||||
color: color,
|
||||
title: {
|
||||
text: "出勤总人数",
|
||||
top: "55%",
|
||||
text: 0,
|
||||
subtext: "出勤总人数",
|
||||
top: "39%",
|
||||
textAlign: "center",
|
||||
left: "50%",
|
||||
left: "51%",
|
||||
textStyle: {
|
||||
color: "#fff",
|
||||
fontSize: 24,
|
||||
fontWeight: "400",
|
||||
fontFamily: "sadigitalNumber"
|
||||
},
|
||||
subtextStyle: {
|
||||
color: "#fff",
|
||||
fontSize: 14,
|
||||
fontWeight: "400"
|
||||
@ -436,16 +443,15 @@ const getEnterpriseInfoList = async () => {
|
||||
pageNo: 1,
|
||||
pageSize: 999
|
||||
});
|
||||
if(res.result.total !== '0'){
|
||||
if (res.result.total !== "0") {
|
||||
console.log("获取劳务班组公司数据1", res);
|
||||
noiseList.value = res.result.records;
|
||||
valueName.value = res.result.records[0].enterpriseName;
|
||||
enterpriseId.value = res.result.records[0].id;
|
||||
getList(enterpriseId.value);
|
||||
mitts.emit("enterpriseId", enterpriseId.value);
|
||||
}else{
|
||||
mitts.emit("enterpriseId", '无数据');
|
||||
|
||||
} else {
|
||||
mitts.emit("enterpriseId", "无数据");
|
||||
}
|
||||
};
|
||||
//切换企业
|
||||
@ -469,6 +475,7 @@ const getList = async val => {
|
||||
for (let i = 0; i < res.result.length; i++) {
|
||||
totalNum.value += res.result[i].attendancePersonTotal; // 累加字段值
|
||||
}
|
||||
option.title.text = totalNum.value;
|
||||
}
|
||||
draw();
|
||||
};
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<Card title="部门管理人员出勤分析">
|
||||
<div class="box">
|
||||
<div class="num">{{ max }}</div>
|
||||
<!-- <div class="num">{{ max }}</div> -->
|
||||
<div class="styleImg"></div>
|
||||
<div id="echartsRight" style="width: 100%; height: 100%"></div>
|
||||
<div class="rightHeader">
|
||||
@ -180,7 +180,7 @@ function initOption() {
|
||||
{
|
||||
name: "",
|
||||
type: "pie",
|
||||
center: ["26%", "52%"],
|
||||
center: ["27%", "50%"],
|
||||
clockWise: false,
|
||||
radius: [70, 60],
|
||||
hoverAnimation: false,
|
||||
@ -195,7 +195,7 @@ function initOption() {
|
||||
},
|
||||
{
|
||||
type: "pie",
|
||||
center: ["26%", "52%"],
|
||||
center: ["27%", "50%"],
|
||||
|
||||
radius: [50, 50],
|
||||
zlevel: 2,
|
||||
@ -220,16 +220,22 @@ function initOption() {
|
||||
center: ["27%", "45%"],
|
||||
|
||||
title: {
|
||||
text: "出勤总人数",
|
||||
top: "128",
|
||||
|
||||
text: max.value,
|
||||
subtext: "出勤总人数",
|
||||
top: "90",
|
||||
textAlign: "center",
|
||||
left: "25%",
|
||||
left: "26%",
|
||||
textStyle: {
|
||||
color: "#fff",
|
||||
fontSize: 24,
|
||||
fontWeight: "400",
|
||||
fontFamily: "sadigitalNumber"
|
||||
},
|
||||
subtextStyle: {
|
||||
color: "#fff",
|
||||
fontSize: 14,
|
||||
fontWeight: "400"
|
||||
}
|
||||
},
|
||||
},
|
||||
tooltip: {
|
||||
show: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user