|
@@ -1,6 +1,6 @@
|
|
|
import React, { useState, useEffect, useRef } from 'react';
|
|
|
import { Form, Input, Button, Table, Row, Col, Select, Modal, DatePicker, Space, message } from 'antd';
|
|
|
-import { getCookie,disabledDate } from '@utils/index'
|
|
|
+import { getCookie, disabledDate } from '@utils/index'
|
|
|
import '@common/common.less';
|
|
|
import moment from "moment";
|
|
|
import "moment/locale/zh-cn"
|
|
@@ -22,6 +22,7 @@ function FieldProblem() {
|
|
|
const [visible, setVisible] = useState(false);
|
|
|
const [size, setSize] = useState(15);
|
|
|
const [current, setCurrent] = useState(1);
|
|
|
+ const [probleData, setProbleData] = useState({});
|
|
|
const [problemDetail, setProblemDetail] = useState(null);//详情数据
|
|
|
const [title, setTitle] = useState();//正则式数据
|
|
|
const [params, setParams] = useState({
|
|
@@ -49,6 +50,7 @@ function FieldProblem() {
|
|
|
post(api.getColumnResultNumber, { hospitalId: getCookie('hospitalId') }).then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
const data = res.data.data;
|
|
|
+ setProbleData(data)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -143,7 +145,7 @@ function FieldProblem() {
|
|
|
form={form}
|
|
|
name="normal_login"
|
|
|
onFinish={onFinish}
|
|
|
- initialValues={{isSolved:'',type:''}}
|
|
|
+ initialValues={{ isSolved: '', type: '' }}
|
|
|
>
|
|
|
<Row gutter={24}>
|
|
|
<Col span={6} key={0}>
|
|
@@ -221,7 +223,44 @@ function FieldProblem() {
|
|
|
</Space>
|
|
|
|
|
|
</div>
|
|
|
-
|
|
|
+ <div className="table-data" style={{ justifyContent: 'left' }}>
|
|
|
+ <Row className="data-box">
|
|
|
+ <Col span={6} order={1} className="box-item">
|
|
|
+ <p>{probleData.notSolvedNonnull || '-'}</p>
|
|
|
+ <p>数据缺失</p>
|
|
|
+ </Col>
|
|
|
+ <Col span={6} order={2} className="box-item">
|
|
|
+ <p>{probleData.notSolvedStandardvalue || '-'}</p>
|
|
|
+ <p>非标准值</p>
|
|
|
+ </Col>
|
|
|
+ <Col span={6} order={3} className="box-item">
|
|
|
+ <p>{probleData.notSolvedRegular || '-'}</p>
|
|
|
+ <p>正则校验失败</p>
|
|
|
+ </Col>
|
|
|
+ <Col span={6} order={4} className="box-item item">
|
|
|
+ <p>{probleData.notSolved || '-'}</p>
|
|
|
+ <p>未处理</p>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ <Row className="data-box" style={{ marginLeft: '20px' }}>
|
|
|
+ <Col span={6} order={1} className="box-item">
|
|
|
+ <p>{probleData.resolvedNonnull || '-'}</p>
|
|
|
+ <p>数据缺失</p>
|
|
|
+ </Col>
|
|
|
+ <Col span={6} order={2} className="box-item">
|
|
|
+ <p>{probleData.resolvedStandardvalue || '-'}</p>
|
|
|
+ <p>非标准值</p>
|
|
|
+ </Col>
|
|
|
+ <Col span={6} order={3} className="box-item">
|
|
|
+ <p>{probleData.resolvedRegular || '-'}</p>
|
|
|
+ <p>正则校验失败</p>
|
|
|
+ </Col>
|
|
|
+ <Col span={6} order={4} className="box-item box">
|
|
|
+ <p>{probleData.resolved || '-'}</p>
|
|
|
+ <p>已处理</p>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ </div>
|
|
|
<Table
|
|
|
columns={columns}
|
|
|
scroll={{ y: 'calc(100vh - 400px)' }}
|