UserInfo.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <el-dialog title="个人信息" :visible.sync="show">
  3. <dl class="dl-horizontal">
  4. <dt>登录名:</dt>
  5. <dd>{{user.staffId}}</dd>
  6. <dt>用户名:</dt>
  7. <dd>{{user.loginName}}</dd>
  8. <dt>所属企业:</dt>
  9. <dd>成都睿思商智科技有限公司</dd>
  10. <dt>账号状态:</dt>
  11. <dd>{{ user.state==1?"启用":"停用" }}</dd>
  12. <dt>登录次数:</dt>
  13. <dd>{{user.logCnt}}次</dd>
  14. <dt>上次登录时间:</dt>
  15. <dd>{{user.loginTime}}</dd>
  16. </dl>
  17. <div slot="footer" class="dialog-footer">
  18. <el-button @click="show = false">取 消</el-button>
  19. </div>
  20. </el-dialog>
  21. </template>
  22. <script>
  23. import { ajax } from "@/common/biConfig";
  24. import $ from "jquery";
  25. export default {
  26. name: "userInfo",
  27. data() {
  28. return {
  29. show:false,
  30. user:{}
  31. };
  32. },
  33. mounted:function(){
  34. let ts = this;
  35. ajax({
  36. type:"GET",
  37. data:{},
  38. url:"frame/user.action",
  39. success:function(resp){
  40. ts.user = resp.rows;
  41. }
  42. }, ts);
  43. },
  44. methods: {
  45. },
  46. };
  47. </script>
  48. <style scoped lang="less">
  49. @import "../style/mixin";
  50. </style>