|
|
@ -33,7 +33,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">科目编码:</label>
|
|
|
|
<label class="control-label">科目编码:</label>
|
|
|
|
<div class="control-inline">
|
|
|
|
<div class="control-inline">
|
|
|
|
<input type="text" id="uid" name="uid" value="" maxlength="64" class="form-control width-120"/>
|
|
|
|
<input type="text" id="id" name="id" value="" maxlength="64" class="form-control width-120"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
@ -47,7 +47,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
<div class="control-inline width-120">
|
|
|
|
<div class="control-inline width-120">
|
|
|
|
<select id="subjectId" name="subjectId" class="form-control">
|
|
|
|
<select id="subjectId" name="subjectId" class="form-control">
|
|
|
|
<option value=""> </option>
|
|
|
|
<option value=""> </option>
|
|
|
|
<option th:value="${subject.uid}" th:each="subject,subjectStat:${subjectList}" th:text="${subject.name}">财务经理</option>
|
|
|
|
<option th:value="${subject.id}" th:each="subject,subjectStat:${subjectList}" th:text="${subject.name}">财务经理</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -91,10 +91,10 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
$('#dataGrid').dataGrid({
|
|
|
|
$('#dataGrid').dataGrid({
|
|
|
|
searchForm: $("#searchForm"),
|
|
|
|
searchForm: $("#searchForm"),
|
|
|
|
columnModel: [
|
|
|
|
columnModel: [
|
|
|
|
{header:'类型名称', name:'name', index:'a.post_name', width:200, align:"center", frozen:true, formatter: function(val, obj, row, act){
|
|
|
|
{header:'科目名称', name:'name', index:'a.post_name', width:200, align:"center", frozen:true, formatter: function(val, obj, row, act){
|
|
|
|
return '<a href="'+ctx+'tiku/course/update?uid='+row.uid+'" class="btnList" data-title="编辑岗位">'+(val||row.uid)+'</a>';
|
|
|
|
return '<a href="'+ctx+'tiku/course/update?id='+row.id+'" class="btnList" data-title="编辑岗位">'+(val||row.id)+'</a>';
|
|
|
|
}},
|
|
|
|
}},
|
|
|
|
{header:'类型编码', name:'uid', index:'a.post_code', width:200, align:"center"},
|
|
|
|
{header:'科目编码', name:'id', index:'a.post_code', width:200, align:"center"},
|
|
|
|
{header:'排序号', name:'sort', index:'a.post_sort', width:80, align:"center"},
|
|
|
|
{header:'排序号', name:'sort', index:'a.post_sort', width:80, align:"center"},
|
|
|
|
{header:'更新时间', name:'updateDate', index:'a.update_date', width:150, align:"center"},
|
|
|
|
{header:'更新时间', name:'updateDate', index:'a.update_date', width:150, align:"center"},
|
|
|
|
{header:'备注信息', name:'remarks', index:'a.remarks', width:200, align:"left"},
|
|
|
|
{header:'备注信息', name:'remarks', index:'a.remarks', width:200, align:"left"},
|
|
|
@ -109,14 +109,14 @@ $('#dataGrid').dataGrid({
|
|
|
|
}},
|
|
|
|
}},
|
|
|
|
{header:'操作', name:'actions', width:130, sortable:false, title:false, formatter: function(val, obj, row, act){
|
|
|
|
{header:'操作', name:'actions', width:130, sortable:false, title:false, formatter: function(val, obj, row, act){
|
|
|
|
var actions = [];
|
|
|
|
var actions = [];
|
|
|
|
actions.push('<a href="'+ctx+'tiku/course/update?uid='+row.uid+'" class="btnList" title="编辑分类"><i class="fa fa-pencil"></i></a> ');
|
|
|
|
actions.push('<a href="'+ctx+'tiku/course/update?id='+row.id+'" class="btnList" title="编辑分类"><i class="fa fa-pencil"></i></a> ');
|
|
|
|
if (row.status == "normal"){
|
|
|
|
if (row.status == "normal"){
|
|
|
|
actions.push('<a href="'+ctx+'tiku/course/disabled?uid='+row.uid+'" class="btnList" title="停用分类" data-confirm="确认要停用该分类吗?"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
|
|
|
actions.push('<a href="'+ctx+'tiku/course/disabled?id='+row.id+'" class="btnList" title="停用分类" data-confirm="确认要停用该分类吗?"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (row.status == "disabled"){
|
|
|
|
if (row.status == "disabled"){
|
|
|
|
actions.push('<a href="'+ctx+'tiku/course/enable?uid='+row.uid+'" class="btnList" title="启用分类" data-confirm="确认要启用该分类吗?"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
|
|
|
actions.push('<a href="'+ctx+'tiku/course/enable?id='+row.id+'" class="btnList" title="启用分类" data-confirm="确认要启用该分类吗?"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
actions.push('<a href="'+ctx+'tiku/course/delete?uid='+row.uid+'" class="btnList" title="删除分类" data-confirm="确认要删除该分类吗?"><i class="fa fa-trash-o"></i></a> ');
|
|
|
|
actions.push('<a href="'+ctx+'tiku/course/delete?id='+row.id+'" class="btnList" title="删除分类" data-confirm="确认要删除该分类吗?"><i class="fa fa-trash-o"></i></a> ');
|
|
|
|
return actions.join('');
|
|
|
|
return actions.join('');
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
],
|
|
|
|
],
|
|
|
|