33 lines
1.8 KiB
HTML
33 lines
1.8 KiB
HTML
{layout name="manager/layout" /}
|
|
|
|
<div class="layuimini-container location-index-page">
|
|
<div class="layuimini-main">
|
|
<div>
|
|
<table id="table-container" class="layui-table" data-url="/manager/archives-model" lay-filter="table-container"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 隐藏列 -->
|
|
<!-- 编辑单元格提交url -->
|
|
<input type="hidden" id="row-modify" data-url="/manager/archives-model/modify">
|
|
|
|
<!-- 列-状态变更 -->
|
|
<script type="text/html" id="row-status">
|
|
<input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="正常|禁用" lay-filter="changeStatus" {{ d.status == 1 ? 'checked' : '' }}>
|
|
</script>
|
|
|
|
<!-- 操作列 -->
|
|
<script type="text/html" id="row-operate">
|
|
<a class="layui-btn layui-btn-xs" data-href="/manager/archives-model-field/index.html?model_id={{d.id}}" data-title="【{{d.title}}】模型字段列表" lay-event="edit">字段列表</a>
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/archives-model/edit.html?id={{d.id}}" data-title="编辑模型" lay-event="edit">编辑</a>
|
|
<!-- <a class="layui-btn layui-btn-danger layui-btn-xs" data-href="/manager/archives-model/del.html" lay-event="del">删除</a>-->
|
|
</script>
|
|
|
|
<!-- toolbar -->
|
|
<script type="text/html" id="toolbar-tpl">
|
|
<a class="layui-btn layui-btn-sm layui-btn-sm" data-table-refresh lay-event="refresh"><i class="fa fa-refresh"></i></a>
|
|
<!-- <a class="layui-btn layui-btn-normal layui-btn-sm" data-href="/manager/archives-model/add.html" data-title="添加模型" lay-event="add"><i class="fa fa-plus"></i> 添加</a>-->
|
|
<!-- <a class="layui-btn layui-btn-danger layui-btn-sm" data-href="/manager/archives-model/del.html" lay-event="del"><i class="fa fa-trash-o"></i> 删除</a>-->
|
|
</script>
|
|
<script src="__MANAGER__/js/archives_model.js?v={:mt_rand()}"></script> |