Commit d783f55e authored by 吴贤德's avatar 吴贤德

后台:修改酒店片库列表注入状态字段显示逻辑(下线统一显示已删除,上线非已注入成功统一显示注入中:实际状态码)

parent f507c7dd
...@@ -187,13 +187,17 @@ function InputAction(value, row, index) { ...@@ -187,13 +187,17 @@ function InputAction(value, row, index) {
return'<a href="javascript:void(0)" id="mb' + index + '" class="easyui-menubutton" menu="#mm1" iconCls="icon-list" onmouseover="setSelectRow(' + index + ')">'+this.title+'</a>'; return'<a href="javascript:void(0)" id="mb' + index + '" class="easyui-menubutton" menu="#mm1" iconCls="icon-list" onmouseover="setSelectRow(' + index + ')">'+this.title+'</a>';
} }
function StatusInjectAction(value, row, index){ function StatusInjectAction(value, row, index){
if(value==0){ var str="--";
return "注入中"; if (row.status==1){
}else if(value==1){ if (value==1){
return "<font color=green>已注入</font>"; str="已注入";
}else if(value==2){ }else{
return "<font color=red>注入失败</font>"; str="注入中:"+value;
}
}else{
str="已删除:"+value;
} }
return str;
} }
function setSelectRow(index) { function setSelectRow(index) {
$('#dg').datagrid('unselectAll'); $('#dg').datagrid('unselectAll');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment