mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-25 06:45:20 +08:00
page styles
This commit is contained in:
parent
19e1eba6fa
commit
6ec07db5a7
3 changed files with 8 additions and 6 deletions
|
@ -31,6 +31,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||
import com.rebuild.server.ServerListener;
|
||||
import com.rebuild.server.ServerStatus;
|
||||
import com.rebuild.server.ServerStatus.Status;
|
||||
import com.rebuild.utils.JSONUtils;
|
||||
import com.rebuild.web.BasePageControll;
|
||||
|
||||
import cn.devezhao.commons.web.ServletUtils;
|
||||
|
@ -68,11 +69,12 @@ public class MiscPagesForward extends BasePageControll {
|
|||
|
||||
JSONObject state = new JSONObject();
|
||||
state.put("ok", ServerStatus.isStatusOK());
|
||||
JSONArray services = new JSONArray();
|
||||
state.put("status", services);
|
||||
JSONArray statuses = new JSONArray();
|
||||
state.put("status", statuses);
|
||||
for (Status s : ServerStatus.getLastStatus()) {
|
||||
services.add(s.toJson());
|
||||
statuses.add(s.toJson());
|
||||
}
|
||||
statuses.add(JSONUtils.toJSONObject("MemoryUsage", ServerStatus.getHeapMemoryUsed()[1]));
|
||||
ServletUtils.writeJson(response, state.toJSONString());
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<div class="page-head">
|
||||
<div class="float-left"><div class="page-head-title">分类数据</div></div>
|
||||
<div class="float-right pt-1">
|
||||
<button class=" btn btn-primary J_add" type="button"><i class="icon zmdi zmdi-plus"></i> 新建</button>
|
||||
<button class=" btn btn-primary J_add" type="button"><i class="icon zmdi zmdi-plus"></i> 添加</button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
|
|
@ -39,10 +39,10 @@ class DlgEdit extends RbFormHandler {
|
|||
this.state = { ...props }
|
||||
}
|
||||
render() {
|
||||
return (<RbModal title="添加分类数据" ref={(c) => this._dlg = c}>
|
||||
return (<RbModal title={(this.props.id ? '编辑' : '添加') + '分类'} ref={(c) => this._dlg = c}>
|
||||
<div className="form">
|
||||
<div className="form-group row">
|
||||
<label className="col-sm-3 col-form-label text-sm-right">名称</label>
|
||||
<label className="col-sm-3 col-form-label text-sm-right">分类名称</label>
|
||||
<div className="col-sm-7">
|
||||
<input className="form-control form-control-sm" value={this.state.name || ''} data-id="name" onChange={this.handleChange} maxLength="40" />
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue