未验证 提交 83d9ea3c 编写于 作者: A Amy0104 提交者: GitHub

[Fix][UI Next][V1.0.0-Beta] Remove the default values for node name and child node. (#9760)

上级 4e56a1bf
......@@ -631,6 +631,7 @@ const project = {
workflow_name: 'Workflow Name',
workflow_name_tips: 'Please select a workflow (required)',
child_node: 'Child Node',
child_node_tips: 'Please select a child node (required)',
run_flag: 'Run flag',
normal: 'Normal',
prohibition_execution: 'Prohibition execution',
......
......@@ -627,6 +627,7 @@ const project = {
workflow_name: '工作流名称',
workflow_name_tips: '请选择工作流(必选)',
child_node: '子节点',
child_node_tips: '请选择子节点(必选)',
run_flag: '运行标志',
normal: '正常',
prohibition_execution: '禁止执行',
......
......@@ -52,10 +52,6 @@ export function useChildNode({
value: option.code
}))
loading.value = false
if (!model.processDefinitionCode) {
model.processDefinitionCode = options.value[0].value
if (!model.name) model.name = options.value[0].label
}
}
const getProcessListByCode = async (processCode: number) => {
if (!processCode) return
......@@ -63,10 +59,6 @@ export function useChildNode({
model.definition = res
}
const onChange = (code: number, options: { label: string }) => {
if (!model.name) model.name = options.label
}
onMounted(() => {
if (from === 1 && processName) {
getProcessListByCode(processName)
......@@ -80,10 +72,18 @@ export function useChildNode({
span: 24,
name: t('project.node.child_node'),
props: {
loading: loading,
'on-update:value': onChange
loading: loading
},
options: options,
class: 'select-child-node'
class: 'select-child-node',
validate: {
trigger: ['input', 'blur'],
required: true,
validator(unuse: any, value: number) {
if (!value) {
return Error(t('project.node.child_node_tips'))
}
}
}
}
}
......@@ -45,8 +45,7 @@ export function useSubProcess({
failRetryTimes: 0,
workerGroup: 'default',
delayTime: 0,
timeout: 30,
processDefinitionCode: 0
timeout: 30
} as INodeData)
let extra: IJsonItem[] = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册