|
@@ -1061,16 +1061,16 @@ const SystemMessage=Form.create()(React.createClass({
|
|
managerIdOrganization:e
|
|
managerIdOrganization:e
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- //修复数据
|
|
|
|
|
|
+ //修复账号
|
|
repairData(){
|
|
repairData(){
|
|
this.setState({
|
|
this.setState({
|
|
loading: true
|
|
loading: true
|
|
});
|
|
});
|
|
$.ajax({
|
|
$.ajax({
|
|
- method: "get",
|
|
|
|
|
|
+ method: "post",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url: globalConfig.context +"/releaseUser" ,
|
|
|
|
|
|
+ url: globalConfig.context +"/api/admin/lockAdmin" ,
|
|
success: function (data) {
|
|
success: function (data) {
|
|
if (!data.data) {
|
|
if (!data.data) {
|
|
if (data.error && data.error.length) {
|
|
if (data.error && data.error.length) {
|
|
@@ -1390,7 +1390,7 @@ const SystemMessage=Form.create()(React.createClass({
|
|
<div className="user-content" >
|
|
<div className="user-content" >
|
|
<div className="content-title">
|
|
<div className="content-title">
|
|
<div className="user-search">
|
|
<div className="user-search">
|
|
- <Button type="danger" className="addButton" onClick={this.repairData}>修复数据</Button>
|
|
|
|
|
|
+ <Button type="danger" className="addButton" onClick={this.repairData}>禁用默认账号</Button>
|
|
<Button type="primary" className="addButton" onClick={this.addClick}>创建系统消息<Icon type="plus" /></Button>
|
|
<Button type="primary" className="addButton" onClick={this.addClick}>创建系统消息<Icon type="plus" /></Button>
|
|
<Button type="primary" onClick={this.bianji} style={!this.state.bianjiMore ? { display: 'none',float:'right',marginRight:'10px'} : {display: 'inline-block',float:'right',marginRight:'10px'}} disabled={!hasSelected}>编辑</Button>
|
|
<Button type="primary" onClick={this.bianji} style={!this.state.bianjiMore ? { display: 'none',float:'right',marginRight:'10px'} : {display: 'inline-block',float:'right',marginRight:'10px'}} disabled={!hasSelected}>编辑</Button>
|
|
<div style={!this.state.bianjiMore ? { display: 'none',float:'right',marginRight:'10px'} : {display: 'inline-block',float:'right',marginRight:'10px',marginTop:'10px'}}>
|
|
<div style={!this.state.bianjiMore ? { display: 'none',float:'right',marginRight:'10px'} : {display: 'inline-block',float:'right',marginRight:'10px',marginTop:'10px'}}>
|