detail.vue 941 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div class="detail">
  3. <nav-bar></nav-bar>
  4. <div class="info">
  5. <van-cell-group>
  6. <van-cell class="item-cell" title="签署类型" :value="getDictLabel(dataInfo.type,'safety_book_type')" >
  7. </van-cell>
  8. <van-cell class="item-cell" title="签署人" :value="dataInfo.userName" >
  9. </van-cell>
  10. <van-cell class="item-cell" title="签署时间" :value="dataInfo.createTime">
  11. </van-cell>
  12. </van-cell-group>
  13. </div>
  14. </div>
  15. </template>
  16. <script>
  17. import NavBar from '@/components/NavBar'
  18. import { detail } from './api.js'
  19. export default {
  20. data() {
  21. return {
  22. dataInfo: {},
  23. }
  24. },
  25. components: { NavBar },
  26. mounted() {
  27. this.getInfo();
  28. },
  29. methods: {
  30. async getInfo() {
  31. let res = await detail(this.$route.query.id);
  32. this.dataInfo = res.data;
  33. },
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .detail {
  39. }
  40. .info{
  41. }
  42. .history {
  43. }
  44. </style>