app-user-login-log-info.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>移动端用户登录日志-详情</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <!-- 所有的 css js 资源 -->
  8. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  9. <link rel="stylesheet" href="../../static/sa.css">
  10. <script src="../../static/kj/vue.min.js"></script>
  11. <script src="../../static/kj/element-ui/index.js"></script>
  12. <script src="../../static/kj/httpVueLoader.js"></script>
  13. <script src="../../static/kj/jquery.min.js"></script>
  14. <script src="../../static/kj/layer/layer.js"></script>
  15. <script src="../../static/sa.js"></script>
  16. <style type="text/css">
  17. .c-panel .c-label{width: 8em;}
  18. </style>
  19. </head>
  20. <body>
  21. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  22. <!-- ------- 内容部分 ------- -->
  23. <div class="s-body">
  24. <div class="c-panel">
  25. <el-form v-if="m">
  26. <el-row :gutter="50">
  27. <el-col :span="12">
  28. <sa-info name="用户ID" br>{{m.usreId}}</sa-info>
  29. </el-col>
  30. <el-col :span="12">
  31. <sa-info name="登录时间" br>{{m.loginTime}}</sa-info>
  32. </el-col>
  33. </el-row>
  34. <el-row :gutter="50">
  35. <el-col :span="12">
  36. <sa-info name="登录IP" br>{{m.loginIp}}</sa-info>
  37. </el-col>
  38. <el-col :span="12">
  39. <sa-info name="登录设备" br>{{m.deviceMode}}</sa-info>
  40. </el-col>
  41. </el-row>
  42. <el-row :gutter="50">
  43. <el-col :span="12">
  44. <sa-info name="app版本号" br>{{m.appVersion}}</sa-info>
  45. </el-col>
  46. </el-row>
  47. <!-- <sa-info type="num" name="主键" :value="m.id" br></sa-info> -->
  48. </el-form>
  49. </div>
  50. </div>
  51. <!-- ------- 底部按钮 ------- -->
  52. <div class="s-foot">
  53. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  54. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  55. </div>
  56. </div>
  57. <script>
  58. var app = new Vue({
  59. components: {
  60. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  61. },
  62. el: '.vue-box',
  63. data: {
  64. id: sa.p('id', 0), // 获取数据ID
  65. m: null
  66. },
  67. methods: {
  68. },
  69. mounted: function() {
  70. sa.ajax('/AppUserLoginLog/getById?id=' + this.id, function(res) {
  71. this.m = res.data;
  72. if(res.data == null) {
  73. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  74. }
  75. }.bind(this))
  76. }
  77. })
  78. </script>
  79. </body>
  80. </html>