Bläddra i källkod

feat: 格式化 流程组

luoyali 1 år sedan
förälder
incheckning
16786bdc78

+ 35 - 0
src/router/index.ts

@@ -45,6 +45,41 @@ export const sysStaticRouter: Array<AppRouteRecordRaw> = [
 				meta: { title: 'dashboard', icon: 'icon-homepage', affix: true }
 			}
 		]
+	},
+	{
+		path: '/profile',
+		component: Layout,
+		name: 'profile',
+		meta: { hidden: true, title: '用户' },
+		redirect: '/profile/index',
+		children: [
+			{
+				path: 'index',
+				component: () => import('@/views/profile/index.vue'),
+				name: 'profileIndex',
+				meta: {
+					hidden: true,
+					title: 'profile',
+					icon: 'le-account'
+					// parentName: 'mainLayout'
+				}
+			}
+		]
+	},
+	{
+		path: '/flow_create',
+		component: Layout,
+		name: 'flow_create',
+		meta: { hidden: true, title: '创建流程' },
+		redirect: '/flow_create/index',
+		children: [
+			{
+				path: 'index',
+				component: () => import('@/views/flow/create/index.vue'),
+				name: 'flow_create',
+				meta: { hidden: true, title: '创建流程', icon: '' }
+			}
+		]
 	}
 ]
 

+ 2 - 1
src/views/flow/create/components/FormDesign.vue

@@ -32,7 +32,8 @@ const queryObj = computed(() => route.query)
 
 onMounted(() => {
 	if (queryObj.value.id) {
-		designer.value.initForm(processForm.value || [])
+		console.log('processForm.value');
+		// 	designer.value.initForm(processForm.value || [])
 	}
 })
 </script>

+ 1 - 1
src/views/flow/group/components/listGroup.vue

@@ -202,7 +202,7 @@ const copyEv = async (id: any) => {
 // 修改
 const updateEv = async (id: any) => {
 	console.log('修改')
-	router.push('/flow/create?id=' + id)
+	router.push('/flow_create?id=' + id)
 }
 
 onMounted(() => {

+ 1 - 1
src/views/flow/group/index.vue

@@ -72,7 +72,7 @@ const searchProcess = async () => {
 }
 
 const createProcessEv = () => {
-	router.push('/flow/create')
+	router.push('/flow_create')
 }
 </script>
 <style scoped lang="scss">