zxr 3 роки тому
батько
коміт
5d1bedbf08

+ 1 - 1
src/App.vue

@@ -14,7 +14,7 @@ export default  {
                 return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
             }
         }
-    }
+    },
 }
 </script>
 

+ 4 - 1
src/layout/components/AppMain.vue

@@ -114,7 +114,6 @@ export default {
   created() {
     this.timer = null;
     this.startTime();
-     this.$forceUpdate();
   },
   computed: {
     cachedViews() {
@@ -124,6 +123,10 @@ export default {
       return this.$route.path;
     }
   },
+  mounted(){
+     // window.location.reload()
+     this.$forceUpdate();
+  },
   methods: {
     showfun() {
       this.open = false;

+ 3 - 2
src/layout/components/Sidebar/index.vue

@@ -71,13 +71,14 @@ export default {
       this.$route.query.name = "/" + this.$route.path.split("/")[1];
       this.sidebarRoutersfun();
     }
+    // window.location.reload()
   },
   methods: {
     sidebarRoutersfun() {
       this.sidebarRouters.map(item => {
-        console.log(this.$route.query.name);
+        // console.log(this.$route.query.name);
         if (item.path == this.$route.query.name) {
-          console.log(item);
+          // console.log(item);
           this.routs.push(item);
           if (this.routs[0].children[0].children) {
             this.defaultpath=[this.routs[0].children[0].path];

+ 10 - 9
src/views/login.vue

@@ -6,7 +6,7 @@
       :rules="loginRules"
       class="login-form"
     >
-      <img src="../images/dibu1.png" alt="" class="img" />
+      <!-- <img src="../images/dibu1.png" alt="" class="img" /> -->
       <!-- <h3 class="title">智能督察管理平台</h3> -->
       <el-form-item prop="username" >
         <el-input
@@ -193,7 +193,7 @@ export default {
   justify-content: center;
   align-items: center;
   height: 100%;
-  background: url("../images/bg.jpg") center no-repeat;
+  background: url("../assets/images/背景-denglu.png") center no-repeat;
   // background-size: cover;
 }
 .title {
@@ -205,14 +205,14 @@ export default {
 .login-form {
   position: relative;
   border-radius: 6px;
-  width: 660px;
-  height: 551px;
-  padding: 203px 56px 50px 79px;
-  background: url("../images/login.png") no-repeat 0px 11px;
+  width: 1059px;
+  height: 604px;
+  padding: 180px 56px 50px 79px;
+  background: url("../assets/images/边框.png") no-repeat ;
   background-size: cover;
   .el-input {
     height: 38px;
-    margin-left: 58px;
+    margin-left: 510px;
     margin-right: 63px;
     input {
       height: 47px;
@@ -224,6 +224,7 @@ export default {
     width: 14px;
     margin-left: 2px;
     margin-top:4px;
+    color: #01CFFF;
   }
 }
 .el-form-item__error{
@@ -263,8 +264,8 @@ export default {
   background-color: #0384ea;
   font-size: 20px;
   font-weight: 700;
-  margin-top: 34px;
-  margin-left: 58px;
+  margin-top: 30px;
+  margin-left: 510px;
   margin-right: 63px;
   width: 390px !important;
 }

+ 6 - 5
src/views/taishi/index.vue

@@ -267,7 +267,7 @@
               </tr>
             </table>
 
-            <table class="center4_s" style="margin-top: 2%">
+            <table class="center4_s" style="margin-top: 1.3%">
               <tr>
                 <td rowspan="2">
                   <img src="../../assets/images/cheliangz.png" alt />
@@ -283,7 +283,7 @@
               </tr>
             </table>
 
-            <table class="center4_s" style="margin-top: 2%">
+            <table class="center4_s" style="margin-top: 1.3%">
               <tr>
                 <td rowspan="2">
                   <img src="../../assets/images/cheliangz.png" alt />
@@ -299,7 +299,7 @@
               </tr>
             </table>
 
-            <table class="center4_y" style="margin-top: 2%">
+            <table class="center4_y" style="margin-top: 1.5%">
               <tr>
                 <td>
                   <img src="../../assets/images/cheliangq.png" alt />
@@ -315,7 +315,7 @@
               </tr>
             </table>
 
-            <table class="center4_y center4_y2" style="margin-top: 2%">
+            <table class="center4_y center4_y2" style="margin-top: 1.5%">
               <tr>
                 <td>
                   <img src="../../assets/images/cheliangq.png" alt />
@@ -1086,7 +1086,7 @@ export default {
     };
   },
   created() {
-    this.$forceUpdate();
+    
     //大队人员在位数据
     zaiweipeople().then((res) => {
       if (res.code == 200) {
@@ -1153,6 +1153,7 @@ export default {
     this.startTime();
   },
   mounted() {
+    this.$forceUpdate();
     //各单位在位情况
     gedanweizaiweiqingkaung().then((res) => {
       if (res.code == 200) {