zhuliu 9 月之前
父節點
當前提交
7693026765

+ 5 - 0
src/router/index.js

@@ -3,6 +3,9 @@ import VueRouter from 'vue-router'
 import Store from '../store'
 import Cookies from 'js-cookie'
 
+import NProgress from 'nprogress' // Progress 进度条
+import 'nprogress/nprogress.css'// Progress 进度条样式
+
 import {stringifyQuery,parseQuery} from '@/utils/query'
 
 Vue.use(VueRouter)
@@ -287,6 +290,7 @@ const router = new VueRouter({
 })
 
 router.beforeEach((to, from, next) => {
+  NProgress.start()
   if (to.meta.title) {
     document.title = to.meta.title;
   }
@@ -339,6 +343,7 @@ function routeExists(array, path, parentPath) {
 
 // 在你的路由配置文件中
 router.afterEach((to, from) => {
+  NProgress.done()
   var sign = routeExists(backStageManageRouterItem, to.path)
   if (!sign) {
     return

+ 1 - 1
src/views/backStageManage/application/apply/components/apply.vue

@@ -18,7 +18,7 @@
                 v-loading="loading"
                 :data="tableData"
                 header-row-class-name="custom-table-header"
-                height="calc(100% - 0)"
+                height="calc(100% - 0px)"
             >
             <el-table-column label="应用名称" align="" show-overflow-tooltip>
                 <template slot-scope="scope">

+ 1 - 1
src/views/backStageManage/application/vision/vision.vue

@@ -35,7 +35,7 @@
             :data="tableData"
             row-key="id"
             style="width: 100%"
-            height="calc(100% - 0)"
+            height="calc(100% - 0px)"
             v-loading="loading"
             @sort-change="sortChange"
         >

+ 1 - 1
src/views/backStageManage/examine/examine/components/examine.vue

@@ -22,7 +22,7 @@
                 :data="tableData"
                 row-key="id"
                 style="width: 100%"
-                height="calc(100% - 0)"
+                height="calc(100% - 0px)"
                 v-loading="loading"
                 @sort-change="sortChange"
                 @selection-change="handleSelectionChange"

+ 1 - 1
src/views/backStageManage/examine/examine/components/view/table.vue

@@ -6,7 +6,7 @@
         :data="tableData"
         row-key="id"
         style="width: 100%"
-        height="calc(100% - 0)"
+        height="calc(100% - 0px)"
         v-loading="loading"
         @sort-change="sortChange"
         @selection-change="handleSelectionChange"