tb-manager-info.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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>
  27. <el-col :span="12">
  28. <sa-info name="姓名" br>{{m.name}}</sa-info>
  29. <sa-info name="联系号码" br>{{m.phone}}</sa-info>
  30. <sa-info name="职能" br>{{m.position}}</sa-info>
  31. <sa-info name="值班地点" br>{{m.venuesName}}</sa-info>
  32. <sa-info name="值班开始时间" br>{{m.workStartTime}}</sa-info>
  33. <sa-info name="值班结束时间" br>{{m.workEndTime}}</sa-info>
  34. <sa-info name="备注" br>{{m.remark}}</sa-info>
  35. </el-col>
  36. <el-col :span="12">
  37. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  38. <sa-info name="创建人" br>{{m.createBy}}</sa-info>
  39. <sa-info name="更新时间" br>{{m.updateTime}}</sa-info>
  40. <sa-info name="更新人" br>{{m.updateBy}}</sa-info>
  41. </el-col>
  42. </el-row>
  43. </el-form>
  44. </div>
  45. </div>
  46. <!-- ------- 底部按钮 ------- -->
  47. <div class="s-foot">
  48. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  49. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  50. </div>
  51. </div>
  52. <script>
  53. var app = new Vue({
  54. components: {
  55. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  56. },
  57. el: '.vue-box',
  58. data: {
  59. id: sa.p('id', 0), // 获取数据ID
  60. m: null
  61. },
  62. methods: {
  63. },
  64. mounted: function() {
  65. sa.ajax('/TbManager/getById?id=' + this.id, function(res) {
  66. this.m = res.data;
  67. if(res.data == null) {
  68. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  69. }
  70. }.bind(this))
  71. }
  72. })
  73. </script>
  74. </body>
  75. </html>