Commit 60d8a459 by Lin

feat; 招聘管理潜客表单优化修改

1 parent d76dd5a7
......@@ -118,4 +118,10 @@ export function getTrialOnboardingStoreList(data) {
export function getRecruitmentDemandSubSceneList(data) {
data.method = `dj.staff.api.recruitment.demand.sub.scene.list`;
return request(data);
}
// 潜在客户列表
export function getPotentialCustomersList(data) {
data.method = `dj.api.smartcarlife.sale.potentialCustomers.page`;
return request(data);
}
\ No newline at end of file
......@@ -99,6 +99,7 @@ import {
addRecruitment,
getDemandMerchant,
getDictList,
getPotentialCustomersList,
} from "@api/recruitment";
import { deepClone, Util } from "@/common/util";
import ProvinceCity from "@/components/province-city/index.vue";
......@@ -507,6 +508,17 @@ export default {
}).catch(() => {
});
},
getPotentialCustomersList() {
getPotentialCustomersList({
merchantName: this.queryMerchantName,
currentPage: this.currentPage,
pageSize: this.pageSize,
}).then((res) => {
this.baseData.potentialCustomerStoreList = res.list;
}).catch(() => {
this.baseData.potentialCustomerStoreList = [];
});
},
handleIsNewMerchantChange(val) {
this.addForm.merchantId = "";
this.addForm.merchantName = "";
......
<!-- 查看招聘需求 -->
<template>
<div class="look-recruitment" v-loading="loading">
<div v-loading="loading" class="look-recruitment">
<div class="layout">
<baseInfo :detailInfo="detailInfo"></baseInfo>
<recruitInfo :resumes="detailInfo.resumes" :isBtn="isBtn"></recruitInfo>
<baseInfo :detail-info="detailInfo"></baseInfo>
<recruitInfo :is-btn="isBtn" :resumes="detailInfo.resumes"></recruitInfo>
<!-- 试岗 -->
<trialOnboard
:trialOnboardings="detailInfo.trialOnboardings"
:isBtn="isBtn"
@handleViewResult="handleViewResult"
></trialOnboard>
<entryInfo
:onboardingPlans="detailInfo.onboardingPlans"
:isBtn="isBtn"
></entryInfo>
<operate-list
:logs="detailInfo.logs"
v-if="detailInfo.logs && detailInfo.logs.length > 0"
></operate-list>
<trialOnboard :is-btn="isBtn"
:trial-onboardings="detailInfo.trialOnboardings"
@handleViewResult="handleViewResult">
</trialOnboard>
<entryInfo :is-btn="isBtn"
:onboarding-plans="detailInfo.onboardingPlans">
</entryInfo>
<operate-list v-if="detailInfo.logs && detailInfo.logs.length > 0"
:logs="detailInfo.logs">
</operate-list>
</div>
<div class="footer">
<el-button class="cancel-btn" size="small" @click="handleCancel"
>关闭</el-button
>
<el-button class="cancel-btn"
size="small"
@click="handleCancel">
关闭
</el-button>
</div>
<glsk-form-dialog
v-if="trialViewResultVisible"
class="trial-view-result-dialog"
dialog-width="640px"
:dialog-config="trialViewDialogConfig"
:edit-data="trialViewResultForm"
:edit-form-data="trialViewResultFormData"
:select-visible="trialViewResultVisible"
@handleClose="handleTrialViewResultClose"
@handleConfirm="handleTrialViewResultClose"
>
<glsk-form-dialog v-if="trialViewResultVisible"
class="trial-view-result-dialog"
dialog-width="640px"
:dialog-config="trialViewDialogConfig"
:edit-data="trialViewResultForm"
:edit-form-data="trialViewResultFormData"
:select-visible="trialViewResultVisible"
@handleClose="handleTrialViewResultClose"
@handleConfirm="handleTrialViewResultClose">
</glsk-form-dialog>
</div>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import { recruitMixin } from "./components/recruitMixin"
import { deepClone, Util } from "@/common/util";
import { recruitMixin } from "./components/recruitMixin";
export default {
mixins: [recruitMixin],
data() {
const editItemStyle = {
mixins: [recruitMixin],
data() {
const editItemStyle = {
marginBottom: "10px",
}
const contentStyle = {
width: "406px",
display: 'inline-block',
'word-break': 'break-all',
'white-space': 'pre-wrap',
'line-height': '22px',
'margin-top': '4px'
}
return {
loading: false,
detailInfo: {},
isBtn: false,
trialViewResultVisible: false,
trialViewDialogConfig: {
title: "查看结果",
okText: "返回",
hideClose: true
},
trialViewResultForm: {},
trialViewResultFormData: [
{
label: "处理结果",
name: "processResult",
type: "showTxt",
};
const contentStyle = {
"width": "406px",
"display": "inline-block",
"word-break": "break-all",
"white-space": "pre-wrap",
"line-height": "22px",
"margin-top": "4px",
};
return {
loading: false,
detailInfo: {},
isBtn: false,
trialViewResultVisible: false,
trialViewDialogConfig: {
title: "查看结果",
okText: "返回",
hideClose: true,
},
trialViewResultForm: {},
trialViewResultFormData: [
{
label: "处理结果",
name: "processResult",
type: "showTxt",
formatter: (row) => {
const obj = {
"1": "通过",
"0": "不通过"
}
return obj[String(row.processResult)] || "-"
1: "通过",
0: "不通过",
};
return obj[String(row.processResult)] || "-";
},
style: editItemStyle
},
{
label: "说明",
name: "processRemark",
type: "showTxt",
formatter: (row) => row.processRemark || "-",
style: editItemStyle,
txtStyle: contentStyle,
},
{
label: "处理人",
name: "processorName",
type: "showTxt",
style: editItemStyle
},
{
label: "处理时间",
name: "frontUpdatedDate",
type: "showTxt",
formatter: (row) => {
const date = row.frontUpdatedDate || row.updatedDate
return date ? Util.dateFormate(new Date(date), "YYYY-MM-DD HH:mm") : "-"
},
{
label: "说明",
name: "processRemark",
type: "showTxt",
formatter: row => row.processRemark || "-",
style: editItemStyle,
txtStyle: contentStyle,
},
{
label: "处理人",
name: "processorName",
type: "showTxt",
style: editItemStyle,
},
{
label: "处理时间",
name: "frontUpdatedDate",
type: "showTxt",
formatter: (row) => {
const date = row.frontUpdatedDate || row.updatedDate;
return date ? Util.dateFormate(new Date(date), "YYYY-MM-DD HH:mm") : "-";
},
style: editItemStyle
}
]
}
},
mounted() {
// this.loading = true
},
methods: {
handleCancel() {
this.$router.push("/recruitmentManagement")
},
style: editItemStyle,
},
],
};
},
mounted() {
// this.loading = true
},
methods: {
handleCancel() {
this.$router.push("/recruitmentManagement");
},
// 试岗计划 - 查看结果
handleViewResult(data) {
this.trialViewResultForm = deepClone({ ...data })
this.trialViewResultVisible = true
this.trialViewResultForm = deepClone({ ...data });
this.trialViewResultVisible = true;
},
handleTrialViewResultClose() {
this.trialViewResultVisible = false
},
}
}
handleTrialViewResultClose() {
this.trialViewResultVisible = false;
},
},
};
</script>
<style lang="scss" scoped>
.look-recruitment {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
min-width: 1240px;
overflow: scroll;
.footer {
display: flex;
align-items: center;
justify-content: center;
padding-top: 20px;
.save-btn {
// width: 60px;
padding: 5px 14px;
line-height: 22px;
border-radius: 4px;
border: 1px solid #2a58ad;
background: #2a58ad;
color: #ffffff;
font-size: 14px;
height: 32px;
box-sizing: border-box;
}
.cancel-btn {
color: #666666;
font-size: 14px;
width: 56px;
height: 32px;
padding: 5px 14px;
border-radius: 4px;
background: #e8e8e8;
line-height: 22px;
box-sizing: border-box;
}
}
.layout {
height: calc(100% - 65px);
overflow-y: scroll;
// 也为.layout内的滚动条设置透明样式
&::-webkit-scrollbar {
width: 1px;
height: 1px;
}
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
min-width: 1240px;
overflow: scroll;
.footer {
display: flex;
align-items: center;
justify-content: center;
padding-top: 20px;
.save-btn {
// width: 60px;
padding: 5px 14px;
line-height: 22px;
border-radius: 4px;
border: 1px solid #2a58ad;
background: #2a58ad;
color: #ffffff;
font-size: 14px;
height: 32px;
box-sizing: border-box;
}
.cancel-btn {
color: #666666;
font-size: 14px;
width: 56px;
height: 32px;
padding: 5px 14px;
border-radius: 4px;
background: #e8e8e8;
line-height: 22px;
box-sizing: border-box;
}
}
.layout {
height: calc(100% - 65px);
overflow-y: scroll;
// 也为.layout内的滚动条设置透明样式
&::-webkit-scrollbar {
width: 1px;
height: 1px;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 1px;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 1px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
}
// 修改滚动条样式为透明
&::-webkit-scrollbar {
width: 1px;
height: 1px;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
}
// 修改滚动条样式为透明
&::-webkit-scrollbar {
width: 1px;
height: 1px;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 1px;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 1px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
}
// 为了兼容性,也可以添加标准的CSS滚动条样式
.look-recruitment,
.layout {
scrollbar-color: transparent transparent;
scrollbar-width: thin;
scrollbar-color: transparent transparent;
scrollbar-width: thin;
}
::v-deep .trial-view-result-dialog .el-dialog__footer .el-button {
width: 56px !important;
padding: 8px 14px !important;
color: #666666 !important;
background: #e8e8e8 !important;
border-color: #e8e8e8 !important;
color: #666666 !important;
background: #e8e8e8 !important;
border-color: #e8e8e8 !important;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!