diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt
index 03b1ebc..0f7fd0a 100644
--- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt
+++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt
@@ -176,5 +176,24 @@ $if(replaceDto.ShowBtnExport)
return SUCCESS(new { path = "/export/" + sFileName, fileName = sFileName });
}
$end
+
+$if(showCustomInput)
+ ///
+ /// 保存排序
+ ///
+ ///
+ ///
+ ///
+ [ActionPermissionFilter(Permission = "${replaceDto.PermissionPrefix}:update")]
+ [HttpGet("ChangeSort")]
+ [Log(Title = "保存排序", BusinessType = BusinessType.UPDATE)]
+ public IActionResult ChangeSort(int id = 0, int value = 0)
+ {
+ if (id <= 0) { return ToResponse(ApiResult.Error(101, "请求参数错误")); }
+ bool result = false;//TODO 自行实现;
+
+ return SUCCESS(result);
+ }
+$end
}
}
\ No newline at end of file
diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplVue.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplVue.txt
index 60d5550..badd608 100644
--- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplVue.txt
+++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplVue.txt
@@ -23,11 +23,6 @@ $if(replaceDto.ShowBtnExport)
导出
-$end
-$if(genTable.SortField != "" && 1 == 2)
-
- 修改排序
-
$end
@@ -54,7 +49,7 @@ ${VueViewListContent}
${VueViewFormContent}
-