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 @@
+
+
+
+ 1
+
+
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"
>
diff --git a/src/views/sysworkflow/lowcodepage/appPage/appSetUp/appDevOps.vue b/src/views/sysworkflow/lowcodepage/appPage/appSetUp/appDevOps.vue
index 42cc6f120..29f32684b 100644
--- a/src/views/sysworkflow/lowcodepage/appPage/appSetUp/appDevOps.vue
+++ b/src/views/sysworkflow/lowcodepage/appPage/appSetUp/appDevOps.vue
@@ -27,7 +27,7 @@ const tableList = ref([])
onMounted(()=>{
gianAppFormTable({id:props.appCont.uuid})
.then((data:any)=>{
- tableList.value = data.data
+ tableList.value = data.data.list
})
})
diff --git a/src/views/sysworkflow/lowcodepage/runApp/index.vue b/src/views/sysworkflow/lowcodepage/runApp/index.vue
index b9b29d73b..f37a5ed24 100644
--- a/src/views/sysworkflow/lowcodepage/runApp/index.vue
+++ b/src/views/sysworkflow/lowcodepage/runApp/index.vue
@@ -7,6 +7,11 @@
import { appMenuTreeInfo,appSetInfo } from "@/api/date/type"
import { gainAppEditPsge } from '@/api/DesignForm/requestapi'
import { useUserStore } from "@/store/modules/user";
+
+//引入页面
+import RegularPage from "@/views/sysworkflow/lowcodepage/runApp/regularPage.vue"
+import RunAppForm from "@/views/sysworkflow/lowcodepage/runApp/runAppForm.vue"
+
const props = defineProps({
drawerWith:{
type:Number,
@@ -23,10 +28,12 @@ const props = defineProps({
}
}
});
+const switchPAge = ref(1)
const userStore = useUserStore();
const emits = defineEmits(["update:runIsOpen","refreshPage"]);
const menusTree = ref([])
const pickAppMenu = ref("")
+const pickAppMenuSel = ref("")
//应用基础配置
const appCont = reactive({
appKey:"1",
@@ -55,6 +62,20 @@ const gainAppContent = () =>{
appCont.appSvg = data.data.appSvg;
appCont.state = data.data.state;
appCont.uuid = data.data.uuid;
+ let isIn = true;
+ data.data.menuTree.forEach((item)=>{
+ if(item.isLock == 1 && item.isMain == 1){
+ pickAppMenu.value = item;
+ isIn = false;
+ switchPAge.value = 1
+ }
+ })
+ if(isIn){
+ pickAppMenu.value = data.data.menuTree[0];
+ if (pickAppMenu.value.type == 2){
+ switchPAge.value = 2
+ }
+ }
})
}
watch(()=>props.runIsOpen,(val:boolean)=>{
@@ -77,7 +98,17 @@ const closeRunApp = () => {
@ 功能: 打开页面
*/
const openAppPage = (val:appMenuTreeInfo) => {
- console.log("打开页面---->",val)
+ console.log("打开页面---->",val.type,switchPAge.value)
+ if(val.type!=1){
+ if(val.isLock==1){
+ switchPAge.value = 1
+ }else{
+ switchPAge.value = 2
+ }
+ pickAppMenu.value = val
+ }
+ console.log("打开页面--2-->",val.type,switchPAge.value)
+
}
@@ -124,10 +155,11 @@ const openAppPage = (val:appMenuTreeInfo) => {
@@ -152,9 +184,10 @@ const openAppPage = (val:appMenuTreeInfo) => {
-
- {{ pickAppMenu }}
-
+
+
+
+
diff --git a/src/views/sysworkflow/lowcodepage/runApp/operationAction/AppEditPage.vue b/src/views/sysworkflow/lowcodepage/runApp/operationAction/AppEditPage.vue
new file mode 100644
index 000000000..14e99d823
--- /dev/null
+++ b/src/views/sysworkflow/lowcodepage/runApp/operationAction/AppEditPage.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/sysworkflow/lowcodepage/runApp/regularPage.vue b/src/views/sysworkflow/lowcodepage/runApp/regularPage.vue
new file mode 100644
index 000000000..388787b80
--- /dev/null
+++ b/src/views/sysworkflow/lowcodepage/runApp/regularPage.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sysworkflow/lowcodepage/runApp/regularPage/completedMattersPage.vue b/src/views/sysworkflow/lowcodepage/runApp/regularPage/completedMattersPage.vue
new file mode 100644
index 000000000..18e1b0134
--- /dev/null
+++ b/src/views/sysworkflow/lowcodepage/runApp/regularPage/completedMattersPage.vue
@@ -0,0 +1,200 @@
+
+
+
+
+
+
+
+ 已办事宜
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+ {{ scope.row.creatorInfo.name }}({{ scope.row.creatorInfo.number }})
+
+
+
+
+
+
+
+ 草稿
+
+
+ 驳回
+
+
+ 审批中
+
+
+ 归档
+
+
+ 删除
+
+
+
+
+
+
+ {{ scope.row.currentNodeName }}:{{ item.name }}({{ item.number }})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sysworkflow/lowcodepage/runApp/regularPage/myCreate.vue b/src/views/sysworkflow/lowcodepage/runApp/regularPage/myCreate.vue
new file mode 100644
index 000000000..ead1f2a45
--- /dev/null
+++ b/src/views/sysworkflow/lowcodepage/runApp/regularPage/myCreate.vue
@@ -0,0 +1,220 @@
+
+
+
+
+
+
+
+ 我创建的
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+ {{ scope.row.createrInfo.name }}({{ scope.row.createrInfo.number }})
+
+
+
+
+
+
+
+ 草稿
+
+
+ 驳回
+
+
+ 审批中
+
+
+ 归档
+
+
+ 删除
+
+
+
+
+
+
+
+ 流程任务
+
+
+ 普通任务
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sysworkflow/lowcodepage/runApp/regularPage/myDrafts.vue b/src/views/sysworkflow/lowcodepage/runApp/regularPage/myDrafts.vue
new file mode 100644
index 000000000..5a357f764
--- /dev/null
+++ b/src/views/sysworkflow/lowcodepage/runApp/regularPage/myDrafts.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+ 草稿箱
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+ {{ scope.row.createrInfo.name }}({{ scope.row.createrInfo.number }})
+
+
+
+
+
+
+
+ 草稿
+
+
+ 驳回
+
+
+ 审批中
+
+
+ 归档
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sysworkflow/lowcodepage/runApp/regularPage/myToDoPage.vue b/src/views/sysworkflow/lowcodepage/runApp/regularPage/myToDoPage.vue
new file mode 100644
index 000000000..22917d10f
--- /dev/null
+++ b/src/views/sysworkflow/lowcodepage/runApp/regularPage/myToDoPage.vue
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
+
+ 代办事宜
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+ {{ scope.row.creatorInfo.name }}({{ scope.row.creatorInfo.number }})
+
+
+
+
+
+
+
+ 草稿
+
+
+ 驳回
+
+
+ 审批中
+
+
+ 归档
+
+
+ 删除
+
+
+
+
+
+
+ {{ scope.row.currentNodeName }}:{{ item.name }}({{ item.number }})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sysworkflow/lowcodepage/runApp/regularPage/sendCopy.vue b/src/views/sysworkflow/lowcodepage/runApp/regularPage/sendCopy.vue
new file mode 100644
index 000000000..99341a3d1
--- /dev/null
+++ b/src/views/sysworkflow/lowcodepage/runApp/regularPage/sendCopy.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
+
+
+ 抄送我的
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+ {{ scope.row.creatorInfo.name }}({{ scope.row.creatorInfo.number }})
+
+
+
+
+
+
+
+ 草稿
+
+
+ 驳回
+
+
+ 审批中
+
+
+ 归档
+
+
+ 删除
+
+
+
+
+
+
+ {{ scope.row.currentNodeName }}:{{ item.name }}({{ item.number }})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sysworkflow/lowcodepage/runApp/runAppForm.vue b/src/views/sysworkflow/lowcodepage/runApp/runAppForm.vue
new file mode 100644
index 000000000..5248ae346
--- /dev/null
+++ b/src/views/sysworkflow/lowcodepage/runApp/runAppForm.vue
@@ -0,0 +1,226 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+