Luolei 6 rokov pred
rodič
commit
a2006f9c3a
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      src/components/Operation/index.jsx

+ 2 - 2
src/components/Operation/index.jsx

@@ -300,7 +300,7 @@ class Operation extends Component {
   render() {
     const { showPrint, closePrint, showPreview, closePreview } = this;
     const { visible, preVisible,diagShow } = this.props.print;
-    const {zIndex} = this.state;
+    const {zIndex,type} = this.state;
     return <div className={style['container']} style={{zIndex:zIndex}}>
       <span className={style['button']} onClick={showPrint}><img src={printImg} /> 打印病历</span>
       <span className={style['preButton']} onClick={showPreview}><img src={preview} /> 预览</span>
@@ -316,7 +316,7 @@ class Operation extends Component {
         cancel={() => {this.closeDiagBox()}}
         okText={this.state.okText}
         height={228}
-        width={400}
+        width={type==3?400:300}
         okBorderColor={this.state.borderColor}
         okColor={this.state.okColor}
         oKBg={this.state.oKBg}