index.vue 778B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view class="handlecase">
  3. <List class="caseList" v-for="(item,index) in caseList" :key="index"></List>
  4. </view>
  5. </template>
  6. <script>
  7. import List from './component/list.vue'
  8. import {respondentList} from '../../api/handlecase/index.js'
  9. export default {
  10. components: {
  11. List,
  12. },
  13. data() {
  14. return {
  15. caseList:[1,2,3,4]
  16. }
  17. },
  18. methods: {
  19. getList(parms){
  20. respondentList(parms).then(res=>{
  21. console.log(res,"LLLLLLLLLLLLLLL");
  22. })
  23. }
  24. },
  25. onLoad(){
  26. let obj = {
  27. identityNum:"333",
  28. pageNum:1,
  29. pageSize:10
  30. }
  31. this.getList(obj)
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. .handlecase{
  37. .caseList{
  38. // height: 360rpx;
  39. // background-color: #ffffff;
  40. // border-radius: 30rpx;
  41. // margin-top: 20rpx;
  42. }
  43. }
  44. </style>