mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 11:58:01 +08:00
feat 项目支持快速复制 #I653O3
This commit is contained in:
parent
dceb9c3fb7
commit
b5d80f8951
@ -4,6 +4,9 @@
|
||||
|
||||
### 🐣 新增功能
|
||||
|
||||
1. 【server】新增 节点项目支持快速复制操作
|
||||
(感谢[@mt-mored](https://gitee.com/mt-mored) [Gitee issues I653O3](https://gitee.com/dromara/Jpom/issues/I653O3) )
|
||||
|
||||
### 🐞 解决BUG、优化功能
|
||||
|
||||
1. 【server】节点分发菜单更名为项目管理
|
||||
|
@ -153,6 +153,7 @@ public class RemoteVersion extends BaseJsonModel {
|
||||
try {
|
||||
log.debug("use remote version url: {}", remoteVersionUrl);
|
||||
HttpRequest request = HttpUtil.createGet(remoteVersionUrl, true);
|
||||
request.timeout(10 * 1000);
|
||||
try (HttpResponse execute = request.execute()) {
|
||||
body = execute.body();
|
||||
}
|
||||
|
@ -123,7 +123,9 @@
|
||||
<a-menu-item>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">编辑</a-button>
|
||||
</a-menu-item>
|
||||
|
||||
<a-menu-item>
|
||||
<a-button size="small" type="primary" @click="copyItem(record)">复制</a-button>
|
||||
</a-menu-item>
|
||||
<!-- <a-menu-item>
|
||||
<a-button size="small" type="primary" @click="handleReplica(record)" v-if="javaModes.includes(record.runMode)" :disabled="!record.javaCopyItemList">副本集 </a-button>
|
||||
</a-menu-item> -->
|
||||
@ -612,6 +614,17 @@ export default {
|
||||
}, 500);
|
||||
});
|
||||
},
|
||||
// 复制
|
||||
copyItem(record) {
|
||||
const temp = Object.assign({}, record);
|
||||
delete temp.id;
|
||||
delete temp.createTimeMillis;
|
||||
delete temp.outGivingProject;
|
||||
this.temp = { ...temp, name: temp.name + "副本", id: temp.projectId + "_copy", javaCopyItemList: [], lib: temp.lib + "_copy" };
|
||||
|
||||
this.loadAccesList();
|
||||
this.editProjectVisible = true;
|
||||
},
|
||||
// 编辑
|
||||
handleEdit(record) {
|
||||
const params = {
|
||||
|
Loading…
Reference in New Issue
Block a user