|
@@ -134,7 +134,6 @@
|
|
|
<span>编辑流水线配置</span>
|
|
<span>编辑流水线配置</span>
|
|
|
<span class="button-group">
|
|
<span class="button-group">
|
|
|
<ElButton type="text">脚本教程</ElButton>
|
|
<ElButton type="text">脚本教程</ElButton>
|
|
|
- <ElButton type="text">模板详解</ElButton>
|
|
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
<ElInput
|
|
<ElInput
|
|
@@ -159,7 +158,12 @@
|
|
|
}"
|
|
}"
|
|
|
destroy-on-close
|
|
destroy-on-close
|
|
|
>
|
|
>
|
|
|
- <template #title>创建流水线</template>
|
|
|
|
|
|
|
+ <template #title>
|
|
|
|
|
+ <span>创建流水线</span>
|
|
|
|
|
+ <span class="button-group">
|
|
|
|
|
+ <ElButton type="text">模板详解</ElButton>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
<ElForm
|
|
<ElForm
|
|
|
:model="createPipelineForm"
|
|
:model="createPipelineForm"
|
|
|
ref="createPipelineForm"
|
|
ref="createPipelineForm"
|
|
@@ -237,7 +241,7 @@
|
|
|
<ElTableColumn>
|
|
<ElTableColumn>
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<ElButton type="text" @click="deleteProduction(scope.row.id)">
|
|
<ElButton type="text" @click="deleteProduction(scope.row.id)">
|
|
|
- <i class="el-icon-delete-solid"></i>
|
|
|
|
|
|
|
+ <i class="el-icon-delete"></i>
|
|
|
</ElButton>
|
|
</ElButton>
|
|
|
</template>
|
|
</template>
|
|
|
</ElTableColumn>
|
|
</ElTableColumn>
|
|
@@ -267,7 +271,7 @@ export default {
|
|
|
pipelineConfig: '',
|
|
pipelineConfig: '',
|
|
|
jsonValid: true,
|
|
jsonValid: true,
|
|
|
editingPipelineId: -1,
|
|
editingPipelineId: -1,
|
|
|
- templates: ['Java项目', 'MySQL'],
|
|
|
|
|
|
|
+ templates: [],
|
|
|
createPipelineForm: {
|
|
createPipelineForm: {
|
|
|
name: '',
|
|
name: '',
|
|
|
template: '',
|
|
template: '',
|
|
@@ -277,6 +281,7 @@ export default {
|
|
|
async mounted() {
|
|
async mounted() {
|
|
|
this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
|
|
this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
|
|
|
this.productions = await PipelineAPI.getDeploymentsByProjectId(this.$store.state.workspace.currentProjectId);
|
|
this.productions = await PipelineAPI.getDeploymentsByProjectId(this.$store.state.workspace.currentProjectId);
|
|
|
|
|
+ this.templates = await PipelineAPI.getPipelineTemplates();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
timeFormatter: (row, property) => `${row[property].year}/${row[property].month}/${row[property].day} `
|
|
timeFormatter: (row, property) => `${row[property].year}/${row[property].month}/${row[property].day} `
|