flat:groupType: 9
This commit is contained in:
@@ -32,7 +32,8 @@
|
|||||||
<div class="footer" style="padding-left: 6px">
|
<div class="footer" style="padding-left: 6px">
|
||||||
<el-button type="text" icon="el-icon-plus"
|
<el-button type="text" icon="el-icon-plus"
|
||||||
v-if="vaildData(permission.tenant_main_talents_latent_index_groupadd, false)"
|
v-if="vaildData(permission.tenant_main_talents_latent_index_groupadd, false)"
|
||||||
@click="updateGroups('add')">新建分组</el-button>
|
@click="updateGroups('add')">新建分组
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
@@ -77,7 +78,8 @@
|
|||||||
<template slot="resume" slot-scope="{ row }">
|
<template slot="resume" slot-scope="{ row }">
|
||||||
<div>
|
<div>
|
||||||
<el-button type="text" size="mini" @click="$refs.resume.openDialog(row)"
|
<el-button type="text" size="mini" @click="$refs.resume.openDialog(row)"
|
||||||
v-if="row.userId && row.userId !== '0'">查看简历</el-button>
|
v-if="row.userId && row.userId !== '0'">查看简历
|
||||||
|
</el-button>
|
||||||
<div v-else>暂无简历</div>
|
<div v-else>暂无简历</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -89,12 +91,17 @@
|
|||||||
<!--自定义按钮-->
|
<!--自定义按钮-->
|
||||||
<template slot="menuLeft">
|
<template slot="menuLeft">
|
||||||
<el-button type="success" size="small" plain icon="el-icon-plus" @click="handleImport"
|
<el-button type="success" size="small" plain icon="el-icon-plus" @click="handleImport"
|
||||||
v-show="vaildData(permission.tenant_main_talents_latent_index_add, false)">批量导入</el-button>
|
v-show="vaildData(permission.tenant_main_talents_latent_index_add, false)">批量导入
|
||||||
|
</el-button>
|
||||||
<el-button type="warning" size="small" plain :disabled="!selectionList.length" icon="el-icon-sort"
|
<el-button type="warning" size="small" plain :disabled="!selectionList.length" icon="el-icon-sort"
|
||||||
@click="handleTransfer" v-show="vaildData(permission.tenant_main_talents_latent_index_tansfergroup, false)">转移分组</el-button>
|
@click="handleTransfer"
|
||||||
|
v-show="vaildData(permission.tenant_main_talents_latent_index_tansfergroup, false)">转移分组
|
||||||
|
</el-button>
|
||||||
<el-button type="danger" size="small" icon="el-icon-delete" @click="handleDelete"
|
<el-button type="danger" size="small" icon="el-icon-delete" @click="handleDelete"
|
||||||
:disabled="!selectionList.length" plain v-show="vaildData(permission.tenant_main_talents_latent_index_tansfergroup, false)">
|
:disabled="!selectionList.length" plain
|
||||||
删除</el-button>
|
v-show="vaildData(permission.tenant_main_talents_latent_index_tansfergroup, false)">
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template slot="name" slot-scope="{row}">
|
<template slot="name" slot-scope="{row}">
|
||||||
<span>{{ row.name }}</span>
|
<span>{{ row.name }}</span>
|
||||||
@@ -141,15 +148,15 @@ import {
|
|||||||
removeDept,
|
removeDept,
|
||||||
upload,
|
upload,
|
||||||
} from "@/api/tenant/talents";
|
} from "@/api/tenant/talents";
|
||||||
import { getWorkTypes, getLabelList } from "@/api/tenant/common";
|
import {getWorkTypes, getLabelList} from "@/api/tenant/common";
|
||||||
import { mapGetters } from "vuex";
|
import {mapGetters} from "vuex";
|
||||||
import addGroups from "./Dialog/addGroups";
|
import addGroups from "./Dialog/addGroups";
|
||||||
import transferGroups from "./Dialog/transferGroups";
|
import transferGroups from "./Dialog/transferGroups";
|
||||||
import Resume from "@/components/resume/index";
|
import Resume from "@/components/resume/index";
|
||||||
import { check18IdCardNo, isvalidatemobile, isExcel } from "@/util/validate";
|
import {check18IdCardNo, isvalidatemobile, isExcel} from "@/util/validate";
|
||||||
import { getTemplate } from "@/api/resource/template";
|
import {getTemplate} from "@/api/resource/template";
|
||||||
import ied from "@/views/util/import-error-dialog";
|
import ied from "@/views/util/import-error-dialog";
|
||||||
import { excelAccept } from "@/common/accept";
|
import {excelAccept} from "@/common/accept";
|
||||||
import TextTooltip from '@/components/text-tooltip'
|
import TextTooltip from '@/components/text-tooltip'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -192,10 +199,10 @@ export default {
|
|||||||
excelBox: false,
|
excelBox: false,
|
||||||
data: [],
|
data: [],
|
||||||
obj: {},
|
obj: {},
|
||||||
excelForm: { isCovered: 1 },
|
excelForm: {isCovered: 1},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: { addGroups, transferGroups, Resume, ied, TextTooltip },
|
components: {addGroups, transferGroups, Resume, ied, TextTooltip},
|
||||||
watch: {},
|
watch: {},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(["permission"]),
|
...mapGetters(["permission"]),
|
||||||
@@ -203,7 +210,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
addBtn: this.vaildData(this.permission.tenant_main_talents_latent_index_add, false),
|
addBtn: this.vaildData(this.permission.tenant_main_talents_latent_index_add, false),
|
||||||
viewBtn: true,
|
viewBtn: true,
|
||||||
delBtn: this.vaildData( this.permission.tenant_main_talents_latent_index_del, false),
|
delBtn: this.vaildData(this.permission.tenant_main_talents_latent_index_del, false),
|
||||||
editBtn: this.vaildData(this.permission.tenant_main_talents_latent_index_edit, false),
|
editBtn: this.vaildData(this.permission.tenant_main_talents_latent_index_edit, false),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -298,8 +305,8 @@ export default {
|
|||||||
// hide: true,
|
// hide: true,
|
||||||
span: 24,
|
span: 24,
|
||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: "请输入身份证号", trigger: "blur" },
|
{required: true, message: "请输入身份证号", trigger: "blur"},
|
||||||
{ trigger: "blur", validator: IdCardNo },
|
{trigger: "blur", validator: IdCardNo},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -424,7 +431,7 @@ export default {
|
|||||||
const result = [];
|
const result = [];
|
||||||
const wt = this.obj.labelsBase.split(",");
|
const wt = this.obj.labelsBase.split(",");
|
||||||
wt.forEach((item) => {
|
wt.forEach((item) => {
|
||||||
result.push({ name: item });
|
result.push({name: item});
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
@@ -441,7 +448,7 @@ export default {
|
|||||||
for (let j = 0; j < this.arr.length; j++) {
|
for (let j = 0; j < this.arr.length; j++) {
|
||||||
const key = this.arr[j];
|
const key = this.arr[j];
|
||||||
if (this.worktypeDic.hasOwnProperty(key)) {
|
if (this.worktypeDic.hasOwnProperty(key)) {
|
||||||
rel.push({ name: key })
|
rel.push({name: key})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* for (const key in this.worktypeDic) {
|
/* for (const key in this.worktypeDic) {
|
||||||
@@ -452,7 +459,7 @@ export default {
|
|||||||
for (let i = 0; i < this.tempWorkType.length; i++) {
|
for (let i = 0; i < this.tempWorkType.length; i++) {
|
||||||
const key = this.tempWorkType[i];
|
const key = this.tempWorkType[i];
|
||||||
if (key && !this.worktypeDic.hasOwnProperty(key)) {
|
if (key && !this.worktypeDic.hasOwnProperty(key)) {
|
||||||
rel.push({ name: key });
|
rel.push({name: key});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rel;
|
return rel;
|
||||||
@@ -480,7 +487,7 @@ export default {
|
|||||||
getLabelList().then(async (res) => {
|
getLabelList().then(async (res) => {
|
||||||
const arr = res.data.data.flatMap(obj => obj.child.map(item => item.concatName));
|
const arr = res.data.data.flatMap(obj => obj.child.map(item => item.concatName));
|
||||||
this.arr = arr.map(concatName => {
|
this.arr = arr.map(concatName => {
|
||||||
return { name: concatName };
|
return {name: concatName};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -506,13 +513,13 @@ export default {
|
|||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
this.$refs.tree.setCurrentKey(groupId);
|
this.$refs.tree.setCurrentKey(groupId);
|
||||||
}); //默认高亮
|
}); //默认高亮
|
||||||
this.nodeClick({ id: groupId });
|
this.nodeClick({id: groupId});
|
||||||
} else {
|
} else {
|
||||||
if (this.treeData.length) {
|
if (this.treeData.length) {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
this.$refs.tree.setCurrentKey(this.treeData[0].id);
|
this.$refs.tree.setCurrentKey(this.treeData[0].id);
|
||||||
}); //默认高亮第一个
|
}); //默认高亮第一个
|
||||||
this.nodeClick({ id: this.treeData[0].id });
|
this.nodeClick({id: this.treeData[0].id});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.personTotal = res.data.data.sum;
|
this.personTotal = res.data.data.sum;
|
||||||
@@ -531,8 +538,8 @@ export default {
|
|||||||
const h = this.$createElement;
|
const h = this.$createElement;
|
||||||
this.$confirm(
|
this.$confirm(
|
||||||
h("div", null, [
|
h("div", null, [
|
||||||
h("p", { style: "font-size: 16px" }, "您确定要删除此分组吗? "),
|
h("p", {style: "font-size: 16px"}, "您确定要删除此分组吗? "),
|
||||||
h("p", { style: "color: red" }, "一旦删除则无法找回"),
|
h("p", {style: "color: red"}, "一旦删除则无法找回"),
|
||||||
]),
|
]),
|
||||||
{
|
{
|
||||||
type: "warning",
|
type: "warning",
|
||||||
@@ -643,6 +650,7 @@ export default {
|
|||||||
telphone: row.telphone,
|
telphone: row.telphone,
|
||||||
labelsBase: row.labelsBase,
|
labelsBase: row.labelsBase,
|
||||||
remarks: row.remarks,
|
remarks: row.remarks,
|
||||||
|
groupType: 9,
|
||||||
}).then(
|
}).then(
|
||||||
() => {
|
() => {
|
||||||
this.$message({
|
this.$message({
|
||||||
@@ -688,8 +696,8 @@ export default {
|
|||||||
const h = this.$createElement;
|
const h = this.$createElement;
|
||||||
this.$confirm(
|
this.$confirm(
|
||||||
h("div", null, [
|
h("div", null, [
|
||||||
h("p", { style: "font-size: 16px" }, "您确定要删除此人才吗? "),
|
h("p", {style: "font-size: 16px"}, "您确定要删除此人才吗? "),
|
||||||
h("p", { style: "color: red" }, "一旦删除则无法找回"),
|
h("p", {style: "color: red"}, "一旦删除则无法找回"),
|
||||||
]),
|
]),
|
||||||
{
|
{
|
||||||
type: "warning",
|
type: "warning",
|
||||||
@@ -746,7 +754,7 @@ export default {
|
|||||||
const h = this.$createElement;
|
const h = this.$createElement;
|
||||||
this.$confirm(
|
this.$confirm(
|
||||||
h("div", null, [
|
h("div", null, [
|
||||||
h("p", { style: "font-size: 16px" }, "您确定要批量删除选中人才吗? "),
|
h("p", {style: "font-size: 16px"}, "您确定要批量删除选中人才吗? "),
|
||||||
]),
|
]),
|
||||||
{
|
{
|
||||||
type: "warning",
|
type: "warning",
|
||||||
|
|||||||
Reference in New Issue
Block a user