...
|
...
|
@@ -14,10 +14,10 @@ func (data ExportCompanyUserData) DataFieldList() []excel.DataField { |
|
|
return []excel.DataField{
|
|
|
{EnName: "UserCode", CnName: "用户编码"},
|
|
|
{EnName: "UserName", CnName: "用户姓名"},
|
|
|
{EnName: "OrgName", CnName: "组织机构"},
|
|
|
{EnName: "Phone", CnName: "手机号"},
|
|
|
{EnName: "DepartmentName", CnName: "所属部门"},
|
|
|
{EnName: "EnableStatus", CnName: "状态"},
|
|
|
{EnName: "Phone", CnName: "手机号"},
|
|
|
{EnName: "OrgName", CnName: "组织机构"},
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -78,10 +78,12 @@ func (data ExportCooperationUserData) DataFieldList() []excel.DataField { |
|
|
return []excel.DataField{
|
|
|
{EnName: "UserCode", CnName: "用户编码"},
|
|
|
{EnName: "UserName", CnName: "用户姓名"},
|
|
|
{EnName: "CooperationCompany", CnName: "合作公司"},
|
|
|
{EnName: "CooperationDeadline", CnName: "合作到期"},
|
|
|
{EnName: "Phone", CnName: "手机号"},
|
|
|
{EnName: "Email", CnName: "邮箱"},
|
|
|
{EnName: "CooperationCompany", CnName: "共创公司"},
|
|
|
{EnName: "CooperationDeadline", CnName: "共创到期"},
|
|
|
{EnName: "EnableStatus", CnName: "状态"},
|
|
|
|
|
|
//{EnName: "Email", CnName: "邮箱"},
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -105,6 +107,19 @@ func (data ExportCooperationUserData) CellValue(index int, enName string) (value |
|
|
return data[index].UserInfo.Phone
|
|
|
case "Email":
|
|
|
return data[index].UserInfo.Email
|
|
|
case "EnableStatus":
|
|
|
status := data[index].EnableStatus
|
|
|
statusName := ""
|
|
|
// 状态(1:启用 2:禁用 3:注销)
|
|
|
switch status {
|
|
|
case 1:
|
|
|
statusName = "启用"
|
|
|
case 2:
|
|
|
statusName = "禁用"
|
|
|
case 3:
|
|
|
statusName = "注销"
|
|
|
}
|
|
|
return statusName
|
|
|
}
|
|
|
return nil
|
|
|
}
|
...
|
...
|
|