Explorar o código

Merge branch 'optimize-ll' into optimize

Luolei %!s(int64=6) %!d(string=hai) anos
pai
achega
f90aeef464

+ 10 - 4
src/components/TimeInterval/index.jsx

@@ -2,7 +2,14 @@ import React from "react";
 import style from "./index.less";
 import { Calendar} from '@commonComp';
 import {getCalendarDate,getCurrentDate} from "@utils/tools";
-
+/**
+ * top  定位距离
+ * sure 是否显示确认按钮
+ * timesure 点击确认事件
+ * needTime 是否需要时分秒
+ * timeLis 已选时间,点开后显示上次选择事件
+ * handleChange 日期改变调用
+ */
 class TimeInterval extends React.Component {
   constructor(props) {
     super(props);
@@ -72,7 +79,6 @@ class TimeInterval extends React.Component {
     const {startTime,endTime,show,timeLisStart,timeLisEnd,flg} = this.state
     const {handleShowTime,timeSure,handleChangeDate} = this
     return <div className={style.timeWrap}>
-      <span>送检时间 : </span>
           <div className={style.timeIpts}>
             <input 
               value={startTime} 
@@ -85,8 +91,8 @@ class TimeInterval extends React.Component {
               value={endTime}
               readOnly
               className={style.ipt}
-               onClick={()=>handleShowTime(2)} 
-               type="text" 
+               onClick={()=>handleShowTime(2)}
+               type="text"
                placeholder="终止时间"/>
           </div>
           {

+ 1 - 0
src/components/WrapModalBody/Item/index.jsx

@@ -93,6 +93,7 @@ class Item extends React.Component {
             }} />
         </li>
         <li className={`${style.time} ${style.pubLi}`}>
+          <span>送检时间 : </span>
           <TimeInterval getStartTime={this.getStartTime} getEndTime={this.getEndTime}></TimeInterval>
         </li>
       </ul>