Browse Source

优化新闻发布位置

liting2017 6 years ago
parent
commit
c66f374685

+ 2 - 2
js/component/administration/news/newDetails.jsx

@@ -221,11 +221,11 @@ const NewDetail = Form.create()(React.createClass({
                             <span>{theData.releaseDate?(new Date(theData.releaseDate)).toLocaleString():''}</span>
                         </FormItem>
 					</div>
-                    <div className="clearfix">
+                    {/* <div className="clearfix">
                         <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="发布位置">
                                 <span>{getNewPosition(this.state.page)}</span>
 						</FormItem>
-                    </div>
+                    </div> */}
                     <div className="clearfix breakWord">
 						<FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="新闻简介">
 							<span>{theData.summary}</span>

+ 6 - 6
js/component/administration/news/newForm.jsx

@@ -153,7 +153,7 @@ const NewDetailForm = Form.create()(React.createClass({
                 thePictureUrl = picArr.join(",");
 			};
             if (!err) {
-				let publishPages =(values.publishPages).join(',')
+				// let publishPages =(values.publishPages).join(',')
                 this.setState({
                     loading: true
                 });
@@ -176,7 +176,7 @@ const NewDetailForm = Form.create()(React.createClass({
 						auditStatus:index,
                         summary: values.summary,
 						provinceId: (values.ProvinceCity)[0],
-						publishPages:publishPages
+						// publishPages:publishPages
                     }
                 }).done(function (data) {
                     this.setState({
@@ -343,7 +343,7 @@ const NewDetailForm = Form.create()(React.createClass({
 							<span>{theData.releaseStatus?'已发布':'未发布'}</span>
 						</FormItem>
 					</div>
-					<div className="clearfix">
+					{/* <div className="clearfix">
 						<FormItem className="full-item" 
 							labelCol={{ span: 3 }}
 							wrapperCol={{ span: 18 }} label="发布位置">
@@ -354,14 +354,14 @@ const NewDetailForm = Form.create()(React.createClass({
 								<Checkbox.Group>
 									<Row>
 										<Col span={6}><Checkbox value="web_index" disabled>网站新闻首页</Checkbox></Col>
-										<Col span={6}><Checkbox value="web_tech_service_index">网站科技服务首页</Checkbox></Col>
-										<Col span={6}><Checkbox value="app_policy_index" disabled>app政策首页</Checkbox></Col>
+										<Col span={6}><Checkbox value="web_tech_service_index">网站申请首页</Checkbox></Col>
+										<Col span={6}><Checkbox value="app_policy_index" disabled>app新闻首页</Checkbox></Col>
 										<Col span={6}><Checkbox value="app_tech_service_index">APP科技服务首页</Checkbox></Col>
 									</Row>
 								</Checkbox.Group>
 							)}
 						</FormItem>
-					</div>
+					</div> */}
 					<div className="clearfix">
 						<FormItem wrapperCol={{ span: 12, offset: 3 }}>
 						    <Button className="set-submit" type="primary" htmlType="submit">

+ 2 - 3
js/component/administration/policy/policyForm.jsx

@@ -335,11 +335,10 @@ const NewDetailForm = Form.create()(React.createClass({
 								<Checkbox.Group>
 									<Row>
 										<Col span={6}><Checkbox value="web_index" >网站首页</Checkbox></Col>
-										<Col span={6}><Checkbox value="web_policy_main" disabled>网站政策首页</Checkbox></Col>
-										<Col span={6}><Checkbox value="web_tech_service_index">网站科技服务首页</Checkbox></Col>
+										<Col span={6}><Checkbox value="web_policy_main" disabled>网站政策列表首页</Checkbox></Col>
+										<Col span={6}><Checkbox value="web_tech_service_index">网站交易首页</Checkbox></Col>
 										<Col span={6}><Checkbox value="app_index">APP首页</Checkbox></Col>
 										<Col span={6}><Checkbox value="app_policy_main" disabled>app政策首页</Checkbox></Col>
-										<Col span={6}><Checkbox value="app_tech_service_index">APP科技服务首页</Checkbox></Col>
 									</Row>
 								</Checkbox.Group>
 							)}

+ 3 - 6
js/component/dataDic.js

@@ -2228,13 +2228,13 @@ module.exports = {
 	        key: "网站新闻首页"
 	    },{
 	        value: "web_tech_service_index",
-	        key: "网站科技服务首页"
+	        key: "网站申请首页"
 	    }, {
 	        value: "app_policy_index",
 	        key: "app政策首页"
 	    },{
 	        value: "app_tech_service_index",
-	        key: "APP科技服务首页"
+	        key: "APP申请首页"
 	    }
     ],
     policyPosition:[
@@ -2246,16 +2246,13 @@ module.exports = {
 	        key: "网站政策首页"
 	    },{
 	        value: "web_tech_service_index",
-	        key: "网站科技服务首页"
+	        key: "网站交易首页"
 	    },{
 	        value: "app_index",
 	        key: "app首页"
 	    },{
 	        value: "app_policy_main",
 	        key: "app政策首页"
-	    },{
-	        value: "app_tech_service_index",
-	        key: "APP科技服务首页"
 	    }
     ],
     //成果类型