Browse Source

【看板客户端】【小改动】

zhuth 8 years ago
parent
commit
bb07db7a69

+ 3 - 2
kanban-client/app/component/factory.js

@@ -8,6 +8,7 @@ import RenderUtils from '../utils/RenderUtils.js';
 import config1 from '../data/BoardConfig3.json';
 import config2 from '../data/BoardConfig4.json';
 
+
 class Factory extends React.Component {
 
     constructor(props) {
@@ -32,10 +33,10 @@ class Factory extends React.Component {
         return (
             <div>
                 <div>
-                    <Title {...this.state.config.title.config} state={{time1: new Date().format('hh:mm:ss'),time2: 60-new Date().getSeconds(),}} />
+                    <Title {...this.state.config.title.config} />
                 </div>
                 <div>
-                    <Container items={this.state.config.content.items} rowHeight={(window.innerHeight - this.state.config.title.config.height) / 10} />
+                    <Container items={this.state.config.content.items} rowHeight={(window.innerHeight - this.state.config.title.config.height || 55) / 10} />
                 </div>
             </div>
         );

+ 2 - 1
kanban-client/app/utils/RenderUtils.js

@@ -1,4 +1,5 @@
 import React from 'react';
+import logeImg from '../../assets/images/log.png';
 
 function titleRender(state) {
     let time1 = new Date().format('HH:mm:ss');
@@ -7,7 +8,7 @@ function titleRender(state) {
             <thead>
             <tr>
                 <td className="logo" width="320" rowSpan="2">
-                    <img src={require('../../assets/images/log.png')} alt=""/>
+                    <img src={logeImg} alt=""/>
                 </td>
                 <td className="title-center" width="550" rowSpan="2">产线ASS02ZZ电子看板 <br/>Production Line Overview</td>
                 <td className="title-field" width="210">

+ 1 - 1
kanban-client/build/index.html

@@ -6,7 +6,7 @@
 </head>
 <body style="margin:0px">
   <div id="root"></div>
-  <script type="text/javascript" src="../lib/echarts-for-react/echarts.min.js"></script>
+  <script type="text/javascript" src="./lib/echarts-for-react/echarts.min.js"></script>
   <script src="bundle.js"></script>
 </body>
 </html>

+ 0 - 1
kanban-client/src/Title/Title.jsx

@@ -40,7 +40,6 @@ export default class Title extends React.Component {
   getTitle() {
     const { render, height, width, cls, style} = this.props;
     style.height = height;
-    console.log(height)
     let tel;
     if (renders[render]) {
       tel = <div className={cls} style={style}>{renders[render](this.props.state)}</div>;