李帅 1 місяць тому
батько
коміт
f572399437

+ 49 - 49
src/api/allApi.js

@@ -1,5 +1,5 @@
1 1
 import request from '@/utils/request'
2
-import {cyptoTool} from '@/utils/cryptoJSMi';
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
3 3
 
4 4
 
5 5
 export function diagnosisTypeTreeList(params) {
@@ -24,7 +24,7 @@ export function diagnosisTypeOrderDoctor(data) {
24 24
   return request({
25 25
     url: `/diagnosis-type-order-doctor`,
26 26
     method: 'post',
27
-    data
27
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
28 28
   })
29 29
 }
30 30
 
@@ -61,7 +61,7 @@ export function diagnosisTypeTreeAdd(data) {
61 61
   return request({
62 62
     url: `/system/diagnosis-type`,
63 63
     method: 'post',
64
-    data
64
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
65 65
   })
66 66
 }
67 67
 
@@ -71,7 +71,7 @@ export function appointmentProjectAdd(data) {
71 71
   return request({
72 72
     url: `/project/appointment-project`,
73 73
     method: 'post',
74
-    data
74
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
75 75
   })
76 76
 }
77 77
 
@@ -80,7 +80,7 @@ export function diagnosisTypeTreeUpdate(data) {
80 80
   return request({
81 81
     url: `/system/diagnosis-type`,
82 82
     method: 'put',
83
-    data
83
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
84 84
   })
85 85
 }
86 86
 
@@ -88,7 +88,7 @@ export function appointmentProjectUpdate(data) {
88 88
   return request({
89 89
     url: `/project/appointment-project`,
90 90
     method: 'put',
91
-    data
91
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
92 92
   })
93 93
 }
94 94
 
@@ -128,7 +128,7 @@ export function diagnosisTypetemplateAdd(data) {
128 128
   return request({
129 129
     url: `/system/diagnosis-type-template`,
130 130
     method: 'post',
131
-    data
131
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
132 132
   })
133 133
 }
134 134
 
@@ -151,14 +151,14 @@ export function diagnosisTypetemplateUpdate(data) {
151 151
   return request({
152 152
     url: `/system/diagnosis-type-template`,
153 153
     method: 'put',
154
-    data
154
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
155 155
   })
156 156
 }
157 157
 export function appointmentProjectUpdate1(data) {
158 158
   return request({
159 159
     url: `/project/appointment-project`,
160 160
     method: 'put',
161
-    data
161
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
162 162
   })
163 163
 }
164 164
 
@@ -173,7 +173,7 @@ export function importTemplate(data) {
173 173
   return request({
174 174
     url: `/system/diagnosis-type-template/importTemplate`,
175 175
     method: 'post',
176
-    data,
176
+    data: cyptoTool.methods.encrypt(JSON.stringify(data)),
177 177
     responseType: "blob",
178 178
     timeOut: 1000 * 60
179 179
   })
@@ -282,7 +282,7 @@ export function patientAdd(data) {
282 282
   return request({
283 283
     url: `/patient/patient`,
284 284
     method: 'post',
285
-    data
285
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
286 286
   })
287 287
 }
288 288
 
@@ -329,7 +329,7 @@ export function patientMedicalRecord(data) {
329 329
   return request({
330 330
     url: `/patient/medical-record`,
331 331
     method: 'post',
332
-    data
332
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
333 333
   })
334 334
 }
335 335
 
@@ -337,7 +337,7 @@ export function patientMedicalRecordUpdate(data) {
337 337
   return request({
338 338
     url: `/patient/medical-record`,
339 339
     method: 'put',
340
-    data
340
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
341 341
   })
342 342
 }
343 343
 
@@ -384,7 +384,7 @@ export function appointmentAdd(data) {
384 384
   return request({
385 385
     url: `/patientAppointment/patientAppointment-appointment`,
386 386
     method: 'post',
387
-    data
387
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
388 388
   })
389 389
 }
390 390
 
@@ -409,7 +409,7 @@ export function modifyStateUpdate(data) {
409 409
   return request({
410 410
     url: `/patientAppointment/patientAppointment-appointment/modifyState`,
411 411
     method: 'post',
412
-    data
412
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
413 413
   })
414 414
 }
415 415
 
@@ -445,7 +445,7 @@ export function html2Pdf(data) {
445 445
     url: `/patient/medical-record/html2Pdf`,
446 446
     method: 'post',
447 447
     responseType: "blob",
448
-    data,
448
+    data: cyptoTool.methods.encrypt(JSON.stringify(data)),
449 449
     timeout: 1000 * 60 * 5
450 450
   })
451 451
 }
@@ -455,14 +455,14 @@ export function businessDictDataUpdate(data) {
455 455
   return request({
456 456
     url: `/system/business-dict-data`,
457 457
     method: 'put',
458
-    data
458
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
459 459
   })
460 460
 }
461 461
 export function businessDictDataAdd(data) {
462 462
   return request({
463 463
     url: `/system/business-dict-data`,
464 464
     method: 'post',
465
-    data
465
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
466 466
   })
467 467
 }
468 468
 
@@ -478,7 +478,7 @@ export function clinicInfo(data) {
478 478
   return request({
479 479
     url: `/clinic-info`,
480 480
     method: 'post',
481
-    data
481
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
482 482
   })
483 483
 }
484 484
 
@@ -502,7 +502,7 @@ export function schedulingConfiguration(data) {
502 502
   return request({
503 503
     url: `/scheduling-configuration`,
504 504
     method: 'post',
505
-    data
505
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
506 506
   })
507 507
 }
508 508
 
@@ -510,7 +510,7 @@ export function schedulingDetails(data) {
510 510
   return request({
511 511
     url: `/scheduling-details`,
512 512
     method: 'put',
513
-    data
513
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
514 514
   })
515 515
 }
516 516
 // 查询排班
@@ -543,7 +543,7 @@ export function schedulingStatusAdd(data) {
543 543
   return request({
544 544
     url: `/scheduling-status`,
545 545
     method: 'post',
546
-    data
546
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
547 547
   })
548 548
 }
549 549
 
@@ -551,7 +551,7 @@ export function schedulingStatusUpdate(data) {
551 551
   return request({
552 552
     url: `/scheduling-status`,
553 553
     method: 'put',
554
-    data
554
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
555 555
   })
556 556
 }
557 557
 
@@ -603,7 +603,7 @@ export function patientFollowUp(data) {
603 603
   return request({
604 604
     url: `/patient-follow-up`,
605 605
     method: 'post',
606
-    data
606
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
607 607
   })
608 608
 }
609 609
 
@@ -627,7 +627,7 @@ export function patientFollowUpUpdate(data) {
627 627
   return request({
628 628
     url: `/patient-follow-up`,
629 629
     method: 'put',
630
-    data
630
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
631 631
   })
632 632
 }
633 633
 
@@ -635,7 +635,7 @@ export function protocolTemplate(data) {
635 635
   return request({
636 636
     url: `/protocol-template`,
637 637
     method: 'post',
638
-    data
638
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
639 639
   })
640 640
 }
641 641
 
@@ -643,7 +643,7 @@ export function protocolTemplateUpdate(data) {
643 643
   return request({
644 644
     url: `/protocol-template`,
645 645
     method: 'put',
646
-    data
646
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
647 647
   })
648 648
 }
649 649
 
@@ -666,7 +666,7 @@ export function protocolType(data) {
666 666
   return request({
667 667
     url: `/protocol-type`,
668 668
     method: 'post',
669
-    data
669
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
670 670
   })
671 671
 }
672 672
 
@@ -674,7 +674,7 @@ export function protocolTypeUpdate(data) {
674 674
   return request({
675 675
     url: `/protocol-type`,
676 676
     method: 'put',
677
-    data
677
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
678 678
   })
679 679
 }
680 680
 
@@ -726,7 +726,7 @@ export function collectCostType(data) {
726 726
   return request({
727 727
     url: `/collect-cost-type`,
728 728
     method: 'post',
729
-    data
729
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
730 730
   })
731 731
 }
732 732
 
@@ -734,7 +734,7 @@ export function collectCostTypeUpdate(data) {
734 734
   return request({
735 735
     url: `/collect-cost-type`,
736 736
     method: 'put',
737
-    data
737
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
738 738
   })
739 739
 }
740 740
 
@@ -756,14 +756,14 @@ export function collectCostDetailsUpdate(data) {
756 756
   return request({
757 757
     url: `/collect-cost-details`,
758 758
     method: 'put',
759
-    data
759
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
760 760
   })
761 761
 }
762 762
 export function collectCostDetailsAdd(data) {
763 763
   return request({
764 764
     url: `/collect-cost-details`,
765 765
     method: 'post',
766
-    data
766
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
767 767
   })
768 768
 }
769 769
 
@@ -802,7 +802,7 @@ export function minioUpload(data) {
802 802
   return request({
803 803
     url: `/common/minioUpload`,
804 804
     method: 'post',
805
-    data
805
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
806 806
   })
807 807
 }
808 808
 
@@ -818,7 +818,7 @@ export function diagnosisTypeCostProjectAdd(data) {
818 818
   return request({
819 819
     url: `/diagnosis-type-cost-project`,
820 820
     method: 'post',
821
-    data
821
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
822 822
   })
823 823
 }
824 824
 
@@ -850,7 +850,7 @@ export function collectCostPatientsUpdate(data) {
850 850
   return request({
851 851
     url: `/collect-cost-patients`,
852 852
     method: 'put',
853
-    data
853
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
854 854
   })
855 855
 }
856 856
 
@@ -858,7 +858,7 @@ export function collectCost(data) {
858 858
   return request({
859 859
     url: `/collect-cost-patients/collectCost`,
860 860
     method: 'post',
861
-    data
861
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
862 862
   })
863 863
 }
864 864
 export function getChatDisease(params) {
@@ -886,14 +886,14 @@ export function addClinict(data) {
886 886
   return request({
887 887
     url: `/sys/clinict/add`,
888 888
     method: 'post',
889
-    data
889
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
890 890
   })
891 891
 }
892 892
 export function editClinict(data) {
893 893
   return request({
894 894
     url: `/sys/clinict/edit`,
895 895
     method: 'put',
896
-    data
896
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
897 897
   })
898 898
 }
899 899
 
@@ -909,21 +909,21 @@ export function noticeManageRevoke(data) {
909 909
   return request({
910 910
     url: `/notice-manage/revoke`,
911 911
     method: 'post',
912
-    data
912
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
913 913
   })
914 914
 }
915 915
 export function noticeManageAdd(data) {
916 916
   return request({
917 917
     url: `/notice-manage`,
918 918
     method: 'post',
919
-    data
919
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
920 920
   })
921 921
 }
922 922
 export function noticeManageUpdate(data) {
923 923
   return request({
924 924
     url: `/notice-manage`,
925 925
     method: 'put',
926
-    data
926
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
927 927
   })
928 928
 }
929 929
 
@@ -944,7 +944,7 @@ export function noticeManageDetails(params) {
944 944
 
945 945
 export function delClinict(id) {
946 946
   return request({
947
-    url: `/sys/clinict/`+id,
947
+    url: `/sys/clinict/` + id,
948 948
     method: 'delete'
949 949
   })
950 950
 }
@@ -961,7 +961,7 @@ export function findListByToothPosition(data) {
961 961
   return request({
962 962
     url: `/patient/medical-record/findListByToothPosition`,
963 963
     method: 'post',
964
-    data
964
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
965 965
   })
966 966
 }
967 967
 
@@ -985,7 +985,7 @@ export function diagnosisManageListAdd(data) {
985 985
   return request({
986 986
     url: `/diagnosis-manage`,
987 987
     method: 'post',
988
-    data
988
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
989 989
   })
990 990
 }
991 991
 
@@ -993,7 +993,7 @@ export function diagnosisManageUpdate(data) {
993 993
   return request({
994 994
     url: `/diagnosis-manage`,
995 995
     method: 'put',
996
-    data
996
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
997 997
   })
998 998
 }
999 999
 
@@ -1008,7 +1008,7 @@ export function diagnosisManageImportTemplate(data) {
1008 1008
   return request({
1009 1009
     url: `/diagnosis-manage/importTemplate`,
1010 1010
     method: 'post',
1011
-    data,
1011
+    data: cyptoTool.methods.encrypt(JSON.stringify(data)),
1012 1012
     responseType: "blob",
1013 1013
     timeOut: 1000 * 60
1014 1014
   })
@@ -1018,7 +1018,7 @@ export function getInfoByDiagnosisTypeTemplateId(data) {
1018 1018
   return request({
1019 1019
     url: `/patient/medical-record/getInfoByDiagnosisTypeTemplateId`,
1020 1020
     method: 'post',
1021
-    data
1021
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
1022 1022
   })
1023 1023
 }
1024 1024
 
@@ -1026,6 +1026,6 @@ export function findNoteList(data) {
1026 1026
   return request({
1027 1027
     url: `/patient/medical-record/findNoteList`,
1028 1028
     method: 'post',
1029
-    data
1029
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
1030 1030
   })
1031 1031
 }

+ 4 - 2
src/api/login.js

@@ -1,4 +1,6 @@
1 1
 import request from '@/utils/request'
2
+import {cyptoTool} from '@/utils/cryptoJSMi';
3
+
2 4
 
3 5
 // 登录方法
4 6
 export function login(username, password, code, uuid) {
@@ -15,7 +17,7 @@ export function login(username, password, code, uuid) {
15 17
       repeatSubmit: false
16 18
     },
17 19
     method: 'post',
18
-    data: data
20
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
19 21
   })
20 22
 }
21 23
 
@@ -27,7 +29,7 @@ export function register(data) {
27 29
       isToken: false
28 30
     },
29 31
     method: 'post',
30
-    data: data
32
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
31 33
   })
32 34
 }
33 35
 

+ 6 - 4
src/api/monitor/job.js

@@ -1,4 +1,6 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
3
+
2 4
 
3 5
 // 查询定时任务调度列表
4 6
 export function listJob(query) {
@@ -22,7 +24,7 @@ export function addJob(data) {
22 24
   return request({
23 25
     url: '/monitor/job',
24 26
     method: 'post',
25
-    data: data
27
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
26 28
   })
27 29
 }
28 30
 
@@ -31,7 +33,7 @@ export function updateJob(data) {
31 33
   return request({
32 34
     url: '/monitor/job',
33 35
     method: 'put',
34
-    data: data
36
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
35 37
   })
36 38
 }
37 39
 
@@ -52,7 +54,7 @@ export function changeJobStatus(jobId, status) {
52 54
   return request({
53 55
     url: '/monitor/job/changeStatus',
54 56
     method: 'put',
55
-    data: data
57
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
56 58
   })
57 59
 }
58 60
 
@@ -66,6 +68,6 @@ export function runJob(jobId, jobGroup) {
66 68
   return request({
67 69
     url: '/monitor/job/run',
68 70
     method: 'put',
69
-    data: data
71
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
70 72
   })
71 73
 }

+ 3 - 2
src/api/system/config.js

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2 3
 
3 4
 // 查询参数列表
4 5
 export function listConfig(query) {
@@ -30,7 +31,7 @@ export function addConfig(data) {
30 31
   return request({
31 32
     url: '/system/config',
32 33
     method: 'post',
33
-    data: data
34
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
34 35
   })
35 36
 }
36 37
 
@@ -39,7 +40,7 @@ export function updateConfig(data) {
39 40
   return request({
40 41
     url: '/system/config',
41 42
     method: 'put',
42
-    data: data
43
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
43 44
   })
44 45
 }
45 46
 

+ 3 - 2
src/api/system/dept.js

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2 3
 
3 4
 // 查询部门列表
4 5
 export function listDept(query) {
@@ -30,7 +31,7 @@ export function addDept(data) {
30 31
   return request({
31 32
     url: '/system/dept',
32 33
     method: 'post',
33
-    data: data
34
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
34 35
   })
35 36
 }
36 37
 
@@ -39,7 +40,7 @@ export function updateDept(data) {
39 40
   return request({
40 41
     url: '/system/dept',
41 42
     method: 'put',
42
-    data: data
43
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
43 44
   })
44 45
 }
45 46
 

+ 4 - 2
src/api/system/dict/data.js

@@ -1,4 +1,6 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
3
+
2 4
 
3 5
 // 查询字典数据列表
4 6
 export function listData(query) {
@@ -30,7 +32,7 @@ export function addData(data) {
30 32
   return request({
31 33
     url: '/system/dict/data',
32 34
     method: 'post',
33
-    data: data
35
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
34 36
   })
35 37
 }
36 38
 
@@ -39,7 +41,7 @@ export function updateData(data) {
39 41
   return request({
40 42
     url: '/system/dict/data',
41 43
     method: 'put',
42
-    data: data
44
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
43 45
   })
44 46
 }
45 47
 

+ 4 - 2
src/api/system/dict/type.js

@@ -1,4 +1,6 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
3
+
2 4
 
3 5
 // 查询字典类型列表
4 6
 export function listType(query) {
@@ -22,7 +24,7 @@ export function addType(data) {
22 24
   return request({
23 25
     url: '/system/dict/type',
24 26
     method: 'post',
25
-    data: data
27
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
26 28
   })
27 29
 }
28 30
 
@@ -31,7 +33,7 @@ export function updateType(data) {
31 33
   return request({
32 34
     url: '/system/dict/type',
33 35
     method: 'put',
34
-    data: data
36
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
35 37
   })
36 38
 }
37 39
 

+ 3 - 2
src/api/system/menu.js

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2 3
 
3 4
 // 查询菜单列表
4 5
 export function listMenu(query) {
@@ -38,7 +39,7 @@ export function addMenu(data) {
38 39
   return request({
39 40
     url: '/system/menu',
40 41
     method: 'post',
41
-    data: data
42
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
42 43
   })
43 44
 }
44 45
 
@@ -47,7 +48,7 @@ export function updateMenu(data) {
47 48
   return request({
48 49
     url: '/system/menu',
49 50
     method: 'put',
50
-    data: data
51
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
51 52
   })
52 53
 }
53 54
 

+ 3 - 2
src/api/system/notice.js

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2 3
 
3 4
 // 查询公告列表
4 5
 export function listNotice(query) {
@@ -22,7 +23,7 @@ export function addNotice(data) {
22 23
   return request({
23 24
     url: '/system/notice',
24 25
     method: 'post',
25
-    data: data
26
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
26 27
   })
27 28
 }
28 29
 
@@ -31,7 +32,7 @@ export function updateNotice(data) {
31 32
   return request({
32 33
     url: '/system/notice',
33 34
     method: 'put',
34
-    data: data
35
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
35 36
   })
36 37
 }
37 38
 

+ 3 - 2
src/api/system/post.js

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2 3
 
3 4
 // 查询岗位列表
4 5
 export function listPost(query) {
@@ -22,7 +23,7 @@ export function addPost(data) {
22 23
   return request({
23 24
     url: '/system/post',
24 25
     method: 'post',
25
-    data: data
26
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
26 27
   })
27 28
 }
28 29
 
@@ -31,7 +32,7 @@ export function updatePost(data) {
31 32
   return request({
32 33
     url: '/system/post',
33 34
     method: 'put',
34
-    data: data
35
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
35 36
   })
36 37
 }
37 38
 

+ 6 - 5
src/api/system/role.js

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2 3
 
3 4
 // 查询角色列表
4 5
 export function listRole(query) {
@@ -22,7 +23,7 @@ export function addRole(data) {
22 23
   return request({
23 24
     url: '/system/role',
24 25
     method: 'post',
25
-    data: data
26
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
26 27
   })
27 28
 }
28 29
 
@@ -31,7 +32,7 @@ export function updateRole(data) {
31 32
   return request({
32 33
     url: '/system/role',
33 34
     method: 'put',
34
-    data: data
35
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
35 36
   })
36 37
 }
37 38
 
@@ -40,7 +41,7 @@ export function dataScope(data) {
40 41
   return request({
41 42
     url: '/system/role/dataScope',
42 43
     method: 'put',
43
-    data: data
44
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
44 45
   })
45 46
 }
46 47
 
@@ -53,7 +54,7 @@ export function changeRoleStatus(roleId, status) {
53 54
   return request({
54 55
     url: '/system/role/changeStatus',
55 56
     method: 'put',
56
-    data: data
57
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
57 58
   })
58 59
 }
59 60
 
@@ -88,7 +89,7 @@ export function authUserCancel(data) {
88 89
   return request({
89 90
     url: '/system/role/authUser/cancel',
90 91
     method: 'put',
91
-    data: data
92
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
92 93
   })
93 94
 }
94 95
 

+ 8 - 7
src/api/system/user.js

@@ -1,5 +1,6 @@
1 1
 import request from '@/utils/request'
2 2
 import { parseStrEmpty } from "@/utils/ruoyi";
3
+import { cyptoTool } from '@/utils/cryptoJSMi';
3 4
 
4 5
 // 查询用户列表
5 6
 export function listUser(query) {
@@ -23,7 +24,7 @@ export function addUser(data) {
23 24
   return request({
24 25
     url: '/system/user',
25 26
     method: 'post',
26
-    data: data
27
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
27 28
   })
28 29
 }
29 30
 
@@ -32,7 +33,7 @@ export function updateUser(data) {
32 33
   return request({
33 34
     url: '/system/user',
34 35
     method: 'put',
35
-    data: data
36
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
36 37
   })
37 38
 }
38 39
 
@@ -53,7 +54,7 @@ export function resetUserPwd(userId, password) {
53 54
   return request({
54 55
     url: '/system/user/resetPwd',
55 56
     method: 'put',
56
-    data: data
57
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
57 58
   })
58 59
 }
59 60
 
@@ -66,7 +67,7 @@ export function changeUserStatus(userId, status) {
66 67
   return request({
67 68
     url: '/system/user/changeStatus',
68 69
     method: 'put',
69
-    data: data
70
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
70 71
   })
71 72
 }
72 73
 
@@ -83,7 +84,7 @@ export function updateUserProfile(data) {
83 84
   return request({
84 85
     url: '/system/user/profile',
85 86
     method: 'put',
86
-    data: data
87
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
87 88
   })
88 89
 }
89 90
 
@@ -105,7 +106,7 @@ export function uploadAvatar(data) {
105 106
   return request({
106 107
     url: '/system/user/profile/avatar',
107 108
     method: 'post',
108
-    data: data
109
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
109 110
   })
110 111
 }
111 112
 
@@ -114,7 +115,7 @@ export function upload(data) {
114 115
   return request({
115 116
     url: '/common/upload',
116 117
     method: 'post',
117
-    data: data
118
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
118 119
   })
119 120
 }
120 121
 

+ 2 - 1
src/api/tool/gen.js

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2 3
 
3 4
 // 查询生成表数据
4 5
 export function listTable(query) {
@@ -30,7 +31,7 @@ export function updateGenTable(data) {
30 31
   return request({
31 32
     url: '/tool/gen',
32 33
     method: 'put',
33
-    data: data
34
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
34 35
   })
35 36
 }
36 37
 

BIN
src/assets/images/慧视健康.png


+ 1 - 14
src/utils/request.js

@@ -125,20 +125,7 @@ service.interceptors.response.use(res => {
125 125
       Notification.error({ title: msg })
126 126
       return Promise.reject('error')
127 127
     } else {
128
-// console.log(
129
-//   cyptoTool.methods.decrypt(cyptoTool.methods.encrypt("12312312312312")) 
130
-// );
131
-//       // if(res.data.msg == "token"){
132
-//       //   console.log(res,"resres");
133
-//       //   return res.data;
134
-//       // }else {
135
-
136
-//       //   console.log(cyptoTool.methods.decrypt(res.data),12312);
137
-//       //   return cyptoTool.methods.decrypt(res.data)
138
-//       // }
139
-      // console.log(JSON.parse(cyptoTool.methods.decrypt(res.data.data)),12312);
140
-      // return JSON.parse(cyptoTool.methods.decrypt(res.data.data)) 
141
-      return res.data
128
+      return  JSON.parse(cyptoTool.methods.decrypt(res.data)) 
142 129
     }
143 130
   },
144 131
   error => {

+ 2 - 2
src/views/login.vue

@@ -76,8 +76,8 @@
76 76
         <el-popover placement="bottom" width="270px" trigger="click">
77 77
           <div style="display: flex;">
78 78
             <div style="display: flex;flex-direction: column;align-items: center;">
79
-              <img src="@/assets/images/视慧口腔.png" style="width: 100px;height: 100px;">
80
-              <p>视慧口腔</p>
79
+              <img src="@/assets/images/慧视健康.png" style="width: 100px;height: 100px;">
80
+              <p>慧视健康</p>
81 81
             </div>
82 82
             <div style="display: flex;flex-direction: column;align-items: center;margin-left: 20px;">
83 83
               <img src="@/assets/images/口腔医院.png" style="width: 100px;height: 100px;">