|
|
@@ -78,7 +78,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
loading: false
|
|
|
});
|
|
|
}.bind(this));
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
loadDatas(pageNo, apiUrl) {
|
|
|
this.state.data = [];
|
|
|
@@ -94,7 +94,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
pageNo: pageNo || 1,
|
|
|
pageSize: this.state.pagination.pageSize,
|
|
|
expertAudit:2,
|
|
|
- type: this.state.typeSearch, //名称1
|
|
|
+ type: this.state.typeSearch, //名称1
|
|
|
name: this.state.nameSearch,
|
|
|
status: this.state.statusSearch,
|
|
|
industry: this.state.industrySearch,
|
|
|
@@ -228,7 +228,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
dataIndex: 'ifTop',
|
|
|
key: 'ifTop',
|
|
|
render: text => { return getStick(text) }
|
|
|
-
|
|
|
+
|
|
|
}, {
|
|
|
title: '展示序号',
|
|
|
dataIndex: 'showNumber',
|
|
|
@@ -252,7 +252,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
render: (text, record, index) => {
|
|
|
return <div>
|
|
|
<Popconfirm title={'请确认撤销发布专家【'+record.name+'】'} onConfirm={(e)=>{this.examine(record)}} okText="确认" cancelText="取消">
|
|
|
- <Button style={{marginRight:'5px'}} onClick={(e) =>{ e.stopPropagation()}} type="danger">撤销发布</Button>
|
|
|
+ <Button style={{marginRight:'5px'}} onClick={(e) =>{ e.stopPropagation()}} type="danger">撤销发布</Button>
|
|
|
</Popconfirm>
|
|
|
</div>
|
|
|
}
|
|
|
@@ -350,7 +350,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
}.bind(this));
|
|
|
},
|
|
|
//获取发布子平台
|
|
|
- selectSuperId() {
|
|
|
+ selectSuperId() {
|
|
|
this.state.data = []
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
@@ -358,17 +358,17 @@ const Organization=Form.create()(React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/achievement/getBranchInformation",
|
|
|
data:{
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
let thedata=data.data;
|
|
|
if (!thedata) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- thedata = {};
|
|
|
- };
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ };
|
|
|
var contactIds=[];
|
|
|
for(var i=0;i<data.data.length;i++){
|
|
|
let theData = data.data[i];
|
|
|
@@ -376,12 +376,12 @@ const Organization=Form.create()(React.createClass({
|
|
|
<Select.Option value={i.toString()} key={theData.platformName}>{theData.platformName}</Select.Option>
|
|
|
);
|
|
|
};
|
|
|
- this.setState({
|
|
|
+ this.setState({
|
|
|
SuperArr:thedata,
|
|
|
- contactsOption: theArr,
|
|
|
+ contactsOption: theArr,
|
|
|
orderStatusOptions:data.data,
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.loadData();
|
|
|
@@ -391,7 +391,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
}.bind(this));
|
|
|
},
|
|
|
//获取发布页面
|
|
|
- selectSuperIds() {
|
|
|
+ selectSuperIds() {
|
|
|
this.state.data = []
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
@@ -399,17 +399,17 @@ const Organization=Form.create()(React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/expert/getPublishPage",
|
|
|
data:{
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
let thedata=data.data;
|
|
|
if (!thedata) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- thedata = {};
|
|
|
- };
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ };
|
|
|
var contactIds=[];
|
|
|
for(var i=0;i<data.data.length;i++){
|
|
|
let theData = data.data[i];
|
|
|
@@ -417,12 +417,12 @@ const Organization=Form.create()(React.createClass({
|
|
|
<Select.Option value={i.toString()} key={theData.name}>{theData.name}</Select.Option>
|
|
|
);
|
|
|
};
|
|
|
- this.setState({
|
|
|
+ this.setState({
|
|
|
SuperArrs:thedata,
|
|
|
- contactsOptions: theArr,
|
|
|
+ contactsOptions: theArr,
|
|
|
orderStatusOptions:data.data,
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.selectSuperId();
|
|
|
@@ -433,38 +433,38 @@ const Organization=Form.create()(React.createClass({
|
|
|
},
|
|
|
//编辑部门,保存
|
|
|
edithandleSubmit(e){
|
|
|
- e.preventDefault();
|
|
|
+ e.preventDefault();
|
|
|
if(!this.state.editifTop){
|
|
|
- message.warning('请确认是否置顶');
|
|
|
+ message.warning('请确认是否置顶');
|
|
|
return false;
|
|
|
}
|
|
|
let topNumbers=(this.state.edittopNumber==9999999)?undefined:this.state.edittopNumber;
|
|
|
topNumbers=topNumbers?topNumbers:undefined;
|
|
|
if(this.state.editifTop==0){
|
|
|
if(!topNumbers){
|
|
|
- message.warning('请输入置顶序号');
|
|
|
+ message.warning('请输入置顶序号');
|
|
|
return false;
|
|
|
}
|
|
|
let b=this.state.edittopNumber.toString().split('');
|
|
|
for(var i=0;i<b.length;i++){
|
|
|
if(parseInt(b[i]).toString()=='NaN'){
|
|
|
- message.warning('置顶序号请输入数字');
|
|
|
+ message.warning('置顶序号请输入数字');
|
|
|
return false;
|
|
|
};
|
|
|
}
|
|
|
}else{
|
|
|
if(topNumbers){
|
|
|
- message.warning('请清空置顶序号');
|
|
|
+ message.warning('请清空置顶序号');
|
|
|
return false;
|
|
|
}
|
|
|
if(!this.state.editshowNumber){
|
|
|
- message.warning('请输入展示序号');
|
|
|
+ message.warning('请输入展示序号');
|
|
|
return false;
|
|
|
}
|
|
|
let b=this.state.editshowNumber.toString().split('');
|
|
|
for(var i=0;i<b.length;i++){
|
|
|
if(parseInt(b[i]).toString()=='NaN'){
|
|
|
- message.warning('展示序号请输入数字');
|
|
|
+ message.warning('展示序号请输入数字');
|
|
|
return false;
|
|
|
};
|
|
|
}
|
|
|
@@ -489,23 +489,23 @@ const Organization=Form.create()(React.createClass({
|
|
|
topNumber:topNumbers,//置顶序号
|
|
|
showNumber:this.state.editshowNumber,//展示序号
|
|
|
}
|
|
|
- }).done(function (data) {
|
|
|
+ }).done(function (data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success('保存成功!');
|
|
|
+ message.success('保存成功!');
|
|
|
this.edithandleCancel();
|
|
|
this.selectSuperId();
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
|
}
|
|
|
}.bind(this));
|
|
|
- },
|
|
|
+ },
|
|
|
//整行点击
|
|
|
tableRowClick(record, index) {
|
|
|
this.selectSuperIds();
|
|
|
- this.state.RowData = record;
|
|
|
+ this.state.RowData = record;
|
|
|
this.setState({
|
|
|
editvisible: true,
|
|
|
selectedRowKeys:[],
|
|
|
@@ -520,12 +520,12 @@ const Organization=Form.create()(React.createClass({
|
|
|
editserialNumber:record.serialNumber,
|
|
|
editname:record.name,
|
|
|
edituserName:record.userName,
|
|
|
- })
|
|
|
+ })
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//新增一个部门,保存
|
|
|
addhandleSubmit(e){
|
|
|
- e.preventDefault();
|
|
|
+ e.preventDefault();
|
|
|
if(!this.state.publishPlatform){
|
|
|
message.warning('请选择发布子平台');
|
|
|
return false;
|
|
|
@@ -535,48 +535,48 @@ const Organization=Form.create()(React.createClass({
|
|
|
return false;
|
|
|
}
|
|
|
if(!this.state.publishPage){
|
|
|
- message.warning('请选择发布页面');
|
|
|
+ message.warning('请选择发布页面');
|
|
|
return false;
|
|
|
}
|
|
|
if(!this.state.ifTop){
|
|
|
- message.warning('请确认是否置顶');
|
|
|
+ message.warning('请确认是否置顶');
|
|
|
return false;
|
|
|
}
|
|
|
if(this.state.ifTop==0){
|
|
|
if(!this.state.topNumber){
|
|
|
- message.warning('请输入置顶序号');
|
|
|
+ message.warning('请输入置顶序号');
|
|
|
return false;
|
|
|
}
|
|
|
let b=this.state.topNumber.split('');
|
|
|
for(var i=0;i<b.length;i++){
|
|
|
if(parseInt(b[i]).toString()=='NaN'){
|
|
|
- message.warning('置顶序号请输入数字');
|
|
|
+ message.warning('置顶序号请输入数字');
|
|
|
return false;
|
|
|
};
|
|
|
}
|
|
|
}else{
|
|
|
if(this.state.topNumber){
|
|
|
- message.warning('请清空置顶序号');
|
|
|
+ message.warning('请清空置顶序号');
|
|
|
return false;
|
|
|
}
|
|
|
if(!this.state.showNumber){
|
|
|
- message.warning('请输入展示序号');
|
|
|
+ message.warning('请输入展示序号');
|
|
|
return false;
|
|
|
}
|
|
|
let b=this.state.showNumber.split('');
|
|
|
for(var i=0;i<b.length;i++){
|
|
|
if(parseInt(b[i]).toString()=='NaN'){
|
|
|
- message.warning('展示序号请输入数字');
|
|
|
+ message.warning('展示序号请输入数字');
|
|
|
return false;
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- this.props.form.validateFields((err, values) => {
|
|
|
+
|
|
|
+ this.props.form.validateFields((err, values) => {
|
|
|
if (!err) {
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
- });
|
|
|
+ });
|
|
|
let nameText=this.state.SuperArr;
|
|
|
let superText=nameText[parseInt(this.state.publishPlatform)].id;
|
|
|
let nameTexts=this.state.SuperArrs;
|
|
|
@@ -595,12 +595,12 @@ const Organization=Form.create()(React.createClass({
|
|
|
topNumber:this.state.topNumber,//置顶序号
|
|
|
showNumber:this.state.showNumber,//展示序号
|
|
|
}
|
|
|
- }).done(function (data) {
|
|
|
+ }).done(function (data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success('保存成功!');
|
|
|
+ message.success('保存成功!');
|
|
|
this.handleCancel();
|
|
|
this.reset();
|
|
|
} else {
|
|
|
@@ -610,9 +610,9 @@ const Organization=Form.create()(React.createClass({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//主管初始加载(自动补全)
|
|
|
- supervisor(e){
|
|
|
+ supervisor(e){
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
|
@@ -621,23 +621,23 @@ const Organization=Form.create()(React.createClass({
|
|
|
data:{
|
|
|
name:e
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function (data) {
|
|
|
let thedata=data.data;
|
|
|
if (!thedata) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- thedata = {};
|
|
|
- };
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ };
|
|
|
this.setState({
|
|
|
- customerArr:thedata,
|
|
|
+ customerArr:thedata,
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
- }.bind(this));
|
|
|
+ }.bind(this));
|
|
|
},
|
|
|
//上级主管输入框失去焦点是判断客户是否存在
|
|
|
selectAuto(value,options){
|
|
|
@@ -654,7 +654,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
// if (item.name == e.toString()) {
|
|
|
// theType = item.id;
|
|
|
// }
|
|
|
-// });
|
|
|
+// });
|
|
|
// }
|
|
|
this.setState({
|
|
|
theTypes:e
|
|
|
@@ -663,8 +663,8 @@ const Organization=Form.create()(React.createClass({
|
|
|
//值改变时请求客户名称
|
|
|
httpChange(e){
|
|
|
if(e.length>=2){
|
|
|
- this.supervisor(e);
|
|
|
- }
|
|
|
+ this.supervisor(e);
|
|
|
+ }
|
|
|
this.setState({
|
|
|
managerIdOrganization:e
|
|
|
})
|
|
|
@@ -707,13 +707,13 @@ const Organization=Form.create()(React.createClass({
|
|
|
this.state.publishClient = undefined;//发布客户端清零
|
|
|
this.state.publishPage = undefined;//发布页面清零
|
|
|
this.state.ifTop = undefined;//是否置顶清零
|
|
|
- this.selectSuperId();
|
|
|
+ this.selectSuperId();
|
|
|
},
|
|
|
resets() {
|
|
|
this.state.expertSearch = undefined;
|
|
|
this.state.celebritySearch = undefined;
|
|
|
this.state.shareTypeSearch = undefined;
|
|
|
- this.state.typeSearch = undefined; //名称1
|
|
|
+ this.state.typeSearch = undefined; //名称1
|
|
|
this.state.nameSearch = '';
|
|
|
this.state.addressSearch = [];
|
|
|
this.state.provinceSearch = undefined;
|
|
|
@@ -747,7 +747,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
selectedRowKeys: selectedRowKeys.slice(-1)
|
|
|
});
|
|
|
},
|
|
|
- onSelect: (recordt, selected, selectedRows) => {
|
|
|
+ onSelect: (recordt, selected, selectedRows) => {
|
|
|
this.setState({
|
|
|
recordt:recordt.id
|
|
|
})
|
|
|
@@ -823,16 +823,19 @@ const Organization=Form.create()(React.createClass({
|
|
|
<Table columns={this.state.columns}
|
|
|
dataSource={this.state.dataSource}
|
|
|
rowSelection={rowSelection}
|
|
|
+ style={{
|
|
|
+ cursor: 'pointer',
|
|
|
+ }}
|
|
|
pagination={this.state.pagination}
|
|
|
onRowClick={this.tableRowClick} />
|
|
|
</Spin>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div className="patent-desc">
|
|
|
<Modal maskClosable={false} visible={this.state.visible}
|
|
|
onOk={this.checkPatentProcess} onCancel={this.handleCancel}
|
|
|
width='1200px'
|
|
|
- title='发布专家'
|
|
|
+ title='发布专家'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form horizontal onSubmit={this.addhandleSubmit} id="add-form">
|
|
|
@@ -842,19 +845,19 @@ const Organization=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="发布子平台"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="请选择子平台" value={this.state.publishPlatform} onChange={(e)=>{this.setState({publishPlatform:e})}}
|
|
|
notFoundContent="未获取到子平台">
|
|
|
{this.state.contactsOption}
|
|
|
- </Select>
|
|
|
+ </Select>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="发布客户端"
|
|
|
- >
|
|
|
- <Select placeholder="选择客户端" value={this.state.publishClient}
|
|
|
- onChange={(e)=>{this.setState({publishClient:e})}}>
|
|
|
+ >
|
|
|
+ <Select placeholder="选择客户端" value={this.state.publishClient}
|
|
|
+ onChange={(e)=>{this.setState({publishClient:e})}}>
|
|
|
{
|
|
|
client.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
@@ -868,19 +871,19 @@ const Organization=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="发布页面位置"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="请选择页面位置" value={this.state.publishPage} onChange={(e)=>{this.setState({publishPage:e})}}
|
|
|
notFoundContent="未获取到页面位置">
|
|
|
{this.state.contactsOptions}
|
|
|
- </Select>
|
|
|
+ </Select>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="是否置顶"
|
|
|
- >
|
|
|
- <Select placeholder="选择是否置顶" value={this.state.ifTop}
|
|
|
- onChange={(e)=>{this.setState({ifTop:e})}}>
|
|
|
+ >
|
|
|
+ <Select placeholder="选择是否置顶" value={this.state.ifTop}
|
|
|
+ onChange={(e)=>{this.setState({ifTop:e})}}>
|
|
|
{
|
|
|
stick.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
@@ -894,21 +897,21 @@ const Organization=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="置顶序号" >
|
|
|
- <Input placeholder="请输入置顶序号" value={this.state.topNumber}
|
|
|
+ <Input placeholder="请输入置顶序号" value={this.state.topNumber}
|
|
|
onChange={(e)=>{this.setState({topNumber:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12}}
|
|
|
label="展示序号" >
|
|
|
- <Input placeholder="请输入展示序号" value={this.state.showNumber}
|
|
|
+ <Input placeholder="请输入展示序号" value={this.state.showNumber}
|
|
|
onChange={(e)=>{this.setState({showNumber:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="user-search">
|
|
|
<Input placeholder="专家姓名" style={{"width":"150px","display":"inlineBlock","marginRight":"10px",'marginBottom':"5px"}}
|
|
|
value={this.state.nameSearch}
|
|
|
- onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
|
|
|
+ onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
|
|
|
<Select placeholder="行业" style={{"width":"150px","display":"inlineBlock","marginRight":"10px"}}
|
|
|
value={this.state.industrySearch}
|
|
|
onChange={(e) => { this.setState({ industrySearch: e }) }}>
|
|
|
@@ -933,7 +936,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
<RangePicker style={{"marginRight":"10px"}}
|
|
|
value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
|
|
|
this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
|
|
|
- onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
|
|
|
+ onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
|
|
|
<Button type="primary" onClick={this.searchs} style={{"display":"inlineBlock",'marginRight':'10px'}}>搜索</Button>
|
|
|
<Button onClick={this.resets} style={{"display":"inlineBlock"}}>重置</Button>
|
|
|
</div>
|
|
|
@@ -947,9 +950,9 @@ const Organization=Form.create()(React.createClass({
|
|
|
</Spin>
|
|
|
</div>
|
|
|
<FormItem wrapperCol={{ span: 12, offset: 7 }}>
|
|
|
- <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
+ <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
<Button className="set-submit" type="ghost" onClick={this.handleCancel} style={{marginLeft:'100px'}}>取消</Button>
|
|
|
- </FormItem>
|
|
|
+ </FormItem>
|
|
|
</Spin>
|
|
|
</Form >
|
|
|
</Modal>
|
|
|
@@ -958,7 +961,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
<Modal maskClosable={false} visible={this.state.editvisible}
|
|
|
onOk={this.checkPatentProcess} onCancel={this.edithandleCancel}
|
|
|
width='900px'
|
|
|
- title='编辑发布'
|
|
|
+ title='编辑发布'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form horizontal onSubmit={this.edithandleSubmit} id="edit-form">
|
|
|
@@ -968,19 +971,19 @@ const Organization=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 6 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="发布子平台"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="请选择子平台" value={this.state.editpublishPlatform} onChange={(e)=>{this.setState({editpublishPlatform:e})}}
|
|
|
notFoundContent="未获取到子平台">
|
|
|
{this.state.contactsOption}
|
|
|
- </Select>
|
|
|
+ </Select>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
labelCol={{ span: 6 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="发布客户端"
|
|
|
- >
|
|
|
- <Select placeholder="选择客户端" value={this.state.editpublishClient}
|
|
|
- onChange={(e)=>{this.setState({editpublishClient:e})}}>
|
|
|
+ >
|
|
|
+ <Select placeholder="选择客户端" value={this.state.editpublishClient}
|
|
|
+ onChange={(e)=>{this.setState({editpublishClient:e})}}>
|
|
|
{
|
|
|
client.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
@@ -994,19 +997,19 @@ const Organization=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 6 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="发布页面位置"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="请选择页面位置" value={this.state.editpublishPage} onChange={(e)=>{this.setState({editpublishPage:e})}}
|
|
|
notFoundContent="未获取到页面位置">
|
|
|
{this.state.contactsOptions}
|
|
|
- </Select>
|
|
|
+ </Select>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
labelCol={{ span: 6 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="是否置顶"
|
|
|
- >
|
|
|
- <Select placeholder="选择是否置顶" value={this.state.editifTop}
|
|
|
- onChange={(e)=>{this.setState({editifTop:e})}}>
|
|
|
+ >
|
|
|
+ <Select placeholder="选择是否置顶" value={this.state.editifTop}
|
|
|
+ onChange={(e)=>{this.setState({editifTop:e})}}>
|
|
|
{
|
|
|
stick.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
@@ -1020,19 +1023,19 @@ const Organization=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 6 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="置顶序号" >
|
|
|
- <Input placeholder="请输入置顶序号" value={this.state.edittopNumber}
|
|
|
+ <Input placeholder="请输入置顶序号" value={this.state.edittopNumber}
|
|
|
onChange={(e)=>{this.setState({edittopNumber:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
labelCol={{ span: 6 }}
|
|
|
wrapperCol={{ span: 12}}
|
|
|
label="展示序号" >
|
|
|
- <Input placeholder="请输入展示序号" value={this.state.editshowNumber}
|
|
|
+ <Input placeholder="请输入展示序号" value={this.state.editshowNumber}
|
|
|
onChange={(e)=>{this.setState({editshowNumber:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 3 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="专家名称"
|
|
|
@@ -1041,14 +1044,14 @@ const Organization=Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<FormItem wrapperCol={{ span: 12, offset: 7 }}>
|
|
|
- <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
+ <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
<Button className="set-submit" type="ghost" onClick={this.edithandleCancel} style={{marginLeft:'100px'}}>取消</Button>
|
|
|
- </FormItem>
|
|
|
+ </FormItem>
|
|
|
</Spin>
|
|
|
</Form >
|
|
|
</Modal>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
);
|