Selaa lähdekoodia

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

xiaoming_global 5 vuotta sitten
vanhempi
commit
6eb9f1df15
2 muutettua tiedostoa jossa 18 lisäystä ja 30 poistoa
  1. 4 16
      src/pages/main/dialog/OrdersDialog.vue
  2. 14 14
      src/styles/media.scss

+ 4 - 16
src/pages/main/dialog/OrdersDialog.vue Näytä tiedosto

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>
46
-        <span id="fontSize" :class="{ forbid:(this.$store.getters.user.user.user_type == 3 && !isPremission) }" v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
45
+        <span id="fontSize" :class="{ forbid:this.$store.getters.user.user.user_type == 3}" v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
46
+        <span id="fontSize" :class="{ forbid:this.$store.getters.user.user.user_type == 3}" v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
47
       </div>
47
       </div>
48
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
48
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
49
 
49
 
781
         }
781
         }
782
         return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':00'
782
         return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':00'
783
       }, deleteSubAdviceAction: function () {
783
       }, deleteSubAdviceAction: function () {
784
-        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
785
-          return
786
-        }
787
         if (this.currentSubAdvices.length <= 0) {
784
         if (this.currentSubAdvices.length <= 0) {
788
           return
785
           return
789
         }
786
         }
823
 
820
 
824
       },
821
       },
825
       deleteAdviceAction: function () {
822
       deleteAdviceAction: function () {
826
-        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
827
-          return
828
-        }
829
         if (this.current_select_object == 1) {
823
         if (this.current_select_object == 1) {
830
           if (this.currentAdvices.length <= 0) {
824
           if (this.currentAdvices.length <= 0) {
831
             return
825
             return
1194
         this.current_advice_index = -1
1188
         this.current_advice_index = -1
1195
         this.current_advice = null
1189
         this.current_advice = null
1196
       }, modifySubdviceAction: function () {
1190
       }, modifySubdviceAction: function () {
1197
-        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
1198
-          return
1199
-        }
1200
         if (this.currentSubAdvices.length <= 0) {
1191
         if (this.currentSubAdvices.length <= 0) {
1201
           return
1192
           return
1202
         }
1193
         }
1226
         if (this.currentAdvices.length != 1 || this.current_select_object == 2){
1217
         if (this.currentAdvices.length != 1 || this.current_select_object == 2){
1227
           return
1218
           return
1228
         }
1219
         }
1229
-        if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){
1230
-          return
1231
-        }
1232
         if (this.current_group_index < 0) {
1220
         if (this.current_group_index < 0) {
1233
           return
1221
           return
1234
         }
1222
         }

+ 14 - 14
src/styles/media.scss Näytä tiedosto

1
-@media only screen and (max-width: 500px) {
1
+@media only screen and (max-width: 767px) {
2
   html {
2
   html {
3
     font-size: 30px;
3
     font-size: 30px;
4
   }
4
   }
10
 // }
10
 // }
11
 
11
 
12
 /* Medium devices (landscape tablets, 768px and up) */
12
 /* Medium devices (landscape tablets, 768px and up) */
13
-@media only screen and (min-width: 768px) {
14
-  html {
15
-    font-size: 50px;
16
-  }
17
-}
18
-
19
-// @media screen and (orientation: portrait) and (max-width: 640px) {
20
-// .mainBox {
21
-//   -webkit-transform: rotate(-90deg);
22
-//   -moz-transform: rotate(-90deg);
23
-//   -ms-transform: rotate(-90deg);
24
-//   transform: rotate(-90deg);
25
-// }
13
+// @media only screen and (min-width: 800px) {
14
+//   html {
15
+//     font-size: 50px;
16
+//   }
26
 // }
17
 // }
18
+
19
+@media screen and (orientation: portrait) and (max-width: 640px) {
20
+  // .mainBox {
21
+  //   -webkit-transform: rotate(-90deg);
22
+  //   -moz-transform: rotate(-90deg);
23
+  //   -ms-transform: rotate(-90deg);
24
+  //   transform: rotate(-90deg);
25
+  // }
26
+}