This commit is contained in:
caishi 2021-02-01 15:28:24 +08:00
parent eee8d4659c
commit e65a1debc5
3 changed files with 9 additions and 6 deletions

View File

@ -39,7 +39,7 @@ function Dispose(props){
const url = `/ci/pipelines/list.json`;
axios.get(url,{
params:{
identifier:projectsId,
identifier:projectsId,owner,
page,limit
}
}).then(result=>{

View File

@ -29,8 +29,12 @@ function List({ list, operate , projectsId , owner , showModal , deleteFunc }){
dataIndex:"file_name",
key:1,
width:"15%",
className:"color-blue",
ellipsis:true
ellipsis:true,
render:(value,item)=>{
return(
<Link to={`/projects/${owner}/${projectsId}?url=${value}`} className="color-blue">{value}</Link>
)
}
},
{
title:"触发分支",

View File

@ -34,7 +34,7 @@ function disposePipeline(props){
function InitTemplates(){
const url = `/ci/templates/templates_by_stage.json`;
axios.get(url,{
params:{ stage_type:stageType }
params:{ stage_type:stageType, id:disposeId }
}).then(result=>{
if(result && result.data){
setTemplates(result.data);
@ -261,9 +261,8 @@ function disposePipeline(props){
//
function sureSubmit(){
setLoading(true);
const { defaultBranch } = props;
let params = {
branch: defaultBranch,
branch: datas.branch,
content:datas.content,
filepath:'.trustie-pipeline.yml',
message:'',