gridQuery.vue 602 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view>
  3. <view >
  4. <ul >
  5. {{jobDescription}}
  6. </ul>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. import {
  12. getGridType
  13. } from '@/api/handleAffairs/gridType.js';
  14. export default {
  15. data() {
  16. return {
  17. jobDescription:'',
  18. };
  19. },
  20. onLoad(option){
  21. uni.setNavigationBarTitle({
  22. title: option.titleText
  23. });
  24. const _that = this
  25. const id = uni.getStorageSync('id');
  26. console.log(id)
  27. getGridType(id).then(res =>{
  28. _that.jobDescription = res.data.jobDescription
  29. })
  30. },
  31. methods: {
  32. }
  33. }
  34. </script>
  35. <style scoped>
  36. </style>