mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-04 21:08:30 +08:00
update build info page
This commit is contained in:
parent
cf849108cd
commit
01626d694f
@ -54,8 +54,6 @@ import java.util.Objects;
|
||||
@Feature(cls = ClassFeature.BUILD)
|
||||
public class BuildInfoController extends BaseServerController {
|
||||
|
||||
@Resource
|
||||
private BuildService buildService;
|
||||
@Resource
|
||||
private DbBuildHistoryLogService dbBuildHistoryLogService;
|
||||
@Resource
|
||||
@ -155,12 +153,17 @@ public class BuildInfoController extends BaseServerController {
|
||||
buildInfoModel = new BuildInfoModel();
|
||||
buildInfoModel.setId(IdUtil.fastSimpleUUID());
|
||||
}
|
||||
buildInfoModel.setGroup(group);
|
||||
buildInfoModel.setName(name);
|
||||
// 判断 group 是否为空
|
||||
if (StrUtil.isNotEmpty(group)) {
|
||||
buildInfoModel.setGroup(group);
|
||||
}
|
||||
// 如果是 SVN
|
||||
if (BuildModel.RepoType.Svn.getCode() == repositoryModel.getRepoType()) {
|
||||
branchName = "trunk";
|
||||
}
|
||||
// 设置参数
|
||||
buildInfoModel.setRepositoryId(repositoryId);
|
||||
buildInfoModel.setName(name);
|
||||
buildInfoModel.setBranchName(branchName);
|
||||
buildInfoModel.setResultDirFile(resultDirFile);
|
||||
buildInfoModel.setScript(script);
|
||||
|
@ -9,7 +9,7 @@
|
||||
</a-select>
|
||||
<a-button type="primary" @click="handleFilter">搜索</a-button>
|
||||
<a-button type="primary" @click="handleAdd">新增</a-button>
|
||||
<a-button type="primary" @click="loadData">刷新</a-button>
|
||||
<a-button type="primary" @click="handleFilter">刷新</a-button>
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<a-table
|
||||
@ -103,7 +103,7 @@
|
||||
</a-row>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="仓库地址" prop="repositoryId">
|
||||
<a-select v-model="temp.repositoryId">
|
||||
<a-select v-model="temp.repositoryId" @select="changeRepositpry">
|
||||
<a-select-option v-for="item in repositoryList" :key="item.id" :value="item.id">{{ item.name }}[{{ item.gitUrl }}]</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
@ -419,6 +419,14 @@ export default {
|
||||
this.loadData();
|
||||
this.loadRepositoryList();
|
||||
},
|
||||
// 选择仓库
|
||||
changeRepositpry(value) {
|
||||
this.repositoryList.forEach(element => {
|
||||
if (element.id === value) {
|
||||
this.tempRepository = element;
|
||||
}
|
||||
})
|
||||
},
|
||||
// 添加
|
||||
handleAdd() {
|
||||
this.temp = {
|
||||
|
Loading…
Reference in New Issue
Block a user