浏览代码

调整登录页面去掉注册等信息,调整登录初始化页面为统计页面,统计页面改为首页

zhourj 1 周之前
父节点
当前提交
c6e437cbbb

二进制
src/assets/login/login-bg-01.png


二进制
src/assets/login/login-bg.png


+ 5 - 4
src/components/layouts/TabLayout.vue

@@ -14,7 +14,7 @@
       @change="changePage"
       @tabClick="tabCallBack"
       @edit="editPage">
-      <a-tab-pane :id="page.fullPath" :key="page.fullPath" v-for="page in pageList" :closable="!(page.meta.title=='首页')">
+      <a-tab-pane :id="page.fullPath" :key="page.fullPath" v-for="page in pageList" :closable="!(page.meta.title=='统计')">
         <span slot="tab" :pagekey="page.fullPath">{{ page.meta.title }}</span>
       </a-tab-pane>
     </a-tabs>
@@ -43,7 +43,7 @@
   import { CACHE_INCLUDED_ROUTES } from '@/store/mutation-types'
   import registerApps from "@/qiankun";
 
-  const indexKey = '/dashboard/analysis'
+  const indexKey = '/tj/sjtjModules'
 
   export default {
     name: 'TabLayout',
@@ -168,7 +168,7 @@
           fullPath: indexKey,
           meta: {
             icon: 'dashboard',
-            title: '首页'
+            title: '统计'
           }
         })
         this.linkList.splice(0, 0, indexKey)
@@ -182,7 +182,8 @@
         if (this.$route.path === indexKey) {
           document.title = projectTitle
         } else {
-          document.title = title + ' · ' + projectTitle
+          // document.title = title + ' · ' + projectTitle
+          document.title = projectTitle
         }
       },
       // update-end-author:sunjianlei date:20200120 for: 动态更改页面标题

+ 2 - 2
src/components/layouts/UserLayout.vue

@@ -128,8 +128,8 @@
 
   .main {
     position: absolute;
-    left:calc(100% - 600px);
-    top:calc(50% - 280px);
+    left:calc(100% - 650px);
+    top:calc(50% - 220px);
     //min-width: 260px;
     //width: 25%;
     //margin: 0 auto;

+ 1 - 1
src/components/tools/Breadcrumb.vue

@@ -26,7 +26,7 @@ export default {
       console.log('this.$route.matched', this.$route.matched)
 
       this.breadList = []
-      this.breadList.push({ name: 'dashboard-analysis', path: '/dashboard/analysis', meta: { title: '首页' } })
+      this.breadList.push({ name: 'dashboard-analysis', path: '/tj/sjtjModules', meta: { title: '统计' } })
 
       this.name = this.$route.name
       this.$route.matched.forEach((item) => {

+ 2 - 2
src/config/router.config.js

@@ -10,8 +10,8 @@ export const asyncRouterMap = [
     path: '/',
     name: 'dashboard',
     component: TabLayout,
-    meta: { title: '首页' },
-    redirect: '/dashboard/analysis',
+    meta: { title: '统计' },
+    redirect: '/tj/sjtjModules',
     children: [
 
       // // dashboard

+ 1 - 1
src/permission.js

@@ -55,7 +55,7 @@ router.beforeEach((to, from, next) => {
                 })
               } else {
                 next({
-                  path: '/dashboard/analysis'
+                  path: '/tj/sjtjModules'
                 })
               }
             }

+ 1 - 1
src/store/mutation-types.js

@@ -16,7 +16,7 @@ export const SYS_BUTTON_AUTH = 'SYS_BUTTON_AUTH'
 export const ENCRYPTED_STRING = 'ENCRYPTED_STRING'
 export const ENHANCE_PRE = 'enhance_'
 export const UI_CACHE_DB_DICT_DATA = 'UI_CACHE_DB_DICT_DATA'
-export const INDEX_MAIN_PAGE_PATH = '/dashboard/analysis'
+export const INDEX_MAIN_PAGE_PATH = '/tj/sjtjModules'
 export const OAUTH2_LOGIN_PAGE_PATH = '/oauth2-app/login'
 export const TENANT_ID = 'TENANT_ID'
 export const ONL_AUTH_FIELDS = 'ONL_AUTH_FIELDS'

+ 2 - 2
src/utils/util.js

@@ -89,8 +89,8 @@ export function generateIndexRouter(data) {
     name: 'dashboard',
     //component: () => import('@/components/layouts/BasicLayout'),
     component: resolve => require(['@/components/layouts/TabLayout'], resolve),
-    meta: { title: '首页' },
-    redirect: '/dashboard/analysis',
+    meta: { title: '统计' },
+    redirect: '/tj/sjtjModules',
     children: [
       ...generateChildRouters(data)
     ]

+ 12 - 12
src/views/user/Login.vue

@@ -8,16 +8,16 @@
           忘记密码
         </router-link>
       </a-form-model-item>-->
-      <a-form-item style="margin-top:5px">
-        <a-button size="large" style="background-color: rgb(24,144,255)"  type="primary"  htmlType="submit"  class="login-button"  :loading="loginBtn"  @click.stop.prevent="handleSubmit" :disabled="loginBtn">确定
+      <a-form-item style="margin-top:15px">
+        <a-button size="large" style="background-color: rgb(24,144,255)"  type="primary"  htmlType="submit"  class="login-button"  :loading="loginBtn"  @click.stop.prevent="handleSubmit" :disabled="loginBtn">登录
         </a-button>
-        <a-button size="large"  class="login-button">
-          <router-link :to="{ name: 'register'}" class="login-button" >
-            注册账户
-          </router-link>
-        </a-button>
-        <br>
-       <div align="center"><a href="/土地资产信息上报系统简明使用手册.pdf" target="_blank">操作指南(填报单位)</a></div>
+<!--        <a-button size="large"  class="login-button">-->
+<!--          <router-link :to="{ name: 'register'}" class="login-button" >-->
+<!--            注册账户-->
+<!--          </router-link>-->
+<!--        </a-button>-->
+<!--        <br>-->
+<!--       <div align="center"><a href="/土地资产信息上报系统简明使用手册.pdf" target="_blank">操作指南(填报单位)</a></div>-->
       </a-form-item>
 
     </a-form-model>
@@ -122,7 +122,7 @@ export default {
       //登录成功
       loginSuccess () {
 
-        this.$router.push({ path: "/dashboard/analysis" }).catch(()=>{
+        this.$router.push({ path: "/tj/sjtjModules" }).catch(()=>{
           console.log('登录跳转首页出错,这个错误从哪里来的')
         })
         this.$notification.success({
@@ -159,12 +159,12 @@ export default {
 <style lang="less" scoped>
   .user-layout-login {
     background: url(~@/assets/login/login-bg.png) no-repeat;
-    height: 560px;
+    height: 448px;
     width: 474px;
     //right:20%;
     background-size: cover;
     background-position: center;
-    padding-top: 158px ;
+    padding-top: 138px ;
     padding-left: 34px;
     label {
       font-size: 14px;

+ 1 - 1
src/views/user/third/JeecgThirdLoginMixin.js

@@ -183,7 +183,7 @@ export const JeecgThirdLoginMixin = {
       // update-begin- author:sunjianlei --- date:20190812 --- for: 登录成功后不解除禁用按钮,防止多次点击
       // this.loginBtn = false
       // update-end- author:sunjianlei --- date:20190812 --- for: 登录成功后不解除禁用按钮,防止多次点击
-      this.$router.push({ path: "/dashboard/analysis" }).catch(()=>{
+      this.$router.push({ path: "/tj/sjtjModules" }).catch(()=>{
         console.log('登录跳转首页出错,这个错误从哪里来的')
       })
       this.$notification.success({