handlerLog.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div class="handlerLog">
  3. <div class="label">沟通记录</div>
  4. <table class="handlerLog__table">
  5. <tr>
  6. <td class="xh">序号</td>
  7. <td class="date">沟通时间</td>
  8. <td class="clr">操作人</td>
  9. <td>沟通结果</td>
  10. </tr>
  11. <tr v-for="(item,i) in data" :key="item.id">
  12. <td>{{ i + 1 }}</td>
  13. <td>{{ item.opTime | timeFormat("yyyy-MM-dd HH:mm:ss")}}</td>
  14. <td>{{ item.userName }}</td>
  15. <td>{{ item.opValue }}</td>
  16. </tr>
  17. </table>
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. data(){
  23. return {}
  24. },
  25. props:{
  26. data:{
  27. type:Array,
  28. default(){
  29. return [];
  30. }
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="less" scoped>
  36. .label {
  37. background-color: #eeeeee;
  38. height: 0.6rem;
  39. line-height: 0.58rem;
  40. padding-left: 0.2rem;
  41. font-size: 0.24rem;
  42. color: #666666;
  43. span {
  44. font-size: 0.2rem;
  45. display: inline-block;
  46. margin-left: 0.08rem;
  47. color: #999999;
  48. }
  49. &.formLabel {
  50. background-color: #fff;
  51. }
  52. }
  53. .handlerLog{
  54. background-color: #fff;
  55. }
  56. .handlerLog .handlerLog__table{
  57. border-collapse: collapse;
  58. border: 1px solid #ccc;
  59. width: 100%;
  60. }
  61. .handlerLog .handlerLog__table td{
  62. text-align: center;
  63. border: 1px solid #ccc;
  64. word-break: break-all;
  65. font-size: 0.25rem;
  66. padding: 0.1rem 0;
  67. }
  68. .handlerLog .handlerLog__table td.xh {
  69. width: 0.7rem;
  70. }
  71. .handlerLog .handlerLog__table td.clr {
  72. width: 1.2rem;
  73. }
  74. .handlerLog .handlerLog__table td.date {
  75. width: 2.6rem;
  76. }
  77. </style>