parent
b778b49d68
commit
6d16a5ccbb
|
|
@ -1,5 +1,6 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
import { Modal, Form, Input, Button, Spin, Pagination } from 'antd';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import Nodata from '../../Nodata';
|
||||
|
||||
|
|
@ -13,7 +14,7 @@ import { getImageUrl } from 'educoder'
|
|||
|
||||
import '../indexUser.scss';
|
||||
|
||||
function PointsDoc({ visible , onCancel , onSure , type , username , choosed , history , showCompeleteDialog , member }) {
|
||||
function PointsDoc({ visible , onCancel , onSure , type , username , choosed , history , showCompeleteDialog , member, deptId }) {
|
||||
const limit = 5;
|
||||
|
||||
const [ page , setPage ] = useState(1);
|
||||
|
|
@ -112,7 +113,7 @@ function PointsDoc({ visible , onCancel , onSure , type , username , choosed , h
|
|||
</div>
|
||||
{currentRow && (
|
||||
<div className="line dataline">
|
||||
<span className="content">{currentRow.docName}</span>
|
||||
<span className="content"><Link target="_blank" to={`/zone/${deptId}/newdetail/${currentRow.docId}`} onClick={()=>{window.scrollTo(0,450)}}>{currentRow.docName}</Link></span>
|
||||
<span className="action">
|
||||
<Button type="primary" shape="round" disabled style={{backgroundColor:'rgba(70, 106, 255, 0.43)', borderColor:'rgba(70, 106, 255, 0.43)', color:'#fff'}}>已置顶</Button>
|
||||
</span>
|
||||
|
|
@ -120,7 +121,7 @@ function PointsDoc({ visible , onCancel , onSure , type , username , choosed , h
|
|||
)}
|
||||
{list && list.map((item) => (
|
||||
<div className="line dataline" key={item.id}>
|
||||
<span className="content">{item.name}</span>
|
||||
<span className="content"><Link target="_blank" to={`/zone/${deptId}/newdetail/${item.id}`} onClick={()=>{window.scrollTo(0,450)}}>{item.name}</Link></span>
|
||||
<span className="action">
|
||||
<Button type="primary" shape="round" disabled={!!currentRow} onClick={() => handlePin(item)}>置顶</Button>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ function PointsDoc({ visible , onCancel , onSure , type , username , choosed , h
|
|||
</div>
|
||||
{currentRow && (
|
||||
<div className="line dataline">
|
||||
<span className="content">{currentRow.name}</span>
|
||||
<span className="content"><a href={currentRow.projectURL} target="_blank" rel="noopener noreferrer">{currentRow.name}</a></span>
|
||||
<span className="action">
|
||||
<Button type="primary" shape="round" disabled style={{backgroundColor:'rgba(70, 106, 255, 0.43)', borderColor:'rgba(70, 106, 255, 0.43)', color:'#fff'}}>已置顶</Button>
|
||||
</span>
|
||||
|
|
@ -120,7 +120,7 @@ function PointsDoc({ visible , onCancel , onSure , type , username , choosed , h
|
|||
)}
|
||||
{list && list.map((item) => (
|
||||
<div className="line dataline" key={item.id}>
|
||||
<span className="content">{item.projectProperties?.name}</span>
|
||||
<span className="content"><a href={item.projectURL} target="_blank" rel="noopener noreferrer">{item.projectProperties?.name}</a></span>
|
||||
<span className="action">
|
||||
<Button type="primary" shape="round" disabled={!!currentRow} onClick={() => handlePin(item)}>置顶</Button>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ function ZoneUser(props){
|
|||
const [ memberAccountInfo, setMemberAccountInfo ] = useState([]);
|
||||
const [msg, setMsg] = useState('');
|
||||
|
||||
const { id, showNotification, checkIfLogin, showLoginDialog, temp, sectionMemberTitle } = props;
|
||||
const { id, showNotification, checkIfLogin, showLoginDialog, temp, sectionMemberTitle} = props;
|
||||
|
||||
useEffect(()=>{
|
||||
let uuid = getUniqueIdentifier()
|
||||
|
|
@ -399,7 +399,7 @@ function ZoneUser(props){
|
|||
<UserAward visible={awardVisible} member={memberInfo} id={id} onSure={(msg) => handleAwardSure(msg)}
|
||||
onCancel={()=>setAwardVisible(false)}
|
||||
/>
|
||||
<PointsDoc visible={docVisible} member={memberInfo}
|
||||
<PointsDoc visible={docVisible} member={memberInfo} deptId={deptId}
|
||||
onCancel={()=>setDocVisible(false)} onSure={() => { setDocVisible(false); setMsg('首页新闻推荐'); setSuccessVisible(true);getInfo();}}
|
||||
/>
|
||||
<PointsProject visible={projectVisible} member={memberInfo}
|
||||
|
|
|
|||
Loading…
Reference in New Issue