This commit is contained in:
ly19960718 2021-07-29 14:41:04 +08:00
parent e51001c141
commit 84746f95b9
3 changed files with 90 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -0,0 +1,86 @@
<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<base th:href="${#request.getContextPath() + '/'}">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
</head>
<body>
<form class="layui-form layui-form-pane" lay-filter="inputForm">
<div class="layui-form-item" style="text-align: center;width:100% !important;font-size: 17px">
<b>附加配置</b>
</div>
<div class="layui-form-item" >
<label class="layui-form-label">最大上传数<span style="color: red">*</span></label>
<div class="layui-input-block">
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
<ul class="layui-tab-title">
<li class="layui-this">网站设置</li>
<li>用户管理</li>
<li>权限分配</li>
<li>商品管理</li>
<li>订单管理</li>
</ul>
<div class="layui-tab-content"></div>
</div>
</div>
</div>
</form>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index', 'form', 'laydate', 'laytpl', 'table'], function(){
var $ = layui.$;
var form = layui.form;
var $win = $(window);
var laytpl = layui.laytpl;
var table = layui.table;
var laydate = layui.laydate;
var id = top.restAjax.params(window.location.href).id;
//alert(window.parent.aa)
$('.attr').change(function () {
window.parent.setData("2",$(this).attr('name'),this.value);
})
// 初始化内容
function initData() {
}
initData();
// 校验
form.verify({
});
});
</script>
</body>
</html>

View File

@ -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)
},
});