全面实现模块中按钮动态生成,为下一步使用权限控制按钮做准备;

请使用全新的脚本初始化数据库!
This commit is contained in:
yubaolee
2015-12-06 00:05:32 +08:00
parent 0e98a6e3c8
commit 4a0a606a19
13 changed files with 154 additions and 970 deletions

View File

@@ -20,19 +20,23 @@ $('#tableButtons').on('afterdelete.bjui.tabledit', function(e) {
<div class="bjui-pageContent tableContent">
<form id="j_custom_form" class="pageForm" data-toggle="validate" method="post">
<table id="tableButtons" class="table table-bordered table-hover table-striped table-top"
data-toggle="tabledit" data-initnum="0" data-action="/ModuleElementManager/AddOrEditButton" data-single-noindex="true">
data-toggle="tabledit" data-initnum="0" data-action="/ModuleElementManager/AddOrEditButton"
data-single-noindex="true">
<thead>
<tr data-idname="Id">
<th width="80" title="元素类型"><input type="text" name="Type" data-rule="required" value="button" size="5"></th>
<th width="80" title="按钮标识"><input type="text" name="DomId" data-rule="required" value="" size="5"></th>
<th width="80" title="按钮显示"><input type="text" name="Name" data-rule="required" value="" size="5"></th>
<th width="120" title="按钮样式"><input type="text" name="Class" data-rule="required" value="btn-green btn-nm" size="5"></th>
<th width="80" title="按钮图标"><input type="text" name="Icon" data-rule="required" value="pencil" size="5"></th>
<th width="120" title="按钮脚本"><textarea name="Script" data-toggle="autoheight" value="javascript:;"></textarea></th>
<th width="120" title="附加属性"><textarea name="Attr" data-toggle="autoheight"></textarea></th>
<th width="80" title="所属模块ID"><input readonly="readonly" type="text" value="@ViewBag.ModuleId"
name="ModuleId"/></th>
<th title="操作" width="100">
<th width="8%" title="元素类型"><input type="text" name="Type" data-rule="required" value="button" size="5"></th>
<th width="10%" title="按钮标识"><input type="text" name="DomId" data-rule="required" value="" size="5"></th>
<th width="10%" title="按钮显示"><input type="text" name="Name" data-rule="required" value="" size="5"></th>
<th width="10%" title="按钮样式"><input type="text" name="Class" data-rule="required" value="btn-green" size="5"></th>
<th width="8%" title="按钮图标"><input type="text" name="Icon" data-rule="required" value="pencil" size="5"></th>
<th width="10%" title="按钮脚本">
<input type="text" name="Script" data-rule="required" value="javascript:;" size="5">
</th>
<th width="24%" title="附加属性"><textarea name="Attr" data-toggle="autoheight"></textarea></th>
<th width="10%" title="所属模块ID">
<input readonly="readonly" type="text" value="@ViewBag.ModuleId" name="ModuleId"/>
</th>
<th title="操作" width="10%">
<a href="javascript:;" class="btn btn-green" data-toggle="dosave">增加</a>
<a href="javascript:;" class="btn btn-red row-del">取消</a>
</th>