Commit c741d5ae by chenwq

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

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