diff --git a/src/api/DesignForm/requestapi.ts b/src/api/DesignForm/requestapi.ts index cbbf48561..c2736450a 100644 --- a/src/api/DesignForm/requestapi.ts +++ b/src/api/DesignForm/requestapi.ts @@ -488,3 +488,43 @@ export function appJwtPower(data: any) { data: data }); } +//获取执行流程 +export function gainRunFlowStart(data: any) { + return request({ + url: '/systemapi/task_management/gainRunFlowStart', + method: 'post', + data: data + }); +} +//获取App任务 +export function gainAppTaskList(data: any) { + return request({ + url: '/systemapi/task_flow/gainAppTaskList', + method: 'post', + data: data + }); +} +//获取App任务 +export function gainAppAllTaskList(data: any) { + return request({ + url: '/systemapi/task_flow/gainAppAllTaskList', + method: 'post', + data: data + }); +} +//获取App任务 +export function editTaskAppInfo(data: any) { + return request({ + url: '/systemapi/task_flow/editTaskAppInfo', + method: 'post', + data: data + }); +} +//再次保存草稿箱内容 +export function saveDraftAgain(data: any) { + return request({ + url: '/systemapi/task_flow/saveDraftAgain', + method: 'post', + data: data + }); +} diff --git a/src/api/DesignForm/utils.ts b/src/api/DesignForm/utils.ts index d141c7039..7772d815e 100644 --- a/src/api/DesignForm/utils.ts +++ b/src/api/DesignForm/utils.ts @@ -100,7 +100,7 @@ export const onChange = '}' // provide 方法定义的key -const prefix = 'AK' +const prefix = 'GK' export const constControlChange = prefix + 'ControlChange' // 表单组件改变事件 export const constSetFormOptions = prefix + 'SetFormOptions' // 使用setOptions设置下拉值 export const constGetControlByName = prefix + 'GetControlByName' // 根据name从formData.list查找数据 diff --git a/src/api/taskapi/management.ts b/src/api/taskapi/management.ts index 4ee73418a..7213dc2c9 100644 --- a/src/api/taskapi/management.ts +++ b/src/api/taskapi/management.ts @@ -182,3 +182,13 @@ export function gainSetUpMsg(data?:any){ data: data }); } + + +//自定义App表单新增记录 +export function createAppTask(data?:any){ + return request({ + url: '/systemapi/task_management/createAppTask', + method: 'post', + data: data + }); +} diff --git a/src/components/DesignForm/app/formPage.vue b/src/components/DesignForm/app/formPage.vue new file mode 100644 index 000000000..12bb0293d --- /dev/null +++ b/src/components/DesignForm/app/formPage.vue @@ -0,0 +1,1019 @@ + + + + diff --git a/src/components/DesignForm/app/index.vue b/src/components/DesignForm/app/index.vue new file mode 100644 index 000000000..faaa24c2b --- /dev/null +++ b/src/components/DesignForm/app/index.vue @@ -0,0 +1,14 @@ + + + + diff --git a/src/components/DesignForm/public/form/formGroup.vue b/src/components/DesignForm/public/form/formGroup.vue index 37a550f23..531d8077d 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -287,7 +287,7 @@ onUnmounted(() => { store.setControlAttr({}) }) onMounted(()=>{ - console.log('formGroup onMounted',dataList,props.tableinfo) + console.log('formGroup onMounted',props.data,dataList.value,props.tableinfo) }) const getFormItemLableStyle = (ele: any) => { diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 85d78c7a5..e11714417 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -11,6 +11,7 @@ declare module '@vue/runtime-core' { export interface GlobalComponents { AceDrawer: typeof import('./../components/DesignForm/aceDrawer.vue')['default'] AddNode: typeof import('./../components/workflow/addNode.vue')['default'] + App: typeof import('./../components/DesignForm/app/index.vue')['default'] AppMenuSvgPage: typeof import('./../components/IconSelect/appMenuSvgPage.vue')['default'] ApproverDrawer: typeof import('./../components/workflow/drwer/approverDrawer.vue')['default'] BianXian: typeof import('./../components/DesignForm/designLayout/bianXian.vue')['default'] @@ -105,6 +106,7 @@ declare module '@vue/runtime-core' { FormGroup: typeof import('./../components/DesignForm/public/form/formGroup.vue')['default'] FormGroup1: typeof import('./../components/DesignForm/public/form/formGroup1.vue')['default'] FormItem: typeof import('./../components/DesignForm/public/form/formItem.vue')['default'] + FormPage: typeof import('./../components/DesignForm/app/formPage.vue')['default'] FormPageCont: typeof import('./../components/DesignForm/tableListPage/formPageCont.vue')['default'] FormVersion: typeof import('./../components/DesignForm/formVersion.vue')['default'] FormWord: typeof import('./../components/workflow/dialog/formWord.vue')['default'] @@ -115,9 +117,14 @@ declare module '@vue/runtime-core' { HeadToolsNew: typeof import('./../components/DesignForm/public/headToolsNew.vue')['default'] IconSelect: typeof import('./../components/IconSelect/index.vue')['default'] IEpCaretBottom: typeof import('~icons/ep/caret-bottom')['default'] + IEpCaretTop: typeof import('~icons/ep/caret-top')['default'] IEpClose: typeof import('~icons/ep/close')['default'] + IEpDelete: typeof import('~icons/ep/delete')['default'] IEpEdit: typeof import('~icons/ep/edit')['default'] IEpMessageBox: typeof import('~icons/ep/message-box')['default'] + IEpPlus: typeof import('~icons/ep/plus')['default'] + IEpRefresh: typeof import('~icons/ep/refresh')['default'] + IEpSearch: typeof import('~icons/ep/search')['default'] IEpSetting: typeof import('~icons/ep/setting')['default'] LangSelect: typeof import('./../components/LangSelect/index.vue')['default'] LayoutPage: typeof import('./../components/DesignForm/layoutPage/index.vue')['default'] diff --git a/src/views/sysworkflow/codepage/index.ts b/src/views/sysworkflow/codepage/index.ts index da5356626..403d875f3 100644 --- a/src/views/sysworkflow/codepage/index.ts +++ b/src/views/sysworkflow/codepage/index.ts @@ -3,6 +3,8 @@ import tableList from '@/components/DesignForm/public/form/components/list.vue' import flow from '@/components/DesignForm/public/form/components/flow.vue' import Screen from '@/components/DesignForm/public/form/components/screen.vue' import akPageList from '@/components/DesignForm/tableListPage/index.vue' +import AppPageList from '@/components/DesignForm/app/index.vue' +import AppFormPage from '@/components/DesignForm/app/formPage.vue' export default (app: any) => { app.component('AkForm', formDesign) @@ -10,4 +12,6 @@ export default (app: any) => { app.component('AkFlow', flow) app.component('AkScreen', Screen) app.component('AkPageList', akPageList) + app.component('AppPageList', AppPageList) + app.component('AppFormPage', AppFormPage) } diff --git a/src/views/sysworkflow/lowcodepage/appPage/appMenus.vue b/src/views/sysworkflow/lowcodepage/appPage/appMenus.vue index 887bce16e..3cf976928 100644 --- a/src/views/sysworkflow/lowcodepage/appPage/appMenus.vue +++ b/src/views/sysworkflow/lowcodepage/appPage/appMenus.vue @@ -88,7 +88,7 @@ const handleDrop = ( // console.log('树移动完毕后执行的操作=====2=======>',dropNode) // console.log('树移动完毕后执行的操作=====3=======>',dropType) // console.log('树移动完毕后执行的操作=====4=======>',ev) - return false; + // return false; let sendCont = { id:props.appCont.uuid, menuTree:appMenuTree.value @@ -290,6 +290,7 @@ const openAppPage = (val:any) =>{ :allow-drop="allowDrop" :expand-on-click-node="true" @node-drag-start="startDrop" + @node-drop="handleDrop" >