Commit c741d5ae by chenwq

新增试岗状态选项及相关逻辑

1 parent c1606a17
......@@ -2053,6 +2053,16 @@ export const connectionFlagOpt = [
confValue: "未关联",
},
];
export const trialStatusOpt = [
{
confId: 1,
confValue: "试岗中",
},
{
confId: 2,
confValue: "无试岗",
},
];
export const connectionFlagOptMap = {
true: "#2CCA74",
false: "#EB4E4E",
......
......@@ -168,7 +168,7 @@ import {
} from "@api/recruitment";
import { mapActions, mapState } from "vuex";
import { changeTypeOpt, connectionFlagOpt, connectionFlagOptMap, inviteStatusOpt, inviteStatusOptMap } from "@/common/constants.js";
import { changeTypeOpt, connectionFlagOpt, connectionFlagOptMap, inviteStatusOpt, inviteStatusOptMap, trialStatusOpt } from "@/common/constants.js";
import { deepClone, Util } from "@/common/util";
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin";
......@@ -361,6 +361,13 @@ export default {
: cellValue.allOfOnboarding;
},
},
{
label: "待招人数",
prop: "pendingCount",
formatter: (cellValue) => {
return cellValue.pendingCount === 0 ? 0 : cellValue.pendingCount || "-";
},
},
{
label: "状态",
......@@ -369,6 +376,18 @@ export default {
addHtml: "statusHtml",
},
{
label: "试岗状态",
prop: "trialStatus",
width: 120,
formatter: (cellValue) => {
const trialStatusMap = {
1: "试岗中",
2: "无试岗",
};
return trialStatusMap[cellValue.trialStatus] || "-";
},
},
{
label: "关联状态",
prop: "connectionFlag",
width: 100,
......@@ -389,6 +408,7 @@ export default {
recruitmentType: "",
createdDate: [],
status: "",
trialStatus: "",
recruiterName: "",
regionOperationName: "",
createdBy: "",
......@@ -504,6 +524,16 @@ export default {
optionLabel: "confValue",
optionsName: "connectionFlagOpt",
},
{
label: "试岗状态",
name: "trialStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "trialStatusOpt",
},
],
baseData: {
......@@ -519,6 +549,7 @@ export default {
inviteStatusOptMap: deepClone(inviteStatusOptMap),
connectionFlagOptMap: deepClone(connectionFlagOptMap),
connectionFlagOpt: deepClone(connectionFlagOpt),
trialStatusOpt: deepClone(trialStatusOpt),
changeTypeOpt: deepClone(changeTypeOpt),
receiverOpt: [],
relateMerchantOpt: [],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!