|
@@ -42,8 +42,8 @@
|
42
|
42
|
:class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
|
43
|
43
|
>删除</span>
|
44
|
44
|
|
45
|
|
- <span v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
|
46
|
|
- <span v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
|
|
45
|
+ <span :class="{ forbid:(this.$store.getters.user.user.user_type == 3 && !isPremission) }" v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
|
|
46
|
+ <span :class="{ forbid:(this.$store.getters.user.user.user_type == 3 && !isPremission) }" v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
|
47
|
47
|
</div>
|
48
|
48
|
<div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
|
49
|
49
|
|
|
@@ -781,6 +781,9 @@
|
781
|
781
|
}
|
782
|
782
|
return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':00'
|
783
|
783
|
}, deleteSubAdviceAction: function () {
|
|
784
|
+ if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
|
|
785
|
+ return
|
|
786
|
+ }
|
784
|
787
|
if (this.currentSubAdvices.length <= 0) {
|
785
|
788
|
return
|
786
|
789
|
}
|
|
@@ -820,7 +823,7 @@
|
820
|
823
|
|
821
|
824
|
},
|
822
|
825
|
deleteAdviceAction: function () {
|
823
|
|
- if (this.$store.getters.user.user.user_type == 3){
|
|
826
|
+ if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
|
824
|
827
|
return
|
825
|
828
|
}
|
826
|
829
|
if (this.current_select_object == 1) {
|
|
@@ -1187,6 +1190,9 @@
|
1187
|
1190
|
this.current_advice_index = -1
|
1188
|
1191
|
this.current_advice = null
|
1189
|
1192
|
}, modifySubdviceAction: function () {
|
|
1193
|
+ if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
|
|
1194
|
+ return
|
|
1195
|
+ }
|
1190
|
1196
|
if (this.currentSubAdvices.length <= 0) {
|
1191
|
1197
|
return
|
1192
|
1198
|
}
|
|
@@ -1213,7 +1219,7 @@
|
1213
|
1219
|
|
1214
|
1220
|
},
|
1215
|
1221
|
modifyAdviceAction: function () {
|
1216
|
|
- if (this.$store.getters.user.user.user_type == 3){
|
|
1222
|
+ if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){
|
1217
|
1223
|
return
|
1218
|
1224
|
}
|
1219
|
1225
|
if (this.current_group_index < 0) {
|