diff --git a/src/api/DesignForm/requestapi.ts b/src/api/DesignForm/requestapi.ts index 510901f56..8d6043d15 100644 --- a/src/api/DesignForm/requestapi.ts +++ b/src/api/DesignForm/requestapi.ts @@ -544,3 +544,14 @@ export function afreshAppSubmit(data: any) { data: data }); } + +//动态获取关联的系统字段数据作为单选下拉多选的选项 +export function getFieldRecord(param1: any) { + return request({ + url: '/javasys/lowCode/AssociatedForms/getFieldRecord', + method: 'post', + data: { + optionsValue3Field:param1 + }, + }); +} diff --git a/src/components/DesignForm/app/index.vue b/src/components/DesignForm/app/index.vue index 5a10c97cf..db0f59c70 100644 --- a/src/components/DesignForm/app/index.vue +++ b/src/components/DesignForm/app/index.vue @@ -322,7 +322,7 @@ onMounted(()=>{ */ const judjeRadio = (val: any, options: any[]) => { // console.log("判断单选值",val, options) - if(options.length > 0){ + if(options && options.length > 0){ options.forEach((item)=>{ if(item.value == val){ console.log("判断单选值",val, item.value,item.label) diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue index 3bce238e4..59f5eef4d 100644 --- a/src/components/DesignForm/formControlAttr.vue +++ b/src/components/DesignForm/formControlAttr.vue @@ -4002,7 +4002,7 @@ const disabledIstrue = (val:string) => { -