From 5e26d1b217ac21af98ce71cbc73a0ef180e0fd18 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Fri, 17 May 2024 14:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E8=A1=A8=E5=8D=95=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/DesignForm/requestapi.ts | 11 +- .../lowcodepage/appPage/appMenus.vue | 31 +++- .../appPage/appPageForm/pageForm.vue | 17 +- .../lowcodepage/appPage/createAppFormPage.vue | 24 ++- .../sysworkflow/lowcodepage/appPage/index.vue | 6 +- ....timestamp-1715758967884-c31382d141ed8.mjs | 160 ++++++++++++++++++ 6 files changed, 229 insertions(+), 20 deletions(-) create mode 100644 vite.config.ts.timestamp-1715758967884-c31382d141ed8.mjs diff --git a/src/api/DesignForm/requestapi.ts b/src/api/DesignForm/requestapi.ts index 415aca5cd..75983c970 100644 --- a/src/api/DesignForm/requestapi.ts +++ b/src/api/DesignForm/requestapi.ts @@ -34,10 +34,11 @@ export function getCustomerFormList(queryParams: SearchForm): AxiosPromise { +export function getProductionMarkForm(data?: any): AxiosPromise { return request({ url: '/systemapi/customer_form/production_mark_form', method: 'post', + data: data }); } //保存自定义表单 @@ -415,3 +416,11 @@ export function delAppMenu(data: any) { data: data }); } +//写入app表单菜单 +export function createAppForm(data: any) { + return request({ + url: '/systemapi/app/createAppForm', + method: 'post', + data: data + }); +} diff --git a/src/views/sysworkflow/lowcodepage/appPage/appMenus.vue b/src/views/sysworkflow/lowcodepage/appPage/appMenus.vue index 1a6f5ae94..5171083c2 100644 --- a/src/views/sysworkflow/lowcodepage/appPage/appMenus.vue +++ b/src/views/sysworkflow/lowcodepage/appPage/appMenus.vue @@ -73,7 +73,11 @@ const handleDrop = ( dropType: NodeDropType, ev: DragEvents ) => { - + console.log('树移动完毕后执行的操作====1========>',draggingNode) + console.log('树移动完毕后执行的操作=====2=======>',dropNode) + console.log('树移动完毕后执行的操作=====3=======>',dropType) + console.log('树移动完毕后执行的操作=====4=======>',ev) + return false; let sendCont = { id:props.appCont.uuid, menuTree:appMenuTree.value @@ -118,8 +122,8 @@ const setAppMenusSvg = (val:any) =>{ svgIsShow.value = true; } watch(()=>svgName.value,(val:string)=>{ - console.log("监听----svgName--->",val) - console.log("监听----threeShiyanData--->",threeShiyanData) + // console.log("监听----svgName--->",val) + // console.log("监听----threeShiyanData--->",threeShiyanData) diguiData(treeList.value) }) @@ -227,23 +231,37 @@ const createNewPage = (val?:string) => { creetMenuId.value = val.toString(); saveAppFormIsShow.value = true; } +/** +@ 作者: 秦东 +@ 时间: 2024-05-17 14:22:12 +@ 功能: 判断能否拖入此节点 +*/ +const allowDrop = (draggingNode: Node, dropNode: Node, type: AllowDropType) => { + if (dropNode.data.type === 2) { + return false + } else { + return true + } +}