From e9af798abf00e2160b0a76301e7f41adda0dfd07 Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Tue, 30 Jul 2024 11:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E9=83=A8=E5=88=86=E6=97=A0?= =?UTF-8?q?=E6=95=88=E8=AF=B7=E6=B1=82getFieldRecord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DesignForm/public/form/formItem.vue | 18 +++++----- .../sysworkflow/lowcodepage/appCardPage.vue | 21 ++++++----- .../sysworkflow/lowcodepage/appFormList.vue | 21 ++++++----- .../sysworkflow/lowcodepage/appListPage.vue | 21 ++++++----- .../appPage/appPageForm/openAppFormPage.vue | 36 ++++++++++++++----- .../lowcodepage/runApp/runAppForm.vue | 22 ++++++------ 6 files changed, 85 insertions(+), 54 deletions(-) diff --git a/src/components/DesignForm/public/form/formItem.vue b/src/components/DesignForm/public/form/formItem.vue index 68fec19..aff7989 100644 --- a/src/components/DesignForm/public/form/formItem.vue +++ b/src/components/DesignForm/public/form/formItem.vue @@ -288,14 +288,16 @@ const getAxiosOptions = debounce((data?: any) => { /* 在这里请求后台获取字段 */ - getFieldRecord(props.data.control.optionsValue3Field).then(({ data }) => { - - let fieldName = props.data.name - - emits('optionsValue3Get1',data,fieldName) - - }) - + console.log("formItem---291",props.data.control.optionsValue3Field) + if(props.data.control.optionsValue3Field && props.data.control.optionsValue3Field != "" && props.data.control.optionsValue3Field != null && props.data.control.optionsValue3Field != "undefined"){ + getFieldRecord(props.data.control.optionsValue3Field).then(({ data }) => { + + let fieldName = props.data.name + + emits('optionsValue3Get1',data,fieldName) + + }) + } } setFormDict(formProps.value.dict) // 表格里新增时行时需要重新设一次 diff --git a/src/views/sysworkflow/lowcodepage/appCardPage.vue b/src/views/sysworkflow/lowcodepage/appCardPage.vue index b6014c4..7edd69e 100644 --- a/src/views/sysworkflow/lowcodepage/appCardPage.vue +++ b/src/views/sysworkflow/lowcodepage/appCardPage.vue @@ -295,17 +295,20 @@ const lookFormList = (val:any) => { /* 在这里请求后台获取字段 */ - getFieldRecord(paramx).then(({ data }) => { - stateData.tableData.columns[i].options = data - if(stateData.searchData.length>0){ - for(let j = 0;j { + stateData.tableData.columns[i].options = data + if(stateData.searchData.length>0){ + for(let j = 0;j { /* 在这里请求后台获取字段 */ - getFieldRecord(paramx).then(({ data }) => { - stateData.tableData.columns[i].options = data - if(stateData.searchData.length>0){ - for(let j = 0;j { + stateData.tableData.columns[i].options = data + if(stateData.searchData.length>0){ + for(let j = 0;j { /* 在这里请求后台获取字段 */ - getFieldRecord(paramx).then(({ data }) => { - stateData.tableData.columns[i].options = data - if(stateData.searchData.length>0){ - for(let j = 0;j { + stateData.tableData.columns[i].options = data + if(stateData.searchData.length>0){ + for(let j = 0;j{ let paramx:string = ""+stateData.tableData.columns[i].control.optionsValue3Field /* 在这里请求后台获取字段 + let kkk = { + key:111, + age:2 + controll:{ + l + } + } + let ary = [........] + ary.incouldes(3) + if(kkk.controll && kkk.controll.l && ) + try{ + + } */ - getFieldRecord(paramx).then(({ data }) => { - stateData.tableData.columns[i].options = data - if(stateData.searchData.length>0){ - for(let j = 0;j { + stateData.tableData.columns[i].options = data + if(stateData.searchData.length>0){ + for(let j = 0;j0){ for(let j = 0;j { /* 在这里请求后台获取字段 */ - getFieldRecord(paramx).then(({ data }) => { - stateData.tableData.columns[i].options = data - if(stateData.searchData.length>0){ - for(let j = 0;j { + stateData.tableData.columns[i].options = data + if(stateData.searchData.length>0){ + for(let j = 0;j0){ for(let j = 0;j