evaluate.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. var Request = GetRequest();
  2. new Vue({
  3. el: '#app',
  4. data: {
  5. type:'',
  6. HYP_COMPLICATION_DETAIL:'',
  7. DIA_COMPLICATION_DETAIL:'',
  8. HYP_FOLLOWUP_TYPE_CODE:'',
  9. DIA_FOLLOWUP_TYPE_CODE:'',
  10. readonly:false,
  11. objData:''
  12. },
  13. mounted: function() {
  14. var vm = this
  15. var Request = GetRequest();
  16. var follow = JSON.parse(window.localStorage.getItem('serveFollowupDate'))
  17. vm.type = follow.followupClass;
  18. recordAPI.getFollowupProjectData({id:Request["id"],followupProject:5}).then(function(res){
  19. if(res.status==200){
  20. var data = res.data;
  21. vm.objData = res.data
  22. // delete data["create_time"];delete data["followup_id"];delete data["followup_project"];delete data["id"];
  23. for(var key in data){
  24. vm[key] = data[key]
  25. }
  26. }
  27. })
  28. },
  29. methods:{
  30. saveButton:function(){
  31. var vm = this;
  32. params = {id: Request["id"], followupProject:5}
  33. var checkID = {};
  34. checkID['HYP_COMPLICATION_DETAIL'] =vm.HYP_COMPLICATION_DETAIL
  35. checkID['DIA_COMPLICATION_DETAIL'] =vm.DIA_COMPLICATION_DETAIL
  36. checkID['HYP_FOLLOWUP_TYPE_CODE'] =vm.HYP_FOLLOWUP_TYPE_CODE
  37. checkID['DIA_FOLLOWUP_TYPE_CODE'] =vm.DIA_FOLLOWUP_TYPE_CODE
  38. console.log(checkID)
  39. params.followupProjectData = JSON.stringify(checkID);
  40. console.log(params.followupProjectData)
  41. console.log(params)
  42. recordAPI.ModifyFollowupResult(params).then(function(res){
  43. if(res.status==200){
  44. toastr.info("保存成功")
  45. }else{
  46. toastr.error(res.msg)
  47. }
  48. })
  49. }
  50. }
  51. })