浏览代码

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

xiaoming_global 5 年前
父节点
当前提交
6eb9f1df15
共有 2 个文件被更改,包括 18 次插入30 次删除
  1. 4 16
      src/pages/main/dialog/OrdersDialog.vue
  2. 14 14
      src/styles/media.scss

+ 4 - 16
src/pages/main/dialog/OrdersDialog.vue 查看文件

@@ -34,16 +34,16 @@
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
-        <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 47
       </div>
48 48
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
49 49
 
@@ -781,9 +781,6 @@
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
-        }
787 784
         if (this.currentSubAdvices.length <= 0) {
788 785
           return
789 786
         }
@@ -823,9 +820,6 @@
823 820
 
824 821
       },
825 822
       deleteAdviceAction: function () {
826
-        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
827
-          return
828
-        }
829 823
         if (this.current_select_object == 1) {
830 824
           if (this.currentAdvices.length <= 0) {
831 825
             return
@@ -1194,9 +1188,6 @@
1194 1188
         this.current_advice_index = -1
1195 1189
         this.current_advice = null
1196 1190
       }, modifySubdviceAction: function () {
1197
-        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
1198
-          return
1199
-        }
1200 1191
         if (this.currentSubAdvices.length <= 0) {
1201 1192
           return
1202 1193
         }
@@ -1226,9 +1217,6 @@
1226 1217
         if (this.currentAdvices.length != 1 || this.current_select_object == 2){
1227 1218
           return
1228 1219
         }
1229
-        if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){
1230
-          return
1231
-        }
1232 1220
         if (this.current_group_index < 0) {
1233 1221
           return
1234 1222
         }

+ 14 - 14
src/styles/media.scss 查看文件

@@ -1,4 +1,4 @@
1
-@media only screen and (max-width: 500px) {
1
+@media only screen and (max-width: 767px) {
2 2
   html {
3 3
     font-size: 30px;
4 4
   }
@@ -10,17 +10,17 @@
10 10
 // }
11 11
 
12 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
+}