gridQuery.vue 765 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view>
  3. <view >
  4. <uni-title type="h3" :title="data.name+'职责:'"></uni-title><br/><br/>
  5. </view>
  6. <view>
  7. <uni-title type="h5" :title="data.jobDescription" color="#666"></uni-title>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import {
  13. getGridType
  14. } from '@/api/handleAffairs/gridType.js';
  15. export default {
  16. data() {
  17. return {
  18. data:{}
  19. };
  20. },
  21. onLoad(option){
  22. uni.setNavigationBarTitle({
  23. title: option.titleText
  24. });
  25. const _that = this
  26. const id = uni.getStorageSync('id');
  27. getGridType(id).then(res =>{
  28. _that.data = res.data
  29. console.log(_that.data)
  30. })
  31. },
  32. methods: {
  33. }
  34. }
  35. </script>
  36. <style scoped>
  37. .uni-divider {
  38. height: 10rpx;
  39. background-color: #eee;
  40. }
  41. </style>