|
|
|
@ -81,7 +81,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
|
<script th:src="${setting.domain + 'common/jeesite.js'}"></script>
|
|
|
|
|
<script th:src="${setting.domain + 'common/i18n/jeesite_zh_CN.js'}"></script>
|
|
|
|
|
<script th:src="${setting.domain + 'common/common.js'}"></script>
|
|
|
|
|
<script>
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
// 初始化DataGrid对象
|
|
|
|
|
$('#dataGrid').dataGrid({
|
|
|
|
|
searchForm: $("#searchForm"),
|
|
|
|
@ -96,6 +96,8 @@ $('#dataGrid').dataGrid({
|
|
|
|
|
return '正常';
|
|
|
|
|
}else if(val == "disabled"){
|
|
|
|
|
return '<span style="color:red;">停用</span>';
|
|
|
|
|
}else if(val == "delete"){
|
|
|
|
|
return '<span style="color:red;">删除</span>';
|
|
|
|
|
}else{
|
|
|
|
|
return '<span style="color:red;">未知</span>';
|
|
|
|
|
}
|
|
|
|
@ -103,7 +105,7 @@ $('#dataGrid').dataGrid({
|
|
|
|
|
{header:'操作', name:'actions', width:100, sortable:false, title:false, formatter: function(val, obj, row, act){
|
|
|
|
|
var actions = [];
|
|
|
|
|
actions.push('<a href="tiku/chapter/update?id='+row.id+'" class="btnList" title="编辑章节"><i class="fa fa-pencil"></i></a> ');
|
|
|
|
|
actions.push('<a href="tiku/chapter/delete?id='+row.id+'" class="btnList" title="删除章节" data-confirm="确认要删除该章节及所有子章节吗?" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a> ');
|
|
|
|
|
actions.push('<a href="'+ctx+'tiku/chapter/delete?id='+row.id+'" class="btnList" title="删除章节" data-confirm="确认要删除该章节及所有子章节吗?" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a> ');
|
|
|
|
|
actions.push('<a href="tiku/chapter/add?parentChapterId='+row.id+'" class="btnList" title="新增下级章节"><i class="fa fa-plus-square"></i></a> ');
|
|
|
|
|
return actions.join('');
|
|
|
|
|
}}
|
|
|
|
|