|
@@ -436,12 +436,12 @@ const Organization=Form.create()(React.createClass({
|
|
|
}
|
|
|
let topNumbers=(this.state.edittopNumber==9999999)?undefined:this.state.edittopNumber;
|
|
|
topNumbers=topNumbers?topNumbers:undefined;
|
|
|
- if(this.state.ifTop==0){
|
|
|
+ if(this.state.editifTop==0){
|
|
|
if(!topNumbers){
|
|
|
message.warning('请输入置顶序号');
|
|
|
return false;
|
|
|
}
|
|
|
- let b=this.state.topNumber.split('');
|
|
|
+ let b=this.state.edittopNumber.toString().split('');
|
|
|
for(var i=0;i<b.length;i++){
|
|
|
if(parseInt(b[i]).toString()=='NaN'){
|
|
|
message.warning('置顶序号请输入数字');
|
|
@@ -457,7 +457,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
message.warning('请输入展示序号');
|
|
|
return false;
|
|
|
}
|
|
|
- let b=this.state.showNumber.split('');
|
|
|
+ let b=this.state.editshowNumber.toString().split('');
|
|
|
for(var i=0;i<b.length;i++){
|
|
|
if(parseInt(b[i]).toString()=='NaN'){
|
|
|
message.warning('展示序号请输入数字');
|
|
@@ -573,7 +573,6 @@ const Organization=Form.create()(React.createClass({
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
});
|
|
|
- //上级组织字典
|
|
|
let nameText=this.state.SuperArr;
|
|
|
let superText=nameText[parseInt(this.state.publishPlatform)].id;
|
|
|
let nameTexts=this.state.SuperArrs;
|
|
@@ -599,7 +598,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
if (!data.error.length) {
|
|
|
message.success('保存成功!');
|
|
|
this.handleCancel();
|
|
|
- this.selectSuperId();
|
|
|
+ this.reset();
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
|
}
|
|
@@ -704,7 +703,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
this.state.publishClient = undefined;//发布客户端清零
|
|
|
this.state.publishPage = undefined;//发布页面清零
|
|
|
this.state.ifTop = undefined;//是否置顶清零
|
|
|
- this.loadData();
|
|
|
+ this.selectSuperId();
|
|
|
},
|
|
|
resets() {
|
|
|
this.state.expertSearch = undefined;
|