education.js 702 B

123456789101112131415161718192021222324252627282930313233
  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:'ec7572875d27446cb4f067b13a85d72a',
  14. teamCode:646,
  15. page:page,
  16. pagesize:10}
  17. recordAPI.educationList(data).then(function(res){
  18. if(res.status==200){
  19. if(res.data.length){
  20. vm.list=res.data;
  21. }else{
  22. top.toastr.info("啊喔!没有更多内容了");
  23. }
  24. }else{
  25. top.toastr.error(res.msg||("服务器返回状态码"+res.status));
  26. }
  27. })
  28. }
  29. }
  30. },
  31. mounted(){
  32. },
  33. })