feat(componentEnv): 新增组件环境配置功能
- 修改getComponentClassify函数参数类型为string - 新增ComponentEnv组件及相关子组件 - 实现环境配置的增删改查功能 - 添加环境测试与配置文件下载功能 - 创建环境类型与架构类型的下拉选项 - 实现分步表单提交与证书生成逻辑 - 添加环境删除二次确认与实例数量展示 - 集成环境配置API接口与数据请求逻辑customized_version/lingshi
parent
82f4001768
commit
319e917676
@ -0,0 +1,24 @@
|
|||||||
|
import axios from 'axios';
|
||||||
|
|
||||||
|
// 公共路径
|
||||||
|
const urlPrefix = '/api/v1/bpms-workbench';
|
||||||
|
|
||||||
|
// 提交环境配置信息
|
||||||
|
export function submitEnvConfig(params) {
|
||||||
|
return axios.post(`${urlPrefix}/componentDeployEnv/submit`, params);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 环境配置列表
|
||||||
|
export function getEnvConfigList(current: string | number, size: string | number) {
|
||||||
|
return axios.get(`${urlPrefix}/componentDeployEnv/page?current=${current}&size=${size}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除环境配置
|
||||||
|
export function deleteEnvConfig(id: string) {
|
||||||
|
return axios.post(`${urlPrefix}/componentDeployEnv/remove?id=${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 下载环境配置文件
|
||||||
|
export function downloadEnvConfigFile(id: string) {
|
||||||
|
return axios.post(`${urlPrefix}/componentDeployEnv/download`, { id });
|
||||||
|
}
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
.component-env {
|
||||||
|
height: 98%;
|
||||||
|
background-color: #ffffff;
|
||||||
|
padding: 17px 19px 0 24px;
|
||||||
|
|
||||||
|
.component-env-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
border-bottom: 2px solid #E5E7EB;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue