| | |
| | | |
| | | |
| | | <script> |
| | | import { getById, removeById, saveOrUpdate, selectPage, resetPass } from "../../api/user"; |
| | | import { getById, removeById, saveOrUpdate, selectPage, resetPass,currentUsername } from "../../api/user"; |
| | | import { select } from "../../api/role"; |
| | | |
| | | import LanguageMixin from '../../lang/LanguageMixin' |
| | |
| | | }, |
| | | created () { |
| | | this.getUserList(); |
| | | this.getyonghu(); |
| | | |
| | | }, |
| | | methods: { |
| | | getUserList () { |
| | |
| | | const successMessage = this.$t('updateSuccessMessage'); |
| | | this.$message.success(successMessage); |
| | | }); |
| | | |
| | | }, |
| | | resetPassword (info) { |
| | | this.$confirm(this.$t('confirmResetPassword'), this.$t('resetPassword'), { |
| | |
| | | this.roleList = res.data; |
| | | }); |
| | | }, |
| | | |
| | | getyonghu () { |
| | | currentUsername().then(res => { |
| | | console.log(res) |
| | | }); |
| | | |
| | | |
| | | }, |
| | | removeUserById (user) { |
| | | // 弹框询问用户是否删除分类 |
| | | this.$confirm(this.$t('confirmDeleteCategory'), this.$t('prompt'), { |