education.js 710 B

12345678910111213141516171819202122232425262728293031323334
  1. new Vue({
  2. el: '#app',
  3. data: {
  4. total:1,//总页数
  5. currentPage:1,//当前页数
  6. list:[]//列表集合
  7. },
  8. methods:{
  9. msgListView: function(page){
  10. var vm=this;
  11. if(page){
  12. vm.currentPage=page;
  13. var data = {patientCode:'fca8c658ffda42afa5be91e54e0268c8',
  14. patient:'fca8c658ffda42afa5be91e54e0268c8',
  15. teamCode:646,
  16. page:page,
  17. pagesize:10}
  18. recordAPI.educationList(data).then(function(res){
  19. if(res.status==200){
  20. if(res.data.length){
  21. vm.list=res.data;
  22. }else{
  23. top.toastr.info("啊喔!没有更多内容了");
  24. }
  25. }else{
  26. top.toastr.error(res.msg);
  27. }
  28. })
  29. }
  30. }
  31. },
  32. mounted(){
  33. },
  34. })