fix(amap):core
This commit is contained in:
parent
cfbcbe31a1
commit
5941a69f96
|
@ -1,6 +1,7 @@
|
|||
import OrgChart from "@/pages/OrgChart";
|
||||
import origin from "@/static/orgin.png";
|
||||
import origin2 from "@/static/orgin2.png";
|
||||
import ogr from "@/static/org_tow.png";
|
||||
import { Modal } from "antd";
|
||||
import { Store } from "antd/es/form/interface";
|
||||
import { inject, observer } from "mobx-react";
|
||||
|
@ -8,6 +9,7 @@ import { useEffect, useState } from "react";
|
|||
const Orgin = (props: Store) => {
|
||||
const { homeStore } = props;
|
||||
const [isModalOpen, setIsModalOpen] = useState<boolean>(false);
|
||||
const [isSelf, setIsSelf] = useState<boolean>(false);
|
||||
|
||||
useEffect(() => {
|
||||
homeStore.getOgCount();
|
||||
|
@ -21,13 +23,19 @@ const Orgin = (props: Store) => {
|
|||
};
|
||||
return (
|
||||
<>
|
||||
<div className="orgin-content" onClick={showModal}>
|
||||
<div className="po">
|
||||
<div className="orgin-content">
|
||||
<div className="po" onClick={()=>{
|
||||
setIsSelf(true)
|
||||
showModal()
|
||||
}}>
|
||||
<span>{homeStore.ogMap?.count ?? 0}</span>
|
||||
<img src={origin} alt="" />
|
||||
<p>党组织数量</p>
|
||||
</div>
|
||||
<div className="po">
|
||||
<div className="po" onClick={()=>{
|
||||
setIsSelf(false)
|
||||
showModal()
|
||||
}}>
|
||||
<span>{homeStore.ogMap?.member_count ?? 0}</span>
|
||||
<img src={origin2} alt="" />
|
||||
<p>党员数量</p>
|
||||
|
@ -43,7 +51,7 @@ const Orgin = (props: Store) => {
|
|||
onCancel={handleCancel}
|
||||
footer={null}
|
||||
>
|
||||
<OrgChart />
|
||||
{isSelf ? <OrgChart /> : <img alt="org" src={ogr} width={"100%"} />}
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -46,7 +46,7 @@ const Trainings = (props: Store) => {
|
|||
{ title: "任务结束时间", dataIndex: "end_time" ,width:200},
|
||||
{ title: "任务积分设置", dataIndex: "score" ,width:200},
|
||||
{ title: "任务类别", dataIndex: "category_name",width:200 },
|
||||
{ title: "任务状态", dataIndex: "status",render: (status) => status===1?"已完成":"未完成",width:200},
|
||||
{ title: "任务状态", dataIndex: "status",render: (status) => status===2?"已完成":"未完成",width:200},
|
||||
{ title: "物资归还状态",width:200, dataIndex: "supplies_status",render: (supplies_status) => supplies_status===2?"已归还":"未归还"},
|
||||
{
|
||||
title: "操作",
|
||||
|
@ -65,7 +65,7 @@ const Trainings = (props: Store) => {
|
|||
编辑
|
||||
</Button>
|
||||
{
|
||||
record.status===0 ?<Button
|
||||
record.status !==2 ?<Button
|
||||
type="dashed"
|
||||
size="small"
|
||||
onClick={() => {
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 362 KiB |
Loading…
Reference in New Issue