csx 5 år sedan
förälder
incheckning
4583632768
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/pages/main/dialog/OrdersDialog.vue

+ 2 - 2
src/pages/main/dialog/OrdersDialog.vue Visa fil

@@ -34,7 +34,7 @@
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==1)  || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
37
+          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1  || current_select_object== 2 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
38 38
         >修改</span>
39 39
         <span
40 40
           v-if="currentSubAdvices.length <= 0"
@@ -1223,7 +1223,7 @@
1223 1223
 
1224 1224
       },
1225 1225
       modifyAdviceAction: function () {
1226
-        if (this.currentAdvices.length != 1 && this.current_select_object==1){
1226
+        if (this.currentAdvices.length != 1 || this.current_select_object == 2){
1227 1227
           return
1228 1228
         }
1229 1229
         if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){