| | |
| | | [ApiExplorerSettings(GroupName = "Excel导入")] |
| | | [ApiController] |
| | | [Route("api/[controller]")] |
| | | //[ChannelActionFilter] |
| | | [ChannelActionFilter] |
| | | public class ImportExcelController : Controller |
| | | { |
| | | |
| | |
| | | list.json2 = list.json2; |
| | | return Json(list); |
| | | } |
| | | //list.json3 = ExcelCheckData(myModel); //数据验证 |
| | | //if (list.json3.code == "300") |
| | | //{ |
| | | // list.json3 = list.json3; |
| | | // return Json(list); |
| | | //} |
| | | list.json3 = ExcelImportSubmit(dataTable, FileCode); //数据导入 |
| | | if (list.json3.code == "300") |
| | | { |
| | | list.json3 = list.json3; |
| | | return Json(list); |
| | | } |
| | | return Json(list); |
| | | } |
| | | #endregion |