Browse Source

lint 修复

dengdx 2 months ago
parent
commit
e7a9502060

+ 5 - 2
src/pages/patient/ArchiveList.tsx

@@ -33,14 +33,17 @@ const ArchivelistPage: React.FC = () => {
           </Drawer>
         </>
       ) : (
-        <Row className='h-full flex-1'>
+        <Row className="h-full flex-1">
           <Col span={screens.lg ? 18 : screens.md ? 20 : 24}>
             <WorklistTable />
             <div className="flex justify-center mt-4">
               <Pagination defaultCurrent={1} total={50} />
             </div>
           </Col>
-          <Col span={screens.lg ? 6 : screens.md ? 4 : 0} className='h-full overflow-auto'>
+          <Col
+            span={screens.lg ? 6 : screens.md ? 4 : 0}
+            className="h-full overflow-auto"
+          >
             <ArchiveOperationPanel />
           </Col>
         </Row>

+ 2 - 2
src/pages/patient/Bin.tsx

@@ -33,14 +33,14 @@ const BinPage: React.FC = () => {
           </Drawer>
         </>
       ) : (
-        <Row gutter={16} className='h-full'>
+        <Row gutter={16} className="h-full">
           <Col span={screens.lg ? 18 : screens.md ? 20 : 24}>
             <WorklistTable />
             <div className="flex justify-center mt-4">
               <Pagination defaultCurrent={1} total={50} />
             </div>
           </Col>
-          <Col span={screens.lg ? 6 : screens.md ? 4 : 0} className='h-full'>
+          <Col span={screens.lg ? 6 : screens.md ? 4 : 0} className="h-full">
             <BinOperationPanel />
           </Col>
         </Row>

+ 9 - 1
src/pages/patient/components/register.protocol.list.tsx

@@ -29,7 +29,15 @@ const ProtocolSelectionList: React.FC = () => {
   const cardSize = getCardSize(screens);
 
   return (
-    <div style={{ display: 'flex', flexWrap: 'wrap', gap: 16 ,height:'100%', overflow: 'auto'}}>
+    <div
+      style={{
+        display: 'flex',
+        flexWrap: 'wrap',
+        gap: 16,
+        height: '100%',
+        overflow: 'auto',
+      }}
+    >
       {protocols.map((item) => (
         <Card
           key={item.id}

+ 16 - 6
src/pages/patient/register.tsx

@@ -30,11 +30,11 @@ const RegisterPage: React.FC = () => {
             display: 'flex',
             flexDirection: 'column',
           }}
-          className='h-full'
+          className="h-full"
         >
           <BasicInfoForm style={{ overflow: 'auto' }} />
         </Col>
-        <Col xs={24} sm={24} md={8} lg={8} xl={8} xxl={8} className='h-full'>
+        <Col xs={24} sm={24} md={8} lg={8} xl={8} xxl={8} className="h-full">
           <ProtocolList />
         </Col>
         <Col xs={24} sm={24} md={8} lg={8} xl={8} xxl={8}>
@@ -47,9 +47,15 @@ const RegisterPage: React.FC = () => {
   if (screens.md || screens.lg) {
     // 中屏幕:左右两栏,右侧上下分
     return (
-      <Row gutter={16} className='h-full flex-1 '>
-        <Col xs={24} sm={24} md={12} lg={12} className='h-full flex flex-column border-8 border-red-400'  >
-          <BasicInfoForm style={{ overflow: 'auto' ,width:'100%'}}/>
+      <Row gutter={16} className="h-full flex-1 ">
+        <Col
+          xs={24}
+          sm={24}
+          md={12}
+          lg={12}
+          className="h-full flex flex-column border-8 border-red-400"
+        >
+          <BasicInfoForm style={{ overflow: 'auto', width: '100%' }} />
         </Col>
         <Col xs={24} sm={24} md={12} lg={12}>
           <Row gutter={[0, 16]}>
@@ -69,7 +75,11 @@ const RegisterPage: React.FC = () => {
   if (screens.xs || screens.sm) {
     // 小屏幕:手风琴式布局
     return (
-      <Collapse accordion defaultActiveKey={['1']} style={{ margin: 16 ,overflow:'auto', height:'100%'}}>
+      <Collapse
+        accordion
+        defaultActiveKey={['1']}
+        style={{ margin: 16, overflow: 'auto', height: '100%' }}
+      >
         <Panel header="基本信息表单区域" key="1">
           <BasicInfoForm />
         </Panel>

+ 5 - 2
src/pages/patient/worklist.tsx

@@ -33,11 +33,14 @@ const WorklistPage: React.FC = () => {
           </Drawer>
         </>
       ) : (
-        <Row className='h-full'>
+        <Row className="h-full">
           <Col span={screens.lg ? 18 : screens.md ? 20 : 24}>
             <WorklistTable />
           </Col>
-          <Col span={screens.lg ? 6 : screens.md ? 4 : 0} className='h-full overflow-auto'>
+          <Col
+            span={screens.lg ? 6 : screens.md ? 4 : 0}
+            className="h-full overflow-auto"
+          >
             <OperationPanel />
           </Col>
         </Row>