Переглянути джерело

--需要解决 背景图片路径 问题--

哥哥玩剑魂呢 3 роки тому
батько
коміт
12d2c6fc21
30 змінених файлів з 69 додано та 66 видалено
  1. 2 2
      src/main.js
  2. 2 2
      src/styles/index.scss
  3. 1 1
      src/views/attendance/attenadenChange.vue
  4. 1 1
      src/views/dashboard/components/IntegralCreateApplicationBtn.vue
  5. 1 1
      src/views/dashboard/components/IntegralCreateReviewBtn.vue
  6. 1 1
      src/views/dashboard/components/PointAutoCom.vue
  7. 1 1
      src/views/dashboard/components/TaskCreateBtn.vue
  8. 10 10
      src/views/dashboard/components/anniu.vue
  9. 2 2
      src/views/dashboard/index.vue
  10. 1 1
      src/views/integral/PointAutoCreateBtn.vue
  11. 5 5
      src/views/layout/components/Navbar.vue
  12. 3 3
      src/views/layout/components/Sidebar/index.vue
  13. 1 1
      src/views/login/create_company.vue
  14. 3 3
      src/views/login/forgetPwd.vue
  15. 3 3
      src/views/login/index.vue
  16. 3 3
      src/views/login/index1.vue
  17. 3 3
      src/views/login/index2.vue
  18. 3 0
      src/views/login/index3.vue
  19. 3 3
      src/views/login/invite_new_company.vue
  20. 3 3
      src/views/login/reg.vue
  21. 1 1
      src/views/login/resetPwd.vue
  22. 1 1
      src/views/performance/TaskRelationBtn.vue
  23. 1 1
      src/views/setting/integral_rule.vue
  24. 2 2
      src/views/statistics_new/department_statistics.vue
  25. 2 2
      src/views/statistics_new/dept_rank.vue
  26. 2 2
      src/views/statistics_new/individual_statistics.vue
  27. 2 2
      src/views/statistics_new/integral_statistics.vue
  28. 2 2
      src/views/statistics_new/manager_statistics.vue
  29. 2 2
      src/views/statistics_new/total_rank.vue
  30. 2 2
      src/views/workbench/workbench_blank.vue

+ 2 - 2
src/main.js

@@ -23,8 +23,8 @@ import jtoken from '@/utils/Jtoken'
 
 
 // import wx from 'weixin-js-sdk';
-import VConsole from 'vconsole'
-new VConsole()
+// import VConsole from 'vconsole'
+// new VConsole()
 
 // 头像
 import userImage from '@/components/user_image'

+ 2 - 2
src/styles/index.scss

@@ -482,7 +482,7 @@ code {
     width: 110px;
     height: 110px;
     margin: 22px auto 16px;
-    background: url("static/images/nodata_default.png") no-repeat center;
+    background: url(/images/nodata_default.png) no-repeat center;
     background-size: 99%;
   }
   & .noperson {
@@ -490,7 +490,7 @@ code {
     width: 110px;
     height: 110px;
     margin: 22px auto 16px;
-    background: url("static/images/noperson_default.png") no-repeat center;
+    background: url(/images/noperson_default.png) no-repeat center;
     background-size: 99%;
   }
   & .title {

+ 1 - 1
src/views/attendance/attenadenChange.vue

@@ -1368,7 +1368,7 @@ export default {
   margin: 0 auto;
   width: 40px;
   height: 40px;
-  background-image: url(static/images/jflr.png);
+  background-image: url(/images/jflr.png);
   background-size: 100%;
 }
 .integral-create-review-btn .card-panel-description {

+ 1 - 1
src/views/dashboard/components/IntegralCreateApplicationBtn.vue

@@ -784,7 +784,7 @@ export default {
   margin: 0 auto;
   width: 40px;
   height: 40px;
-  background-image: url(static/images/jfsq.png);
+  background-image: url(/images/jfsq.png);
   background-size: 100%;
 }
 .integral-create-application-btn .card-panel-description {

+ 1 - 1
src/views/dashboard/components/IntegralCreateReviewBtn.vue

@@ -1412,7 +1412,7 @@
     margin: 0 auto;
     width: 40px;
     height: 40px;
-    background-image: url(static/images/jflr.png);
+    background-image: url(/images/jflr.png);
     background-size: 100%;
   }
   .integral-create-review-btn .card-panel-description {

+ 1 - 1
src/views/dashboard/components/PointAutoCom.vue

@@ -92,7 +92,7 @@
     margin: 0 auto;
     width: 40px;
     height: 40px;
-    background-image: url(static/images/jfsq.png);
+    background-image: url(/images/jfsq.png);
     background-size: 100%;
   }
   .integral-create-application-btn .card-panel-description {

+ 1 - 1
src/views/dashboard/components/TaskCreateBtn.vue

@@ -721,7 +721,7 @@
     margin: 0 auto;
     width: 40px;
     height: 40px;
-    background-image: url(static/images/fbrw.png);
+    background-image: url(/images/fbrw.png);
     background-size: 100%;
   }
   .integral-create-task-btn .card-panel-description {

+ 10 - 10
src/views/dashboard/components/anniu.vue

@@ -296,7 +296,7 @@
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/sqtb.png);
+      background-image: url(/images/sqtb.png);
       background-size: 100%;
     }
 
@@ -304,7 +304,7 @@
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/jfsq.png);
+      background-image: url(/images/jfsq.png);
       background-size: 100%;
     }
 
@@ -312,7 +312,7 @@
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/jflr.png);
+      background-image: url(/images/jflr.png);
       background-size: 100%;
     }
 
@@ -320,7 +320,7 @@
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/xsrw.png);
+      background-image: url(/images/xsrw.png);
       background-size: 100%;
     }
 
@@ -328,7 +328,7 @@
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/pkjz.png);
+      background-image: url(/images/pkjz.png);
       background-size: 100%;
     }
 
@@ -336,7 +336,7 @@
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/fbrw.png);
+      background-image: url(/images/fbrw.png);
       background-size: 100%;
     }
 
@@ -344,14 +344,14 @@
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/setting.png);
+      background-image: url(/images/setting.png);
       background-size: 100%;
     }
     .tpzs9 {
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/review.png);
+      background-image: url(/images/review.png);
       background-size: 100%;
     }
 
@@ -360,14 +360,14 @@
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/iny.png);
+      background-image: url(/images/iny.png);
       background-size: 100%;
     }
     .tpzs11 {
       margin: 0 auto;
       width: 40px;
       height: 40px;
-      background-image: url(static/images/data.png);
+      background-image: url(/images/data.png);
       background-size: 100%;
     }
     .card-panel-icon-wrapper {

+ 2 - 2
src/views/dashboard/index.vue

@@ -2156,7 +2156,7 @@ box-sizing: content-box;
     width: 110px;
     height: 110px;
     margin: 22px auto 16px;
-    background: url("static/images/nodata_default.png") no-repeat center;
+    background: url(/images/nodata_default.png) no-repeat center;
     background-size: 99%;
   }
 
@@ -2165,7 +2165,7 @@ box-sizing: content-box;
     width: 110px;
     height: 110px;
     margin: 22px auto 16px;
-    background: url("static/images/noperson_default.png") no-repeat center;
+    background: url(/images/noperson_default.png) no-repeat center;
     background-size: 99%;
   }
 

+ 1 - 1
src/views/integral/PointAutoCreateBtn.vue

@@ -1146,7 +1146,7 @@ export default {
   margin: 0 auto;
   width: 40px;
   height: 40px;
-  background-image: url(static/images/jflr.png);
+  background-image: url(/images/jflr.png);
   background-size: 100%;
 }
 .integral-create-review-btn .card-panel-description {

+ 5 - 5
src/views/layout/components/Navbar.vue

@@ -1133,13 +1133,13 @@
 
   .totalScore {
     padding-left: 25px;
-    background: url('static/images/totalScore.png') no-repeat left center;
+    background: url(/images/totalScore.png) no-repeat left center;
     background-size: 18px 17px;
   }
 
   .course {
     padding-left: 25px;
-    background: url('static/images/book.png') no-repeat left center;
+    background: url(/images/book.png) no-repeat left center;
     background-size: 20px 18px;
   }
 
@@ -1158,7 +1158,7 @@
     .commit-comment-btn {
       display: inline-block;
       padding-left: 30px;
-      background-image: url(static/images/comment.png);
+      background-image: url(/images/comment.png);
       background-repeat: no-repeat;
       background-position: left center;
       color: #fff;
@@ -1168,7 +1168,7 @@
     .logout-btn {
       display: inline-block;
       padding-left: 30px;
-      background-image: url(static/images/logout.png);
+      background-image: url(/images/logout.png);
       background-repeat: no-repeat;
       background-position: left center;
       color: #fff;
@@ -1303,7 +1303,7 @@
     content: "123";
     width: 12px;
     height: 12px;
-    background: url(static/images/angle.png) no-repeat center;
+    background: url(/images/angle.png) no-repeat center;
     background-size: 12px;
     color: rgba(0, 0, 0, 0)
   }

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

@@ -140,14 +140,14 @@ $logoUrl: 'static/images/logo.png';
 }
 
 .hideSidebar .logo {
-  // background-image: url(static/images/logo_icon.png);
+  // background-image: url(/static/images/logo_icon.png);
   background-size: 80%;
 }
 // .scrollbar-wrapper .el-menu:before{
 //   content: " ";
 //   width: 100%;
 //   height: 60px;
-//   background-image: url(static/images/logo.png);
+//   background-image: url(/static/images/logo.png);
 //   background-repeat: no-repeat;
 //   background-position: center;
 // }
@@ -156,7 +156,7 @@ $logoUrl: 'static/images/logo.png';
   background: #5b8bf7;
 }
 // .hideSidebar .el-menu:before{
-//   background-image: url(static/images/logo_icon.png);
+//   background-image: url(/static/images/logo_icon.png);
 //   background-size: 80%;
 // }
 </style>

+ 1 - 1
src/views/login/create_company.vue

@@ -188,7 +188,7 @@ export default {
   width:518px;
   height:614px;
   float:left;
-  background:url(static/images/login_bg.jpg) no-repeat;
+  background:url(/images/login_bg.jpg) no-repeat;
   background-size:cover;
   overflow:hidden;
 }

+ 3 - 3
src/views/login/forgetPwd.vue

@@ -283,7 +283,7 @@
   .login-container .login_box .login_ad{
     width: 482px;
     height: 552px;
-    background: url(static/images/login_bg_20200603.png) no-repeat;
+    background: url(/images/login_bg_20200603.png) no-repeat;
     background-size: cover;
   }
   .login-container .login_box .login_ad img{
@@ -312,13 +312,13 @@
   .login-container .login_box .login_type_icon .login_default{
     width:96px;
     height:96px;
-    background:url(static/images/login_default.jpg) no-repeat;
+    background:url(/images/login_default.jpg) no-repeat;
     background-size:cover;
   }
   .login-container .login_box .login_type_icon .login_code{
     width:96px;
     height:96px;
-    background:url(static/images/login_code.jpg) no-repeat;
+    background:url(/images/login_code.jpg) no-repeat;
     background-size:cover;
   }
   .login-container .login_box .login_input {

+ 3 - 3
src/views/login/index.vue

@@ -509,7 +509,7 @@
   .login-container .login_box .login_ad {
     width: 482px;
     height: 552px;
-    background: url(static/images/login_bg_20200603.png) no-repeat;
+    background: url(/images/login_bg_20200603.png) no-repeat;
     background-size: cover;
   }
 
@@ -542,14 +542,14 @@
   .login-container .login_box .login_type_icon .login_default {
     width: 96px;
     height: 96px;
-    background: url(static/images/login_default.jpg) no-repeat;
+    background: url(/images/login_default.jpg) no-repeat;
     background-size: cover;
   }
 
   .login-container .login_box .login_type_icon .login_code {
     width: 96px;
     height: 96px;
-    background: url(static/images/login_code.jpg) no-repeat;
+    background: url(/images/login_code.jpg) no-repeat;
     background-size: cover;
   }
 

+ 3 - 3
src/views/login/index1.vue

@@ -244,7 +244,7 @@
   .login-container .login_box .login_ad {
     width: 482px;
     height: 552px;
-    background: url(static/images/login_bg_20200603.png) no-repeat;
+    background: url(/images/login_bg_20200603.png) no-repeat;
     background-size: cover;
   }
 
@@ -277,14 +277,14 @@
   .login-container .login_box .login_type_icon .login_default {
     width: 96px;
     height: 96px;
-    background: url(static/images/login_default.jpg) no-repeat;
+    background: url(/images/login_default.jpg) no-repeat;
     background-size: cover;
   }
 
   .login-container .login_box .login_type_icon .login_code {
     width: 96px;
     height: 96px;
-    background: url(static/images/login_code.jpg) no-repeat;
+    background: url(/images/login_code.jpg) no-repeat;
     background-size: cover;
   }
 

+ 3 - 3
src/views/login/index2.vue

@@ -202,7 +202,7 @@
   .login-container .login_box .login_ad {
     width: 482px;
     height: 552px;
-    background: url(static/images/login_bg_20200603.png) no-repeat;
+    background: url(/images/login_bg_20200603.png) no-repeat;
     background-size: cover;
   }
 
@@ -235,14 +235,14 @@
   .login-container .login_box .login_type_icon .login_default {
     width: 96px;
     height: 96px;
-    background: url(static/images/login_default.jpg) no-repeat;
+    background: url(/images/login_default.jpg) no-repeat;
     background-size: cover;
   }
 
   .login-container .login_box .login_type_icon .login_code {
     width: 96px;
     height: 96px;
-    background: url(static/images/login_code.jpg) no-repeat;
+    background: url(/images/login_code.jpg) no-repeat;
     background-size: cover;
   }
 

+ 3 - 0
src/views/login/index3.vue

@@ -72,6 +72,9 @@ export default {
                 }
               })
             }else if(add == 1){
+              localStorage.removeItem('SET_EMPLOYEE_MAP')
+              localStorage.removeItem('dept_tree')
+              localStorage.removeItem('site_info')
               wxAuth(true);
             }
           }

+ 3 - 3
src/views/login/invite_new_company.vue

@@ -93,7 +93,7 @@
     width:518px;
     height:614px;
     float:left;
-    background:url(static/images/login_bg.jpg) no-repeat;
+    background:url(/images/login_bg.jpg) no-repeat;
     background-size:cover;
     overflow:hidden;
   }
@@ -123,13 +123,13 @@
   .login-container .login_box .login_type_icon .login_default{
     width:96px;
     height:96px;
-    background:url(static/images/login_default.jpg) no-repeat;
+    background:url(/images/login_default.jpg) no-repeat;
     background-size:cover;
   }
   .login-container .login_box .login_type_icon .login_code{
     width:96px;
     height:96px;
-    background:url(static/images/login_code.jpg) no-repeat;
+    background:url(/images/login_code.jpg) no-repeat;
     background-size:cover;
   }
   .login-container .login_box .login_input{

+ 3 - 3
src/views/login/reg.vue

@@ -368,7 +368,7 @@
   .login-container .login_box .login_ad {
     width: 482px;
     height: 552px;
-    background: url(static/images/login_bg_20200603.png) no-repeat;
+    background: url(/images/login_bg_20200603.png) no-repeat;
     background-size: cover;
   }
 
@@ -399,13 +399,13 @@
   .login-container .login_box .login_type_icon .login_default{
     width:96px;
     height:96px;
-    background:url(static/images/login_default.jpg) no-repeat;
+    background:url(/images/login_default.jpg) no-repeat;
     background-size:cover;
   }
   .login-container .login_box .login_type_icon .login_code{
     width:96px;
     height:96px;
-    background:url(static/images/login_code.jpg) no-repeat;
+    background:url(/images/login_code.jpg) no-repeat;
     background-size:cover;
   }
   .login-container .login_box .login_input{

+ 1 - 1
src/views/login/resetPwd.vue

@@ -171,7 +171,7 @@ $cursor: #fff;
 
 /* reset element-ui css */
 .login-container {
-  background-image: url(static/images/login-bg.jpg);
+  background-image: url(/images/login-bg.jpg);
   background-repeat: no-repeat;
   background-size: 100% 100%;
 

+ 1 - 1
src/views/performance/TaskRelationBtn.vue

@@ -1035,7 +1035,7 @@ export default {
   margin: 0 auto;
   width: 40px;
   height: 40px;
-  background-image: url(static/images/jflr.png);
+  background-image: url(/images/jflr.png);
   background-size: 100%;
 }
 .integral-create-review-btn .card-panel-description {

+ 1 - 1
src/views/setting/integral_rule.vue

@@ -314,7 +314,7 @@ export default {
     width: 110px;
     height: 110px;
     margin: 22px auto 16px;
-    background:url("static/images/nodata_default.png") no-repeat center;
+    background:url(/images/nodata_default.png) no-repeat center;
     background-size:99%;
     }
     .title{

+ 2 - 2
src/views/statistics_new/department_statistics.vue

@@ -653,7 +653,7 @@
     width: 110px;
     height: 110px;
     margin: 22px auto 16px;
-    background: url("static/images/nodata_default.png") no-repeat center;
+    background: url(/images/nodata_default.png) no-repeat center;
     background-size: 99%;
   }
 
@@ -662,7 +662,7 @@
     width: 110px;
     height: 110px;
     margin: 22px auto 16px;
-    background: url("static/images/noperson_default.png") no-repeat center;
+    background: url(/images/noperson_default.png) no-repeat center;
     background-size: 99%;
   }
 

+ 2 - 2
src/views/statistics_new/dept_rank.vue

@@ -1060,7 +1060,7 @@ export default {
   width: 110px;
   height: 110px;
   margin: 22px auto 16px;
-  /* background:url("static/images/nodata_default.png") no-repeat center; */
+  /* background:url(/images/nodata_default.png) no-repeat center; */
   background-size: 99%;
 }
 .noperson {
@@ -1069,7 +1069,7 @@ export default {
   height: 110px;
   line-height: none;
   margin: 22px auto 16px;
-  background: url("static/images/noperson_default.png") no-repeat center;
+  background: url(/images/noperson_default.png) no-repeat center;
   background-size: 99%;
 }
 .title {

+ 2 - 2
src/views/statistics_new/individual_statistics.vue

@@ -941,7 +941,7 @@ export default {
   width: 110px;
   height: 110px;
   margin: 22px auto 16px;
-  background: url("static/images/nodata_default.png") no-repeat center;
+  background: url(/images/nodata_default.png) no-repeat center;
   background-size: 99%;
 }
 
@@ -950,7 +950,7 @@ export default {
   width: 110px;
   height: 110px;
   margin: 22px auto 16px;
-  background: url("static/images/noperson_default.png") no-repeat center;
+  background: url(/images/noperson_default.png) no-repeat center;
   background-size: 99%;
 }
 

+ 2 - 2
src/views/statistics_new/integral_statistics.vue

@@ -631,7 +631,7 @@ export default {
   width: 110px;
   height: 110px;
   margin: 22px auto 16px;
-  /* background:url("static/images/nodata_default.png") no-repeat center; */
+  /* background:url(/images/nodata_default.png) no-repeat center; */
   background-size: 99%;
 }
 .noperson {
@@ -640,7 +640,7 @@ export default {
   height: 110px;
   line-height: none;
   margin: 22px auto 16px;
-  background: url("static/images/noperson_default.png") no-repeat center;
+  background: url(/images/noperson_default.png) no-repeat center;
   background-size: 99%;
 }
 .title {

+ 2 - 2
src/views/statistics_new/manager_statistics.vue

@@ -852,7 +852,7 @@ export default {
   width: 110px;
   height: 110px;
   margin: 22px auto 16px;
-  /* background:url("static/images/nodata_default.png") no-repeat center; */
+  /* background:url(/images/nodata_default.png) no-repeat center; */
   background-size: 99%;
 }
 .noperson {
@@ -861,7 +861,7 @@ export default {
   height: 110px;
   line-height: none;
   margin: 22px auto 16px;
-  background: url("static/images/noperson_default.png") no-repeat center;
+  background: url(/images/noperson_default.png) no-repeat center;
   background-size: 99%;
 }
 .title {

+ 2 - 2
src/views/statistics_new/total_rank.vue

@@ -544,7 +544,7 @@ export default {
   width: 110px;
   height: 110px;
   margin: 22px auto 16px;
-  /* background:url("static/images/nodata_default.png") no-repeat center; */
+  /* background:url(/images/nodata_default.png) no-repeat center; */
   background-size: 99%;
 }
 .noperson {
@@ -553,7 +553,7 @@ export default {
   height: 110px;
   line-height: none;
   margin: 22px auto 16px;
-  background: url('static/images/noperson_default.png') no-repeat center;
+  background: url(/images/noperson_default.png) no-repeat center;
   background-size: 99%;
 }
 .title {

+ 2 - 2
src/views/workbench/workbench_blank.vue

@@ -119,11 +119,11 @@ export default {
   }
   // .android{
   //   margin-right:56px;
-  //   background: url(static/images/android_code.jpg) no-repeat top;
+  //   background: url(/static/images/android_code.jpg) no-repeat top;
   //   background-size: 99%;
   // }
   // .ios{
-  //   background: url(static/images/ios_code.jpg) no-repeat top;
+  //   background: url(/static/images/ios_code.jpg) no-repeat top;
   //   background-size: 99%;
   // }
   .function {