diff --git a/src/components/PasswordSuccess.vue b/src/components/PasswordSuccess.vue new file mode 100644 index 0000000..f7793af --- /dev/null +++ b/src/components/PasswordSuccess.vue @@ -0,0 +1,84 @@ + + + + + + + + + 修改密码成功! + 系统将在 {{ countdown }} 秒后自动跳转至登录页 + 立即跳转 + + + + + + + \ No newline at end of file diff --git a/src/components/changePassword.vue b/src/components/changePassword.vue new file mode 100644 index 0000000..df1d37e --- /dev/null +++ b/src/components/changePassword.vue @@ -0,0 +1,321 @@ + + + + 修改密码 + + + + + + + + + + + + + + + + + + + + + + + 密码由8-16位数字、字母或符号组成 + + + + + + 至少含2种以上字符 + + + + + + {{ errorMsg }} + + + + + + + {{ loading ? '修改中...' : '确定' }} + + + + + + + + + + diff --git a/src/router/index.js b/src/router/index.js index 01af865..ac59dd4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -70,7 +70,11 @@ const router = createRouter({ // 没有权限 { path: '/noPermission', name: "noPermission", component: () => import("../views/noPermissionPage.vue") } ] + }, + // 跳转页面 + { path: '/PasswordSuccess', name: "PasswordSuccess.vue", component: () => import("../components/PasswordSuccess.vue") }, + ] diff --git a/src/views/home.vue b/src/views/home.vue index 16fb0f2..77feb13 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -6,6 +6,7 @@ import {ElMessage} from 'element-plus' import API from '@/util/http' import dmmn from '../assets/link.png' import moment from 'moment' +import ChangePassword from '@/components/changePassword.vue' @@ -83,7 +84,7 @@ const getTagType = (state) => { return 'info'; case 1: return 'primary'; - case 2: + case 2: return'success'; case 3: return 'danger'; @@ -98,7 +99,7 @@ const getTagText = (state) => { return '待执行'; case 1: return '执行中'; - case 2: + case 2: return'执行完成'; case 3: return '执行出错'; @@ -140,13 +141,17 @@ const changeDataByArea = (item) => { // 控制导出列表弹窗显示状态 const exportListVisible = ref(false) - +// 显示修改密码弹窗 +const showPasswordDialog = ref(false) // 打开导出列表弹窗 const openExportList = () => { getExportList() exportListVisible.value = true } - +//打开修改密码弹窗 +const openChangePassword = () => { + showPasswordDialog.value = true +} @@ -260,7 +265,9 @@ const openExportList = () => { {{ adminData.name }} 查看个人信息 + 修改密码 退出登录 + 查看下载列表 @@ -299,7 +306,7 @@ const openExportList = () => { - + { + :disabled="scope.row.state !== 2"> 下载 @@ -329,6 +336,15 @@ const openExportList = () => { + + + + + @@ -338,10 +354,12 @@ const openExportList = () => { font-size: 16px; font-weight: bold; } + .item { margin-top: 20px; margin-right: 40px; } + .admin { margin-left: auto; }