Browse Source

接口加密

李帅 2 months ago
parent
commit
f572399437

+ 49 - 49
src/api/allApi.js

@@ -1,5 +1,5 @@
1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
-import {cyptoTool} from '@/utils/cryptoJSMi';
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
3
 
3
 
4
 
4
 
5
 export function diagnosisTypeTreeList(params) {
5
 export function diagnosisTypeTreeList(params) {
@@ -24,7 +24,7 @@ export function diagnosisTypeOrderDoctor(data) {
24
   return request({
24
   return request({
25
     url: `/diagnosis-type-order-doctor`,
25
     url: `/diagnosis-type-order-doctor`,
26
     method: 'post',
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
   return request({
61
   return request({
62
     url: `/system/diagnosis-type`,
62
     url: `/system/diagnosis-type`,
63
     method: 'post',
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
   return request({
71
   return request({
72
     url: `/project/appointment-project`,
72
     url: `/project/appointment-project`,
73
     method: 'post',
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
   return request({
80
   return request({
81
     url: `/system/diagnosis-type`,
81
     url: `/system/diagnosis-type`,
82
     method: 'put',
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
   return request({
88
   return request({
89
     url: `/project/appointment-project`,
89
     url: `/project/appointment-project`,
90
     method: 'put',
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
   return request({
128
   return request({
129
     url: `/system/diagnosis-type-template`,
129
     url: `/system/diagnosis-type-template`,
130
     method: 'post',
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
   return request({
151
   return request({
152
     url: `/system/diagnosis-type-template`,
152
     url: `/system/diagnosis-type-template`,
153
     method: 'put',
153
     method: 'put',
154
-    data
154
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
155
   })
155
   })
156
 }
156
 }
157
 export function appointmentProjectUpdate1(data) {
157
 export function appointmentProjectUpdate1(data) {
158
   return request({
158
   return request({
159
     url: `/project/appointment-project`,
159
     url: `/project/appointment-project`,
160
     method: 'put',
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
   return request({
173
   return request({
174
     url: `/system/diagnosis-type-template/importTemplate`,
174
     url: `/system/diagnosis-type-template/importTemplate`,
175
     method: 'post',
175
     method: 'post',
176
-    data,
176
+    data: cyptoTool.methods.encrypt(JSON.stringify(data)),
177
     responseType: "blob",
177
     responseType: "blob",
178
     timeOut: 1000 * 60
178
     timeOut: 1000 * 60
179
   })
179
   })
@@ -282,7 +282,7 @@ export function patientAdd(data) {
282
   return request({
282
   return request({
283
     url: `/patient/patient`,
283
     url: `/patient/patient`,
284
     method: 'post',
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
   return request({
329
   return request({
330
     url: `/patient/medical-record`,
330
     url: `/patient/medical-record`,
331
     method: 'post',
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
   return request({
337
   return request({
338
     url: `/patient/medical-record`,
338
     url: `/patient/medical-record`,
339
     method: 'put',
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
   return request({
384
   return request({
385
     url: `/patientAppointment/patientAppointment-appointment`,
385
     url: `/patientAppointment/patientAppointment-appointment`,
386
     method: 'post',
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
   return request({
409
   return request({
410
     url: `/patientAppointment/patientAppointment-appointment/modifyState`,
410
     url: `/patientAppointment/patientAppointment-appointment/modifyState`,
411
     method: 'post',
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
     url: `/patient/medical-record/html2Pdf`,
445
     url: `/patient/medical-record/html2Pdf`,
446
     method: 'post',
446
     method: 'post',
447
     responseType: "blob",
447
     responseType: "blob",
448
-    data,
448
+    data: cyptoTool.methods.encrypt(JSON.stringify(data)),
449
     timeout: 1000 * 60 * 5
449
     timeout: 1000 * 60 * 5
450
   })
450
   })
451
 }
451
 }
@@ -455,14 +455,14 @@ export function businessDictDataUpdate(data) {
455
   return request({
455
   return request({
456
     url: `/system/business-dict-data`,
456
     url: `/system/business-dict-data`,
457
     method: 'put',
457
     method: 'put',
458
-    data
458
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
459
   })
459
   })
460
 }
460
 }
461
 export function businessDictDataAdd(data) {
461
 export function businessDictDataAdd(data) {
462
   return request({
462
   return request({
463
     url: `/system/business-dict-data`,
463
     url: `/system/business-dict-data`,
464
     method: 'post',
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
   return request({
478
   return request({
479
     url: `/clinic-info`,
479
     url: `/clinic-info`,
480
     method: 'post',
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
   return request({
502
   return request({
503
     url: `/scheduling-configuration`,
503
     url: `/scheduling-configuration`,
504
     method: 'post',
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
   return request({
510
   return request({
511
     url: `/scheduling-details`,
511
     url: `/scheduling-details`,
512
     method: 'put',
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
   return request({
543
   return request({
544
     url: `/scheduling-status`,
544
     url: `/scheduling-status`,
545
     method: 'post',
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
   return request({
551
   return request({
552
     url: `/scheduling-status`,
552
     url: `/scheduling-status`,
553
     method: 'put',
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
   return request({
603
   return request({
604
     url: `/patient-follow-up`,
604
     url: `/patient-follow-up`,
605
     method: 'post',
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
   return request({
627
   return request({
628
     url: `/patient-follow-up`,
628
     url: `/patient-follow-up`,
629
     method: 'put',
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
   return request({
635
   return request({
636
     url: `/protocol-template`,
636
     url: `/protocol-template`,
637
     method: 'post',
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
   return request({
643
   return request({
644
     url: `/protocol-template`,
644
     url: `/protocol-template`,
645
     method: 'put',
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
   return request({
666
   return request({
667
     url: `/protocol-type`,
667
     url: `/protocol-type`,
668
     method: 'post',
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
   return request({
674
   return request({
675
     url: `/protocol-type`,
675
     url: `/protocol-type`,
676
     method: 'put',
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
   return request({
726
   return request({
727
     url: `/collect-cost-type`,
727
     url: `/collect-cost-type`,
728
     method: 'post',
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
   return request({
734
   return request({
735
     url: `/collect-cost-type`,
735
     url: `/collect-cost-type`,
736
     method: 'put',
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
   return request({
756
   return request({
757
     url: `/collect-cost-details`,
757
     url: `/collect-cost-details`,
758
     method: 'put',
758
     method: 'put',
759
-    data
759
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
760
   })
760
   })
761
 }
761
 }
762
 export function collectCostDetailsAdd(data) {
762
 export function collectCostDetailsAdd(data) {
763
   return request({
763
   return request({
764
     url: `/collect-cost-details`,
764
     url: `/collect-cost-details`,
765
     method: 'post',
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
   return request({
802
   return request({
803
     url: `/common/minioUpload`,
803
     url: `/common/minioUpload`,
804
     method: 'post',
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
   return request({
818
   return request({
819
     url: `/diagnosis-type-cost-project`,
819
     url: `/diagnosis-type-cost-project`,
820
     method: 'post',
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
   return request({
850
   return request({
851
     url: `/collect-cost-patients`,
851
     url: `/collect-cost-patients`,
852
     method: 'put',
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
   return request({
858
   return request({
859
     url: `/collect-cost-patients/collectCost`,
859
     url: `/collect-cost-patients/collectCost`,
860
     method: 'post',
860
     method: 'post',
861
-    data
861
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
862
   })
862
   })
863
 }
863
 }
864
 export function getChatDisease(params) {
864
 export function getChatDisease(params) {
@@ -886,14 +886,14 @@ export function addClinict(data) {
886
   return request({
886
   return request({
887
     url: `/sys/clinict/add`,
887
     url: `/sys/clinict/add`,
888
     method: 'post',
888
     method: 'post',
889
-    data
889
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
890
   })
890
   })
891
 }
891
 }
892
 export function editClinict(data) {
892
 export function editClinict(data) {
893
   return request({
893
   return request({
894
     url: `/sys/clinict/edit`,
894
     url: `/sys/clinict/edit`,
895
     method: 'put',
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
   return request({
909
   return request({
910
     url: `/notice-manage/revoke`,
910
     url: `/notice-manage/revoke`,
911
     method: 'post',
911
     method: 'post',
912
-    data
912
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
913
   })
913
   })
914
 }
914
 }
915
 export function noticeManageAdd(data) {
915
 export function noticeManageAdd(data) {
916
   return request({
916
   return request({
917
     url: `/notice-manage`,
917
     url: `/notice-manage`,
918
     method: 'post',
918
     method: 'post',
919
-    data
919
+    data: cyptoTool.methods.encrypt(JSON.stringify(data))
920
   })
920
   })
921
 }
921
 }
922
 export function noticeManageUpdate(data) {
922
 export function noticeManageUpdate(data) {
923
   return request({
923
   return request({
924
     url: `/notice-manage`,
924
     url: `/notice-manage`,
925
     method: 'put',
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
 export function delClinict(id) {
945
 export function delClinict(id) {
946
   return request({
946
   return request({
947
-    url: `/sys/clinict/`+id,
947
+    url: `/sys/clinict/` + id,
948
     method: 'delete'
948
     method: 'delete'
949
   })
949
   })
950
 }
950
 }
@@ -961,7 +961,7 @@ export function findListByToothPosition(data) {
961
   return request({
961
   return request({
962
     url: `/patient/medical-record/findListByToothPosition`,
962
     url: `/patient/medical-record/findListByToothPosition`,
963
     method: 'post',
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
   return request({
985
   return request({
986
     url: `/diagnosis-manage`,
986
     url: `/diagnosis-manage`,
987
     method: 'post',
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
   return request({
993
   return request({
994
     url: `/diagnosis-manage`,
994
     url: `/diagnosis-manage`,
995
     method: 'put',
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
   return request({
1008
   return request({
1009
     url: `/diagnosis-manage/importTemplate`,
1009
     url: `/diagnosis-manage/importTemplate`,
1010
     method: 'post',
1010
     method: 'post',
1011
-    data,
1011
+    data: cyptoTool.methods.encrypt(JSON.stringify(data)),
1012
     responseType: "blob",
1012
     responseType: "blob",
1013
     timeOut: 1000 * 60
1013
     timeOut: 1000 * 60
1014
   })
1014
   })
@@ -1018,7 +1018,7 @@ export function getInfoByDiagnosisTypeTemplateId(data) {
1018
   return request({
1018
   return request({
1019
     url: `/patient/medical-record/getInfoByDiagnosisTypeTemplateId`,
1019
     url: `/patient/medical-record/getInfoByDiagnosisTypeTemplateId`,
1020
     method: 'post',
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
   return request({
1026
   return request({
1027
     url: `/patient/medical-record/findNoteList`,
1027
     url: `/patient/medical-record/findNoteList`,
1028
     method: 'post',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import {cyptoTool} from '@/utils/cryptoJSMi';
3
+
2
 
4
 
3
 // 登录方法
5
 // 登录方法
4
 export function login(username, password, code, uuid) {
6
 export function login(username, password, code, uuid) {
@@ -15,7 +17,7 @@ export function login(username, password, code, uuid) {
15
       repeatSubmit: false
17
       repeatSubmit: false
16
     },
18
     },
17
     method: 'post',
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
       isToken: false
29
       isToken: false
28
     },
30
     },
29
     method: 'post',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
3
+
2
 
4
 
3
 // 查询定时任务调度列表
5
 // 查询定时任务调度列表
4
 export function listJob(query) {
6
 export function listJob(query) {
@@ -22,7 +24,7 @@ export function addJob(data) {
22
   return request({
24
   return request({
23
     url: '/monitor/job',
25
     url: '/monitor/job',
24
     method: 'post',
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
   return request({
33
   return request({
32
     url: '/monitor/job',
34
     url: '/monitor/job',
33
     method: 'put',
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
   return request({
54
   return request({
53
     url: '/monitor/job/changeStatus',
55
     url: '/monitor/job/changeStatus',
54
     method: 'put',
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
   return request({
68
   return request({
67
     url: '/monitor/job/run',
69
     url: '/monitor/job/run',
68
     method: 'put',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2
 
3
 
3
 // 查询参数列表
4
 // 查询参数列表
4
 export function listConfig(query) {
5
 export function listConfig(query) {
@@ -30,7 +31,7 @@ export function addConfig(data) {
30
   return request({
31
   return request({
31
     url: '/system/config',
32
     url: '/system/config',
32
     method: 'post',
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
   return request({
40
   return request({
40
     url: '/system/config',
41
     url: '/system/config',
41
     method: 'put',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2
 
3
 
3
 // 查询部门列表
4
 // 查询部门列表
4
 export function listDept(query) {
5
 export function listDept(query) {
@@ -30,7 +31,7 @@ export function addDept(data) {
30
   return request({
31
   return request({
31
     url: '/system/dept',
32
     url: '/system/dept',
32
     method: 'post',
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
   return request({
40
   return request({
40
     url: '/system/dept',
41
     url: '/system/dept',
41
     method: 'put',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
3
+
2
 
4
 
3
 // 查询字典数据列表
5
 // 查询字典数据列表
4
 export function listData(query) {
6
 export function listData(query) {
@@ -30,7 +32,7 @@ export function addData(data) {
30
   return request({
32
   return request({
31
     url: '/system/dict/data',
33
     url: '/system/dict/data',
32
     method: 'post',
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
   return request({
41
   return request({
40
     url: '/system/dict/data',
42
     url: '/system/dict/data',
41
     method: 'put',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
3
+
2
 
4
 
3
 // 查询字典类型列表
5
 // 查询字典类型列表
4
 export function listType(query) {
6
 export function listType(query) {
@@ -22,7 +24,7 @@ export function addType(data) {
22
   return request({
24
   return request({
23
     url: '/system/dict/type',
25
     url: '/system/dict/type',
24
     method: 'post',
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
   return request({
33
   return request({
32
     url: '/system/dict/type',
34
     url: '/system/dict/type',
33
     method: 'put',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2
 
3
 
3
 // 查询菜单列表
4
 // 查询菜单列表
4
 export function listMenu(query) {
5
 export function listMenu(query) {
@@ -38,7 +39,7 @@ export function addMenu(data) {
38
   return request({
39
   return request({
39
     url: '/system/menu',
40
     url: '/system/menu',
40
     method: 'post',
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
   return request({
48
   return request({
48
     url: '/system/menu',
49
     url: '/system/menu',
49
     method: 'put',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2
 
3
 
3
 // 查询公告列表
4
 // 查询公告列表
4
 export function listNotice(query) {
5
 export function listNotice(query) {
@@ -22,7 +23,7 @@ export function addNotice(data) {
22
   return request({
23
   return request({
23
     url: '/system/notice',
24
     url: '/system/notice',
24
     method: 'post',
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
   return request({
32
   return request({
32
     url: '/system/notice',
33
     url: '/system/notice',
33
     method: 'put',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2
 
3
 
3
 // 查询岗位列表
4
 // 查询岗位列表
4
 export function listPost(query) {
5
 export function listPost(query) {
@@ -22,7 +23,7 @@ export function addPost(data) {
22
   return request({
23
   return request({
23
     url: '/system/post',
24
     url: '/system/post',
24
     method: 'post',
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
   return request({
32
   return request({
32
     url: '/system/post',
33
     url: '/system/post',
33
     method: 'put',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2
 
3
 
3
 // 查询角色列表
4
 // 查询角色列表
4
 export function listRole(query) {
5
 export function listRole(query) {
@@ -22,7 +23,7 @@ export function addRole(data) {
22
   return request({
23
   return request({
23
     url: '/system/role',
24
     url: '/system/role',
24
     method: 'post',
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
   return request({
32
   return request({
32
     url: '/system/role',
33
     url: '/system/role',
33
     method: 'put',
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
   return request({
41
   return request({
41
     url: '/system/role/dataScope',
42
     url: '/system/role/dataScope',
42
     method: 'put',
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
   return request({
54
   return request({
54
     url: '/system/role/changeStatus',
55
     url: '/system/role/changeStatus',
55
     method: 'put',
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
   return request({
89
   return request({
89
     url: '/system/role/authUser/cancel',
90
     url: '/system/role/authUser/cancel',
90
     method: 'put',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 import { parseStrEmpty } from "@/utils/ruoyi";
2
 import { parseStrEmpty } from "@/utils/ruoyi";
3
+import { cyptoTool } from '@/utils/cryptoJSMi';
3
 
4
 
4
 // 查询用户列表
5
 // 查询用户列表
5
 export function listUser(query) {
6
 export function listUser(query) {
@@ -23,7 +24,7 @@ export function addUser(data) {
23
   return request({
24
   return request({
24
     url: '/system/user',
25
     url: '/system/user',
25
     method: 'post',
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
   return request({
33
   return request({
33
     url: '/system/user',
34
     url: '/system/user',
34
     method: 'put',
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
   return request({
54
   return request({
54
     url: '/system/user/resetPwd',
55
     url: '/system/user/resetPwd',
55
     method: 'put',
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
   return request({
67
   return request({
67
     url: '/system/user/changeStatus',
68
     url: '/system/user/changeStatus',
68
     method: 'put',
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
   return request({
84
   return request({
84
     url: '/system/user/profile',
85
     url: '/system/user/profile',
85
     method: 'put',
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
   return request({
106
   return request({
106
     url: '/system/user/profile/avatar',
107
     url: '/system/user/profile/avatar',
107
     method: 'post',
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
   return request({
115
   return request({
115
     url: '/common/upload',
116
     url: '/common/upload',
116
     method: 'post',
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
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
+import { cyptoTool } from '@/utils/cryptoJSMi';
2
 
3
 
3
 // 查询生成表数据
4
 // 查询生成表数据
4
 export function listTable(query) {
5
 export function listTable(query) {
@@ -30,7 +31,7 @@ export function updateGenTable(data) {
30
   return request({
31
   return request({
31
     url: '/tool/gen',
32
     url: '/tool/gen',
32
     method: 'put',
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
       Notification.error({ title: msg })
125
       Notification.error({ title: msg })
126
       return Promise.reject('error')
126
       return Promise.reject('error')
127
     } else {
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
   error => {
131
   error => {

+ 2 - 2
src/views/login.vue

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