forked from Gitlink/forgeplus-react
回归wiki、issue列表issue
This commit is contained in:
parent
999441165a
commit
b789fc50be
|
@ -386,7 +386,7 @@ class NewHeader extends Component {
|
||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
:
|
:
|
||||||
<Dropdown placement={`bottomRight`} visible={true} overlay={this.renderMenu(settings && settings.personal)}>
|
<Dropdown placement={`bottomRight`} overlay={this.renderMenu(settings && settings.personal)}>
|
||||||
<a href={`/${this.props.current_user && this.props.current_user.login}`}>
|
<a href={`/${this.props.current_user && this.props.current_user.login}`}>
|
||||||
<img alt="头像" src={getImageUrl(`/${user.image_url}`)} className="currentImg"></img>
|
<img alt="头像" src={getImageUrl(`/${user.image_url}`)} className="currentImg"></img>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -9,7 +9,7 @@ function DetailBanner({ history,list , owner , projectsId ,showNotification , ur
|
||||||
const [ menuName , setMenuName ] = useState(undefined);
|
const [ menuName , setMenuName ] = useState(undefined);
|
||||||
const [ visible , setVisible ] = useState(false);
|
const [ visible , setVisible ] = useState(false);
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
if(list){
|
if(Array.isArray(list)){
|
||||||
// 没有资源库banner但是通过连接进资源库页面时
|
// 没有资源库banner但是通过连接进资源库页面时
|
||||||
let a = list.filter(item=>item.menu_name === "resources");
|
let a = list.filter(item=>item.menu_name === "resources");
|
||||||
if((pathname && pathname==="source") && (a && a.length === 0)){
|
if((pathname && pathname==="source") && (a && a.length === 0)){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { Tag } from "antd";
|
import { Tag, Tooltip } from "antd";
|
||||||
import { AlignCenter } from '../Component/layout';
|
import { AlignCenter } from '../Component/layout';
|
||||||
import { getImageUrl, turnbar } from "educoder";
|
import { getImageUrl, turnbar } from "educoder";
|
||||||
import "./merge.css";
|
import "./merge.css";
|
||||||
|
@ -157,7 +157,7 @@ class MergeItem extends Component {
|
||||||
"--"
|
"--"
|
||||||
)}
|
)}
|
||||||
</li>
|
</li>
|
||||||
<li>{item.version || "--"}</li>
|
<li>{item.version ? <Tooltip placement="topLeft" title={item.version}>{item.version}</Tooltip> : "--"}</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { Popconfirm } from 'antd'
|
import { Popconfirm,Tooltip } from 'antd'
|
||||||
import { TagInfo } from '../Utils/TagColor';
|
import { TagInfo } from '../Utils/TagColor';
|
||||||
class OrderItem extends Component {
|
class OrderItem extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
@ -84,7 +84,9 @@ class OrderItem extends Component {
|
||||||
}
|
}
|
||||||
</li>
|
</li>
|
||||||
<li>{item.tracker || "--"}</li>
|
<li>{item.tracker || "--"}</li>
|
||||||
{ !mile ?<li>{item.version || "--"}</li>:""}
|
{!mile ? <li>
|
||||||
|
{item.version ? <Tooltip placement="topLeft" title={item.version}>{item.version}</Tooltip> : "--"}
|
||||||
|
</li> : ""}
|
||||||
<li>{item.issue_status || "--"}</li>
|
<li>{item.issue_status || "--"}</li>
|
||||||
<li style={{color:`${item.done_ratio === "100%"?"#28BD6C":"#F73030"}`}}>{item.done_ratio || "--"}</li>
|
<li style={{color:`${item.done_ratio === "100%"?"#28BD6C":"#F73030"}`}}>{item.done_ratio || "--"}</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -282,13 +282,17 @@ class order extends Component {
|
||||||
// 翻页
|
// 翻页
|
||||||
ChangePage = (page) => {
|
ChangePage = (page) => {
|
||||||
window.scrollTo(0,0);
|
window.scrollTo(0,0);
|
||||||
const { status_type } = this.state;
|
const { status_type,select_params } = this.state;
|
||||||
this.setState({
|
this.setState({
|
||||||
isSpin: true,
|
isSpin: true,
|
||||||
checkedValue: [],
|
checkedValue: [],
|
||||||
all: false,
|
all: false,
|
||||||
|
select_params:{
|
||||||
|
...select_params,
|
||||||
|
page
|
||||||
|
}
|
||||||
},()=>{
|
},()=>{
|
||||||
this.state.select_params.page=page;
|
// this.state.select_params.page=page;
|
||||||
this.getIssueList(status_type);
|
this.getIssueList(status_type);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -432,17 +436,25 @@ class order extends Component {
|
||||||
|
|
||||||
// 修改开始时间
|
// 修改开始时间
|
||||||
changeBeginTime = (data, value) => {
|
changeBeginTime = (data, value) => {
|
||||||
const { status_type } = this.state;
|
const { status_type,select_params } = this.state;
|
||||||
this.setState({
|
this.setState({
|
||||||
begin: value
|
begin: value,
|
||||||
|
select_params:{
|
||||||
|
...select_params,
|
||||||
|
page:1
|
||||||
|
}
|
||||||
},()=>{
|
},()=>{
|
||||||
this.getIssueList(status_type, value, this.state.end);
|
this.getIssueList(status_type, value, this.state.end);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
changeEndTime = (data, value) => {
|
changeEndTime = (data, value) => {
|
||||||
const { status_type } = this.state;
|
const { status_type,select_params } = this.state;
|
||||||
this.setState({
|
this.setState({
|
||||||
end: value
|
end: value,
|
||||||
|
select_params:{
|
||||||
|
...select_params,
|
||||||
|
page:1
|
||||||
|
}
|
||||||
},()=>{
|
},()=>{
|
||||||
this.getIssueList(status_type, this.state.begin, value);
|
this.getIssueList(status_type, this.state.begin, value);
|
||||||
});
|
});
|
||||||
|
|
|
@ -23,6 +23,8 @@ function Check({ current_user, showNotification, history }) {
|
||||||
const [taskId, setTaskId] = useState();
|
const [taskId, setTaskId] = useState();
|
||||||
const [havePass, setHavePass] = useState(false);
|
const [havePass, setHavePass] = useState(false);
|
||||||
|
|
||||||
|
const disabledCheck = new Date().getTime() > new Date('2022-07-01').getTime();
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: '学生姓名',
|
title: '学生姓名',
|
||||||
|
@ -128,8 +130,8 @@ function Check({ current_user, showNotification, history }) {
|
||||||
return (
|
return (
|
||||||
<div className='actionBox'>
|
<div className='actionBox'>
|
||||||
{
|
{
|
||||||
text ? <Button type="default" onClick={() => { checkStudent(record.id, 0) }}>撤销</Button> :
|
text ? <Button disabled={disabledCheck} type="default" onClick={() => { checkStudent(record.id, 0) }}>撤销</Button> :
|
||||||
<Button type="primary" disabled={havePass} onClick={() => { checkStudent(record.id, 1) }}>通过</Button>
|
<Button disabled={disabledCheck} type="primary" disabled={havePass} onClick={() => { checkStudent(record.id, 1) }}>通过</Button>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -27,7 +27,7 @@ body>.-task-title {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height:58px;
|
height:58px;
|
||||||
min-width: 1200px;
|
min-width: 1200px;
|
||||||
z-index: 1000;
|
z-index: 1031;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: #1B2440;
|
background: #1B2440;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
Loading…
Reference in New Issue