production.vue 782 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view>
  3. <!-- p-notice -->
  4. <p-notice :bulletin="bulletin"></p-notice>
  5. <!-- p-icon-list -->
  6. <p-icon-list></p-icon-list>
  7. <!-- p-alarm -->
  8. <p-alarm></p-alarm>
  9. <!-- p-Gas -->
  10. <p-Gas></p-Gas>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. data() {
  16. return {
  17. bulletin:"",
  18. };
  19. },
  20. onLoad() {
  21. this.get_bulletin()
  22. },
  23. methods:{
  24. async get_bulletin(){
  25. const res = await this.$myRequest({
  26. method:'POST',
  27. url:'/dispatch/bulletin'
  28. })
  29. console.log(res.data.data.content)
  30. const data = res.data.data.content
  31. this.bulletin = data
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss">
  37. page{
  38. background-color: #f3f3f3;
  39. box-sizing: border-box;
  40. padding: 20rpx 18rpx;
  41. }
  42. </style>