|
|
@ -30,13 +30,13 @@ export const columns = [
|
|
|
|
customRender: function (status) {
|
|
|
|
customRender: function (status) {
|
|
|
|
switch (status) {
|
|
|
|
switch (status) {
|
|
|
|
case 1:
|
|
|
|
case 1:
|
|
|
|
return '正常'
|
|
|
|
return "正常";
|
|
|
|
case 2:
|
|
|
|
case 2:
|
|
|
|
return '停用'
|
|
|
|
return "停用";
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "备注",
|
|
|
|
title: "备注",
|
|
|
@ -51,13 +51,13 @@ export const columns = [
|
|
|
|
fixed: "right",
|
|
|
|
fixed: "right",
|
|
|
|
scopedSlots: { customRender: "action" },
|
|
|
|
scopedSlots: { customRender: "action" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
];
|
|
|
|
// 搜索项
|
|
|
|
// 搜索项
|
|
|
|
export const searchForm = {
|
|
|
|
export const searchForm = {
|
|
|
|
keyword: "",
|
|
|
|
keyword: "",
|
|
|
|
departmentId: null,
|
|
|
|
departmentId: null,
|
|
|
|
positionId: null,
|
|
|
|
positionId: null,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
// 分页
|
|
|
|
// 分页
|
|
|
|
export const pagination = {
|
|
|
|
export const pagination = {
|
|
|
|
current: 1,
|
|
|
|
current: 1,
|
|
|
@ -66,12 +66,12 @@ export const pagination = {
|
|
|
|
showTotal: (total) => `共 ${total} 条`,
|
|
|
|
showTotal: (total) => `共 ${total} 条`,
|
|
|
|
showSizeChanger: true,
|
|
|
|
showSizeChanger: true,
|
|
|
|
showQuickJumper: true,
|
|
|
|
showQuickJumper: true,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
export const form = {
|
|
|
|
export const form = {
|
|
|
|
cascVal:[],
|
|
|
|
cascVal: [],
|
|
|
|
id:null,
|
|
|
|
id: null,
|
|
|
|
actualName: "",
|
|
|
|
actualName: "",
|
|
|
|
sex: null,
|
|
|
|
sex: undefined,
|
|
|
|
idCard: "",
|
|
|
|
idCard: "",
|
|
|
|
tel: "",
|
|
|
|
tel: "",
|
|
|
|
birthday: "",
|
|
|
|
birthday: "",
|
|
|
@ -88,44 +88,112 @@ export const form = {
|
|
|
|
emergencyContact: "",
|
|
|
|
emergencyContact: "",
|
|
|
|
emergencyContactNumber: "",
|
|
|
|
emergencyContactNumber: "",
|
|
|
|
emergencyContactAddress: "",
|
|
|
|
emergencyContactAddress: "",
|
|
|
|
maritalStatus: "",
|
|
|
|
maritalStatus:undefined,
|
|
|
|
nation: "",
|
|
|
|
nation: "",
|
|
|
|
politicalOutlook: "",
|
|
|
|
politicalOutlook:undefined,
|
|
|
|
accountType: "",
|
|
|
|
accountType:undefined,
|
|
|
|
remake: "",
|
|
|
|
remake: "",
|
|
|
|
}
|
|
|
|
};
|
|
|
|
export const rules = {
|
|
|
|
export const rules = {
|
|
|
|
actualName: [
|
|
|
|
actualName: [{ required: true, message: "请输入真实姓名", trigger: "blur" }],
|
|
|
|
{ required: true, message: "请输入真实姓名", trigger: "blur" },
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
sex: [{ required: true, message: "请选择性别", trigger: "change" }],
|
|
|
|
sex: [{ required: true, message: "请选择性别", trigger: "change" }],
|
|
|
|
idCard: [
|
|
|
|
idCard: [{ required: true, message: "请输入身份证号", trigger: "blur" }],
|
|
|
|
{ required: true, message: "请输入身份证号", trigger: "blur" },
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
tel: [
|
|
|
|
tel: [
|
|
|
|
{ required: true, message: "请输入手机号", trigger: "blur" },
|
|
|
|
{ required: true, message: "请输入手机号", trigger: "blur" },
|
|
|
|
{ min: 11, max: 11, message: "手机号只能为11位", trigger: "blur" },
|
|
|
|
{ min: 11, max: 11, message: "手机号只能为11位", trigger: "blur" },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
cascVal:[{ type: 'array',required: true, message: "请选择岗位", trigger: "change" },],
|
|
|
|
cascVal: [
|
|
|
|
entryDate: [
|
|
|
|
{ type: "array", required: true, message: "请选择岗位", trigger: "change" },
|
|
|
|
{ required: true, message: "请选择入职时间", trigger: "change" },
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
}
|
|
|
|
entryDate: [{ required: true, message: "请选择入职时间", trigger: "change" }],
|
|
|
|
export const sexOption = [
|
|
|
|
};
|
|
|
|
{
|
|
|
|
export const options = {
|
|
|
|
id: 1,
|
|
|
|
sex: [
|
|
|
|
name: "男",
|
|
|
|
{
|
|
|
|
},
|
|
|
|
id: 1,
|
|
|
|
{
|
|
|
|
name: "男",
|
|
|
|
id: 2,
|
|
|
|
},
|
|
|
|
name: "女",
|
|
|
|
{
|
|
|
|
},
|
|
|
|
id: 2,
|
|
|
|
{
|
|
|
|
name: "女",
|
|
|
|
id: 3,
|
|
|
|
},
|
|
|
|
name: "保密",
|
|
|
|
{
|
|
|
|
},
|
|
|
|
id: 3,
|
|
|
|
]
|
|
|
|
name: "保密",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
maritalStatus:[
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 1,
|
|
|
|
|
|
|
|
name: "未婚",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 2,
|
|
|
|
|
|
|
|
name: "已婚",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
politicalOutlook:[
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 1,
|
|
|
|
|
|
|
|
name: "群众",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 2,
|
|
|
|
|
|
|
|
name: "中共党员",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 3,
|
|
|
|
|
|
|
|
name: "共青团",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 4,
|
|
|
|
|
|
|
|
name: "民革党员",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 5,
|
|
|
|
|
|
|
|
name: "民盟盟员",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 6,
|
|
|
|
|
|
|
|
name: "民建会员",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 7,
|
|
|
|
|
|
|
|
name: "民进会员",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 8,
|
|
|
|
|
|
|
|
name: "农工党党员",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 9,
|
|
|
|
|
|
|
|
name: "致公党党员",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 10,
|
|
|
|
|
|
|
|
name: "九三学社社员",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 11,
|
|
|
|
|
|
|
|
name: "台盟盟员",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 12,
|
|
|
|
|
|
|
|
name: "无党派人士",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
accountType: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 1,
|
|
|
|
|
|
|
|
name: "农村",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 2,
|
|
|
|
|
|
|
|
name: "城市",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
};
|
|
|
|
import store from "@/store";
|
|
|
|
import store from "@/store";
|
|
|
|
export const uploadHeaders = {
|
|
|
|
export const uploadHeaders = {
|
|
|
|
"manage-login-token": store.getters.getToken,
|
|
|
|
"manage-login-token": store.getters.getToken,
|
|
|
|
}
|
|
|
|
};
|
|
|
|