Browse Source

医嘱权限

csx 5 years ago
parent
commit
4a07664238
1 changed files with 2 additions and 8 deletions
  1. 2 8
      src/pages/main/dialog/OrdersDialog.vue

+ 2 - 8
src/pages/main/dialog/OrdersDialog.vue View File

@@ -34,12 +34,12 @@
34 34
         <span
35 35
           v-if="currentSubAdvices.length <= 0"
36 36
           @click="modifyAdviceAction"
37
-          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1  || current_select_object== 2 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
37
+          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1  || current_select_object== 2  }"
38 38
         >修改</span>
39 39
         <span
40 40
           v-if="currentSubAdvices.length <= 0"
41 41
           @click="deleteAdviceAction"
42
-          :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
42
+          :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0 }"
43 43
         >删除</span>
44 44
 
45 45
         <span id="fontSize" :class="{ forbid:(this.$store.getters.user.user.user_type == 3 && !isPremission) }" v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
@@ -823,9 +823,6 @@
823 823
 
824 824
       },
825 825
       deleteAdviceAction: function () {
826
-        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
827
-          return
828
-        }
829 826
         if (this.current_select_object == 1) {
830 827
           if (this.currentAdvices.length <= 0) {
831 828
             return
@@ -1226,9 +1223,6 @@
1226 1223
         if (this.currentAdvices.length != 1 || this.current_select_object == 2){
1227 1224
           return
1228 1225
         }
1229
-        if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){
1230
-          return
1231
-        }
1232 1226
         if (this.current_group_index < 0) {
1233 1227
           return
1234 1228
         }