卡片修复

This commit is contained in:
Chengliang 2022-09-29 09:49:15 +08:00
parent 89587a6b1a
commit e498634292
3 changed files with 7 additions and 5 deletions

View File

@ -233,35 +233,35 @@ export default class ResourceCard extends React.Component {
<img src="/hrm/hrm_e9/image/workflow.png" alt="" /> <img src="/hrm/hrm_e9/image/workflow.png" alt="" />
<div> <div>
<p>流程总数</p> <p>流程总数</p>
<p>{data.statistical.workflowCount}</p> <p onClick={() => {window.open(`/spa/workflow/static/index.html#/main/workflow/listDoing?resourceid=${data.user.id}`)}}>{data.statistical.workflowCount}</p>
</div> </div>
</Col> </Col>
<Col className='ant-col' span={4}> <Col className='ant-col' span={4}>
<img src="/hrm/hrm_e9/image/doc.png" alt="" /> <img src="/hrm/hrm_e9/image/doc.png" alt="" />
<div> <div>
<p>文档总数</p> <p>文档总数</p>
<p>{data.statistical.docCount}</p> <p onClick={() => {window.open(`/spa/document/static/index.html#/main/document/search?viewcondition=2&doccreaterid=${data.user.id}`)}}>{data.statistical.docCount}</p>
</div> </div>
</Col> </Col>
<Col className='ant-col' span={4}> <Col className='ant-col' span={4}>
<img src="/hrm/hrm_e9/image/custom.png" alt="" /> <img src="/hrm/hrm_e9/image/custom.png" alt="" />
<div> <div>
<p>我的客户</p> <p>我的客户</p>
<p>{data.statistical.cusCount}</p> <p onClick={() => {window.open(`/spa/crm/static/index.html#/main/crm/customer/hrmView?searchHrmId=${data.user.id}`)}}>{data.statistical.cusCount}</p>
</div> </div>
</Col> </Col>
<Col className='ant-col' span={4}> <Col className='ant-col' span={4}>
<img src="/hrm/hrm_e9/image/cowork.png" alt="" /> <img src="/hrm/hrm_e9/image/cowork.png" alt="" />
<div> <div>
<p>我的协作</p> <p>我的协作</p>
<p>{data.statistical.collaborationCount}</p> <p onClick={() => {window.open(`/spa/cowork/static/index.html#/main/cowork/hrmview?searchHrmid=${data.user.id}`)}}>{data.statistical.collaborationCount}</p>
</div> </div>
</Col> </Col>
<Col className='ant-col' span={4}> <Col className='ant-col' span={4}>
<img src="/hrm/hrm_e9/image/weibo.png" alt="" /> <img src="/hrm/hrm_e9/image/weibo.png" alt="" />
<div> <div>
<p>微博总数</p> <p>微博总数</p>
<p>{data.statistical.weiboCount}</p> <p onClick={() => {window.open(`/spa/blog/static/index.html#/user/${data.user.id}`)}}>{data.statistical.weiboCount}</p>
</div> </div>
</Col> </Col>
</Row> </Row>

View File

@ -22,6 +22,7 @@ export class ResourceCardStore {
/************** json数据*****************/ /************** json数据*****************/
@observable data = { @observable data = {
user: { user: {
id:23,
image: "", image: "",
name: "萧言", name: "萧言",
sex:"0", sex:"0",

View File

@ -96,6 +96,7 @@
float: right; float: right;
font-weight: 800; font-weight: 800;
font-size: 16px; font-size: 16px;
cursor: pointer;
} }
} }