dengzhiguo 7 years ago
parent
commit
31088fa375

+ 1 - 13
js/component/manageCenter/achievement/myTechAchievement.jsx

@@ -147,12 +147,6 @@ const AchievementList = React.createClass({
                     key: 'boutique',
                     render: text => { return getboutique(text) }
                 },
-                 {
-                    title: '首页展示',
-                    dataIndex: 'hot',
-                    key: 'hot',
-                    render: text => { return gethot(text) }
-                },
                 {
                     title: '发布时间',
                     dataIndex: 'releaseDateFormattedDate',
@@ -360,13 +354,7 @@ const AchievementList = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
-                        <Select placeholder="选择类型" style={{ width: 160 }}
+		                <Select placeholder="选择类型" style={{ width: 160 }}
                             value={this.state.category}
                             onChange={(e) => { this.setState({ category: e }) }}>
                             {this.state.achievementCategoryOption}

+ 1 - 12
js/component/manageCenter/achievement/techAchievement.jsx

@@ -148,12 +148,6 @@ const AchievementList = React.createClass({
                     key: 'boutique',
                     render: text => { return getboutique(text) }
                 },
-                 {
-                    title: '首页展示',
-                    dataIndex: 'hot',
-                    key: 'hot',
-                    render: text => { return gethot(text) }
-                },
                 {
                     title: '发布时间',
                     dataIndex: 'releaseDateFormattedDate',
@@ -365,12 +359,7 @@ const AchievementList = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
+		                
                         <Select placeholder="选择类型" style={{ width: 160 }}
                             value={this.state.category}
                             onChange={(e) => { this.setState({ category: e }) }}>

+ 1 - 12
js/component/manageCenter/achievement/techAchievementAudit/auditDesc.jsx

@@ -406,18 +406,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
                                 }
                             })()}
                         </FormItem>
-                        <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="首页展示" >
-                            {(() => {
-                                switch (theData.hot) {
-                                    case "0":
-                                        return <span>否</span>;
-                                    case "1":
-                                        return <span>是</span>;
-                                }
-                            })()}
-                        </FormItem>
+                        
                     </div> 
                     {this.state.radios==true ?<FormItem
                         labelCol={{ span: 4 }}

+ 1 - 6
js/component/manageCenter/achievement/techAchievementAudit/techAchievementAudit.jsx

@@ -392,12 +392,7 @@ const AchievementList = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
+		                
                         <Select placeholder="选择类型" style={{ width: 160 }}
                             value={this.state.category}
                             onChange={(e) => { this.setState({ category: e }) }}>

+ 2 - 24
js/component/manageCenter/achievement/techAchievementDesc.jsx

@@ -403,18 +403,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
                                 }
                             })()}
                         </FormItem>
-                        <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="首页展示" >
-                            {(() => {
-                                switch (theData.hot) {
-                                    case "0":
-                                        return <span>否</span>;
-                                    case "1":
-                                        return <span>是</span>;
-                                }
-                            })()}
-                        </FormItem>
+                        
                     </div> 
                     {this.state.radios==true ?<FormItem
                         labelCol={{ span: 4 }}
@@ -1139,18 +1128,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
                                     </Radio.Group>
                                     )}
                         </FormItem>
-                        <FormItem className="half-item"
-                                {...formItemLayout}
-                                label="首页展示:" >
-                                {getFieldDecorator('hot', {
-                                    initialValue: theData.hot
-                                })(
-                                    <Radio.Group onChange={(e) => { this.setState({ radios: e.target.value }); }}>
-                                        <Radio value="0">否</Radio>
-                                        <Radio value="1">是</Radio>
-                                    </Radio.Group>
-                                    )}
-                        </FormItem>                                           		
+                                                                  		
                         {this.state.radios==true ? <FormItem
 	                        labelCol={{ span: 4 }}
 	                        wrapperCol={{ span: 18 }}

+ 1 - 12
js/component/manageCenter/achievement/techAchievementQuery.jsx

@@ -147,12 +147,6 @@ const AchievementList = React.createClass({
                     key: 'boutique',
                     render: text => { return getboutique(text) }
                 },
-                 {
-                    title: '首页展示',
-                    dataIndex: 'hot',
-                    key: 'hot',
-                    render: text => { return gethot(text) }
-                },
                 {
                     title: '发布时间',
                     dataIndex: 'releaseDateFormattedDate',
@@ -329,12 +323,7 @@ const AchievementList = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
+		                
                         <Select placeholder="选择类型" style={{ width: 160 }}
                             value={this.state.category}
                             onChange={(e) => { this.setState({ category: e }) }}>

+ 1 - 24
js/component/manageCenter/achievement/techAchievementQueryDesc.jsx

@@ -405,18 +405,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
                                 }
                             })()}
                         </FormItem>
-                        <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="首页展示" >
-                            {(() => {
-                                switch (theData.hot) {
-                                    case "0":
-                                        return <span>否</span>;
-                                    case "1":
-                                        return <span>是</span>;
-                                }
-                            })()}
-                        </FormItem>
+                        
                     </div> 
                     {this.state.radios==true ?<FormItem
                         labelCol={{ span: 4 }}
@@ -1137,18 +1126,6 @@ const AchievementDetailForm = Form.create()(React.createClass({
                                     </Radio.Group>
                                     )}
                         </FormItem>
-                        <FormItem className="half-item"
-                                {...formItemLayout}
-                                label="首页展示:" >
-                                {getFieldDecorator('hot', {
-                                    initialValue: theData.hot
-                                })(
-                                    <Radio.Group onChange={(e) => { this.setState({ radios: e.target.value }); }}>
-                                        <Radio value="0">否</Radio>
-                                        <Radio value="1">是</Radio>
-                                    </Radio.Group>
-                                    )}
-                        </FormItem>                                           		
                         {this.state.radios==true ? <FormItem
 	                        labelCol={{ span: 4 }}
 	                        wrapperCol={{ span: 18 }}

+ 1 - 12
js/component/manageCenter/achievement/techAchievementRelease/auditDesc.jsx

@@ -416,18 +416,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
                                 }
                             })()}
                         </FormItem>
-                        <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="首页展示" >
-                            {(() => {
-                                switch (theData.hot) {
-                                    case "0":
-                                        return <span>否</span>;
-                                    case "1":
-                                        return <span>是</span>;
-                                }
-                            })()}
-                        </FormItem>
+                        
                     </div> 
                     {this.state.radios==true ?<FormItem
                         labelCol={{ span: 4 }}

+ 1 - 13
js/component/manageCenter/achievement/techAchievementRelease/techAchievementAudit.jsx

@@ -150,12 +150,6 @@ const AchievementList = React.createClass({
                     key: 'boutique',
                     render: text => { return getboutique(text) }
                 },
-                 {
-                    title: '首页展示',
-                    dataIndex: 'hot',
-                    key: 'hot',
-                    render: text => { return gethot(text) }
-                },
                 {
                     title: '发布时间',
                     dataIndex: 'releaseDateFormattedDate',
@@ -392,13 +386,7 @@ const AchievementList = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
-                        <Select placeholder="选择类型" style={{ width: 160 }}
+		                <Select placeholder="选择类型" style={{ width: 160 }}
                             value={this.state.category}
                             onChange={(e) => { this.setState({ category: e }) }}>
                             {this.state.achievementCategoryOption}

+ 1 - 13
js/component/manageCenter/demand/demandAudit/demandAuditDesc.jsx

@@ -381,18 +381,6 @@ const DemandDetailShow = Form.create()(React.createClass({
                                 }
                             })()}
                         </FormItem>
-                         <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="首页展示" >
-                            {(() => {
-                                switch (theData.hot) {
-                                    case "0":
-                                        return <span>否</span>;
-                                    case "1":
-                                        return <span>是</span>;
-                                }
-                            })()}
-                        </FormItem>                        
                      </div>                    
                      {this.state.radios==true ? <div>
                     	<FormItem
@@ -686,7 +674,7 @@ const DemandDetailShow = Form.create()(React.createClass({
                     <FormItem wrapperCol={{ span: 12, offset: 3 }}>
                         <Button className="set-submit" type="primary" htmlType="submit">确认</Button>
                         <Button className="set-submit" type="ghost" onClick={this.props.closeDesc}>取消</Button>
-                        {window.showAuditStatus ? <Button className="set-submit" loading={this.state.buttonLoading} type="primary" onClick={this.buildMatchList} style={{"display":"none"}}>生成匹配列表</Button> : <span></span>}
+                        {window.showAuditStatus ? <Button className="set-submit" loading={this.state.buttonLoading} type="primary" onClick={this.buildMatchList} >生成匹配列表</Button> : <span></span>}
                     </FormItem>
                     <Modal maskClosable={false} title="确认"
                         visible={this.state.formSubmitVisible}

+ 1 - 13
js/component/manageCenter/demand/demandAudit/techDemandAudit.jsx

@@ -147,12 +147,6 @@ const TechDemandPublish = React.createClass({
                     render: text => { return getboutique(text) }
                 },
                 {
-                    title: '首页展示',
-                    dataIndex: 'hot',
-                    key: 'hot',
-                    render: text => { return gethot(text) }
-                },
-                {
                     title: '关键字',
                     dataIndex: 'keyword',
                     key: 'keyword',
@@ -533,13 +527,7 @@ const TechDemandPublish = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
-                        <Select placeholder="选择信息来源" style={{ width: 120 }}
+		                <Select placeholder="选择信息来源" style={{ width: 120 }}
                             value={this.state.infoSources}
                             onChange={(e) => { this.setState({ infoSources: e }) }}>
                             <Select.Option value="0" >平台采集</Select.Option>

+ 1 - 12
js/component/manageCenter/demand/demandRelease/demandReleaseDesc.jsx

@@ -392,18 +392,7 @@ const DemandDetailShow = Form.create()(React.createClass({
                                 }
                             })()}
                         </FormItem>
-                         <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="首页展示" >
-                            {(() => {
-                                switch (theData.hot) {
-                                    case "0":
-                                        return <span>否</span>;
-                                    case "1":
-                                        return <span>是</span>;
-                                }
-                            })()}
-                        </FormItem>                        
+                                             
                      </div>                    
                      {this.state.radios==true ? <div>
                     	<FormItem

+ 1 - 12
js/component/manageCenter/demand/demandRelease/techDemandRelease.jsx

@@ -146,12 +146,6 @@ const TechDemandPublish = React.createClass({
                     render: text => { return getboutique(text) }
                 },
                 {
-                    title: '首页展示',
-                    dataIndex: 'hot',
-                    key: 'hot',
-                    render: text => { return gethot(text) }
-                },
-                {
                     title: '关键字',
                     dataIndex: 'keyword',
                     key: 'keyword',
@@ -541,12 +535,7 @@ const TechDemandPublish = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
+		                
                         <Select placeholder="选择信息来源" style={{ width: 120 }}
                             value={this.state.infoSources}
                             onChange={(e) => { this.setState({ infoSources: e }) }}>

+ 1 - 12
js/component/manageCenter/demand/myTechDemand.jsx

@@ -146,12 +146,6 @@ const DemandList = React.createClass({
                     render: text => { return getboutique(text) }
                 },
                 {
-                    title: '首页展示',
-                    dataIndex: 'hot',
-                    key: 'hot',
-                    render: text => { return gethot(text) }
-                },
-                {
                     title: '关键字',
                     dataIndex: 'keyword',
                     key: 'keyword',
@@ -493,12 +487,7 @@ const DemandList = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
+		                
                         <Select placeholder="选择信息来源" style={{ width: 120 }}
                             value={this.state.infoSources}
                             onChange={(e) => { this.setState({ infoSources: e }) }}>

+ 1 - 13
js/component/manageCenter/demand/techDemand.jsx

@@ -148,12 +148,6 @@ const DemandList = React.createClass({
                     render: text => { return getboutique(text) }
                 },
                 {
-                    title: '首页展示',
-                    dataIndex: 'hot',
-                    key: 'hot',
-                    render: text => { return gethot(text) }
-                },
-                {
                     title: '关键字',
                     dataIndex: 'keyword',
                     key: 'keyword',
@@ -498,13 +492,7 @@ const DemandList = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
-                        <Select placeholder="选择信息来源" style={{ width: 120 }}
+		                <Select placeholder="选择信息来源" style={{ width: 120 }}
                             value={this.state.infoSources}
                             onChange={(e) => { this.setState({ infoSources: e }) }}>
                             <Select.Option value="0" >平台采集</Select.Option>

+ 2 - 26
js/component/manageCenter/demand/techDemandDesc.jsx

@@ -380,19 +380,7 @@ const DemandDetailShow = Form.create()(React.createClass({
                                 }
                             })()}
                         </FormItem>
-                         <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="首页展示" >
-                            {(() => {
-                                switch (theData.hot) {
-                                    case "0":
-                                        return <span>否</span>;
-                                    case "1":
-                                        return <span>是</span>;
-                                }
-                            })()}
-                        </FormItem>                        
-                     </div>                    
+                    </div>                    
                      {this.state.radios==true ? <div>
                     	<FormItem
 	                        labelCol={{ span: 3 }}
@@ -699,7 +687,7 @@ const DemandDetailShow = Form.create()(React.createClass({
                         {theData.auditStatus == 2 ? <Button className="set-submit" type="primary" htmlType="submit">提交审核</Button> : <span></span>}
                         {theData.auditStatus == 3 ? <Button className="set-submit" type="primary" onClick={() => { this.modifyBroker(); }} style={{"display":"none"}}>保存</Button> : <span></span>}
                         {theData.auditStatus == 2 ? <Button className="set-submit" type="ghost" onClick={this.props.closeDesc}>取消</Button>: <span></span>}
-                        {window.showAuditStatus ? <Button className="set-submit" loading={this.state.buttonLoading} type="primary" onClick={this.buildMatchList} style={{"display":"none"}}>生成匹配列表</Button> : <span></span>}
+                        {window.showAuditStatus ? <Button className="set-submit" loading={this.state.buttonLoading} type="primary" onClick={this.buildMatchList} >生成匹配列表</Button> : <span></span>}
                     </FormItem>
                     <Modal maskClosable={false} title="确认"
                         visible={this.state.formSubmitVisible}
@@ -1037,18 +1025,6 @@ const DemandDetailForm = Form.create()(React.createClass({
                                     </Radio.Group>
                                     )}
                         </FormItem>
-                        <FormItem className="half-item"
-                                {...formItemLayout}
-                                label="首页展示:" >
-                                {getFieldDecorator('hot', {
-                                    initialValue: theData.hot
-                                })(
-                                    <Radio.Group onChange={(e) => { this.setState({ radios: e.target.value }); }}>
-                                        <Radio value="0" name='radios'>否</Radio>
-                                        <Radio value="1" name='radios'>是</Radio>
-                                    </Radio.Group>
-                                    )}
-                        </FormItem>                       	                   
                     </div>
                     {this.state.radios==true ? <div>
                     	<FormItem

+ 1 - 13
js/component/manageCenter/demand/techDemandQuery.jsx

@@ -147,12 +147,6 @@ const DemandList = React.createClass({
                     render: text => { return getboutique(text) }
                 },
                 {
-                    title: '首页展示',
-                    dataIndex: 'hot',
-                    key: 'hot',
-                    render: text => { return gethot(text) }
-                },
-                {
                     title: '关键字',
                     dataIndex: 'keyword',
                     key: 'keyword',
@@ -497,13 +491,7 @@ const DemandList = React.createClass({
 		                        <Radio value={1}>精品</Radio>
 		                        <Radio value={0}>非精品</Radio>
 		                </Radio.Group>
-		                <Radio.Group value={this.state.hot} onChange={(e) => {
-		                    this.setState({ hot: e.target.value })
-		                    }}>
-		                        <Radio value={1}>首页展示</Radio>
-		                        <Radio value={0}>首页不展示</Radio>
-		                </Radio.Group>
-                        <Select placeholder="选择信息来源" style={{ width: 120 }}
+		                <Select placeholder="选择信息来源" style={{ width: 120 }}
                             value={this.state.infoSources}
                             onChange={(e) => { this.setState({ infoSources: e }) }}>
                             <Select.Option value="0" >平台采集</Select.Option>

+ 2 - 25
js/component/manageCenter/demand/techDemandQueryDesc.jsx

@@ -380,19 +380,7 @@ const DemandDetailShow = Form.create()(React.createClass({
                                 }
                             })()}
                         </FormItem>
-                         <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="首页展示" >
-                            {(() => {
-                                switch (theData.hot) {
-                                    case "0":
-                                        return <span>否</span>;
-                                    case "1":
-                                        return <span>是</span>;
-                                }
-                            })()}
-                        </FormItem>                        
-                     </div>                    
+                    </div>                    
                      {this.state.radios==true ? <div>
                     	<FormItem
 	                        labelCol={{ span: 3 }}
@@ -1013,18 +1001,7 @@ const DemandDetailForm = Form.create()(React.createClass({
                                     </Radio.Group>
                                     )}
                         </FormItem>
-                        <FormItem className="half-item"
-                                {...formItemLayout}
-                                label="首页展示:" >
-                                {getFieldDecorator('hot', {
-                                    initialValue: theData.hot
-                                })(
-                                    <Radio.Group onChange={(e) => { this.setState({ radios: e.target.value }); }}>
-                                        <Radio value="0" name='radios'>否</Radio>
-                                        <Radio value="1" name='radios'>是</Radio>
-                                    </Radio.Group>
-                                    )}
-                        </FormItem>                       	                   
+                                          	                   
                     </div>
                     {this.state.radios==true ? <div>
                     	<FormItem