|
|
@@ -273,20 +273,7 @@ if(@column.EffectType == "ApiTreeSelect" && !definedObjects.ContainsKey("@(@colu
|
|
|
@:[ApiDescriptionSettings(Name = "Import"), HttpGet, NonUnify]
|
|
|
@:public IActionResult DownloadTemplate()
|
|
|
@:{
|
|
|
- if (hasdictService){
|
|
|
- @:return ExcelHelper.ExportTemplate(new List<Export@(@Model.ClassName)Output>(), "@(@Model.BusName)导入模板", (sheet, prop) => {
|
|
|
- @:switch (prop.Name)
|
|
|
- @:{
|
|
|
- foreach (var column in dictTableField){
|
|
|
- @:case "@(@column.PropertyName)":
|
|
|
- @:return GetDictDataTextList("@(@column.DictTypeCode)");
|
|
|
- }
|
|
|
- @:}
|
|
|
- @:return null;
|
|
|
- @:});
|
|
|
- }else{
|
|
|
@:return ExcelHelper.ExportTemplate(new List<Export@(@Model.ClassName)Output>(), "@(@Model.BusName)导入模板");
|
|
|
- }
|
|
|
@:}
|
|
|
@:
|
|
|
@:/// <summary>
|