修改后台首页数据显示
parent
6181678825
commit
db1048aa1f
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="index-nav-body">
|
<div class="index-nav-body">
|
||||||
<div class="index-nav-body-title">劳务人员出勤率</div>
|
<div class="index-nav-body-title">劳务人员出勤率</div>
|
||||||
<div class="chart-content" v-if="chartData.length > 0">
|
<div class="chart-content" v-if="sum > 0">
|
||||||
<my-chart ref="chart" id="navAttLaborerRateChart" width="100%" height="100%" :render="renderChart" />
|
<my-chart ref="chart" id="navAttLaborerRateChart" width="100%" height="100%" :render="renderChart" />
|
||||||
</div>
|
</div>
|
||||||
<div class="no-data" v-if="chartData.length == 0">
|
<div class="no-data" v-if="sum == 0">
|
||||||
<svg-icon icon-class="nodata" />
|
<svg-icon icon-class="nodata" />
|
||||||
<div>暂无数据</div>
|
<div>暂无数据</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,6 +28,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chartData: [],
|
chartData: [],
|
||||||
|
sum:0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -91,6 +92,7 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let total = this.attInfo ? this.attInfo.job.worker : 0;
|
let total = this.attInfo ? this.attInfo.job.worker : 0;
|
||||||
let totalAtt = this.attInfo ? this.attInfo.att.worker : 0;
|
let totalAtt = this.attInfo ? this.attInfo.att.worker : 0;
|
||||||
|
this.sum=totalAtt+total;
|
||||||
this.chartData = [
|
this.chartData = [
|
||||||
{
|
{
|
||||||
name: "出勤人数",
|
name: "出勤人数",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="index-nav-body">
|
<div class="index-nav-body">
|
||||||
<div class="index-nav-body-title">管理人员出勤率</div>
|
<div class="index-nav-body-title">管理人员出勤率</div>
|
||||||
<div class="chart-content" v-if="chartData.length > 0">
|
<div class="chart-content" v-if="sum > 0">
|
||||||
<my-chart ref="chart" id="navAttManagerRateChart" width="100%" height="100%" :render="renderChart" />
|
<my-chart ref="chart" id="navAttManagerRateChart" width="100%" height="100%" :render="renderChart" />
|
||||||
</div>
|
</div>
|
||||||
<div class="no-data" v-if="chartData.length == 0">
|
<div class="no-data" v-if="sum == 0">
|
||||||
<svg-icon icon-class="nodata" />
|
<svg-icon icon-class="nodata" />
|
||||||
<div>暂无数据</div>
|
<div>暂无数据</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,6 +27,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chartData: [],
|
chartData: [],
|
||||||
|
sum:0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -90,6 +91,7 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let total=this.attInfo?this.attInfo.job.mgr:0;
|
let total=this.attInfo?this.attInfo.job.mgr:0;
|
||||||
let totalAtt=this.attInfo?this.attInfo.att.mgr:0;
|
let totalAtt=this.attInfo?this.attInfo.att.mgr:0;
|
||||||
|
this.sum=totalAtt+total;
|
||||||
this.chartData = [
|
this.chartData = [
|
||||||
{
|
{
|
||||||
name: "出勤人数",
|
name: "出勤人数",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="index-nav-body">
|
<div class="index-nav-body">
|
||||||
<div class="index-nav-body-title">劳务人员完成三级安全教育比例</div>
|
<div class="index-nav-body-title">劳务人员完成三级安全教育比例</div>
|
||||||
<div class="chart-content" v-if="chartData.length > 0">
|
<div class="chart-content" v-if="sum > 0">
|
||||||
<my-chart ref="chart" id="navAttWokerPropChart" width="100%" height="100%" :render="renderChart" />
|
<my-chart ref="chart" id="navAttWokerPropChart" width="100%" height="100%" :render="renderChart" />
|
||||||
</div>
|
</div>
|
||||||
<div class="no-data" v-if="chartData.length == 0">
|
<div class="no-data" v-if="sum == 0">
|
||||||
<svg-icon icon-class="nodata" />
|
<svg-icon icon-class="nodata" />
|
||||||
<div>暂无数据</div>
|
<div>暂无数据</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,6 +28,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chartData: [],
|
chartData: [],
|
||||||
|
sum:0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -91,6 +92,7 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let total = this.attInfo ? this.attInfo.job.total : 0;
|
let total = this.attInfo ? this.attInfo.job.total : 0;
|
||||||
let edu = this.attInfo ? this.attInfo.edu : 0;
|
let edu = this.attInfo ? this.attInfo.edu : 0;
|
||||||
|
this.sum=total+edu;
|
||||||
this.chartData = [
|
this.chartData = [
|
||||||
{
|
{
|
||||||
name: "参与人数",
|
name: "参与人数",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="index-nav-body">
|
<div class="index-nav-body">
|
||||||
<div class="index-nav-body-title">今日出勤率</div>
|
<div class="index-nav-body-title">今日出勤率</div>
|
||||||
<div class="chart-content" v-if="chartData.length > 0">
|
<div class="chart-content" v-if="sum> 0">
|
||||||
<my-chart ref="chart" id="navAttendanceRateChart" width="100%" height="100%" :render="renderChart" />
|
<my-chart ref="chart" id="navAttendanceRateChart" width="100%" height="100%" :render="renderChart" />
|
||||||
</div>
|
</div>
|
||||||
<div class="no-data" v-if="chartData.length == 0">
|
<div class="no-data" v-if="sum == 0">
|
||||||
<svg-icon icon-class="nodata" />
|
<svg-icon icon-class="nodata" />
|
||||||
<div>暂无数据</div>
|
<div>暂无数据</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,6 +28,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chartData: [],
|
chartData: [],
|
||||||
|
sum:0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -90,6 +91,7 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let total=this.attInfo?this.attInfo.job.total:0;
|
let total=this.attInfo?this.attInfo.job.total:0;
|
||||||
let totalAtt=this.attInfo?this.attInfo.att.total:0;
|
let totalAtt=this.attInfo?this.attInfo.att.total:0;
|
||||||
|
this.sum=total+totalAtt
|
||||||
this.chartData = [
|
this.chartData = [
|
||||||
{
|
{
|
||||||
name: "出勤人数",
|
name: "出勤人数",
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default defineConfig(({ mode, command }) => {
|
||||||
// 部署生产环境和开发环境下的URL。
|
// 部署生产环境和开发环境下的URL。
|
||||||
// 默认情况下,vite 会假设你的应用是被部署在一个域名的根路径上
|
// 默认情况下,vite 会假设你的应用是被部署在一个域名的根路径上
|
||||||
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
|
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
|
||||||
base: VITE_APP_ENV === "production" ? "./xd/" : "./xd/",
|
base: VITE_APP_ENV === "production" ? "/xd/" : "./xd/",
|
||||||
plugins: createVitePlugins(env, command === "build"),
|
plugins: createVitePlugins(env, command === "build"),
|
||||||
resolve: {
|
resolve: {
|
||||||
// https://cn.vitejs.dev/config/#resolve-alias
|
// https://cn.vitejs.dev/config/#resolve-alias
|
||||||
|
|
Loading…
Reference in New Issue