|
@@ -1,5 +1,5 @@
|
|
|
import Header from '@/components/Header'
|
|
|
-import React from 'react'
|
|
|
+import React, { useEffect } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import SvgIcon from '@/components/SvgIcon'
|
|
|
import './index.scss'
|
|
@@ -8,19 +8,25 @@ import { ZhButton } from '@/components/Button'
|
|
|
import { dayjsFormat } from '@/utils/util'
|
|
|
import { userStore } from '@/store/mobx'
|
|
|
import { Tooltip } from 'antd'
|
|
|
+import { observer } from 'mobx-react'
|
|
|
const Index = () => {
|
|
|
+ useEffect(() => {
|
|
|
+ if(!userStore.projectInfo.id) {
|
|
|
+ userStore.getProjectInfo()
|
|
|
+ }
|
|
|
+ }, [ userStore.projectInfo.id ])
|
|
|
return (
|
|
|
<div className="wrap-contaniner hide-menu">
|
|
|
<Header title="待办事项"></Header>
|
|
|
<div className={styles.content}>
|
|
|
<span>系统消息</span>
|
|
|
- <h5 className={styles.title}>项目名称</h5>
|
|
|
+ <h5 className={styles.title}>{userStore.projectName}</h5>
|
|
|
<div className={styles.downtime}>
|
|
|
<SvgIcon type="xxh-wrench" style={{ fontSize: '1.5rem' }}></SvgIcon>
|
|
|
<p className={styles.downtimeText}>系统将于 2019年3月10日 14:09 开始停机维护,持续30分钟。造成不便敬请谅解。</p>
|
|
|
</div>
|
|
|
<div className="pi-justify-between">
|
|
|
- <div className={[ styles.card, 'pi-flex-twice' ].join(' ')}>
|
|
|
+ <div className={[ styles.card, 'pi-flex-quintuple' ].join(' ')}>
|
|
|
<div className={styles.cardHeader}>
|
|
|
<span>需要你处理</span>
|
|
|
</div>
|
|
@@ -46,7 +52,7 @@ const Index = () => {
|
|
|
{/* <p className="pi-text-center pi-muted">暂时没有需要你处理的事项</p> */}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div className={[ styles.card, 'pi-flex-twice', 'pi-mg-lr-30' ].join(' ')}>
|
|
|
+ <div className={[ styles.card, 'pi-flex-quintuple', 'pi-mg-lr-30' ].join(' ')}>
|
|
|
<div className={styles.cardHeader}>
|
|
|
<span>需要你关注</span>
|
|
|
</div>
|
|
@@ -71,7 +77,7 @@ const Index = () => {
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div className="pi-flex-sub pi-flex-column">
|
|
|
+ <div className="pi-flex-twice pi-flex-column">
|
|
|
<div className={styles.card}>
|
|
|
<div className={styles.cardBody}>
|
|
|
<div className={styles.cardTitle}>
|
|
@@ -113,4 +119,4 @@ const Index = () => {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
-export default Index
|
|
|
+export default observer(Index)
|