Kaynağa Gözat

修改样式

See999 5 yıl önce
ebeveyn
işleme
a441c4a88d

+ 1 - 1
index.html Dosyayı Görüntüle

@@ -4,7 +4,7 @@
4 4
 <head>
5 5
   <meta charset="utf-8" />
6 6
   <meta name="viewport"
7
-    content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
7
+    content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no,viewport-fit=cover" />
8 8
   <title>酷医云移动端</title>
9 9
 </head>
10 10
 

+ 1 - 0
src/pages/home/login.vue Dosyayı Görüntüle

@@ -289,6 +289,7 @@ export default {
289 289
 .page_login {
290 290
   overflow: hidden;
291 291
   height: 100%;
292
+  overflow-y: auto;
292 293
   .loginTop {
293 294
     width: 100%;
294 295
     img {

+ 16 - 12
src/pages/homeIndex/index.vue Dosyayı Görüntüle

@@ -194,36 +194,40 @@ export default {
194 194
       if (this.isCreateOrg) {
195 195
         this.$router.push({ path: "/manageconsole/staff" });
196 196
       } else {
197
-        this.$toast({
198
-          message: "你尚未创建机构,请先创建机构"
199
-        });
197
+        // this.$toast({
198
+        //   message: "你尚未创建机构,请先创建机构"
199
+        // });
200
+        this.show1 = true;
200 201
       }
201 202
     },
202 203
     toRoleManage() {
203 204
       if (this.isCreateOrg) {
204 205
         this.$router.push({ path: "/manageconsole/role" });
205 206
       } else {
206
-        this.$toast({
207
-          message: "你尚未创建机构,请先创建机构"
208
-        });
207
+        // this.$toast({
208
+        //   message: "你尚未创建机构,请先创建机构"
209
+        // });
210
+        this.show1 = true;
209 211
       }
210 212
     },
211 213
     toConfigCenter() {
212 214
       if (this.isCreateOrg) {
213 215
         this.$router.push("/configurecenter");
214 216
       } else {
215
-        this.$toast({
216
-          message: "你尚未创建机构,请先创建机构"
217
-        });
217
+        // this.$toast({
218
+        //   message: "你尚未创建机构,请先创建机构"
219
+        // });
220
+        this.show1 = true;
218 221
       }
219 222
     },
220 223
     toOrgSetting() {
221 224
       if (this.isCreateOrg) {
222 225
         this.$router.push("/editorg?id=" + this.value1);
223 226
       } else {
224
-        this.$toast({
225
-          message: "你尚未创建机构,请先创建机构"
226
-        });
227
+        // this.$toast({
228
+        //   message: "你尚未创建机构,请先创建机构"
229
+        // });
230
+        this.show1 = true;
227 231
       }
228 232
     },
229 233
     changeOrg(value) {

+ 3 - 3
src/pages/main/dialog/ComputerDialog.vue Dosyayı Görüntüle

@@ -515,8 +515,8 @@
515 515
           if(res.data.state == 0){
516 516
             this.hasPermission = false
517 517
           }else if(res.data.state == 1){
518
-            if(this.record.id != "" && this.record.creater != 0){//有数据
519
-              if(this.record.creater == this.$store.getters.user.admin.id){//创建人是自己
518
+            if(this.record.id != "" && this.record.creator != 0){//有数据
519
+              if(this.record.creator == this.$store.getters.user.admin.id){//创建人是自己
520 520
                 if(res.data.data.is_has_modify == false){
521 521
                   this.hasPermission = false
522 522
                   this.showTxt = "你没有修改执行上机权限"
@@ -527,7 +527,7 @@
527 527
                   this.showTxt = "你没有修改他人执行上机权限"
528 528
                 }
529 529
               }
530
-            }else if(this.record.id == "" || this.record.creater == 0){
530
+            }else if(this.record.id == "" || this.record.creator == 0){
531 531
               if(res.data.data.is_has_create  == false){
532 532
                 this.hasPermission = false
533 533
                 this.showTxt = "你没有执行上机权限"

+ 3 - 3
src/pages/main/dialog/PlaneDialog.vue Dosyayı Görüntüle

@@ -345,8 +345,8 @@ export default {
345 345
         if(res.data.state == 0){
346 346
           this.hasPermission = false
347 347
         }else if(res.data.state == 1){
348
-          if(this.record.id != "" && this.record.creater != 0){//有数据
349
-            if(this.record.creater == this.$store.getters.user.admin.id){//创建人是自己
348
+          if(this.record.id != "" && this.record.creator != 0){//有数据
349
+            if(this.record.creator == this.$store.getters.user.admin.id){//创建人是自己
350 350
               if(res.data.data.is_has_modify == false){
351 351
                 this.hasPermission = false
352 352
                 this.showTxt = "你没有修改执行下机权限"
@@ -357,7 +357,7 @@ export default {
357 357
                 this.showTxt = "你没有修改他人执行下机权限"
358 358
               }
359 359
             }
360
-          }else if(this.record.id == "" || this.record.creater == 0){
360
+          }else if(this.record.id == "" || this.record.creator == 0){
361 361
             if(res.data.data.is_has_create  == false){
362 362
               this.hasPermission = false
363 363
               this.showTxt = "你没有执行下机权限"

+ 19 - 0
src/styles/reset.scss Dosyayı Görüntüle

@@ -160,3 +160,22 @@ input:-webkit-autofill {
160 160
 ::-webkit-scrollbar-corner {
161 161
   background-color: #eee;
162 162
 }
163
+
164
+@mixin iphonex-css {
165
+  padding-top: constant(safe-area-inset-top); //为导航栏+状态栏的高度 88px
166
+  padding-top: env(safe-area-inset-top); //为导航栏+状态栏的高度 88px
167
+  padding-left: constant(safe-area-inset-left); //如果未竖屏时为0
168
+  padding-left: env(safe-area-inset-left); //如果未竖屏时为0
169
+  padding-right: constant(safe-area-inset-right); //如果未竖屏时为0
170
+  padding-right: env(safe-area-inset-right); //如果未竖屏时为0
171
+  padding-bottom: constant(safe-area-inset-bottom); //为底下圆弧的高度 34px
172
+  padding-bottom: env(safe-area-inset-bottom); //为底下圆弧的高度 34px
173
+}
174
+
175
+@mixin iphonex-support {
176
+  @supports (bottom: constant(safe-area-inset-top)) or (bottom: env(safe-area-inset-top)) {
177
+    body.iphonex {
178
+      @include iphonex-css;
179
+    }
180
+  }
181
+}