liting2017 hace 7 años
padre
commit
9148d6481f

+ 16 - 0
js/admin/servicesManage/projectOrder.js

@@ -0,0 +1,16 @@
+import React from 'react';
+import ReactDOM from 'react-dom';
+import '../../../css/base.less';
+
+import TopTab from '../../component/manageCenter/topTab.jsx';
+import Footer from '../../component/manageCenter/bottom.jsx';
+import Content from '../../component/manageCenter/servicesManage/projectOrder/content.jsx';
+
+ReactDOM.render(
+    <div className="wrap clearfix">
+        <TopTab active={'services'}/>
+        <Content />
+        <Footer />
+    </div>,
+    document.getElementById('root')
+)

+ 1 - 1
js/component/manageCenter/operate/content.less

@@ -64,5 +64,5 @@
 .addButton{
     float: right;
     margin-right: 50px!important;
-    margin-top: 20px!important;
+    margin-top: 10px!important;
 }

+ 43 - 0
js/component/manageCenter/servicesManage/projectOrder/content.jsx

@@ -0,0 +1,43 @@
+import React from 'react';
+import '../../content.less';
+import LeftTab from '../leftTab.jsx';
+import Module from '../../module'
+
+const Content = React.createClass({
+    getInitialState() {
+        return {
+            loading: false,
+            leftKey: 'comprehensive',
+        };
+    },
+    handlekey(key) {
+        this.setState({
+            leftKey: key,
+        });
+        window.location.hash = key;
+    },
+    componentWillMount(){
+        if ( window.location.hash ) {
+            this.handlekey(window.location.hash.substr(1));
+        };
+    },
+    render() {
+        return (
+            <div className="manage-content">
+                <LeftTab handlekey={this.handlekey} />
+                <div className="content-right">
+                    {(() => {
+                        switch (this.state.leftKey) {
+                            case '212':
+                                return <Module />;
+                            default:
+                                return <Module />;  
+                        };
+                    })()}
+                </div>
+            </div>
+        )
+    }
+});
+
+export default Content;

+ 158 - 0
js/component/manageCenter/servicesManage/projectOrder/contract.less

@@ -0,0 +1,158 @@
+.foster-content {
+    padding: 20px;
+    background: #fff;
+    .content-title {
+        line-height: 32px;
+        >span {
+            color: #333;
+            font-size: 16px;
+            margin-bottom: 10px;
+        }
+    }
+    .foster-query {
+        margin-bottom: 10px;
+        >* {
+            margin-top: 10px;
+            margin-right: 20px;
+        }
+        .search-more {
+            margin-top: 0;
+            >span {
+                margin-top: 10px;
+                margin-right: 10px;
+            }
+        }
+    }
+}
+
+.patent-addNew {
+    float: right;
+    margin-left: 20px;
+    button {
+        background: #ea0862;
+        color: #fff;
+        border: none;
+        border-radius: 4px;
+        padding: 6px 10px;
+        margin-left: 20px;
+    }
+    button:hover {
+        background: #ea0862;
+    }
+}
+
+.patent-content {
+    padding: 20px;
+    background: #fff;
+    .content-title {
+        height: 32px;
+        margin-bottom: 10px;
+        >span {
+            color: #333;
+            font-size: 16px;
+            margin-bottom: 10px;
+        }
+        .patent-addNew {
+            float: right;
+            margin-left: 20px;
+            button {
+                background: #ea0862;
+                color: #fff;
+                border: none;
+                border-radius: 4px;
+                padding: 6px 10px;
+            }
+        }
+    }
+    .patent-alert {
+        font-size: 14px;
+        padding: 8px 48px;
+        >i {
+            font-size: 19px;
+            top: 8px;
+        }
+    }
+    .patent-query {
+        margin-bottom: 10px;
+        >input {
+            width: 180px;
+            margin-right: 20px;
+        }
+        >div {
+            margin-right: 20px;
+        }
+        button {
+            margin-left: 20px;
+        }
+        >span {
+            margin-left: 20px;
+            >span {
+                margin-left: 10px;
+            }
+        }
+        .search-more {
+            >p {
+                margin-top: 10px;
+                >span {
+                    margin-right: 10px;
+                }
+            }
+            >div {
+                margin-top: 10px;
+                >div {
+                    margin-right: 20px;
+                }
+            }
+        }
+    }
+}
+
+#CopyrightDesc-form {
+    font-size: 12px;
+    .express-desc-row {
+        line-height: 30px;
+        margin-bottom: 10px;
+    }
+    .ant-form-item-control {
+        .ant-checkbox-wrapper {
+            margin-left: 34px;
+            margin-right: 20px;
+        }
+    }
+    .download-file {
+        a {
+            display: inline-block;
+            width: 80px;
+        }
+    }
+    .half-item {
+        float: left;
+        width: 50%;
+        height: 36px;
+        margin-bottom: 10px;
+        button {
+            margin-left: 20px
+        }
+    }
+    .third-item {
+        float: left;
+        width: 33%;
+        height: 36px;
+        margin-bottom: 10px;
+        >p {
+            line-height: 30px;
+        }
+    }
+    .item-title {
+        line-height: 30px;
+        font-size: 14px;
+        color: #666;
+    }
+    .form-title {
+        font-size: 16px;
+        color: #333;
+    }
+    .contract-Table {
+        margin-bottom: 20px;
+    }
+}

+ 6 - 0
webpack.config.js

@@ -164,6 +164,12 @@ module.exports = (function () {
             template: './template/template.html',
             chunks: ['admin/servicesManage/technology', 'vendors']
         }),
+        new HtmlWebpackPlugin({
+            title: '管理员-科技服务管理-项目单',
+            filename: 'admin/servicesManage/projectOrder.html',
+            template: './template/template.html',
+            chunks: ['admin/servicesManage/projectOrder', 'vendors']
+        }),
         //admin-demand
         new HtmlWebpackPlugin({
             title: '管理员-用户管理',

+ 5 - 0
webpack/entry.config.js

@@ -27,6 +27,7 @@ module.exports = {
     'admin/servicesManage/highTech': './js/admin/servicesManage/highTech.js',
     'admin/servicesManage/highTechInfo': './js/admin/servicesManage/highTechInfo.js',
     'admin/servicesManage/technology': './js/admin/servicesManage/technology.js',
+    'admin/servicesManage/projectOrder': './js/admin/servicesManage/projectOrder.js',
     //admin/demand
     'admin/demand': './js/admin/demand.js',
     'admin/achievement': './js/admin/achievement.js',
@@ -161,6 +162,10 @@ module.exports = {
       'webpack/hot/only-dev-server',
       './js/admin/servicesManage/technology.js'
     ],
+     'admin/servicesManage/projectOrder': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
+      'webpack/hot/only-dev-server',
+      './js/admin/servicesManage/projectOrder.js'
+    ],
     //portal  门户
     // 'portal/search/demand': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
     //   'webpack/hot/only-dev-server',