修改操作时,页面下拉框默认选择与后台对于的数据
<tr height="26"> <td align="right">状态</td> <td > <select id="Card_state" name="Card_state" > <option value="0" ${user.state == 0? ‘selected‘ : ‘‘}>禁用</option> <option value="1" ${user.state == 1? ‘selected‘ : ‘‘}>启用</option> </select> </td> </tr>
时间格式化、bit值显示
{ display: ‘机构名称‘, name: ‘orgname‘, align: ‘left‘, width: 100 }, { display: ‘状态‘, name: ‘state‘, align: ‘center‘, width: 100 ,format:function(a,b,c){ if(a.state == 1) return ‘启用‘; else return ‘禁用‘;} }, { display: ‘创建时间‘, name: ‘createtime‘, align: ‘center‘, width: 200,format:function(a,b,c) {return a.createtime ? new Date(a.createtime).Format("yyyy-MM-dd hh:mm"): "";}}
时间: 2024-10-07 09:34:56