origanization.vue 856 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="">
  3. <!-- 组织架构 -->
  4. <!-- 枣泉 -->
  5. <view v-if="mine_code == 'zaoquan'">
  6. <t-o-zaoquan></t-o-zaoquan>
  7. </view>
  8. <view v-if="mine_code != 'zaoquan' && mine_code != 'ningdongyunying'">
  9. <t-o-origanization></t-o-origanization>
  10. </view>
  11. <view v-if="mine_code == 'ningdongyunying'">
  12. <t-o-news ref="tONews"></t-o-news>
  13. <!-- <t-o-origanization></t-o-origanization> -->
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. // 当前煤矿编码
  22. mine_code: "",
  23. }
  24. },
  25. onLoad() {
  26. // 初始化当前煤矿编码
  27. this.mine_code = uni.getStorageSync('mine_code')
  28. },
  29. onReachBottom() {
  30. console.log('++')
  31. this.$refs.tONews.tab_2_onReachBottom();
  32. },
  33. methods: {
  34. }
  35. }
  36. </script>
  37. <style lang="scss">
  38. page {
  39. background-color: #F3F8F7;
  40. }
  41. </style>