diff --git a/src/pages/device/list.vue b/src/pages/device/list.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/device/summary.vue b/src/pages/device/summary.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/org/person.vue b/src/pages/org/person.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/project/detail.vue b/src/pages/project/detail.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/project/list.vue b/src/pages/project/list.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/system/option.vue b/src/pages/system/option.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/system/role.vue b/src/pages/system/role.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/system/user.vue b/src/pages/system/user.vue new file mode 100644 index 0000000..7086d07 --- /dev/null +++ b/src/pages/system/user.vue @@ -0,0 +1,716 @@ + + + + + + 用户管理 + 添加用户 + + + {{ error }} + + + + + + 用户名 + 手机 + 角色ID + 机构ID + 操作 + + + + + {{ user.userName }} + {{ user.mobile || '-' }} + {{ user.roleId || '-' }} + {{ user.orgId || '-' }} + + 编辑 + 删除 + + + + + 加载中... + 暂无用户数据 + + + + + + 共 {{ total }} 条记录,每页 {{ pageSize }} 条,第 {{ page }} / {{ Math.ceil(total / pageSize) }} 页 + + + + 首页 + + + 上一页 + + + 下一页 + + + 末页 + + + 10条/页 + 20条/页 + 50条/页 + + + + + + + + + 添加用户 + × + + + + + 用户名 + + {{ formErrors.userName }} + + + 密码 + + {{ formErrors.password }} + + + 角色ID + + {{ formErrors.roleId }} + + + 手机 + + + + 机构ID + + {{ formErrors.orgId }} + + + 取消 + + {{ loading ? '提交中...' : '提交' }} + + + + + + + + + + + + 编辑用户 + × + + + + + 用户名 + + {{ formErrors.userName }} + + + 密码(留空则不修改) + + {{ formErrors.password }} + + + 角色ID + + {{ formErrors.roleId }} + + + 手机 + + + + 机构ID + + {{ formErrors.orgId }} + + + 取消 + + {{ loading ? '提交中...' : '提交' }} + + + + + + + + + + \ No newline at end of file diff --git a/src/pages/task/list.vue b/src/pages/task/list.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/router/index.js b/src/router/index.js index 24ec783..d9b205a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -50,9 +50,16 @@ const router = createRouter({ { path: 'home', component: AdminHome }, { path: 'archives', name: 'admin-archives', component: Archives }, { path: 'inspections', name: 'admin-inspections', component: Inspections }, - { path: 'projects', name: 'admin-projects', component: Projects }, - { path: 'system', name: 'admin-analytics', component: Analytics }, - { path: 'org/list', name: 'admin-org', component: () => import('../pages/org/list.vue') }, + { path: 'system/user', name: 'admin-system-usr', component: () => import('../pages/system/user.vue') }, + { path: 'system/role', name: 'admin-system-role', component: () => import('../pages/system/role.vue') }, + { path: 'system/option', name: 'admin-system-option', component: () => import('../pages/system/option.vue') }, + { path: 'org/list', name: 'admin-org-list', component: () => import('../pages/org/list.vue') }, + { path: 'org/person', name: 'admin-org-person', component: () => import('../pages/org/person.vue') }, + { path: 'device/summary', name: 'admin-device-summary', component: () => import('../pages/device/summary.vue') }, + { path: 'device/list', name: 'admin-device-list', component: () => import('../pages/device/list.vue') }, + { path: 'project/list', name: 'admin-project-list', component: () => import('../pages/project/list.vue') }, + { path: 'project/detail', name: 'admin-project-detail', component: () => import('../pages/project/detail.vue') }, + {path:'task/list',name:'admin-task-list',component:()=> import('../pages/task/list.vue')} ], }, ],