diff --git a/src/main/java/ink/wgink/code/factory/factory/ChoiceBoxTableCellFactory.java b/src/main/java/ink/wgink/code/factory/factory/ChoiceBoxTableCellFactory.java index 7074877..eade985 100644 --- a/src/main/java/ink/wgink/code/factory/factory/ChoiceBoxTableCellFactory.java +++ b/src/main/java/ink/wgink/code/factory/factory/ChoiceBoxTableCellFactory.java @@ -52,10 +52,12 @@ public class ChoiceBoxTableCellFactory implements Callback { String oldText = (String) oldValue; String newText = (String) newValue; diff --git a/src/main/resources/template/normal/page/save.ftl b/src/main/resources/template/normal/page/save.ftl index a5177a1..8e9a775 100644 --- a/src/main/resources/template/normal/page/save.ftl +++ b/src/main/resources/template/normal/page/save.ftl @@ -77,7 +77,7 @@ @@ -88,7 +88,7 @@
@@ -98,7 +98,7 @@
@@ -404,7 +404,7 @@ <#elseif field.formFieldValue == "select"> // 初始化${field.columnComment}下拉选择 function init${field.firstUpperPropertyName}Select() { - top.restAjax.get(top.restAjax.path('api/url/${field.dictionaryId}', []), {}, null, function(code, data, args) { + top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) { laytpl(document.getElementById('${field.propertyName}SelectTemplate').innerHTML).render(data, function(html) { document.getElementById('${field.propertyName}SelectTemplateBox').innerHTML = html; }); @@ -417,7 +417,7 @@ <#elseif field.formFieldValue == "checkbox"> // 初始化${field.columnComment}复选 function init${field.firstUpperPropertyName}Checkbox() { - top.restAjax.get(top.restAjax.path('api/url/${field.dictionaryId}', []), {}, null, function(code, data, args) { + top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) { laytpl(document.getElementById('${field.propertyName}CheckboxTemplate').innerHTML).render(data, function(html) { document.getElementById('${field.propertyName}CheckboxTemplateBox').innerHTML = html; }); @@ -430,7 +430,7 @@ <#elseif field.formFieldValue == "radio"> // 初始化${field.columnComment}单选 function init${field.firstUpperPropertyName}Radio() { - top.restAjax.get(top.restAjax.path('api/url/${field.dictionaryId}', []), {}, null, function(code, data, args) { + top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) { laytpl(document.getElementById('${field.propertyName}RadioTemplate').innerHTML).render(data, function(html) { document.getElementById('${field.propertyName}RadioTemplateBox').innerHTML = html; }); diff --git a/src/main/resources/template/normal/page/update.ftl b/src/main/resources/template/normal/page/update.ftl index 3e17d0c..bc8b05a 100644 --- a/src/main/resources/template/normal/page/update.ftl +++ b/src/main/resources/template/normal/page/update.ftl @@ -77,7 +77,7 @@ @@ -88,7 +88,7 @@
@@ -98,7 +98,7 @@
@@ -407,7 +407,7 @@ <#elseif field.formFieldValue == "select"> // 初始化${field.columnComment}下拉选择 function init${field.firstUpperPropertyName}Select(selectValue) { - top.restAjax.get(top.restAjax.path('api/url/${field.dictionaryId}', []), {}, null, function(code, data, args) { + top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) { laytpl(document.getElementById('${field.propertyName}SelectTemplate').innerHTML).render(data, function(html) { document.getElementById('${field.propertyName}SelectTemplateBox').innerHTML = html; }); @@ -424,7 +424,7 @@ <#elseif field.formFieldValue == "checkbox"> // 初始化${field.columnComment}复选 function init${field.firstUpperPropertyName}Checkbox(selectValues) { - top.restAjax.get(top.restAjax.path('api/url/${field.dictionaryId}', []), {}, null, function(code, data, args) { + top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) { laytpl(document.getElementById('${field.propertyName}CheckboxTemplate').innerHTML).render(data, function(html) { document.getElementById('${field.propertyName}CheckboxTemplateBox').innerHTML = html; }); @@ -444,7 +444,7 @@ <#elseif field.formFieldValue == "radio"> // 初始化${field.columnComment}单选 function init${field.firstUpperPropertyName}Radio(selectValue) { - top.restAjax.get(top.restAjax.path('api/url/${field.dictionaryId}', []), {}, null, function(code, data, args) { + top.restAjax.get(top.restAjax.path('api/url/selectUrl', []), {}, null, function(code, data, args) { laytpl(document.getElementById('${field.propertyName}RadioTemplate').innerHTML).render(data, function(html) { document.getElementById('${field.propertyName}RadioTemplateBox').innerHTML = html; });