From 84746f95b9fb5c9691112dd4253e7135d89f7bd6 Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Thu, 29 Jul 2021 14:41:04 +0800 Subject: [PATCH] 1 --- .../ConfigTableRouteController.java | 5 +- .../templates/configtable/field-select.html | 86 +++++++++++++++++++ .../templates/configtable/list-field.html | 2 +- 3 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 module-config-table/src/main/resources/templates/configtable/field-select.html diff --git a/module-config-table/src/main/java/cn/com/tenlion/configtable/controller/route/configtable/ConfigTableRouteController.java b/module-config-table/src/main/java/cn/com/tenlion/configtable/controller/route/configtable/ConfigTableRouteController.java index 638a7d3..eaad368 100644 --- a/module-config-table/src/main/java/cn/com/tenlion/configtable/controller/route/configtable/ConfigTableRouteController.java +++ b/module-config-table/src/main/java/cn/com/tenlion/configtable/controller/route/configtable/ConfigTableRouteController.java @@ -46,9 +46,10 @@ public class ConfigTableRouteController extends DefaultBaseController { - @GetMapping("input-field") + @GetMapping("field") public ModelAndView inputField() { - return new ModelAndView("configtable/input-field"); + String path = "configtable/field-select"; + return new ModelAndView(path); } } \ No newline at end of file diff --git a/module-config-table/src/main/resources/templates/configtable/field-select.html b/module-config-table/src/main/resources/templates/configtable/field-select.html new file mode 100644 index 0000000..8bf260d --- /dev/null +++ b/module-config-table/src/main/resources/templates/configtable/field-select.html @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + +
+
+ 附加配置 +
+
+ +
+
+
    +
  • 网站设置
  • +
  • 用户管理
  • +
  • 权限分配
  • +
  • 商品管理
  • +
  • 订单管理
  • +
+
+
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/module-config-table/src/main/resources/templates/configtable/list-field.html b/module-config-table/src/main/resources/templates/configtable/list-field.html index 62ed588..9f05b6b 100644 --- a/module-config-table/src/main/resources/templates/configtable/list-field.html +++ b/module-config-table/src/main/resources/templates/configtable/list-field.html @@ -555,7 +555,7 @@ console.log("点击") console.log(evt.item.id) evt.oldIndex; // element index within parent - var path = top.restAjax.path('route/configtable/input-field?id={id}', [213]) + var path = top.restAjax.path('route/configtable/field?id={id}', [213]) $('#attribute').attr('src',path) }, });