sign.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. var Request = GetRequest();
  2. new Vue({
  3. el: '#app',
  4. data: {
  5. BP_D:'',
  6. BP_U:'',
  7. HEIGHT:'',
  8. WEIGHT:'',
  9. BMI:'',
  10. WEIGHT_EXP:'',
  11. BMI_EXP:'',
  12. HEART_RATE:'',
  13. POFDA_MARK:'',
  14. OTHER_POSITIVE_SIGNS:'',
  15. objData:'',
  16. readonly:false
  17. },
  18. mounted: function() {
  19. var vm = this
  20. var Request = GetRequest();
  21. recordAPI.getFollowupProjectData({id:Request["id"],followupProject:2}).then(function(res){
  22. if(res.status==200){
  23. var data = res.data;
  24. vm.objData = res.data
  25. // delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
  26. for(var key in data){
  27. vm[key] = data[key]
  28. }
  29. }
  30. })
  31. },
  32. methods:{
  33. saveButton:function(){
  34. var vm = this;
  35. params = {id: Request["id"], followupProject:2}
  36. var checkID = {};
  37. checkID['BP_D'] =vm.BP_D
  38. checkID['BP_U'] =vm.BP_U
  39. checkID['HEIGHT'] =vm.HEIGHT
  40. checkID['WEIGHT'] =vm.WEIGHT
  41. checkID['BMI'] =vm.BMI
  42. checkID['WEIGHT_EXP'] =vm.WEIGHT_EXP
  43. checkID['BMI_EXP'] =vm.BMI_EXP
  44. checkID['HEART_RATE'] =vm.HEART_RATE
  45. checkID['POFDA_MARK'] =vm.POFDA_MARK
  46. checkID['OTHER_POSITIVE_SIGNS'] =vm.OTHER_POSITIVE_SIGNS
  47. console.log(checkID)
  48. params.followupProjectData = JSON.stringify(checkID);
  49. console.log(params.followupProjectData)
  50. console.log(params)
  51. recordAPI.ModifyFollowupResult(params).then(function(res){
  52. if(res.status==200){
  53. toastr.info("保存成功")
  54. }else{
  55. toastr.error(res.msg)
  56. }
  57. })
  58. }
  59. }
  60. })