fix: bug#10962、10791

This commit is contained in:
xieyonghong 2023-03-26 00:34:45 +08:00
parent ec7ad63f89
commit cc84a2a54c
2 changed files with 3 additions and 1 deletions

View File

@ -276,6 +276,8 @@ const valueSelect = (_: any, label: string, labelObj: Record<number, any>) => {
}
const typeChange = (e: any) => {
paramsValue.type = e.value
emit('update:value', { ...paramsValue })
formModel.value.branches![props.branchName].then[props.thenName].actions[props.actionName].options!.terms[props.termsName].terms[props.name][3] = e.label
}

View File

@ -264,12 +264,12 @@ const termsTypeSelect = (e: { key: string, name: string }) => {
const valueSelect = (_: any, label: string, labelObj: Record<number, any>) => {
emit('update:value', { ...paramsValue })
console.log(labelObj)
formItemContext.onFieldChange()
formModel.value.options!.when[props.branchName].terms[props.whenName].terms[props.name][2] = labelObj
}
const typeSelect = (e: any) => {
emit('update:value', { ...paramsValue })
formModel.value.options!.when[props.branchName].terms[props.whenName].terms[props.name][3] = e.label
}