checkMapList.vue 581 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <view class="check-map-list">
  3. <view class="item"
  4. v-for="(item, index) in checkMap.list"
  5. :key="index">
  6. <tm-check-map-list :item="item"></tm-check-map-list>
  7. </view>
  8. <view class="null" v-if="checkMap.list.length === 0">暂无数据</view>
  9. </view>
  10. </template>
  11. <script>
  12. import { mapState } from "vuex";
  13. export default {
  14. computed: {
  15. ...mapState({
  16. checkMap: state => state.creatingSituations.checkMap,
  17. })
  18. },
  19. }
  20. </script>
  21. <style lang="less">
  22. .check-map-list {
  23. padding: 25rpx;
  24. }
  25. .null {
  26. text-align: center;
  27. color: #999;
  28. }
  29. </style>