Procházet zdrojové kódy

病历质控tab添加

zhouna před 5 roky
rodič
revize
4a37afcf6b

+ 25 - 0
src/components/CaseQuailty/index.jsx

@@ -0,0 +1,25 @@
+import React, { Component } from 'react';
+import style from './index.less';
+import {windowEventHandler,getWindowInnerHeight} from '@utils/tools'
+
+class CaseQuailty extends Component {
+  constructor(props) {
+    super(props);
+    this.$cont = React.createRef();
+  }
+  componentDidMount(){
+    const height = getWindowInnerHeight()-148;
+    this.$cont.current.style.height = height+"px";
+    windowEventHandler('resize', ()=>{
+      if(this.$cont.current){
+        const height = getWindowInnerHeight()-148;
+        this.$cont.current.style.height = height+"px";
+      }
+    });
+  }
+  render() {
+    return <div className={style["caseQuailty"]} ref={this.$cont}>敬请期待...</div>;
+  }
+}
+
+export default CaseQuailty;

+ 6 - 0
src/components/CaseQuailty/index.less

@@ -0,0 +1,6 @@
+.caseQuailty{
+  text-align: center;
+  padding-top: 50px;
+  font-size: 16px;
+  color: gray;
+}

+ 8 - 5
src/components/PushContainer/index.jsx

@@ -12,6 +12,8 @@ import PushItemsContainer from '@containers/PushItemsContainer';
 import { pushAllDataList, getWindowInnerHeight, didPushParamChange } from '@utils/tools';
 import CopyRightContainer from "@containers/CopyRightContainer";
 import MedicalInfoContainer from '@containers/MedicalInfoContainer';
+import CaseQuailty from "../CaseQuailty";
+
 class PushContainer extends Component {
   constructor(props) {
     super(props);
@@ -20,15 +22,15 @@ class PushContainer extends Component {
       tabs: [{
         title: '辅助信息',
         disabled: true
-      }, {
+      },
+        {
+          title: '病历质控',
+        }, {
         title: '模板',
       },
       {
         title: '医学知识',
-      },
-      /*{
-        title: '全部量表',
-      }*/
+      }
       ],
       visible: false,
       message: '',                 //提示的内容
@@ -253,6 +255,7 @@ class PushContainer extends Component {
       >
         <TemplateContainer activeId={activeId}>
           <PushItemsContainer></PushItemsContainer>
+          <CaseQuailty></CaseQuailty>
           <TemplateItems
             items={items}
             current={current}