莫凡 3 gadi atpakaļ
vecāks
revīzija
56f6ed87b6

+ 2 - 1
src/components/DiagManager/addDiag.js

@@ -12,7 +12,7 @@ function AddDiag({formData,matchChange,visible,cancel,onOk,title,termSType,termT
   const [form] = Form.useForm();
   const [form] = Form.useForm();
   const { Option } = Select;
   const { Option } = Select;
   const [unsaved, setUnsaved] = useState(false);//修改未保存弹窗
   const [unsaved, setUnsaved] = useState(false);//修改未保存弹窗
-  const [icdcode,setIcdcode] = useState((formData||{}).code);
+  const [icdcode,setIcdcode] = useState("");
   const [dataList, setDataList] = useState([]);//当前页列表数据
   const [dataList, setDataList] = useState([]);//当前页列表数据
   const [formList, setFormList] = useState([]);//当前页列表数据
   const [formList, setFormList] = useState([]);//当前页列表数据
   const [source, setSource] = useState(0);//来源
   const [source, setSource] = useState(0);//来源
@@ -20,6 +20,7 @@ function AddDiag({formData,matchChange,visible,cancel,onOk,title,termSType,termT
 
 
   useEffect(() => {
   useEffect(() => {
 	form.setFieldsValue(formData)
 	form.setFieldsValue(formData)
+	setIcdcode(formData.code)
   }, [formData]);
   }, [formData]);
   //标准术语搜索
   //标准术语搜索
   function handleSearch(val){
   function handleSearch(val){

+ 1 - 1
src/components/DiagManager/index.js

@@ -237,7 +237,7 @@ function DiagManager() {
         <Table
         <Table
           /*rowSelection={{ type: 'checkbox', ...rowSelection, }}*/
           /*rowSelection={{ type: 'checkbox', ...rowSelection, }}*/
           columns={columns}
           columns={columns}
-          scroll={{ y: 'calc(100vh - 350px)' }}
+          scroll={{ y: 'calc(100vh - 400px)' }}
           dataSource={DiagList}
           dataSource={DiagList}
           rowKey={record => record.id}
           rowKey={record => record.id}
           pagination={{
           pagination={{

+ 1 - 1
src/components/DrugManager/index.js

@@ -256,7 +256,7 @@ function DrugManager() {
 		  <Table
 		  <Table
               /*rowSelection={{ type: 'checkbox', ...rowSelection, }}*/
               /*rowSelection={{ type: 'checkbox', ...rowSelection, }}*/
 			  columns={columns}
 			  columns={columns}
-			  scroll={{ y: 'calc(100vh - 350px)' }}
+			  scroll={{ y: 'calc(100vh - 400px)' }}
 			  dataSource={DrugList}
 			  dataSource={DrugList}
 			  rowKey={record => record.id}
 			  rowKey={record => record.id}
 			  pagination={{
 			  pagination={{

+ 1 - 1
src/components/SurgeryManager/index.js

@@ -237,7 +237,7 @@ function SurgManager() {
 		  <Table
 		  <Table
               /*rowSelection={{ type: 'checkbox', ...rowSelection, }}*/
               /*rowSelection={{ type: 'checkbox', ...rowSelection, }}*/
 			  columns={columns}
 			  columns={columns}
-			  scroll={{ y: 'calc(100vh - 350px)' }}
+			  scroll={{ y: 'calc(100vh - 400px)' }}
 			  dataSource={SurgList}
 			  dataSource={SurgList}
 			  rowKey={record => record.id}
 			  rowKey={record => record.id}
 			  pagination={{
 			  pagination={{