flat: 暂存
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div class="box" :style="{ height: leftHeight }">
|
||||
<el-scrollbar style="height: 100%">
|
||||
<el-tree ref="tree" node-key="id" highlight-current :expand-on-click-node="false" @node-click="nodeClick"
|
||||
:data="treeData" :props="props">
|
||||
:data="treeData" :props="props">
|
||||
<span class="custom-tree-node" slot-scope="{ node, data }" style="width: 80%">
|
||||
<!-- <el-tooltip class="item" effect="dark" :content="node.label" placement="top"> -->
|
||||
<span style="
|
||||
@@ -31,8 +31,8 @@
|
||||
size="mini" @click="() => updateGroups('edit', data)">
|
||||
</el-button>
|
||||
<el-button icon="el-icon-delete"
|
||||
v-if="vaildData(permission.tenant_main_label_index_groupdelete, false)"
|
||||
type="text" size="mini" @click="() => removeGroups(data)">
|
||||
v-if="vaildData(permission.tenant_main_label_index_groupdelete, false)"
|
||||
type="text" size="mini" @click="() => removeGroups(data)">
|
||||
</el-button>
|
||||
</span>
|
||||
</span>
|
||||
@@ -45,7 +45,8 @@
|
||||
icon="el-icon-plus"
|
||||
v-if="vaildData(permission.tenant_main_label_index_groupadd, false)"
|
||||
@click="updateGroups('add')">
|
||||
新建分组</el-button>
|
||||
新建分组
|
||||
</el-button>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
@@ -67,7 +68,7 @@
|
||||
<el-form-item label="服务类型:">
|
||||
<el-select v-model="query.stype" placeholder="服务类型" style="width: 100%" filterable clearable>
|
||||
<el-option v-for="(item, key, index) in serviceType" :key="index" :label="item.label"
|
||||
:value="item.value"></el-option>
|
||||
:value="item.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="工种:">
|
||||
@@ -85,10 +86,10 @@
|
||||
</el-form>
|
||||
<!--/搜索栏-->
|
||||
<avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" v-model="obj"
|
||||
:permission="permissionList" :before-open="beforeOpen" @row-del="rowDel" @row-update="rowUpdate"
|
||||
@row-save="rowSave" @search-change="searchChange" @search-reset="searchReset"
|
||||
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
|
||||
@refresh-change="refreshChange" class="customPage">
|
||||
:permission="permissionList" :before-open="beforeOpen" @row-del="rowDel" @row-update="rowUpdate"
|
||||
@row-save="rowSave" @search-change="searchChange" @search-reset="searchReset"
|
||||
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
|
||||
@refresh-change="refreshChange" class="customPage">
|
||||
<!--自定义列-->
|
||||
<template slot="worktypes" slot-scope="{ row }">
|
||||
<el-tooltip effect="dark" :content="row.worktypes" placement="top">
|
||||
@@ -98,7 +99,8 @@
|
||||
<template slot="resume" slot-scope="{ row }">
|
||||
<div>
|
||||
<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>
|
||||
</template>
|
||||
@@ -110,12 +112,16 @@
|
||||
<!--自定义按钮-->
|
||||
<template slot="menuLeft">
|
||||
<el-button type="success" size="small" plain icon="el-icon-plus" @click="handleImport"
|
||||
v-show="vaildData(permission.tenant_talents_groupadd, false)">导入</el-button>
|
||||
v-show="vaildData(permission.tenant_talents_groupadd, false)">导入
|
||||
</el-button>
|
||||
<el-button type="warning" size="small" plain :disabled="!selectionList.length" icon="el-icon-sort"
|
||||
@click="handleTransfer">转移分组</el-button>
|
||||
@click="handleTransfer">转移分组
|
||||
</el-button>
|
||||
<el-button type="danger" size="small" icon="el-icon-delete" @click="handleDelete"
|
||||
:disabled="!selectionList.length" plain v-show="vaildData(permission.tenant_talents_groupdelete, false)">
|
||||
删除</el-button>
|
||||
:disabled="!selectionList.length" plain
|
||||
v-show="vaildData(permission.tenant_talents_groupdelete, false)">
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
<template slot="name" slot-scope="{row}">
|
||||
<span>{{ row.name }}</span>
|
||||
@@ -129,7 +135,7 @@
|
||||
<!--批量导入-->
|
||||
<el-dialog title="导入" append-to-body :visible.sync="excelBox" :close-on-click-modal="false" width="555px">
|
||||
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"
|
||||
:upload-before="beforeAvatarUpload" :upload-error="uploadError">
|
||||
:upload-before="beforeAvatarUpload" :upload-error="uploadError">
|
||||
<template slot="excelTemplate">
|
||||
<el-button type="primary" @click="handleTemplate()" :loading="templateLoading">
|
||||
点击下载
|
||||
@@ -163,16 +169,16 @@ import {
|
||||
removeDept,
|
||||
upload,
|
||||
} from "@/api/tenant/label";
|
||||
import { getWorkTypes } from "@/api/tenant/common";
|
||||
import { mapGetters } from "vuex";
|
||||
import {getWorkTypes} from "@/api/tenant/common";
|
||||
import {mapGetters} from "vuex";
|
||||
import addGroups from "./Dialog/addGroups";
|
||||
import transferGroups from "./Dialog/transferGroups";
|
||||
import Resume from "@/components/resume/index";
|
||||
import { check18IdCardNo, isvalidatemobile, isExcel } from "@/util/validate";
|
||||
import { getTemplate } from "@/api/resource/template";
|
||||
import {check18IdCardNo, isvalidatemobile, isExcel} from "@/util/validate";
|
||||
import {getTemplate} from "@/api/resource/template";
|
||||
import ied from "@/views/util/import-error-dialog";
|
||||
import { excelAccept } from "@/common/accept";
|
||||
import { serviceType } from "@/common/dic";
|
||||
import {excelAccept} from "@/common/accept";
|
||||
import {serviceType} from "@/common/dic";
|
||||
|
||||
export default {
|
||||
filters: {
|
||||
@@ -241,10 +247,10 @@ export default {
|
||||
excelBox: false,
|
||||
data: [],
|
||||
obj: {},
|
||||
excelForm: { isCovered: 1 },
|
||||
excelForm: {isCovered: 1},
|
||||
};
|
||||
},
|
||||
components: { addGroups, transferGroups, Resume, ied },
|
||||
components: {addGroups, transferGroups, Resume, ied},
|
||||
watch: {},
|
||||
computed: {
|
||||
...mapGetters(["permission"]),
|
||||
@@ -446,7 +452,7 @@ export default {
|
||||
const result = [];
|
||||
const wt = this.obj.worktypes.split(",");
|
||||
wt.forEach((item) => {
|
||||
result.push({ name: item });
|
||||
result.push({name: item});
|
||||
});
|
||||
return result;
|
||||
},
|
||||
@@ -463,7 +469,7 @@ export default {
|
||||
for (let j = 0; j < this.arr.length; j++) {
|
||||
const key = this.arr[j];
|
||||
if (this.worktypeDic.hasOwnProperty(key)) {
|
||||
rel.push({ name: key })
|
||||
rel.push({name: key})
|
||||
}
|
||||
}
|
||||
/* for (const key in this.worktypeDic) {
|
||||
@@ -474,7 +480,7 @@ export default {
|
||||
for (let i = 0; i < this.tempWorkType.length; i++) {
|
||||
const key = this.tempWorkType[i];
|
||||
if (key && !this.worktypeDic.hasOwnProperty(key)) {
|
||||
rel.push({ name: key });
|
||||
rel.push({name: key});
|
||||
}
|
||||
}
|
||||
return rel;
|
||||
@@ -519,13 +525,13 @@ export default {
|
||||
this.$nextTick(function () {
|
||||
this.$refs.tree.setCurrentKey(groupId);
|
||||
}); //默认高亮
|
||||
this.nodeClick({ id: groupId });
|
||||
this.nodeClick({id: groupId});
|
||||
} else {
|
||||
if (this.treeData.length) {
|
||||
this.$nextTick(function () {
|
||||
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;
|
||||
@@ -544,8 +550,8 @@ export default {
|
||||
const h = this.$createElement;
|
||||
this.$confirm(
|
||||
h("div", null, [
|
||||
h("p", { style: "font-size: 16px" }, "您确定要删除此分组吗? "),
|
||||
h("p", { style: "color: red" }, "一旦删除则无法找回"),
|
||||
h("p", {style: "font-size: 16px"}, "您确定要删除此分组吗? "),
|
||||
h("p", {style: "color: red"}, "一旦删除则无法找回"),
|
||||
]),
|
||||
{
|
||||
type: "warning",
|
||||
@@ -702,8 +708,8 @@ export default {
|
||||
const h = this.$createElement;
|
||||
this.$confirm(
|
||||
h("div", null, [
|
||||
h("p", { style: "font-size: 16px" }, "您确定要删除此人才吗? "),
|
||||
h("p", { style: "color: red" }, "一旦删除则无法找回"),
|
||||
h("p", {style: "font-size: 16px"}, "您确定要删除此人才吗? "),
|
||||
h("p", {style: "color: red"}, "一旦删除则无法找回"),
|
||||
]),
|
||||
{
|
||||
type: "warning",
|
||||
@@ -760,7 +766,7 @@ export default {
|
||||
const h = this.$createElement;
|
||||
this.$confirm(
|
||||
h("div", null, [
|
||||
h("p", { style: "font-size: 16px" }, "您确定要批量删除选中人才吗? "),
|
||||
h("p", {style: "font-size: 16px"}, "您确定要批量删除选中人才吗? "),
|
||||
]),
|
||||
{
|
||||
type: "warning",
|
||||
@@ -825,13 +831,13 @@ export default {
|
||||
const arr = [];
|
||||
const data = res.data.data;
|
||||
data.error &&
|
||||
data.error.errorList.forEach((item) => {
|
||||
arr.push(`${item.name} ${item.remarks}`);
|
||||
});
|
||||
data.error.errorList.forEach((item) => {
|
||||
arr.push(`${item.name} ${item.remarks}`);
|
||||
});
|
||||
data.auth &&
|
||||
data.auth.authList.forEach((item) => {
|
||||
arr.push(`${item.name} ${item.remarks}`);
|
||||
});
|
||||
data.auth.authList.forEach((item) => {
|
||||
arr.push(`${item.name} ${item.remarks}`);
|
||||
});
|
||||
this.$refs.ied.show(arr);
|
||||
}
|
||||
this.refreshChange();
|
||||
|
||||
Reference in New Issue
Block a user