admin-info.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>资料详情</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
  8. <!-- 所有的 css & js 资源 -->
  9. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="https://unpkg.com/http-vue-loader@1.4.2/src/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style type="text/css">
  18. /* 使长度更长点 */
  19. /* .c-panel .c-label{width: 10em;} */
  20. .vue-box, .c-panel {
  21. background-color: #EEE;
  22. }
  23. .c-panel .c-title {
  24. margin-bottom: 20px;
  25. }
  26. .c-item .c-label {
  27. width: 150px;
  28. }
  29. .c-item .el-input {
  30. width: 300px;
  31. }
  32. /* 链接样式 */
  33. .my-link {
  34. position: relative;
  35. top: -1px;
  36. margin-left: 0.5em;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  42. <!-- ------- 内容部分 ------- -->
  43. <div class="s-body">
  44. <div class="c-panel">
  45. <el-form v-if="m">
  46. <div style="height: 20px;"></div>
  47. <sa-info name="编号" br>{{m.id}}</sa-info>
  48. <sa-info name="名称" br>{{m.name}}</sa-info>
  49. <sa-info name="手机" br>{{m.phone || '无'}}</sa-info>
  50. <sa-info name="创建账号" br>
  51. <span v-if="m.createByAid == -1">无</span>
  52. <a v-else :href=" 'admin-info.html?id=' + m.createByAid">{{m.createByAid}}</a>
  53. </sa-info>
  54. <sa-info name="创建时间" br>{{sa.forDate(m.createTime, 2)}}</sa-info>
  55. <sa-info name="最后登录" br>{{sa.forDate(m.loginTime, 2) || '无'}}</sa-info>
  56. <sa-info name="最后登录IP" br>{{m.loginIp || '无'}}</sa-info>
  57. </el-form>
  58. </div>
  59. </div>
  60. <!-- ------- 底部按钮 ------- -->
  61. <div class="s-foot">
  62. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  63. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  64. </div>
  65. </div>
  66. <script type="text/javascript">
  67. var app = new Vue({
  68. components: {
  69. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  70. },
  71. el: '.vue-box',
  72. data: {
  73. id: parseInt(sa.p('id', 0)),
  74. sa: sa,
  75. m: null
  76. },
  77. methods: {
  78. // ok
  79. ok: function (pageNo) {
  80. sa.closeCurrIframe();
  81. },
  82. },
  83. created: function () {
  84. if (this.id == 0 || this.id == sa.$sys.getCurrUser().id) {
  85. sa.ajax('/admin/getByCurr', function (res) {
  86. this.m = res.data;
  87. }.bind(this));
  88. } else {
  89. sa.ajax('/admin/getById?id=' + this.id, function (res) {
  90. this.m = res.data;
  91. }.bind(this));
  92. }
  93. }
  94. })
  95. </script>
  96. </body>
  97. </html>