tb-person-black-info.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.deptName}}</sa-info>
  29. <sa-info name="名字" br>{{m.name}}</sa-info>
  30. <sa-info name="身份证" br>{{m.idCard}}</sa-info>
  31. <sa-info name="禁行原因" br>{{m.reason}}</sa-info>
  32. </el-col>
  33. <el-col :span="12">
  34. <sa-info name="禁行开始" br>{{m.startTime}}</sa-info>
  35. <sa-info name="禁行结束" br>{{m.endTime}}</sa-info>
  36. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  37. <sa-info name="更新时间" br>{{m.updateTime}}</sa-info>
  38. </el-col>
  39. </el-row>
  40. </el-form>
  41. </div>
  42. </div>
  43. <!-- ------- 底部按钮 ------- -->
  44. <div class="s-foot">
  45. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  46. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  47. </div>
  48. </div>
  49. <script>
  50. var app = new Vue({
  51. components: {
  52. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  53. },
  54. el: '.vue-box',
  55. data: {
  56. id: sa.p('id', 0), // 获取数据ID
  57. m: null
  58. },
  59. methods: {
  60. },
  61. mounted: function() {
  62. sa.ajax('/TbPersonBlack/getById?id=' + this.id, function(res) {
  63. this.m = res.data;
  64. if(res.data == null) {
  65. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  66. }
  67. }.bind(this))
  68. }
  69. })
  70. </script>
  71. </body>
  72. </html>