Files
CompanyProject/芳林公司项目/www.zhiyuanhelp.com/application/admin/view/config/index.html
2024-09-27 01:32:49 +08:00

42 lines
1.2 KiB
HTML

{extend name="admin@public/basic" /}
{block name="style"}
<link rel="stylesheet" href="__STATIC__/css/admin/public.css" media="all"/>
{/block}
{block name="cotent"}
<form class="layui-form">
<!--主表单渲染--开始-->
<table id="currentTable" lay-filter="currentTable"></table>
<!--主表单渲染--结束-->
</form>
{/block}
{block name="script"}
<script>
/**
* 生成表单
*/
$.form.table('current', '{:url("$thisRequest")}?type=ajax', [[
{field: 'sort', title: '排序', width: 100, edit: 'text', align: "center", sort: true},
{field: 'remark', title: '参数说明', align: 'center'},
{field: 'value', title: '参数值', edit: 'text', minWidth: 200, align: "center", style: 'background-color: #009688; color: #fff; border-radius: 15px;'},
{field: 'name', title: '参数名', align: 'center', sort: true},
{field: 'group', title: '组名', width: 200, align: 'center', sort: true},
]], false, 'line', 'lg', false);
/**
* 监听字段值编辑
*/
$.form.editField('currentTable', '{:url("$thisRequest")}');
/**
* 修改状态
*/
$.form.switch('modifyStatus', '{:url("$thisClass/status")}');
</script>
{/block}