flat: 暂存
This commit is contained in:
@@ -101,11 +101,19 @@
|
||||
<!-- >查看日志-->
|
||||
<!-- </el-button>-->
|
||||
<el-button type="text"
|
||||
v-if="row.suspected === 0"
|
||||
icon="el-icon-circle-check"
|
||||
size="small"
|
||||
@click="checkUserInfo(row)"
|
||||
>剔除
|
||||
</el-button>
|
||||
<el-button type="text"
|
||||
v-if="row.suspected === 1"
|
||||
icon="el-icon-circle-check"
|
||||
size="small"
|
||||
@click="checkSuspected(row)"
|
||||
>验证审核
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<!--/自定义按钮-->
|
||||
@@ -192,7 +200,27 @@
|
||||
</div>
|
||||
</template>
|
||||
</PromptDialog>
|
||||
|
||||
<PromptDialog
|
||||
:visible="checkDialog"
|
||||
title="验证人员信息"
|
||||
submit-text="已死亡"
|
||||
back-text="未死亡"
|
||||
:isInputInfo="false"
|
||||
sub-title="请核对人员信息后再进行审核通过,核验人员是否死亡,审核记录在人员服务日志中可见"
|
||||
:tips="[
|
||||
'经查验确实死亡;',
|
||||
'经查验未死亡;',
|
||||
]"
|
||||
@onClose="checkDialog = false; backInput = ''"
|
||||
@onCancel="checkDialogCancel"
|
||||
@onConfirm="checkDialogConfirm"
|
||||
>
|
||||
<template v-slot:header>
|
||||
<div class="input_box" style="margin-top: 20px">
|
||||
<el-input type="textarea" v-model="checkInput" placeholder="请输入备注"></el-input>
|
||||
</div>
|
||||
</template>
|
||||
</PromptDialog>
|
||||
</basic-container>
|
||||
<ied ref="ied"></ied>
|
||||
</el-col>
|
||||
@@ -210,7 +238,8 @@ import {
|
||||
removeDept,
|
||||
upload,
|
||||
getDeptMyTree,
|
||||
talentsEliminate
|
||||
talentsEliminate,
|
||||
tenantSuspected
|
||||
} from "@/api/tenant/talents";
|
||||
import {getWorkTypes, getLabelList} from "@/api/tenant/common";
|
||||
import {mapGetters} from "vuex";
|
||||
@@ -243,6 +272,8 @@ export default {
|
||||
name: "tenant_talents",
|
||||
data() {
|
||||
return {
|
||||
checkInput: '',
|
||||
checkDialog: false,
|
||||
dialogFlag: false,
|
||||
dialogInfo: null,
|
||||
downloadButton: false,
|
||||
@@ -342,6 +373,7 @@ export default {
|
||||
searchShow: true,
|
||||
viewBtn: true,
|
||||
searchMenuSpan: 6,
|
||||
searchSpan: 8,
|
||||
menuWidth: 170,
|
||||
border: true,
|
||||
index: false,
|
||||
@@ -410,6 +442,17 @@ export default {
|
||||
],
|
||||
search: true,
|
||||
},
|
||||
{
|
||||
label: "人员类型",
|
||||
prop: "suspected",
|
||||
search: true,
|
||||
type: 'select',
|
||||
dicData: [
|
||||
{label: '普通人员', value: 0},
|
||||
{label: '疑似死亡人员', value: 1},
|
||||
{label: '死亡人员', value: 2},
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "手机号",
|
||||
prop: "telphone",
|
||||
@@ -708,6 +751,64 @@ export default {
|
||||
this.getDept()
|
||||
},
|
||||
methods: {
|
||||
checkDialogConfirm() {
|
||||
if (!this.checkInput) {
|
||||
return this.$message.info('请输入备注');
|
||||
}
|
||||
const params = {
|
||||
id: this.dialogInfo.id,
|
||||
idNumber: this.dialogInfo.idNumber,
|
||||
remarks: this.checkInput,
|
||||
suspected: 2,
|
||||
name: this.dialogInfo.name,
|
||||
}
|
||||
this.$confirm("确定该人员已死亡?", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
})
|
||||
.then(() => {
|
||||
return tenantSuspected(params);
|
||||
})
|
||||
.then(() => {
|
||||
this.initDept();
|
||||
this.onLoad(this.page, this.query);
|
||||
this.checkDialog = false
|
||||
this.$message.success('操作成功');
|
||||
});
|
||||
},
|
||||
checkDialogCancel() {
|
||||
if (!this.checkInput) {
|
||||
return this.$message.info('请输入备注');
|
||||
}
|
||||
const params = {
|
||||
id: this.dialogInfo.id,
|
||||
idNumber: this.dialogInfo.idNumber,
|
||||
remarks: this.checkInput,
|
||||
suspected: 0,
|
||||
name: this.dialogInfo.name,
|
||||
}
|
||||
this.$confirm("确定该人员未死亡?", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
})
|
||||
.then(() => {
|
||||
return tenantSuspected(params);
|
||||
})
|
||||
.then(() => {
|
||||
this.initDept();
|
||||
this.onLoad(this.page, this.query);
|
||||
this.checkDialog = false
|
||||
this.$message.success('操作成功');
|
||||
});
|
||||
console.log(params)
|
||||
},
|
||||
checkSuspected(row) {
|
||||
console.log(row)
|
||||
this.dialogInfo = row
|
||||
this.checkDialog = true
|
||||
},
|
||||
checkUserInfo(row) {
|
||||
this.dialogInfo = row
|
||||
this.dialogFlag = true
|
||||
|
||||
@@ -308,7 +308,7 @@ export default {
|
||||
return {
|
||||
editBtn: true,
|
||||
delBtn: true,
|
||||
addBtn: true,
|
||||
addBtn: false,
|
||||
viewBtn: true,
|
||||
border: true,
|
||||
index: true,
|
||||
@@ -374,6 +374,11 @@ export default {
|
||||
this.initDept()
|
||||
this.onLoad(this.page, this.query)
|
||||
},
|
||||
activated() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.crud.refreshTable()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
async getDept() {
|
||||
let params = {
|
||||
|
||||
Reference in New Issue
Block a user