|
|
|
@ -30,13 +30,13 @@ export const columns = [
|
|
|
|
|
customRender: function (status) {
|
|
|
|
|
switch (status) {
|
|
|
|
|
case 1:
|
|
|
|
|
return '正常'
|
|
|
|
|
return "正常";
|
|
|
|
|
case 2:
|
|
|
|
|
return '停用'
|
|
|
|
|
return "停用";
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "备注",
|
|
|
|
@ -51,13 +51,13 @@ export const columns = [
|
|
|
|
|
fixed: "right",
|
|
|
|
|
scopedSlots: { customRender: "action" },
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|
// 搜索项
|
|
|
|
|
export const searchForm = {
|
|
|
|
|
keyword: "",
|
|
|
|
|
departmentId: null,
|
|
|
|
|
positionId: null,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
// 分页
|
|
|
|
|
export const pagination = {
|
|
|
|
|
current: 1,
|
|
|
|
@ -66,12 +66,12 @@ export const pagination = {
|
|
|
|
|
showTotal: (total) => `共 ${total} 条`,
|
|
|
|
|
showSizeChanger: true,
|
|
|
|
|
showQuickJumper: true,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const form = {
|
|
|
|
|
cascVal:[],
|
|
|
|
|
id:null,
|
|
|
|
|
cascVal: [],
|
|
|
|
|
id: null,
|
|
|
|
|
actualName: "",
|
|
|
|
|
sex: null,
|
|
|
|
|
sex: undefined,
|
|
|
|
|
idCard: "",
|
|
|
|
|
tel: "",
|
|
|
|
|
birthday: "",
|
|
|
|
@ -88,44 +88,112 @@ export const form = {
|
|
|
|
|
emergencyContact: "",
|
|
|
|
|
emergencyContactNumber: "",
|
|
|
|
|
emergencyContactAddress: "",
|
|
|
|
|
maritalStatus: "",
|
|
|
|
|
maritalStatus:undefined,
|
|
|
|
|
nation: "",
|
|
|
|
|
politicalOutlook: "",
|
|
|
|
|
accountType: "",
|
|
|
|
|
politicalOutlook:undefined,
|
|
|
|
|
accountType:undefined,
|
|
|
|
|
remake: "",
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const rules = {
|
|
|
|
|
actualName: [
|
|
|
|
|
{ required: true, message: "请输入真实姓名", trigger: "blur" },
|
|
|
|
|
],
|
|
|
|
|
actualName: [{ required: true, message: "请输入真实姓名", trigger: "blur" }],
|
|
|
|
|
sex: [{ required: true, message: "请选择性别", trigger: "change" }],
|
|
|
|
|
idCard: [
|
|
|
|
|
{ required: true, message: "请输入身份证号", trigger: "blur" },
|
|
|
|
|
],
|
|
|
|
|
idCard: [{ required: true, message: "请输入身份证号", trigger: "blur" }],
|
|
|
|
|
tel: [
|
|
|
|
|
{ required: true, message: "请输入手机号", trigger: "blur" },
|
|
|
|
|
{ min: 11, max: 11, message: "手机号只能为11位", trigger: "blur" },
|
|
|
|
|
],
|
|
|
|
|
cascVal:[{ type: 'array',required: true, message: "请选择岗位", trigger: "change" },],
|
|
|
|
|
entryDate: [
|
|
|
|
|
{ required: true, message: "请选择入职时间", trigger: "change" },
|
|
|
|
|
cascVal: [
|
|
|
|
|
{ type: "array", required: true, message: "请选择岗位", trigger: "change" },
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
export const sexOption = [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
name: "男",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
name: "女",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
name: "保密",
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
entryDate: [{ required: true, message: "请选择入职时间", trigger: "change" }],
|
|
|
|
|
};
|
|
|
|
|
export const options = {
|
|
|
|
|
sex: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
name: "男",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
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";
|
|
|
|
|
export const uploadHeaders = {
|
|
|
|
|
"manage-login-token": store.getters.getToken,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|