Explorar o código

编辑病历字数限制

morphone1995 %!s(int64=4) %!d(string=hai) anos
pai
achega
48c8551035
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/HistoryCaseContainer/HistoryList/index.jsx

+ 1 - 1
src/components/HistoryCaseContainer/HistoryList/index.jsx

@@ -458,7 +458,7 @@ class HistoryCaseContainer extends React.Component {
                 >                  
                     <div className={styles.outBox}>
                       <span>病历名称:</span>
-                      <input type="text" className={styles.innerInput} placeholder="请输入病历名称" value={this.state.templateName} onChange={this.handleChange} autocomplete="off"/>
+                <input type="text" className={styles.innerInput} placeholder="请输入病历名称" maxlength={30} value={this.state.templateName} onChange={this.handleChange} autocomplete="off"/>
                     </div>
                 </ConfirmModal>
             </div>