From 32daa14df30b8b8283f2c30ca95fc4a574187caf Mon Sep 17 00:00:00 2001
From: Alan <1124498879@qq.com>
Date: 星期日, 21 二月 2021 13:45:27 +0800
Subject: [PATCH] 提交查询bug
---
src/views/dashboard/index.vue | 40 ++++++++++++++++++++++++++--------------
1 files changed, 26 insertions(+), 14 deletions(-)
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index 75e5788..e1b5447 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -65,14 +65,14 @@
<p>超龄员工人数</p>
</el-card>
</el-col>
+ </el-row>
+ <el-row :gutter="20">
<el-col :span="4">
<el-card shadow="always" class="card-info" @click.native="showXzyg('离职员工总数','6')">
<p class="card-number">{{ this.total.lzyg }}</p>
<p>离职员工总数</p>
</el-card>
</el-col>
- </el-row>
- <el-row :gutter="20">
<el-col :span="4">
<el-card shadow="always" class="card-info" @click.native="showXzyg('辞职申请人数','7')">
<p class="card-number">{{ this.total.czyg }}</p>
@@ -97,6 +97,8 @@
<p>公司辞退人数</p>
</el-card>
</el-col>
+ </el-row>
+ <el-row :gutter="20">
<el-col :span="4">
<el-card shadow="always" class="card-info" @click.native="showht('有效合同','11')">
<p class="card-number">{{ this.total.yxht }}</p>
@@ -109,9 +111,6 @@
<p>到期合同</p>
</el-card>
</el-col>
- </el-row>
- <el-row :gutter="20">
-
<el-col :span="4">
<el-card shadow="always" class="card-info" @click.native="showht('新签合同','13')">
<p class="card-number">{{ this.total.xinqht }}</p>
@@ -130,6 +129,8 @@
<p>解除合同</p>
</el-card>
</el-col>
+ </el-row>
+ <el-row :gutter="20">
<el-col :span="4">
<el-card shadow="always" class="card-info" @click.native="showcq('出勤人数','1')">
<p class="card-number">{{ this.total.cqrs }}</p>
@@ -148,9 +149,6 @@
<p>员工体验</p>
</el-card>
</el-col>
- </el-row>
- <el-row :gutter="20">
-
<el-col :span="4">
<el-card shadow="always" class="card-info" @click.native="showcq('员工加班','2')">
<p class="card-number">{{ this.total.ygjb }}</p>
@@ -163,6 +161,8 @@
<p>员工旷工</p>
</el-card>
</el-col>
+ </el-row>
+ <el-row :gutter="20">
<el-col :span="4">
<el-card shadow="always" class="card-info" @click.native="showlz('劳资案件','1')">
<p class="card-number">{{ this.total.lzaj }}</p>
@@ -187,15 +187,14 @@
<p>社保申请</p>
</el-card>
</el-col>
- </el-row>
- <el-row :gutter="20">
-
<el-col :span="4">
<el-card shadow="always" class="card-info" @click.native="showsyj('失业金案件','3')">
<p class="card-number">{{ this.total.syj }}</p>
<p>失业金案件</p>
</el-card>
</el-col>
+ </el-row>
+ <el-row :gutter="20">
<el-col :span="4">
<el-card shadow="always" class="card-info" @click.native="showXzyg('身份证到期','11')">
<p class="card-number">{{ this.total.sfz }}</p>
@@ -526,9 +525,22 @@
this.total.xinqht = data.xinqht
this.total.xqht = data.xqht
this.total.dqht = data.dqht
- this.total.cqrs = data.cqrs
- this.total.ygjb = data.ygjb
- this.total.ygkg = data.ygkg
+ debugger
+ if (this.selectIndex === 0 || this.selectIndex === 1) {
+ this.total.cqrs = '--'
+ } else {
+ this.total.cqrs = data.cqrs
+ }
+ if (this.selectIndex === 0 || this.selectIndex === 1) {
+ this.total.ygjb = '--'
+ } else {
+ this.total.ygjb = data.ygjb
+ }
+ if (this.selectIndex === 0 || this.selectIndex === 1) {
+ this.total.ygkg = '--'
+ } else {
+ this.total.ygkg = data.ygkg
+ }
this.total.ygqj = data.ygqj
this.total.lzaj = data.lzaj
this.total.gsaj = data.gsaj
--
Gitblit v1.8.0