From 82ed17ab56fda72e654eb84f4b974bcdc051d33a Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期四, 04 二月 2021 22:31:21 +0800
Subject: [PATCH] feat(信息录入): 基本信息提交功能实现
---
src/views/user/Informationinput.vue | 57 ++++++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 42 insertions(+), 15 deletions(-)
diff --git a/src/views/user/Informationinput.vue b/src/views/user/Informationinput.vue
index 94a08f3..532a58b 100644
--- a/src/views/user/Informationinput.vue
+++ b/src/views/user/Informationinput.vue
@@ -4,46 +4,46 @@
<el-aside width="200px">
<el-timeline>
<el-timeline-item @click.native="isShow(showArr[0].show, 0)">
- <span :class="thisShowIndex==0?'selectedTimeline':''">基本信息</span>
+ <span :class="thisShowIndex===0?'selectedTimeline':''">基本信息</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[1].show, 1)">
- <span :class="thisShowIndex==1?'selectedTimeline':''">工作经历</span>
+ <span :class="thisShowIndex===1?'selectedTimeline':''">工作经历</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[2].show, 2)">
- <span :class="thisShowIndex==2?'selectedTimeline':''">体检信息</span>
+ <span :class="thisShowIndex===2?'selectedTimeline':''">体检信息</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[3].show, 3)">
- <span :class="thisShowIndex==3?'selectedTimeline':''">合同信息</span>
+ <span :class="thisShowIndex===3?'selectedTimeline':''">合同信息</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[4].show, 4)">
- <span :class="thisShowIndex==4?'selectedTimeline':''">考勤情况</span>
+ <span :class="thisShowIndex===4?'selectedTimeline':''">考勤情况</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[5].show, 5)">
- <span :class="thisShowIndex==5?'selectedTimeline':''">请假记录</span>
+ <span :class="thisShowIndex===5?'selectedTimeline':''">请假记录</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[6].show, 6)">
- <span :class="thisShowIndex==6?'selectedTimeline':''">辞职申请</span>
+ <span :class="thisShowIndex===6?'selectedTimeline':''">辞职申请</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[7].show, 7)">
- <span :class="thisShowIndex==7?'selectedTimeline':''">失业金领取</span>
+ <span :class="thisShowIndex===7?'selectedTimeline':''">失业金领取</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[8].show, 8)">
- <span :class="thisShowIndex==8?'selectedTimeline':''">社保申请</span>
+ <span :class="thisShowIndex===8?'selectedTimeline':''">社保申请</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[9].show, 9)">
- <span :class="thisShowIndex==9?'selectedTimeline':''">意外险案件</span>
+ <span :class="thisShowIndex===9?'selectedTimeline':''">意外险案件</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[10].show, 10)">
- <span :class="thisShowIndex==10?'selectedTimeline':''">工伤案件</span>
+ <span :class="thisShowIndex===10?'selectedTimeline':''">工伤案件</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[11].show, 11)">
- <span :class="thisShowIndex==11?'selectedTimeline':''">劳资案件</span>
+ <span :class="thisShowIndex===11?'selectedTimeline':''">劳资案件</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[12].show, 12)">
- <span :class="thisShowIndex==12?'selectedTimeline':''">不良记录</span>
+ <span :class="thisShowIndex===12?'selectedTimeline':''">不良记录</span>
</el-timeline-item>
<el-timeline-item @click.native="isShow(showArr[13].show, 13)">
- <span :class="thisShowIndex==13?'selectedTimeline':''">备注信息</span>
+ <span :class="thisShowIndex===13?'selectedTimeline':''">备注信息</span>
</el-timeline-item>
</el-timeline>
</el-aside>
@@ -420,7 +420,13 @@
<el-table-column prop="remarkDate" label="备注日期" width="180" />
<el-table-column prop="remarkContent" label="备注信息" width="400" />
</el-table>
- <pagination v-show="total>0" :total="total" :page.sync="pagination.num" :limit.sync="pagination.size" @pagination="search" />
+ <pagination
+ v-show="total>0"
+ :total="total"
+ :page.sync="pagination.num"
+ :limit.sync="pagination.size"
+ @pagination="search"
+ />
<el-col :span="24">
<div style="margin: 0px auto; width: 250px;margin-top: 20px;">
<el-button class="nomalBtn" @click="deleteFrom()">取消</el-button>
@@ -2836,6 +2842,27 @@
deleteFrom() {
this.butDelete()
},
+ submitTo() {
+ let selected
+ switch (this.thisShowIndex) {
+ case 0:
+ selected = this.$refs.empBaseInfoTable.selection
+ if (selected.length > 0) {
+ const delIds = []
+ selected.forEach((j) => {
+ delIds.push(j.empId)
+ })
+ this.$delete(`hr/empBaseInfo/toNormal/` + delIds).then(() => {
+ this.$message({
+ message: this.$t('tips.submitSuccess'),
+ type: 'success'
+ })
+ this.selectEmpBase()
+ })
+ }
+ break
+ }
+ },
selectEmpBase() {
this.queryParams.delFlag = '2'
// eslint-disable-next-line no-undef
--
Gitblit v1.8.0