tb-car-visit-record-info.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.carNo}}</sa-info>
  29. <sa-info name="单位" br>{{m.deptName}}</sa-info>
  30. <sa-info name="联系人" br>{{m.driverName}}</sa-info>
  31. <sa-info name="联系电话" br>{{m.driverContact}}</sa-info>
  32. </el-col>
  33. <el-col :span="12">
  34. <sa-info name="通道" br>{{m.channel}}</sa-info>
  35. <sa-info type="enum" name="出/入" :value="m.direction" :jv="{1: '入场', 2: '离场'}" br></sa-info>
  36. <sa-info type="img" name="图片" :value="m.image" br></sa-info>
  37. <sa-info name="时间" br>{{m.visitTime}}</sa-info>
  38. <sa-info type="enum" name="方式" :value="m.recordType" :jv="{1: '手动', 2: '自动'}" br></sa-info>
  39. </el-col>
  40. </el-row>
  41. </el-form>
  42. </div>
  43. </div>
  44. <!-- ------- 底部按钮 ------- -->
  45. <div class="s-foot">
  46. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  47. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  48. </div>
  49. </div>
  50. <script>
  51. var app = new Vue({
  52. components: {
  53. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  54. },
  55. el: '.vue-box',
  56. data: {
  57. id: sa.p('id', 0), // 获取数据ID
  58. m: null
  59. },
  60. methods: {
  61. },
  62. mounted: function() {
  63. sa.ajax('/TbCarVisitRecord/getById?id=' + this.id, function(res) {
  64. this.m = res.data;
  65. if(res.data == null) {
  66. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  67. }
  68. }.bind(this))
  69. }
  70. })
  71. </script>
  72. </body>
  73. </html>