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 decf8634d..964f27e56 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -298,7 +298,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 09e535875..a6372d014 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'] @@ -35,7 +36,6 @@ declare module '@vue/runtime-core' { ElCard: typeof import('element-plus/es')['ElCard'] ElCarousel: typeof import('element-plus/es')['ElCarousel'] ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem'] - ElCascader: typeof import('element-plus/es')['ElCascader'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElCol: typeof import('element-plus/es')['ElCol'] @@ -111,6 +111,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'] @@ -128,9 +129,12 @@ declare module '@vue/runtime-core' { IEpDownload: typeof import('~icons/ep/download')['default'] IEpEdit: typeof import('~icons/ep/edit')['default'] IEpMessageBox: typeof import('~icons/ep/message-box')['default'] +<<<<<<< HEAD IEpMinus: typeof import('~icons/ep/minus')['default'] IEpOperation: typeof import('~icons/ep/operation')['default'] IEpPicture: typeof import('~icons/ep/picture')['default'] +======= +>>>>>>> v8_master IEpPlus: typeof import('~icons/ep/plus')['default'] IEpPosition: typeof import('~icons/ep/position')['default'] IEpRefresh: typeof import('~icons/ep/refresh')['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/appFormList.vue b/src/views/sysworkflow/lowcodepage/appFormList.vue index 68b02887e..b7a402796 100644 --- a/src/views/sysworkflow/lowcodepage/appFormList.vue +++ b/src/views/sysworkflow/lowcodepage/appFormList.vue @@ -250,6 +250,11 @@ const fanyePage = (val: number) =>{ pageApp.value = val getFormAppList() } + + +const pickAppInfo = ref() +const runIsOpen = ref(false) + /** @ 作者: 秦东 @ 时间: 2024-05-29 16:13:16 @@ -258,6 +263,7 @@ const fanyePage = (val: number) =>{ const lookAppList = (val:any) => { let appPower = 0; emits('getRongQiAttr') + pickAppInfo.value = val appJwtPower({id:val.signCodeStr,types:1}) .then(({data})=>{ console.log("打开应用------>data:",data) @@ -273,7 +279,7 @@ const lookAppList = (val:any) => { }) } -const runIsOpen = ref(false) + @@ -333,7 +339,7 @@ const runIsOpen = ref(false) - + ',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" >