test.blade.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>table</title>
  6. <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  7. <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.0.0-beta2/css/bootstrap-grid.css" rel="stylesheet">
  8. <style type="text/css">
  9. #test th{
  10. position: sticky;
  11. position: -webkit-sticky;
  12. top: 0;
  13. z-index:999;
  14. background-color: white;
  15. }
  16. </style>
  17. <link href="{{ mix('css/app.css') }}" rel="stylesheet">
  18. </head>
  19. <body onload="a()">
  20. <button></button>
  21. <table id="table" cellspacing="0" cellpadding="2" width="100%" border="1">
  22. <tr id="test" style="white-space: nowrap !important;">
  23. <th >用户编号</th>
  24. <th>试用时间</th>
  25. <th>转正时间</th>
  26. <th>生日时间</th>
  27. <th>民族</th>
  28. <th>身高</th>
  29. </tr>
  30. <tr>
  31. <td style="overflow-x: hidden">200004512312312321321</td>
  32. <td><div>2001-2-15</div></td>
  33. <td><div>2001-2-15</div></td>
  34. <td>1978-8-5</td>
  35. <td>汉</td>
  36. <td>162</td>
  37. </tr>
  38. </table>
  39. <div class="modal fade" tabindex="-1" role="dialog" id="auditOrRecover">
  40. <div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable">
  41. <div class="modal-content">
  42. <div class="modal-header">
  43. <button type="button" class="close" data-dismiss="modal">&times;</button>
  44. </div>
  45. <div class="modal-body">
  46. <div v-for="s in auditList.storage" class="row">
  47. <label class="col-3 text-right">@{{ s.name }}</label>
  48. <label class="col-1 h3" style="bottom: 0.25rem">
  49. <span class="fa fa-long-arrow-right"></span>
  50. </label>
  51. <div class="col-8 h4">
  52. <div v-if="s.operation == 'C'" class="row">
  53. <div class="col-2">
  54. <span class="badge badge-success">新增</span>
  55. </div>
  56. <div class="col-10">
  57. <div v-for="(val,key) in s" v-if="key!='name'">
  58. </div>
  59. </div>
  60. </div>
  61. <div v-if="s.operation == 'U'" class="row">
  62. <div class="row">
  63. <div class="col-2">
  64. <span class="badge badge-primary">修改</span>
  65. </div>
  66. <div class="col-10">
  67. </div>
  68. </div>
  69. </div>
  70. <div v-if="s.operation == 'D'" class="row">
  71. <span class="badge badge-danger">删除</span>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="modal-footer">
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <script type="text/javascript" src="{{mix("js/app.js")}}"></script>
  82. <script type="text/javascript">
  83. function a(){
  84. $("#auditOrRecover").modal("show");
  85. }
  86. new Vue({
  87. el:"#auditOrRecover",
  88. data:{
  89. auditList:{
  90. storage:[
  91. {name:"笕尚退货",operation:"C"},
  92. {name:"笕尚退货",operation:"U"},
  93. {name:"笕尚退货",operation:"D"}
  94. ],
  95. operation:[],
  96. express:[],
  97. logistic:[],
  98. directLogistic:{},
  99. mapping:{
  100. "storage.name":"名称",
  101. },
  102. },
  103. },
  104. });
  105. </script>
  106. </body>
  107. </html>