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