diff --git a/neutrino-proxy-admin/src/lang/zh.js b/neutrino-proxy-admin/src/lang/zh.js index fac13f8b..cf08901a 100644 --- a/neutrino-proxy-admin/src/lang/zh.js +++ b/neutrino-proxy-admin/src/lang/zh.js @@ -139,7 +139,8 @@ export default { jobLogMsg: '执行日志', alarmStatus: '报警状态', ip: 'IP', - happendTime: '发生时间' + happendTime: '发生时间', + updatePwd: '修改密码' }, errorLog: { tips: '请点击右上角bug小图标', diff --git a/neutrino-proxy-admin/src/views/system/components/update-pwd.vue b/neutrino-proxy-admin/src/views/system/components/update-pwd.vue new file mode 100644 index 00000000..31e30097 --- /dev/null +++ b/neutrino-proxy-admin/src/views/system/components/update-pwd.vue @@ -0,0 +1,82 @@ + + + diff --git a/neutrino-proxy-admin/src/views/system/user.vue b/neutrino-proxy-admin/src/views/system/user.vue index 9b20d580..330219cd 100644 --- a/neutrino-proxy-admin/src/views/system/user.vue +++ b/neutrino-proxy-admin/src/views/system/user.vue @@ -2,7 +2,7 @@
{{$t('table.search')}} - {{$t('table.add')}} + {{$t('table.add')}}
{{scope.row.enable | statusName}} - + @@ -56,7 +56,7 @@
- + @@ -81,6 +81,8 @@ + + @@ -89,6 +91,8 @@ import waves from '@/directive/waves' // 水波纹指令 import { parseTime } from '@/utils' import ButtonPopover from '../../components/Button/buttonPopover' + import UpdatePwd from './components/update-pwd' + import { mapGetters } from 'vuex' const calendarTypeOptions = [ { key: 'CN', display_name: 'China' }, @@ -108,8 +112,14 @@ directives: { waves }, + computed: { + ...mapGetters([ + 'loginName' + ]) + }, components: { - ButtonPopover + ButtonPopover, + UpdatePwd }, data() { return { @@ -150,7 +160,9 @@ name: [{ required: true, message: '用户名必填', trigger: 'blur' }], loginName: [{ required: true, message: '登录名必填', trigger: 'blur' }] }, - downloadLoading: false + downloadLoading: false, + updatePwdvisible: false, + selectRow: null } }, filters: { @@ -327,6 +339,14 @@ return v[j] } })) + }, + handleUpdatePassword(row) { + this.selectRow = row + this.updatePwdvisible = true + }, + handleCancel() { + this.updatePwdvisible = false + this.selectRow = null } } }