Files
beimi/src/main/resources/templates/admin/system/metadata/table.html
2017-08-06 22:26:04 +08:00

91 lines
3.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div class="row">
<div class="col-lg-12">
<h1 class="site-h1" style="background-color:#FFFFFF;">
数据表结构列表<#if sysDicList??>${propertiesList?size!''}</#if>
<span style="float:right;">
<a class="layui-btn layui-btn-small layui-btn-danger" href="javascript:void(0)" id="batdel" data-toggle="tip" data-title="删除数据表项同时会删除数据表元数据下的所有内容,请确认是否继续操作”?" title="删除数据表">
批量删除
</a>
</span>
</h1>
<div class="row" style="padding:5px;">
<div class="col-lg-12">
<table class="layui-table" lay-skin="line">
<colgroup>
<col width="1%">
<col width="20%">
<col width="10%">
<col width="10%">
<col width="10%">
<col width="10%">
<col>
</colgroup>
<thead>
<tr>
<th>
<input type="checkbox" id="all" onclick="$('.ids').prop('checked' , $(this).prop('checked'));"/>
</th>
<th>标题</th>
<th>字段</th>
<th>类型</th>
<th>长度</th>
<th>启用字典</th>
<th>禁用导入导出</th>
<th>流程变量</th>
<th style="white-space:nowrap;" nowrap="nowrap">操作</th>
</tr>
</thead>
<tbody>
<#if propertiesList??>
<#list propertiesList as prop>
<tr>
<td style="width:1%;">
<input type="checkbox" class="ids" name="ids" value="${prop.id!''}"/>
</td>
<td>
${prop.name!''}
</td>
<td>${prop.fieldname!''} </td>
<td>${prop.datatypename!''}</td>
<td>${prop.length!''}</td>
<td align="center"><#if prop.seldata == true><i class="layui-icon" title="${prop.seldatacode!''}" class="green">&#xe618;</#if></td>
<td align="center"><#if prop.impfield == true><i class="layui-icon">&#xe618;</#if></td>
<td align="center"><#if prop.systemfield == true><i class="layui-icon">&#xe618;</#if></td>
<td style="white-space:nowrap;width:1%;" nowrap="nowrap">
<a href="/admin/metadata/properties/edit.html?id=${prop.id!''}&p=${metadataList.number+1}" data-width="650" data-height="380" data-toggle="ajax" title="编辑${table.name!''}">
<i class="layui-icon">&#xe642;</i>
编辑
</a>
<a href="/admin/metadata/properties/delete.html?id=${prop.id!''}&tbid=${prop.dbtableid!''}" data-toggle="tip" data-title="删除数据表项同时会删除数据表元数据下的所有内容,请确认是否删除数据表“${prop.name!''}”?" title="删除${prop.name!''}">
<i class="layui-icon" style="color:red;">&#x1006;</i>
删除
</a>
</td>
</tr>
</#list>
</#if>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$('#batdel').click(function(){
var ids = "";
$('.ids').each(function(){
if($(this).prop("checked")){
if(ids!=""){
ids += "&" ;
}
ids += "ids=" + $(this).val();
}
});
$('#batdel').attr('href' , '/admin/metadata/properties/batdelete.html?tbid=${tbid!''}&'+ids) ;
});
});
</script>