tb-group-info.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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"
  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="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="https://unpkg.com/vue@2.6.10/dist/vue.min.js"></script>
  12. <script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
  13. <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.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 {
  18. width: 8em;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  24. <!-- ------- 内容部分 ------- -->
  25. <div class="s-body">
  26. <div class="c-panel">
  27. <el-form size="mini" v-if="m">
  28. <el-row>
  29. <el-col span=12>
  30. <div class="c-item br">
  31. <label class="c-label">名称:</label>
  32. <span>{{m.name}}</span>
  33. </div>
  34. <div class="c-item br">
  35. <label class="c-label">编号:</label>
  36. <span>{{m.code}}</span>
  37. </div>
  38. <div class="c-item br">
  39. <label class="c-label">地区:</label>
  40. <span>{{m.address}}</span>
  41. </div>
  42. <div class="c-item br">
  43. <label class="c-label">状态:</label>
  44. <b v-if="m.deleteStatus == 0">禁用</b>
  45. <b v-if="m.deleteStatus == 1">启用</b>
  46. </div>
  47. </el-col>
  48. <el-col span=12>
  49. <div class="c-item br">
  50. <label class="c-label">组长:</label>
  51. <span v-if="m.leaderName">{{m.leaderName}}</span>
  52. <span v-else style="color: #066CF3;cursor: pointer;"
  53. @click="addLeaderFn(m.id)">添加</span>
  54. </div>
  55. <div class="c-item br">
  56. <label class="c-label">组长电话:</label>
  57. <span>{{m.leaderPhone}}</span>
  58. </div>
  59. <div class="c-item br">
  60. <label class="c-label">限购额度:</label>
  61. <span>{{m.leftPrice}}元</span>
  62. </div>
  63. <div class="c-item br">
  64. <label class="c-label">创建时间:</label>
  65. <span class="tc-date">{{sa.forDate(m.createTime, 2)}}</span>
  66. </div>
  67. </el-col>
  68. </el-row>
  69. </el-form>
  70. </div>
  71. </div>
  72. <!-- ------- 底部按钮 ------- -->
  73. <div class="s-foot">
  74. <el-button size="mini" type="success" @click="sa.closeCurrIframe()">确定</el-button>
  75. <el-button size="mini" @click="sa.closeCurrIframe()">取消</el-button>
  76. </div>
  77. </div>
  78. <script>
  79. var app = new Vue({
  80. el: '.vue-box',
  81. data: {
  82. id: sa.p('id', 0), // 获取数据ID
  83. m: null
  84. },
  85. methods: {
  86. addLeaderFn(groupId) {
  87. sa.showIframe('添加组长', 'tb-group-leader.html?groupId=' + groupId, '950px', '90%');
  88. },
  89. },
  90. mounted: function() {
  91. sa.ajax('/level-one-server/TbGroup/getById?id=' + this.id, function(res) {
  92. this.m = res.data;
  93. if (res.data == null) {
  94. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  95. }
  96. }.bind(this))
  97. }
  98. })
  99. </script>
  100. </body>
  101. </html>