Commit e5d85c86 authored by 黄奎's avatar 黄奎

页面修改

parent fbb3dd65
......@@ -11,6 +11,7 @@ using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Edu.WebApi.Controllers.Customer
{
......@@ -639,7 +640,6 @@ namespace Edu.WebApi.Controllers.Customer
slist.Add(header);
foreach (var item in list)
{
var dataRow = new ExcelDataSource()
{
ExcelRows = new List<ExcelColumn>()
......@@ -661,11 +661,12 @@ namespace Edu.WebApi.Controllers.Customer
slist.Add(dataRow);
}
var byteData = ExcelTempLateHelper.ToExcelExtend(slist);
return File(byteData, "application/octet-stream", excelName);
return File(byteData, "application/octet-stream", excelName);
}
catch (Exception ex)
{
LogHelper.Write(ex, "OutToExcelOrderStudentClassHoursList");
LogHelper.Write(ex, "DownLoadCustomerLinkMan");
var byteData1 = ExcelTempLateHelper.ToExcelExtend(slist);
return File(byteData1, "application/octet-stream", excelName);
}
......@@ -978,12 +979,12 @@ namespace Edu.WebApi.Controllers.Customer
ExcelDataSource header = new ExcelDataSource();
header.ExcelRows = new List<ExcelColumn>()
{
new ExcelColumn("同业名称"){ CellWidth=20},
new ExcelColumn("同业名称"){ CellWidth=40},
new ExcelColumn("类型"){ CellWidth=20},
new ExcelColumn("联系人数量"){ CellWidth=20},
new ExcelColumn("客户数量"){ CellWidth=20},
new ExcelColumn("订单数量"){ CellWidth=20},
new ExcelColumn("加入时间"){ CellWidth=20},
new ExcelColumn("加入时间"){ CellWidth=30},
new ExcelColumn("负责人"){ CellWidth=20},
};
slist.Add(header);
......
......@@ -827,28 +827,28 @@ namespace Edu.WebApi.Controllers.User
ExcelDataSource header = new ExcelDataSource();
header.ExcelRows = new List<ExcelColumn>()
{
new ExcelColumn("昵称"),
new ExcelColumn("课程顾问"),
new ExcelColumn("协助老师"),
new ExcelColumn("是否报名"),
new ExcelColumn("性别"),
new ExcelColumn("电话"),
new ExcelColumn("QQ"),
new ExcelColumn("微信"),
new ExcelColumn("客户类型"),
new ExcelColumn("客户阶段"),
new ExcelColumn("客户需求"),
new ExcelColumn("职业"),
new ExcelColumn("学历"),
new ExcelColumn("目的"),
new ExcelColumn("其他服务人员"),
new ExcelColumn("客户来源"),
new ExcelColumn("来源关联人"),
new ExcelColumn("收客渠道"),
new ExcelColumn("到访次数"),
new ExcelColumn("试听次数"),
new ExcelColumn("创建时间"),
new ExcelColumn("负责人"),
new ExcelColumn("昵称"){ CellWidth=20},
new ExcelColumn("课程顾问"){ CellWidth=10},
new ExcelColumn("协助老师"){ CellWidth=10},
new ExcelColumn("是否报名"){ CellWidth=10},
new ExcelColumn("性别"){ CellWidth=10},
new ExcelColumn("电话"){ CellWidth=10},
new ExcelColumn("QQ"){ CellWidth=10},
new ExcelColumn("微信"){ CellWidth=10},
new ExcelColumn("客户类型"){ CellWidth=20},
new ExcelColumn("客户阶段"){ CellWidth=20},
new ExcelColumn("客户需求"){ CellWidth=20},
new ExcelColumn("职业"){ CellWidth=10},
new ExcelColumn("学历"){ CellWidth=10},
new ExcelColumn("目的"){ CellWidth=10},
new ExcelColumn("其他服务人员"){ CellWidth=20},
new ExcelColumn("客户来源"){ CellWidth=20},
new ExcelColumn("来源关联人"){ CellWidth=20},
new ExcelColumn("收客渠道"){ CellWidth=20},
new ExcelColumn("到访次数"){ CellWidth=10},
new ExcelColumn("试听次数"){ CellWidth=10},
new ExcelColumn("创建时间"){ CellWidth=25},
new ExcelColumn("负责人"){ CellWidth=15},
};
slist.Add(header);
foreach (var item in list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment