feat 项目支持快速复制 #I653O3

This commit is contained in:
bwcx_jzy 2022-12-20 09:50:24 +08:00
parent dceb9c3fb7
commit b5d80f8951
No known key found for this signature in database
GPG Key ID: 5E48E9372088B9E5
3 changed files with 18 additions and 1 deletions

View File

@ -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】节点分发菜单更名为项目管理

View File

@ -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();
}

View File

@ -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 = {