同上-update
This commit is contained in:
parent
fa47ae9b5e
commit
3bfbba2303
|
@ -36,8 +36,9 @@ const Infos = styled.div`
|
||||||
}
|
}
|
||||||
& > .f-wrap-between {
|
& > .f-wrap-between {
|
||||||
padding: 14px 20px 14px 16px;
|
padding: 14px 20px 14px 16px;
|
||||||
border-radius: 3px 3px 0px 0px;
|
border-radius: 0px 0px 3px 3px;
|
||||||
border: 1px solid #D0D0D0;
|
border: 1px solid #D0D0D0;
|
||||||
|
border-top: none;
|
||||||
.df{
|
.df{
|
||||||
align-items: center;
|
align-items: center;
|
||||||
& .underline:hover{
|
& .underline:hover{
|
||||||
|
|
|
@ -6,7 +6,7 @@ import moment from 'moment';
|
||||||
|
|
||||||
import NoneData from "../Nodata";
|
import NoneData from "../Nodata";
|
||||||
import OrderItem from "./OrderItem";
|
import OrderItem from "./OrderItem";
|
||||||
import CheckProfile from '../Component/ProfileModal/Profile';
|
import cookie from 'react-cookies';
|
||||||
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
|
@ -76,6 +76,14 @@ class order extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount = () => {
|
componentDidMount = () => {
|
||||||
|
// const selectParams = cookie.load('selectParams');
|
||||||
|
// let states = selectParams.select_params;
|
||||||
|
// this.setState({
|
||||||
|
// ...states
|
||||||
|
// },()=>{
|
||||||
|
// this.getSelectList();
|
||||||
|
// this.getIssueList('1');
|
||||||
|
// })
|
||||||
this.getSelectList();
|
this.getSelectList();
|
||||||
this.getIssueList('1');
|
this.getIssueList('1');
|
||||||
};
|
};
|
||||||
|
@ -102,11 +110,11 @@ class order extends Component {
|
||||||
|
|
||||||
// 获取列表数据
|
// 获取列表数据
|
||||||
getIssueList = (status_type, begin, end) => {
|
getIssueList = (status_type, begin, end) => {
|
||||||
|
cookie.remove('selectParams');
|
||||||
this.setState({
|
this.setState({
|
||||||
isSpin: true
|
isSpin: true
|
||||||
})
|
})
|
||||||
const { select_params } = this.state;
|
const { select_params } = this.state;
|
||||||
console.log(select_params);
|
|
||||||
const { projectsId, owner } = this.props.match.params;
|
const { projectsId, owner } = this.props.match.params;
|
||||||
const url = `/${owner }/${projectsId}/issues.json`;
|
const url = `/${owner }/${projectsId}/issues.json`;
|
||||||
axios
|
axios
|
||||||
|
@ -120,7 +128,9 @@ class order extends Component {
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
const issues = result.data.issues
|
const issues = result.data.issues;
|
||||||
|
// let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);
|
||||||
|
// cookie.save('selectParams', {states:this.state},{ expires: inFifteenMinutes,path:`/${owner}/${projectsId}/issues` });
|
||||||
this.setState({
|
this.setState({
|
||||||
data: result.data,
|
data: result.data,
|
||||||
issues: issues,
|
issues: issues,
|
||||||
|
@ -193,11 +203,12 @@ class order extends Component {
|
||||||
select_params,
|
select_params,
|
||||||
author_id,
|
author_id,
|
||||||
assigned_to_id
|
assigned_to_id
|
||||||
|
},()=>{
|
||||||
|
if (!toGet) {
|
||||||
|
const { status_type } = this.state;
|
||||||
|
this.getIssueList(status_type);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
if (!toGet) {
|
|
||||||
const { status_type } = this.state;
|
|
||||||
this.getIssueList(status_type);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
renderMenu = (array, name, id, toGet) => {
|
renderMenu = (array, name, id, toGet) => {
|
||||||
|
|
|
@ -76,10 +76,8 @@ function Index(props) {
|
||||||
subTitle={`删除后未来事件将不会推送至此Webhook地址:${url}`}
|
subTitle={`删除后未来事件将不会推送至此Webhook地址:${url}`}
|
||||||
/>
|
/>
|
||||||
<Banner>
|
<Banner>
|
||||||
<FlexAJ>
|
<span>Webhooks(网络钩子)</span>
|
||||||
<span>Webhooks(网络钩子)</span>
|
<Button type="primary" size="large" onClick={addFunc}>添加Webhook</Button>
|
||||||
<Button type="primary" size="large" onClick={addFunc}>添加Webhook</Button>
|
|
||||||
</FlexAJ>
|
|
||||||
</Banner>
|
</Banner>
|
||||||
<div className="hookpanel">
|
<div className="hookpanel">
|
||||||
<p className="color-grey-3">每当特定事件(如push代码,合并请求被编辑)发生时,我们将通过webhook给您提供的远程URL发送post请求。您可以在我们的<a className="color-blue hoverLine" target="_blank" href="https://forum.trustie.net/forums/3408/detail">webhooks指南</a>中了解更多信息</p>
|
<p className="color-grey-3">每当特定事件(如push代码,合并请求被编辑)发生时,我们将通过webhook给您提供的远程URL发送post请求。您可以在我们的<a className="color-blue hoverLine" target="_blank" href="https://forum.trustie.net/forums/3408/detail">webhooks指南</a>中了解更多信息</p>
|
||||||
|
|
|
@ -287,10 +287,10 @@ function New({ form , match , showNotification , history }) {
|
||||||
<Checkbox value="pull_request_label">合并请求标签</Checkbox>
|
<Checkbox value="pull_request_label">合并请求标签</Checkbox>
|
||||||
<span>合并请求的标签被更新或清除</span>
|
<span>合并请求的标签被更新或清除</span>
|
||||||
</span> */}
|
</span> */}
|
||||||
<span>
|
{/* <span>
|
||||||
<Checkbox value="pull_request_review">合并请求审查</Checkbox>
|
<Checkbox value="pull_request_review">合并请求审查</Checkbox>
|
||||||
<span>合并请求被批准、拒绝或提出审查意见,审查人员的修改,审查线程已解决或未解决</span>
|
<span>合并请求被批准、拒绝或提出审查意见,审查人员的修改,审查线程已解决或未解决</span>
|
||||||
</span>
|
</span> */}
|
||||||
{/* <span>
|
{/* <span>
|
||||||
<Checkbox value="pull_request_sync">合并请求被同步</Checkbox>
|
<Checkbox value="pull_request_sync">合并请求被同步</Checkbox>
|
||||||
<span>合并请求被同步</span>
|
<span>合并请求被同步</span>
|
||||||
|
|
|
@ -28,7 +28,7 @@ function AddMemberBox({className,orzId,history,OIdentifier}){
|
||||||
}
|
}
|
||||||
|
|
||||||
function chooseGroup(id){
|
function chooseGroup(id){
|
||||||
history.push(`/${OIdentifier}/teams/${id}/setting`);
|
history.push(`/${OIdentifier}/teams/${id}/setting/member`);
|
||||||
}
|
}
|
||||||
return(
|
return(
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -407,7 +407,7 @@
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
width: 130px;
|
width: 130px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
&.active,&:active{
|
&.active,&:hover{
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: rgba(65, 84, 241, 1);
|
background-color: rgba(65, 84, 241, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue