feat(devops): 更新流水线任务构建器界面配置
- 调整页面布局比例从 12:12 到 14:10 - 为明细类型选择器添加宽度样式和即时创建新类型功能 - 将"是否可交互"标签更改为"是否启用按钮组" - 添加 parameterDsMap 字段到任务配置对象中 - 统一所有配置方法中的参数映射字段名称
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-col :span="14">
|
||||
<CutePage>
|
||||
<el-divider content-position="left">节点演示</el-divider>
|
||||
<div style="padding-left: 15px">
|
||||
@@ -69,7 +69,8 @@
|
||||
<el-form-item v-if="click" label="点击明细类型">
|
||||
<el-select
|
||||
v-model="detailType"
|
||||
placeholder="请选择明细类型"
|
||||
style="width: 100%"
|
||||
placeholder="请选择or输入明细类型,支持即时创建新类型"
|
||||
clearable
|
||||
allow-create
|
||||
filterable
|
||||
@@ -81,7 +82,7 @@
|
||||
<el-form-item label="是否支持重试">
|
||||
<el-switch v-model="retry" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否可交互(运行态)">
|
||||
<el-form-item label="是否启用按钮组">
|
||||
<el-switch v-model="hasButtonList" />
|
||||
</el-form-item>
|
||||
<el-form-item v-if="hasButtonList" label="按钮组">
|
||||
@@ -195,7 +196,7 @@
|
||||
</el-form>
|
||||
</CutePage>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="10">
|
||||
<CutePage>
|
||||
<el-divider content-position="left">节点选项(预览)</el-divider>
|
||||
<el-form ref="form" :model="parameters" label-width="160px">
|
||||
@@ -298,7 +299,8 @@ export default {
|
||||
retry: this.retry,
|
||||
detailType: this.detailType,
|
||||
buttonList: this.buttonList,
|
||||
parameters: tempParameters
|
||||
parameters: tempParameters,
|
||||
parameterDsMap: tempParameterMap
|
||||
}
|
||||
this.taskConfig = JSON.stringify(config, null, 2)
|
||||
},
|
||||
@@ -322,7 +324,7 @@ export default {
|
||||
detailType: this.detailType,
|
||||
buttonList: this.buttonList,
|
||||
parameters: tempParameters,
|
||||
parameterMap: tempParameterMap
|
||||
parameterDsMap: tempParameterMap
|
||||
}
|
||||
this.taskConfig = JSON.stringify(config, null, 2)
|
||||
},
|
||||
@@ -346,7 +348,7 @@ export default {
|
||||
detailType: this.detailType,
|
||||
buttonList: this.buttonList,
|
||||
parameters: tempParameters,
|
||||
parameterMap: tempParameterMap
|
||||
parameterDsMap: tempParameterMap
|
||||
}
|
||||
this.taskConfig = JSON.stringify(config, null, 2)
|
||||
},
|
||||
@@ -370,7 +372,7 @@ export default {
|
||||
detailType: this.detailType,
|
||||
buttonList: this.buttonList,
|
||||
parameters: tempParameters,
|
||||
parameterMap: tempParameterMap
|
||||
parameterDsMap: tempParameterMap
|
||||
}
|
||||
this.taskConfig = JSON.stringify(config, null, 2)
|
||||
},
|
||||
@@ -394,7 +396,7 @@ export default {
|
||||
detailType: newVal,
|
||||
buttonList: this.buttonList,
|
||||
parameters: tempParameters,
|
||||
parameterMap: tempParameterMap
|
||||
parameterDsMap: tempParameterMap
|
||||
}
|
||||
this.taskConfig = JSON.stringify(config, null, 2)
|
||||
},
|
||||
@@ -418,7 +420,7 @@ export default {
|
||||
detailType: this.detailType,
|
||||
buttonList: newVal,
|
||||
parameters: tempParameters,
|
||||
parameterMap: tempParameterMap
|
||||
parameterDsMap: tempParameterMap
|
||||
}
|
||||
this.taskConfig = JSON.stringify(config, null, 2)
|
||||
},
|
||||
@@ -443,7 +445,7 @@ export default {
|
||||
detailType: this.detailType,
|
||||
buttonList: this.buttonList,
|
||||
parameters: tempParameters,
|
||||
parameterMap: tempParameterMap
|
||||
parameterDsMap: tempParameterMap
|
||||
}
|
||||
this.taskConfig = JSON.stringify(config, null, 2)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user