소스 검색

若依 2.0

RuoYi 6 년 전
부모
커밋
2a809d221a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/main/resources/templates/vm/html/edit.html.vm
  2. 1 1
      src/main/resources/templates/vm/java/Controller.java.vm

+ 1 - 1
src/main/resources/templates/vm/html/edit.html.vm

@@ -4,7 +4,7 @@
 <head th:include="include :: header"></head>
 <body class="white-bg">
     <div class="wrapper wrapper-content animated fadeInRight ibox-content">
-        <form class="form-horizontal m" id="form-${classname}-edit" th:object="${config}">
+        <form class="form-horizontal m" id="form-${classname}-edit" th:object="${classname}">
             <input id="${primaryKey.attrname}" name="${primaryKey.attrname}" th:field="*${${primaryKey.attrname}}"  type="hidden">
 #foreach($column in $columns)
 #if($column.columnName != $primaryKey.columnName)

+ 1 - 1
src/main/resources/templates/vm/java/Controller.java.vm

@@ -42,7 +42,7 @@ public class ${className}Controller extends BaseController
 	 * 查询${tableComment}列表
 	 */
 	@RequiresPermissions("${moduleName}:${classname}:list")
-	@@PostMapping("/list")
+	@PostMapping("/list")
 	@ResponseBody
 	public TableDataInfo list(${className} ${classname})
 	{