diff --git a/frontend/src/assets/system/nav1.png b/frontend/src/assets/system/nav1.png new file mode 100644 index 0000000..ddfb893 Binary files /dev/null and b/frontend/src/assets/system/nav1.png differ diff --git a/frontend/src/assets/system/nav2.png b/frontend/src/assets/system/nav2.png new file mode 100644 index 0000000..3ea33f2 Binary files /dev/null and b/frontend/src/assets/system/nav2.png differ diff --git a/frontend/src/assets/system/nav3.png b/frontend/src/assets/system/nav3.png new file mode 100644 index 0000000..2d16302 Binary files /dev/null and b/frontend/src/assets/system/nav3.png differ diff --git a/frontend/src/assets/system/nav4.png b/frontend/src/assets/system/nav4.png new file mode 100644 index 0000000..ad9dabe Binary files /dev/null and b/frontend/src/assets/system/nav4.png differ diff --git a/frontend/src/assets/system/navpermission.png b/frontend/src/assets/system/navpermission.png new file mode 100644 index 0000000..57619b6 Binary files /dev/null and b/frontend/src/assets/system/navpermission.png differ diff --git a/frontend/src/assets/system/password.png b/frontend/src/assets/system/password.png new file mode 100644 index 0000000..9f03c83 Binary files /dev/null and b/frontend/src/assets/system/password.png differ diff --git a/frontend/src/assets/system/splitline1.png b/frontend/src/assets/system/splitline1.png new file mode 100644 index 0000000..2279ef5 Binary files /dev/null and b/frontend/src/assets/system/splitline1.png differ diff --git a/frontend/src/assets/system/splitline2.png b/frontend/src/assets/system/splitline2.png new file mode 100644 index 0000000..a757106 Binary files /dev/null and b/frontend/src/assets/system/splitline2.png differ diff --git a/frontend/src/assets/system/titleline.png b/frontend/src/assets/system/titleline.png new file mode 100644 index 0000000..68928bc Binary files /dev/null and b/frontend/src/assets/system/titleline.png differ diff --git a/frontend/src/assets/system/username.png b/frontend/src/assets/system/username.png new file mode 100644 index 0000000..00dc875 Binary files /dev/null and b/frontend/src/assets/system/username.png differ diff --git a/frontend/src/data-public/Dashboard.vue b/frontend/src/data-public/Dashboard.vue index 6648a4f..f1f37ee 100644 --- a/frontend/src/data-public/Dashboard.vue +++ b/frontend/src/data-public/Dashboard.vue @@ -59,14 +59,14 @@ - +
角色管理
- +
组织管理 @@ -185,12 +185,20 @@ onMounted(() => { loadStats() }) function routerclick(path) { - router.push({ + if(path == '/Permission'){ + router.push({ path: path, query: { id: '1927554158852841473' } }) + }else if(path == '/UserLogin'){ + const route = router.resolve({ + path: path, + query: { id: '1927554158852841473' ,name:'测试项目'} + }); + window.open(route.href, '_blank'); + } } diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index a97dba4..a7f5d54 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -107,6 +107,24 @@ const routes:any = [ title: '权限管理', requiresAuth: true } + }, + { + path: '/UserLogin', + name: 'UserLogin', + component: () => import('@/views/system/userlogin/login_container.vue'), + meta: { + title: '登录', + requiresAuth: true + } + }, + { + path: '/UserNavbar', + name: 'UserNavbar', + component: () => import('@/views/system/userlogin/appframe_container.vue'), + meta: { + title: '导航', + requiresAuth: true + } } ] diff --git a/frontend/src/views/system/manage/organization/index.vue b/frontend/src/views/system/manage/organization/index.vue index 23e761e..c4c56a1 100644 --- a/frontend/src/views/system/manage/organization/index.vue +++ b/frontend/src/views/system/manage/organization/index.vue @@ -64,7 +64,7 @@ const submitForm = (formEl: FormInstance | undefined) => { preventcombo.value = true if(ruleForm.value.id !== ''){ updateOrganizationById(ruleForm.value).then((res:any) => { - if(res &&res.data.code === '0'){ + if(res &&res.code === '0'){ ElMessage({ type: 'success', message: '修改成功', @@ -85,7 +85,7 @@ const submitForm = (formEl: FormInstance | undefined) => { }) }else{ addOrganization(ruleForm.value).then((res:any) => { - if(res && res.data.code === '0'){ + if(res && res.code === '0'){ ElMessage({ type: 'success', message: '新增成功', @@ -187,7 +187,6 @@ function gettree(){ orgName:'' } getOrganizations(params).then((res:any) => { - console.log(res,8798798) treeData.value = res.data treeloading.value = false }) @@ -374,13 +373,9 @@ function depthandleClose() { deptFormRef.value?.resetFields(); deptdialog.value = false } -function formatDateTime(dateArray:any){ - if (!Array.isArray(dateArray) || dateArray.length < 6) return 'Invalid Date' - - const pad = (n: number) => n.toString().padStart(2, '0') - - return `${dateArray[0]}-${pad(dateArray[1])}-${pad(dateArray[2])} ` + - `${pad(dateArray[3])}:${pad(dateArray[4])}:${pad(dateArray[5])}` +function formatDateTime(time:any){ + let converted = time.replace("T", " "); + return converted }