|
@@ -9,9 +9,21 @@
|
9
|
9
|
>
|
10
|
10
|
<div v-show="edit == false">
|
11
|
11
|
<div class="txsj">
|
12
|
|
- <el-button round :disabled="!is_has_create" @click="newRecordAction">新增监测</el-button>
|
13
|
|
- <el-button round :disabled="!is_has_modify && !is_has_modify_other" @click="modifyRecordAction">修改监测</el-button>
|
14
|
|
- <el-button round :disabled="!is_has_del && !is_has_del_other" @click="deleteRecordAction">删除监测</el-button>
|
|
12
|
+ <el-button round :disabled="!is_has_create" @click="newRecordAction"
|
|
13
|
+ >新增监测</el-button
|
|
14
|
+ >
|
|
15
|
+ <el-button
|
|
16
|
+ round
|
|
17
|
+ :disabled="!is_has_modify && !is_has_modify_other"
|
|
18
|
+ @click="modifyRecordAction"
|
|
19
|
+ >修改监测</el-button
|
|
20
|
+ >
|
|
21
|
+ <el-button
|
|
22
|
+ round
|
|
23
|
+ :disabled="!is_has_del && !is_has_del_other"
|
|
24
|
+ @click="deleteRecordAction"
|
|
25
|
+ >删除监测</el-button
|
|
26
|
+ >
|
15
|
27
|
</div>
|
16
|
28
|
<el-table
|
17
|
29
|
:header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
|
|
@@ -155,7 +167,7 @@
|
155
|
167
|
align="center"
|
156
|
168
|
label="超滤量(L)"
|
157
|
169
|
width="110"
|
158
|
|
- v-if="isShow('超滤量') && template_id != 6 && template_id != 10"
|
|
170
|
+ v-if="isShow('超滤量') && template_id != 6 && template_id != 10"
|
159
|
171
|
>
|
160
|
172
|
<template slot-scope="scope">
|
161
|
173
|
{{
|
|
@@ -200,7 +212,7 @@
|
200
|
212
|
align="center"
|
201
|
213
|
label="置换率(ml/min)"
|
202
|
214
|
width="120"
|
203
|
|
- v-if="isShow('置换率') && (template_id == 6 || template_id == 10)"
|
|
215
|
+ v-if="isShow('置换率') && (template_id == 6 || template_id == 10)"
|
204
|
216
|
>
|
205
|
217
|
<template slot-scope="scope">
|
206
|
218
|
{{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
|
|
@@ -371,7 +383,7 @@
|
371
|
383
|
<el-button
|
372
|
384
|
size="mini"
|
373
|
385
|
type="primary"
|
374
|
|
- @click="venousPressureChange(1)"
|
|
386
|
+ @click="venousPressureChangeOne"
|
375
|
387
|
>转换</el-button
|
376
|
388
|
>
|
377
|
389
|
</el-form-item>
|
|
@@ -385,7 +397,7 @@
|
385
|
397
|
<el-button
|
386
|
398
|
size="mini"
|
387
|
399
|
type="primary"
|
388
|
|
- @click="venousPressureChange(3)"
|
|
400
|
+ @click="venousPressureChangeTwo"
|
389
|
401
|
>转换</el-button
|
390
|
402
|
>
|
391
|
403
|
</el-form-item>
|
|
@@ -406,7 +418,7 @@
|
406
|
418
|
<el-button
|
407
|
419
|
size="mini"
|
408
|
420
|
type="primary"
|
409
|
|
- @click="venousPressureChange(2)"
|
|
421
|
+ @click="venousPressureChangeThree"
|
410
|
422
|
>转换</el-button
|
411
|
423
|
>
|
412
|
424
|
</el-form-item>
|
|
@@ -417,12 +429,18 @@
|
417
|
429
|
<el-input v-model="form.ultrafiltration_rate"></el-input>
|
418
|
430
|
</el-form-item>
|
419
|
431
|
</el-col>
|
420
|
|
- <el-col :span="8" v-if="isShow('超滤量') &&(template_id != 6 || template_id != 10)">
|
|
432
|
+ <el-col
|
|
433
|
+ :span="8"
|
|
434
|
+ v-if="isShow('超滤量') && (template_id != 6 || template_id != 10)"
|
|
435
|
+ >
|
421
|
436
|
<el-form-item label="超滤量(ml):">
|
422
|
437
|
<el-input v-model="form.ultrafiltration_volume"></el-input>
|
423
|
438
|
</el-form-item>
|
424
|
439
|
</el-col>
|
425
|
|
- <el-col :span="8" v-if="isShow('超滤量') && template_id != 6 && template_id != 10">
|
|
440
|
+ <el-col
|
|
441
|
+ :span="8"
|
|
442
|
+ v-if="isShow('超滤量') && template_id != 6 && template_id != 10"
|
|
443
|
+ >
|
426
|
444
|
<el-form-item label="超滤量(L):">
|
427
|
445
|
<el-input v-model="form.ultrafiltration_volume"></el-input>
|
428
|
446
|
</el-form-item>
|
|
@@ -598,21 +616,21 @@ import {
|
598
|
616
|
} from "@/api/dialysis_record";
|
599
|
617
|
import store from "@/store";
|
600
|
618
|
|
601
|
|
-import request from '@/utils/request'
|
|
619
|
+import request from "@/utils/request";
|
602
|
620
|
|
603
|
621
|
export default {
|
604
|
622
|
name: "MonitorDialog",
|
605
|
623
|
data() {
|
606
|
624
|
return {
|
607
|
|
- is_has_create:true,
|
608
|
|
- is_has_modify:true,
|
609
|
|
- is_has_modify_other:true,
|
610
|
|
- is_has_del:true,
|
611
|
|
- is_has_del_other:true,
|
|
625
|
+ is_has_create: true,
|
|
626
|
+ is_has_modify: true,
|
|
627
|
+ is_has_modify_other: true,
|
|
628
|
+ is_has_del: true,
|
|
629
|
+ is_has_del_other: true,
|
612
|
630
|
visible: false,
|
613
|
631
|
edit: false,
|
614
|
632
|
current_row_class: "current-box-class",
|
615
|
|
- creator:0,
|
|
633
|
+ creator: 0,
|
616
|
634
|
patient_id: 0,
|
617
|
635
|
schedule_date: 0,
|
618
|
636
|
template_id: 0,
|
|
@@ -656,7 +674,10 @@ export default {
|
656
|
674
|
dispose_selecteds: [],
|
657
|
675
|
dispose_options: getDataConfig("hemodialysis", "deals"),
|
658
|
676
|
result_selecteds: [],
|
659
|
|
- result_options: getDataConfig("hemodialysis", "results")
|
|
677
|
+ result_options: getDataConfig("hemodialysis", "results"),
|
|
678
|
+ value: 0,
|
|
679
|
+ valuetwo: 0,
|
|
680
|
+ valuethree: 0
|
660
|
681
|
};
|
661
|
682
|
},
|
662
|
683
|
props: {
|
|
@@ -696,6 +717,54 @@ export default {
|
696
|
717
|
);
|
697
|
718
|
}
|
698
|
719
|
},
|
|
720
|
+ venousPressureChangeOne() {
|
|
721
|
+ if (this.value == 0) {
|
|
722
|
+ this.form.venous_pressure = Math.ceil(
|
|
723
|
+ Math.round(this.form.venous_pressure * 7.5)
|
|
724
|
+ );
|
|
725
|
+ this.value = 1;
|
|
726
|
+ return false;
|
|
727
|
+ }
|
|
728
|
+ if (this.value == 1) {
|
|
729
|
+ this.form.venous_pressure = Math.ceil(
|
|
730
|
+ Math.round(this.form.venous_pressure / 7.5)
|
|
731
|
+ );
|
|
732
|
+ this.value = 0;
|
|
733
|
+ return false;
|
|
734
|
+ }
|
|
735
|
+ },
|
|
736
|
+ venousPressureChangeTwo() {
|
|
737
|
+ if (this.valuetwo == 0) {
|
|
738
|
+ this.form.arterial_pressure = Math.ceil(
|
|
739
|
+ Math.round(this.form.arterial_pressure * 7.5)
|
|
740
|
+ );
|
|
741
|
+ this.valuetwo = 1;
|
|
742
|
+ return false;
|
|
743
|
+ }
|
|
744
|
+ if (this.valuetwo == 1) {
|
|
745
|
+ this.form.arterial_pressure = Math.ceil(
|
|
746
|
+ Math.round(this.form.arterial_pressure / 7.5)
|
|
747
|
+ );
|
|
748
|
+ this.valuetwo = 0;
|
|
749
|
+ return false;
|
|
750
|
+ }
|
|
751
|
+ },
|
|
752
|
+ venousPressureChangeThree() {
|
|
753
|
+ if (this.valuethree == 0) {
|
|
754
|
+ this.form.transmembrane_pressure = Math.ceil(
|
|
755
|
+ Math.round(this.form.transmembrane_pressure * 7.5)
|
|
756
|
+ );
|
|
757
|
+ this.valuethree = 1;
|
|
758
|
+ return false;
|
|
759
|
+ }
|
|
760
|
+ if (this.valuethree == 1) {
|
|
761
|
+ this.form.transmembrane_pressure = Math.ceil(
|
|
762
|
+ Math.round(this.form.transmembrane_pressure / 7.5)
|
|
763
|
+ );
|
|
764
|
+ this.valuethree = 0;
|
|
765
|
+ return false;
|
|
766
|
+ }
|
|
767
|
+ },
|
699
|
768
|
isShow(name) {
|
700
|
769
|
var filedList = store.getters.xt_user.fileds;
|
701
|
770
|
for (let i = 0; i < filedList.length; i++) {
|
|
@@ -713,7 +782,7 @@ export default {
|
713
|
782
|
this.cancelEditAction();
|
714
|
783
|
},
|
715
|
784
|
show() {
|
716
|
|
- this.getPermission()
|
|
785
|
+ this.getPermission();
|
717
|
786
|
this.visible = true;
|
718
|
787
|
},
|
719
|
788
|
hide() {
|
|
@@ -786,10 +855,10 @@ export default {
|
786
|
855
|
this.$message.error("请选择一条监测记录");
|
787
|
856
|
return;
|
788
|
857
|
}
|
789
|
|
- this.creator = this.table_current_row.creator
|
790
|
|
- console.log( this.table_current_row)
|
791
|
|
- console.log( this.table_current_row.creator)
|
792
|
|
- console.log(this.creator)
|
|
858
|
+ this.creator = this.table_current_row.creator;
|
|
859
|
+ console.log(this.table_current_row);
|
|
860
|
+ console.log(this.table_current_row.creator);
|
|
861
|
+ console.log(this.creator);
|
793
|
862
|
this.setEditMonitor(this.table_current_row);
|
794
|
863
|
this.$refs.table.setCurrentRow(null);
|
795
|
864
|
this.edit = true;
|
|
@@ -979,111 +1048,114 @@ export default {
|
979
|
1048
|
parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
|
980
|
1049
|
this.form.monitoring_date = parseInt(this.form.monitoring_date);
|
981
|
1050
|
|
982
|
|
-
|
983
|
|
- let mode = "1"
|
984
|
|
- if(this.form.id > 0){
|
985
|
|
- mode = "2"
|
986
|
|
- if(this.creator > 0 && this.creator!= this.$store.getters.xt_user.user.id){
|
987
|
|
- mode = "3"
|
988
|
|
- }
|
|
1051
|
+ let mode = "1";
|
|
1052
|
+ if (this.form.id > 0) {
|
|
1053
|
+ mode = "2";
|
|
1054
|
+ if (
|
|
1055
|
+ this.creator > 0 &&
|
|
1056
|
+ this.creator != this.$store.getters.xt_user.user.id
|
|
1057
|
+ ) {
|
|
1058
|
+ mode = "3";
|
|
1059
|
+ }
|
989
|
1060
|
}
|
990
|
|
- editMonitor(this.patient_id, this.schedule_date, this.form,mode).then(rs => {
|
991
|
|
- var resp = rs.data;
|
992
|
|
- if (resp.state == 1) {
|
993
|
|
- var monitor = resp.data.monitor;
|
994
|
|
- if (this.isAdd) {
|
995
|
|
- this.monitors.unshift(monitor);
|
996
|
|
- this.monitors.sort((a, b) => b.operate_time - a.operate_time);
|
997
|
|
- this.monitors.reverse();
|
998
|
|
- } else {
|
999
|
|
- for (let index = 0; index < this.monitors.length; index++) {
|
1000
|
|
- const m = this.monitors[index];
|
1001
|
|
- if (m.id == monitor.id) {
|
1002
|
|
- for (const key in monitor) {
|
1003
|
|
- m[key] = monitor[key];
|
|
1061
|
+ editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
|
|
1062
|
+ rs => {
|
|
1063
|
+ var resp = rs.data;
|
|
1064
|
+ if (resp.state == 1) {
|
|
1065
|
+ var monitor = resp.data.monitor;
|
|
1066
|
+ if (this.isAdd) {
|
|
1067
|
+ this.monitors.unshift(monitor);
|
|
1068
|
+ this.monitors.sort((a, b) => b.operate_time - a.operate_time);
|
|
1069
|
+ this.monitors.reverse();
|
|
1070
|
+ } else {
|
|
1071
|
+ for (let index = 0; index < this.monitors.length; index++) {
|
|
1072
|
+ const m = this.monitors[index];
|
|
1073
|
+ if (m.id == monitor.id) {
|
|
1074
|
+ for (const key in monitor) {
|
|
1075
|
+ m[key] = monitor[key];
|
|
1076
|
+ }
|
|
1077
|
+ break;
|
1004
|
1078
|
}
|
1005
|
|
- break;
|
1006
|
1079
|
}
|
1007
|
1080
|
}
|
1008
|
|
- }
|
1009
|
|
- this.reset();
|
1010
|
|
- } else {
|
1011
|
|
- this.form.systolic_bp =
|
1012
|
|
- parseFloat(this.form.systolic_bp) == NaN
|
1013
|
|
- ? 0
|
1014
|
|
- : parseFloat(this.form.systolic_bp);
|
1015
|
|
- this.form.diastolic_bp =
|
1016
|
|
- parseFloat(this.form.diastolic_bp) == NaN
|
1017
|
|
- ? 0
|
1018
|
|
- : parseFloat(this.form.diastolic_bp);
|
1019
|
|
- this.form.temperature =
|
1020
|
|
- parseFloat(this.form.temperature) == NaN
|
1021
|
|
- ? 0
|
1022
|
|
- : parseFloat(this.form.temperature);
|
1023
|
|
- this.form.pulse_frequency =
|
1024
|
|
- parseFloat(this.form.pulse_frequency) == NaN
|
1025
|
|
- ? 0
|
1026
|
|
- : parseFloat(this.form.pulse_frequency);
|
1027
|
|
- this.form.breathing_rated =
|
1028
|
|
- parseFloat(this.form.breathing_rated) == NaN
|
1029
|
|
- ? 0
|
1030
|
|
- : parseFloat(this.form.breathing_rated);
|
1031
|
|
- this.form.blood_flow_volume =
|
1032
|
|
- parseFloat(this.form.blood_flow_volume) == NaN
|
1033
|
|
- ? 0
|
1034
|
|
- : parseFloat(this.form.blood_flow_volume);
|
1035
|
|
- this.form.venous_pressure =
|
1036
|
|
- parseFloat(this.form.venous_pressure) == NaN
|
1037
|
|
- ? 0
|
1038
|
|
- : parseFloat(this.form.venous_pressure);
|
1039
|
|
- this.form.transmembrane_pressure =
|
1040
|
|
- parseFloat(this.form.transmembrane_pressure) == NaN
|
1041
|
|
- ? 0
|
1042
|
|
- : parseFloat(this.form.transmembrane_pressure);
|
1043
|
|
- this.form.ultrafiltration_volume =
|
1044
|
|
- parseFloat(this.form.ultrafiltration_volume) == NaN
|
1045
|
|
- ? 0
|
1046
|
|
- : parseFloat(this.form.ultrafiltration_volume);
|
1047
|
|
- this.form.ultrafiltration_rate =
|
1048
|
|
- parseFloat(this.form.ultrafiltration_rate) == NaN
|
1049
|
|
- ? 0
|
1050
|
|
- : parseFloat(this.form.ultrafiltration_rate);
|
1051
|
|
- this.form.arterial_pressure =
|
1052
|
|
- parseFloat(this.form.arterial_pressure) == NaN
|
1053
|
|
- ? 0
|
1054
|
|
- : parseFloat(this.form.arterial_pressure);
|
1055
|
|
- this.form.sodium_concentration =
|
1056
|
|
- parseFloat(this.form.sodium_concentration) == NaN
|
1057
|
|
- ? 0
|
1058
|
|
- : parseFloat(this.form.sodium_concentration);
|
1059
|
|
- this.form.dialysate_temperature =
|
1060
|
|
- parseFloat(this.form.dialysate_temperature) == NaN
|
1061
|
|
- ? 0
|
1062
|
|
- : parseFloat(this.form.dialysate_temperature);
|
1063
|
|
- this.form.replacement_rate =
|
1064
|
|
- parseFloat(this.form.replacement_rate) == NaN
|
1065
|
|
- ? 0
|
1066
|
|
- : parseFloat(this.form.replacement_rate);
|
1067
|
|
- this.form.displacement_quantity =
|
1068
|
|
- parseFloat(this.form.displacement_quantity) == NaN
|
1069
|
|
- ? 0
|
1070
|
|
- : parseFloat(this.form.displacement_quantity);
|
1071
|
|
- this.form.conductivity =
|
1072
|
|
- parseFloat(this.form.conductivity) == NaN
|
1073
|
|
- ? 0
|
1074
|
|
- : parseFloat(this.form.conductivity);
|
1075
|
|
- this.form.displacement_flow_quantity =
|
1076
|
|
- parseFloat(this.form.displacement_flow_quantity) == NaN
|
1077
|
|
- ? 0
|
1078
|
|
- : parseFloat(this.form.displacement_flow_quantity);
|
1079
|
|
-
|
1080
|
|
- this.form.ktv =
|
1081
|
|
- parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
|
|
1081
|
+ this.reset();
|
|
1082
|
+ } else {
|
|
1083
|
+ this.form.systolic_bp =
|
|
1084
|
+ parseFloat(this.form.systolic_bp) == NaN
|
|
1085
|
+ ? 0
|
|
1086
|
+ : parseFloat(this.form.systolic_bp);
|
|
1087
|
+ this.form.diastolic_bp =
|
|
1088
|
+ parseFloat(this.form.diastolic_bp) == NaN
|
|
1089
|
+ ? 0
|
|
1090
|
+ : parseFloat(this.form.diastolic_bp);
|
|
1091
|
+ this.form.temperature =
|
|
1092
|
+ parseFloat(this.form.temperature) == NaN
|
|
1093
|
+ ? 0
|
|
1094
|
+ : parseFloat(this.form.temperature);
|
|
1095
|
+ this.form.pulse_frequency =
|
|
1096
|
+ parseFloat(this.form.pulse_frequency) == NaN
|
|
1097
|
+ ? 0
|
|
1098
|
+ : parseFloat(this.form.pulse_frequency);
|
|
1099
|
+ this.form.breathing_rated =
|
|
1100
|
+ parseFloat(this.form.breathing_rated) == NaN
|
|
1101
|
+ ? 0
|
|
1102
|
+ : parseFloat(this.form.breathing_rated);
|
|
1103
|
+ this.form.blood_flow_volume =
|
|
1104
|
+ parseFloat(this.form.blood_flow_volume) == NaN
|
|
1105
|
+ ? 0
|
|
1106
|
+ : parseFloat(this.form.blood_flow_volume);
|
|
1107
|
+ this.form.venous_pressure =
|
|
1108
|
+ parseFloat(this.form.venous_pressure) == NaN
|
|
1109
|
+ ? 0
|
|
1110
|
+ : parseFloat(this.form.venous_pressure);
|
|
1111
|
+ this.form.transmembrane_pressure =
|
|
1112
|
+ parseFloat(this.form.transmembrane_pressure) == NaN
|
|
1113
|
+ ? 0
|
|
1114
|
+ : parseFloat(this.form.transmembrane_pressure);
|
|
1115
|
+ this.form.ultrafiltration_volume =
|
|
1116
|
+ parseFloat(this.form.ultrafiltration_volume) == NaN
|
|
1117
|
+ ? 0
|
|
1118
|
+ : parseFloat(this.form.ultrafiltration_volume);
|
|
1119
|
+ this.form.ultrafiltration_rate =
|
|
1120
|
+ parseFloat(this.form.ultrafiltration_rate) == NaN
|
|
1121
|
+ ? 0
|
|
1122
|
+ : parseFloat(this.form.ultrafiltration_rate);
|
|
1123
|
+ this.form.arterial_pressure =
|
|
1124
|
+ parseFloat(this.form.arterial_pressure) == NaN
|
|
1125
|
+ ? 0
|
|
1126
|
+ : parseFloat(this.form.arterial_pressure);
|
|
1127
|
+ this.form.sodium_concentration =
|
|
1128
|
+ parseFloat(this.form.sodium_concentration) == NaN
|
|
1129
|
+ ? 0
|
|
1130
|
+ : parseFloat(this.form.sodium_concentration);
|
|
1131
|
+ this.form.dialysate_temperature =
|
|
1132
|
+ parseFloat(this.form.dialysate_temperature) == NaN
|
|
1133
|
+ ? 0
|
|
1134
|
+ : parseFloat(this.form.dialysate_temperature);
|
|
1135
|
+ this.form.replacement_rate =
|
|
1136
|
+ parseFloat(this.form.replacement_rate) == NaN
|
|
1137
|
+ ? 0
|
|
1138
|
+ : parseFloat(this.form.replacement_rate);
|
|
1139
|
+ this.form.displacement_quantity =
|
|
1140
|
+ parseFloat(this.form.displacement_quantity) == NaN
|
|
1141
|
+ ? 0
|
|
1142
|
+ : parseFloat(this.form.displacement_quantity);
|
|
1143
|
+ this.form.conductivity =
|
|
1144
|
+ parseFloat(this.form.conductivity) == NaN
|
|
1145
|
+ ? 0
|
|
1146
|
+ : parseFloat(this.form.conductivity);
|
|
1147
|
+ this.form.displacement_flow_quantity =
|
|
1148
|
+ parseFloat(this.form.displacement_flow_quantity) == NaN
|
|
1149
|
+ ? 0
|
|
1150
|
+ : parseFloat(this.form.displacement_flow_quantity);
|
1082
|
1151
|
|
|
1152
|
+ this.form.ktv =
|
|
1153
|
+ parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
|
1083
|
1154
|
|
1084
|
|
- this.$message.error(resp.msg);
|
|
1155
|
+ this.$message.error(resp.msg);
|
|
1156
|
+ }
|
1085
|
1157
|
}
|
1086
|
|
- });
|
|
1158
|
+ );
|
1087
|
1159
|
},
|
1088
|
1160
|
|
1089
|
1161
|
symptomTextareaBlur: function() {
|
|
@@ -1143,16 +1215,19 @@ export default {
|
1143
|
1215
|
type: "warning"
|
1144
|
1216
|
})
|
1145
|
1217
|
.then(() => {
|
1146
|
|
- let mode = "4"
|
1147
|
|
- if(this.table_current_row.creator > 0 && this.table_current_row.creator != this.$store.getters.xt_user.user.id){
|
1148
|
|
- mode = "5"
|
|
1218
|
+ let mode = "4";
|
|
1219
|
+ if (
|
|
1220
|
+ this.table_current_row.creator > 0 &&
|
|
1221
|
+ this.table_current_row.creator !=
|
|
1222
|
+ this.$store.getters.xt_user.user.id
|
|
1223
|
+ ) {
|
|
1224
|
+ mode = "5";
|
1149
|
1225
|
}
|
1150
|
1226
|
|
1151
|
1227
|
const params = {
|
1152
|
1228
|
patient_id: this.patient_id,
|
1153
|
1229
|
record_id: this.table_current_row.id,
|
1154
|
1230
|
mode: mode
|
1155
|
|
-
|
1156
|
1231
|
};
|
1157
|
1232
|
|
1158
|
1233
|
postDelMonitorInfo(params).then(response => {
|
|
@@ -1167,14 +1242,14 @@ export default {
|
1167
|
1242
|
}
|
1168
|
1243
|
}
|
1169
|
1244
|
this.$message.success("删除成功");
|
1170
|
|
-
|
1171
|
1245
|
}
|
1172
|
1246
|
});
|
1173
|
1247
|
})
|
1174
|
1248
|
.catch(() => {});
|
1175
|
1249
|
},
|
1176
|
1250
|
getPermission() {
|
1177
|
|
- request.get("/api/func_per/get", {
|
|
1251
|
+ request
|
|
1252
|
+ .get("/api/func_per/get", {
|
1178
|
1253
|
params: {
|
1179
|
1254
|
create_url: "/api/dislysis/monitor/edit?mode=1",
|
1180
|
1255
|
modify_url: "/api/dislysis/monitor/edit?mode=2",
|
|
@@ -1183,22 +1258,23 @@ export default {
|
1183
|
1258
|
del_other_url: "/api/dialysis/monitor/del?mode=5",
|
1184
|
1259
|
module: 7
|
1185
|
1260
|
}
|
1186
|
|
- }).then(res => {
|
1187
|
|
- console.log(res)
|
|
1261
|
+ })
|
|
1262
|
+ .then(res => {
|
|
1263
|
+ console.log(res);
|
1188
|
1264
|
if (res.data.state == 0) {
|
1189
|
|
- this.hasPermission = false
|
|
1265
|
+ this.hasPermission = false;
|
1190
|
1266
|
} else if (res.data.state == 1) {
|
1191
|
|
- this.is_has_create = res.data.data.is_has_create
|
1192
|
|
- this.is_has_exce = res.data.data.is_has_exce
|
1193
|
|
- this.is_has_check = res.data.data.is_has_check
|
1194
|
|
- this.is_has_modify = res.data.data.is_has_modify
|
1195
|
|
- this.is_has_modify_other = res.data.data.is_has_modify_other
|
1196
|
|
- this.is_has_modify_exce = res.data.data.is_has_modify_exce
|
1197
|
|
- this.is_has_del = res.data.data.is_has_del
|
1198
|
|
- this.is_has_del_other = res.data.data.is_has_del_other
|
|
1267
|
+ this.is_has_create = res.data.data.is_has_create;
|
|
1268
|
+ this.is_has_exce = res.data.data.is_has_exce;
|
|
1269
|
+ this.is_has_check = res.data.data.is_has_check;
|
|
1270
|
+ this.is_has_modify = res.data.data.is_has_modify;
|
|
1271
|
+ this.is_has_modify_other = res.data.data.is_has_modify_other;
|
|
1272
|
+ this.is_has_modify_exce = res.data.data.is_has_modify_exce;
|
|
1273
|
+ this.is_has_del = res.data.data.is_has_del;
|
|
1274
|
+ this.is_has_del_other = res.data.data.is_has_del_other;
|
1199
|
1275
|
}
|
1200
|
|
- })
|
1201
|
|
- }
|
|
1276
|
+ });
|
|
1277
|
+ }
|
1202
|
1278
|
}
|
1203
|
1279
|
};
|
1204
|
1280
|
</script>
|
|
@@ -1256,7 +1332,7 @@ export default {
|
1256
|
1332
|
.el-table__body-wrapper::-webkit-scrollbar {
|
1257
|
1333
|
height: 20px;
|
1258
|
1334
|
}
|
1259
|
|
-.dialog_box .current-box-class .current-row{
|
|
1335
|
+.dialog_box .current-box-class .current-row {
|
1260
|
1336
|
background: #87ceff;
|
1261
|
1337
|
}
|
1262
|
1338
|
.dialog_box tr:hover > td {
|