Skip to content
Snippets Groups Projects
Commit 971cc3cf authored by 1437862981's avatar 1437862981
Browse files

接口联调

parent 9d760cc5
Branches
Tags 0.0.1.6
No related merge requests found
......@@ -4,6 +4,8 @@ import services from '@/services';
import SafetyModal from '../SafetyTips/SafetyModal';
import AccidentItem from './AccidentItem';
import styles from './index.less';
import { divide } from 'lodash';
import EmptySpace from '@/components/EmptySpace';
const SafetyAccident = () => {
const [selectedItem, setSelectedItem] = useState<any>(null);
......@@ -35,11 +37,11 @@ const SafetyAccident = () => {
<div className={styles.container}>
<div className={styles.tag}>安全事故通报</div>
<div className={styles.content}>
{data?.data?.records?.length? <div className={styles.content}>
{data?.data?.records?.map((item: any) => {
return <AccidentItem key={item.id} data={item} onClick={() => handleItemClick(item)} />;
})}
</div>
</div>:<div><EmptySpace/></div>}
{selectedItem && (
<SafetyModal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment