census.js 665 B

12345678910111213141516171819202122232425262728
  1. new Vue({
  2. el: '#app',
  3. data: {
  4. statisticsList:{
  5. article:{month: 0, year: 0, history: 0},
  6. consult:{month: 0, year: 0, history: 0},
  7. followup:{month: "0/0", year: "0/0", history: "0/0"},
  8. guidance:{month: 0, year: 0, history: 0},
  9. reservation:{month: 0, year: 0, history: 0}
  10. }
  11. },
  12. mounted: function() {
  13. var vm=this;
  14. var data = {patientCode:'fca8c658ffda42afa5be91e54e0268c8',
  15. patient:'fca8c658ffda42afa5be91e54e0268c8',
  16. teamCode:646,
  17. page:1,
  18. pagesize:10}
  19. recordAPI.getStatistics(data).then(function(res){
  20. if(res.status==200){
  21. vm.statisticsList=res.data;
  22. }else{
  23. top.toastr.error(res.msg);
  24. }
  25. })
  26. }
  27. })