36 lines
1.9 KiB
HTML
36 lines
1.9 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-field?model_id={$modelId ?? 0}" lay-filter="table-container"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 隐藏列 -->
|
|
<!-- 编辑单元格提交url -->
|
|
<input type="hidden" id="row-modify" data-url="/manager/archives-model-field/modify">
|
|
|
|
<!-- 操作列 -->
|
|
<script type="text/html" id="row-operate">
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/archives-model-field/edit.html?id={{d.id}}" data-title="编辑模型字段" lay-event="edit">编辑</a>
|
|
</script>
|
|
|
|
<!-- 列-状态变更 -->
|
|
<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-require">
|
|
<input type="checkbox" name="is_require" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="changeStatus" {{ d.is_require == 1 ? 'checked' : '' }}>
|
|
</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-field/add.html?model_id={$modelId ?? 0}" data-title="添加模型字段" lay-event="add"><i class="fa fa-plus"></i> 添加</a>
|
|
<a class="layui-btn layui-btn-info layui-btn-sm" data-href="/manager/archives-model-field/sync.html?model_id={$modelId ?? 0}" lay-event="sync"><i class="fa fa-cloud-download"></i> 同步字段</a>
|
|
</script>
|
|
<script src="__MANAGER__/js/archives_model_field.js?v={:mt_rand()}"></script> |