tb-vehicle-info.html 3.2 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" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <!-- 所有的 css js 资源 -->
  8. <link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/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. <script src="../../static/kj/upload-util.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label{width: 8em;}
  19. </style>
  20. </head>
  21. <body>
  22. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  23. <!-- ------- 内容部分 ------- -->
  24. <div class="s-body">
  25. <div class="c-panel">
  26. <el-form v-if="m">
  27. <el-row :gutter="50">
  28. <el-col :span="12">
  29. <sa-info name="车牌" br>{{m.vehiclePlate}}</sa-info>
  30. </el-col>
  31. <el-col :span="12">
  32. <sa-info name="所有人" br>{{m.owner}}</sa-info>
  33. </el-col>
  34. </el-row>
  35. <el-row :gutter="50">
  36. <el-col :span="12">
  37. <sa-info name="车辆类型" br>{{m.vehicleType}}</sa-info>
  38. </el-col>
  39. <el-col :span="12">
  40. <sa-info name="车辆尺寸" br>{{m.vehicleSize}}</sa-info>
  41. </el-col>
  42. </el-row>
  43. <!-- <sa-info name="类型父id" br>{{m.parentId}}</sa-info> -->
  44. <el-row :gutter="50">
  45. <el-col :span="12">
  46. <sa-info name="车辆品牌型号" br>{{m.vehicleModel}}</sa-info>
  47. </el-col>
  48. <el-col :span="12">
  49. <sa-info name="核定载质量" br>{{m.vehicleLoad}}</sa-info>
  50. </el-col>
  51. </el-row>
  52. <el-row :gutter="50">
  53. <el-col :span="12">
  54. <sa-info name="车辆自重" br>{{m.vehicleWeight}}</sa-info>
  55. </el-col>
  56. </el-row>
  57. <!-- <sa-info type="enum" name="审核状态" :value="m.auditStatus" :jv="{0: '待审核,1'}" br></sa-info>
  58. <sa-info name="审核人" br>{{m.auditBy}}</sa-info>
  59. <sa-info name="审核不通过原因" br>{{m.nopassReason}}</sa-info>
  60. <sa-info name="审核时间" br>{{m.auditTime}}</sa-info> -->
  61. </el-form>
  62. </div>
  63. </div>
  64. <!-- ------- 底部按钮 ------- -->
  65. <div class="s-foot">
  66. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  67. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  68. </div>
  69. </div>
  70. <script>
  71. var app = new Vue({
  72. components: {
  73. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  74. },
  75. el: '.vue-box',
  76. data: {
  77. id: sa.p('id', 0), // 获取数据ID
  78. m: null
  79. },
  80. methods: {
  81. },
  82. mounted: function() {
  83. sa.ajax('/transport-server/TbVehicle/getById?id=' + this.id, function(res) {
  84. this.m = res.data;
  85. console.log(res.data)
  86. if(res.data == null) {
  87. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  88. }
  89. }.bind(this))
  90. }
  91. })
  92. </script>
  93. </body>
  94. </html>