flat: 6.5 改版
This commit is contained in:
@@ -101,8 +101,7 @@
|
||||
:disabled="downloadButton"
|
||||
@click="handleExport"
|
||||
>导出
|
||||
</el-button
|
||||
>
|
||||
</el-button>
|
||||
</template>
|
||||
<template slot-scope="{row}" slot="menu">
|
||||
<el-button type="text"
|
||||
@@ -111,6 +110,12 @@
|
||||
@click="serveLog(row)"
|
||||
>查看日志
|
||||
</el-button>
|
||||
<el-button type="text"
|
||||
icon="el-icon-circle-check"
|
||||
size="small"
|
||||
@click="checkUserInfo(row)"
|
||||
>审核
|
||||
</el-button>
|
||||
</template>
|
||||
</avue-crud>
|
||||
|
||||
@@ -141,6 +146,7 @@
|
||||
:data="logDataSource"
|
||||
:option="logOption"
|
||||
:page.sync="logPage"
|
||||
:table-loading="loadingLog"
|
||||
@row-save="saveLog"
|
||||
@row-update="saveUpdateLog"
|
||||
@row-del="removeLog"
|
||||
@@ -163,6 +169,36 @@
|
||||
<transfer-groups ref="transferGroups" @refresh="refresh" :ids="ids"></transfer-groups>
|
||||
<!--/转移分组dialog-->
|
||||
<resume ref="resume" v-show="false"></resume>
|
||||
|
||||
<PromptDialog
|
||||
:visible="dialogFlag"
|
||||
title="审核"
|
||||
:back-btn-status="1"
|
||||
submit-text="确 定"
|
||||
sub-title="请核对人员信息后再进行审核通过,通过将在已认定人群可见,驳回该用户将从人群中删除,在人员服务日志中可见"
|
||||
:tips="[
|
||||
'人员信息描述不清晰或过于简单;',
|
||||
'人员信息存在违法违规行为;',
|
||||
'人员信息的薪资、福利等待遇不符合市场标准;',
|
||||
]"
|
||||
@onClose="dialogFlag = false; GroupValue = ''"
|
||||
@onCancel="diaLogCancel"
|
||||
@onConfirm="diaLogConfirm"
|
||||
>
|
||||
<template v-slot:header>
|
||||
<div class="input_box" style="margin-top: 20px">
|
||||
<el-select style="width: 100%" clearable v-model="GroupValue" placeholder="请选择分组 (驳回不用选择此项)">
|
||||
<el-option
|
||||
v-for="item in selecTreeData"
|
||||
:key="item.id"
|
||||
:label="item.groupName"
|
||||
:value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</template>
|
||||
</PromptDialog>
|
||||
|
||||
</basic-container>
|
||||
<ied ref="ied"></ied>
|
||||
</el-col>
|
||||
@@ -179,7 +215,8 @@ import {
|
||||
getDept,
|
||||
removeDept,
|
||||
upload,
|
||||
getDeptMyTree
|
||||
getDeptMyTree,
|
||||
talentsApproval, talentsEliminate
|
||||
} from "@/api/tenant/talents";
|
||||
import {getWorkTypes, getLabelList} from "@/api/tenant/common";
|
||||
import {mapGetters} from "vuex";
|
||||
@@ -193,6 +230,7 @@ import {excelAccept} from "@/common/accept";
|
||||
import TextTooltip from '@/components/text-tooltip'
|
||||
import {exportList} from "@/api/workstation/post";
|
||||
import {addServeLog, getMainServeUserLog, removeServeLog, updateServeLog} from "@/api/tenant/serve";
|
||||
import PromptDialog from "@/components/promptDialog/index.vue";
|
||||
|
||||
let page = {
|
||||
pageSize: 10,
|
||||
@@ -212,6 +250,8 @@ export default {
|
||||
name: "tenant_talents",
|
||||
data() {
|
||||
return {
|
||||
dialogFlag: false,
|
||||
dialogInfo: null,
|
||||
downloadButton: false,
|
||||
activeNames: "1",
|
||||
isIndeterminate: false,
|
||||
@@ -231,6 +271,7 @@ export default {
|
||||
page: Object.assign({}, page),
|
||||
logPage: Object.assign({}, page),
|
||||
logDataSource: [],
|
||||
loadingLog: false,
|
||||
innerDrawerLog: false,
|
||||
selectUserServeLog: null,
|
||||
tempWorkType: [],
|
||||
@@ -242,9 +283,11 @@ export default {
|
||||
data: [],
|
||||
obj: {},
|
||||
excelForm: {isCovered: 1},
|
||||
selecTreeData: [],
|
||||
GroupValue: ''
|
||||
};
|
||||
},
|
||||
components: {addGroups, transferGroups, Resume, ied, TextTooltip},
|
||||
components: {addGroups, transferGroups, Resume, ied, TextTooltip, PromptDialog},
|
||||
watch: {},
|
||||
computed: {
|
||||
...mapGetters(["permission", "userInfo"]),
|
||||
@@ -301,6 +344,7 @@ export default {
|
||||
searchBtn: true,
|
||||
searchShow: true,
|
||||
viewBtn: true,
|
||||
menuWidth: 170,
|
||||
searchMenuSpan: 6,
|
||||
border: true,
|
||||
index: false,
|
||||
@@ -655,11 +699,72 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.initDept();
|
||||
this.groupTypeDept()
|
||||
// this.getWorkTypes();
|
||||
this.getLabelList();
|
||||
this.getDept()
|
||||
},
|
||||
methods: {
|
||||
groupTypeDept() {
|
||||
getDept({groupType: 1}).then((res) => {
|
||||
this.selecTreeData = res.data.data.list;
|
||||
});
|
||||
},
|
||||
checkUserInfo(row) {
|
||||
this.dialogInfo = row
|
||||
this.dialogFlag = true
|
||||
},
|
||||
diaLogCancel(value) {
|
||||
if (value) {
|
||||
let params = {
|
||||
idNumber: this.dialogInfo.idNumber,
|
||||
id: this.dialogInfo.id,
|
||||
approvalStatus: 1,
|
||||
content: value,
|
||||
}
|
||||
this.$confirm("确定将选择数据驳回?", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
})
|
||||
.then(() => {
|
||||
return talentsApproval(params);
|
||||
})
|
||||
.then(() => {
|
||||
this.onLoad(this.page, this.query);
|
||||
this.dialogFlag = false
|
||||
this.$message.success('操作成功');
|
||||
});
|
||||
} else {
|
||||
this.$message.error("请填写驳回原因");
|
||||
}
|
||||
},
|
||||
diaLogConfirm(value) {
|
||||
if (this.GroupValue) {
|
||||
let params = {
|
||||
idNumber: this.dialogInfo.idNumber,
|
||||
id: this.dialogInfo.id,
|
||||
approvalStatus: 0,
|
||||
content: value,
|
||||
groupId: this.GroupValue
|
||||
}
|
||||
this.$confirm("确定通过?", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
})
|
||||
.then(() => {
|
||||
return talentsApproval(params);
|
||||
})
|
||||
.then(() => {
|
||||
this.onLoad(this.page, this.query);
|
||||
this.dialogFlag = false
|
||||
this.$message.success('操作成功');
|
||||
});
|
||||
} else {
|
||||
this.$message.error("请选择分组");
|
||||
}
|
||||
},
|
||||
handleExport() {
|
||||
this.downloadButton = true
|
||||
// 0 潜在 1 已认定
|
||||
@@ -1186,17 +1291,17 @@ export default {
|
||||
serveLog(row) {
|
||||
console.log('服务日志', row)
|
||||
this.selectUserServeLog = row
|
||||
this.loadingLog = true
|
||||
getMainServeUserLog({
|
||||
idNumber: row.id,
|
||||
idNumber: row.idNumber,
|
||||
current: this.logPage.currentPage,
|
||||
size: this.logPage.pageSize
|
||||
}).then(res => {
|
||||
let _this = this;
|
||||
this.loadingLog = false
|
||||
const {records, current, size, total} = res.data.data
|
||||
console.log(records, total)
|
||||
_this.logDataSource = records
|
||||
_this.innerDrawerLog = true
|
||||
_this.logPage = {
|
||||
this.logDataSource = records
|
||||
this.innerDrawerLog = true
|
||||
this.logPage = {
|
||||
pageSize: size,
|
||||
currentPage: current,
|
||||
total: total,
|
||||
|
||||
Reference in New Issue
Block a user