evaluate.js 1.5 KB

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