|
|
@@ -4,11 +4,11 @@ import { useDispatch, useSelector } from 'react-redux';
|
|
|
import { setDiagnosisDescription } from '@/states/patient/DiagnosticReport/diagnosisSlice';
|
|
|
import { Input, Layout } from 'antd';
|
|
|
|
|
|
-const { Header, Content } = Layout;
|
|
|
+const { Content } = Layout;
|
|
|
|
|
|
export const DiagnosisSection: React.FC = () => {
|
|
|
const dispatch = useDispatch();
|
|
|
-
|
|
|
+
|
|
|
const diagnosisDescription = useSelector((state: any) => state.diagnosis.diagnosisDescription);
|
|
|
|
|
|
const handleInputChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {
|
|
|
@@ -16,19 +16,18 @@ export const DiagnosisSection: React.FC = () => {
|
|
|
};
|
|
|
|
|
|
return (
|
|
|
-<Layout className="flex flex-col">
|
|
|
-<Header className="flex justify-between items-center p-4 bg-gray-100">
|
|
|
- <div className="label">影像诊断</div>
|
|
|
- </Header>
|
|
|
-<Content className="p-4">
|
|
|
-<Input.TextArea
|
|
|
- className="w-full p-2 border border-gray-300 rounded"
|
|
|
- value={diagnosisDescription}
|
|
|
- onChange={handleInputChange}
|
|
|
- placeholder="由用户输入"
|
|
|
- rows={4}
|
|
|
-/>
|
|
|
- </Content>
|
|
|
- </Layout>
|
|
|
+ <div className="flex flex-col">
|
|
|
+ <div className="flex justify-between items-center">
|
|
|
+ <span className="label">影像诊断</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <Input.TextArea
|
|
|
+ className="w-full border rounded"
|
|
|
+ value={diagnosisDescription}
|
|
|
+ onChange={handleInputChange}
|
|
|
+ placeholder="由用户输入"
|
|
|
+ rows={4}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
);
|
|
|
};
|