diff --git a/oab/src/fs/usr.rs b/oab/src/fs/usr.rs index aa2ff45..18d23cc 100644 --- a/oab/src/fs/usr.rs +++ b/oab/src/fs/usr.rs @@ -100,7 +100,6 @@ async fn handle_file(req: &DavRequest, stat: web::Data) -> Result 关于OA 使用须知 - - ©2021 veypi + + @v1.1.2 diff --git a/oaweb/src/layouts/menus.ts b/oaweb/src/layouts/menus.ts index 6a18f97..3ee238d 100644 --- a/oaweb/src/layouts/menus.ts +++ b/oaweb/src/layouts/menus.ts @@ -35,7 +35,7 @@ const tmp_router = (title: string, icon: string, path: string, com: } } let uniqueLinks: { [key: string]: [MenuLink] } = { - [cfg.id]: [tmp_router('系统信息', 'v-data-view', 'oasys', 'oasys')] + // [cfg.id]: [tmp_router('系统信息', 'v-data-view', 'oasys', 'oasys')] } const defaultLinks: MenuLink[] = [ @@ -45,33 +45,33 @@ const defaultLinks: MenuLink[] = [ icon: 'v-apps', to: { name: 'home' } }, - { - title: '文件管理', - caption: '', - icon: 'v-folder', - to: { name: 'fs' } - }, + // { + // title: '文件管理', + // caption: '', + // icon: 'v-folder', + // to: { name: 'fs' } + // }, { title: '账号设置', icon: 'v-user', to: { name: 'user' } }, - { - title: '系统监控', - icon: 'v-data-view', - to: { name: 'stats' } - }, + // { + // title: '系统监控', + // icon: 'v-data-view', + // to: { name: 'stats' } + // }, { title: '文档中心', icon: 'v-file-exception', to: { name: 'doc' } }, - { - title: '设置', - caption: '', - icon: 'v-setting', - to: { name: 'settings' } - }, + // { + // title: '设置', + // caption: '', + // icon: 'v-setting', + // to: { name: 'settings' } + // }, ] const items = ref(defaultLinks) diff --git a/oaweb/src/pages/app/user.vue b/oaweb/src/pages/app/user.vue index dbad034..cd44d36 100644 --- a/oaweb/src/pages/app/user.vue +++ b/oaweb/src/pages/app/user.vue @@ -31,6 +31,12 @@ + @@ -41,6 +47,7 @@ import { AUStatus, modelsAppUser, modelsUser, modelsApp } from 'src/models'; import api from 'src/boot/api'; import msg from '@veypi/msg'; import { util } from 'src/libs'; +import cfg from 'src/cfg'; const auOpts: { [index: number]: any } = { [AUStatus.OK]: ['正常', 'positive'], @@ -83,6 +90,9 @@ const update_status = (id: string, n: number, old: number) => { console.log([id, n, old]) } +const reset = (id: string) => { +} + const sync = () => { if (!app.value.id) { return diff --git a/oaweb/src/pages/user.vue b/oaweb/src/pages/user.vue index b969ce5..9c8dd2a 100644 --- a/oaweb/src/pages/user.vue +++ b/oaweb/src/pages/user.vue @@ -18,8 +18,30 @@ + + + + +
请输入新密码
+
+ + + + + + + + + + + + +
+
@@ -35,11 +57,13 @@ import crud from 'src/components/crud.vue'; import uploader from 'src/components/uploader'; import { useUserStore } from 'src/stores/user'; import { ref } from 'vue'; +let prompt = ref(false) let u = useUserStore() let table = ref() const keys = ref([ { name: 'id', label: 'ID', editable: false }, { name: 'username', label: '用户名' }, + { name: 'pass', label: '密码' }, { name: 'nickname', label: '昵称' }, { name: 'icon', label: 'logo' }, { name: 'email', label: '邮箱' }, @@ -56,6 +80,17 @@ const save = () => { msg.Warn('更新失败 ' + e) }) } +let pass = ref(['', '']) +const reset = () => { + if (pass.value[0] == '' || pass.value[1] == '') { + msg.Warn('密码不能为空') + return + } + if (pass.value[0] != pass.value[1]) { + msg.Warn('两次密码不一致') + return + } +}