zhuliu hace 9 meses
padre
commit
d59017c78e

+ 4 - 0
src/assets/css/layout.less

@@ -124,4 +124,8 @@
 
 .pointer_events_none{
   pointer-events:none !important;
+}
+
+.notify_overlap{
+  bottom: 16px !important;
 }

+ 12 - 5
src/router/index.js

@@ -11,7 +11,11 @@ import {stringifyQuery,parseQuery} from '@/utils/query'
 Vue.use(VueRouter)
 
 const originalPush = VueRouter.prototype.push
-VueRouter.prototype.push = function push(location) {
+// VueRouter.prototype.push = function push(location) {
+//   return originalPush.call(this, location).catch(err => err)
+// }
+VueRouter.prototype.push = function push(location, onResolve, onReject) {
+  if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
   return originalPush.call(this, location).catch(err => err)
 }
 const routes = [
@@ -338,9 +342,12 @@ router.beforeEach((to, from, next) => {
     document.title = to.meta.title;
   }
   if (to.path == '/administrator/login'|| routeExists(routes,to.path) || to.meta.notLogin) {
-    Cookies.remove("token")
-    localStorage.removeItem('vuex')
-    localStorage.removeItem('showMessage')
+    if(to.path == '/administrator/login'){
+      Cookies.remove("token")
+      Store.commit('SET_PERMISSION',null)
+      localStorage.removeItem('vuex')
+      localStorage.removeItem('showMessage')
+    }
     next()
   }
   else {
@@ -353,7 +360,7 @@ router.beforeEach((to, from, next) => {
         next({ name: 'Administrator_login' })
         break;
       default:
-        if(Store.getters.permission === null){
+        if(Store.getters.permission === null && from.path == '/administrator/login'){
           Store.dispatch('getPersonPermission').then(response=>{
             var permission = response.data
             // if(permission.length>0){}

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

@@ -138,7 +138,7 @@ const defaultColumn = [
         width:'150px',
     },
     {
-        field:'auditResultTime',
+        field:'handleTime',
         name:'审核时间',
         ifSort:false,
         width:'180px',
@@ -271,7 +271,7 @@ export default {
         this.$router.push({ 
             path: '/administrator/versionDetail', 
             query: {
-                id: row.id
+                id: row.versionId
             }
         });
     },

+ 1 - 1
src/views/backStageManage/login/index.vue

@@ -173,7 +173,7 @@ export default {
               Storage.setStr('password', this.form.password)
               Storage.setStr('phoneNum', this.form.phoneNum)
               this.$message.success('登录成功')
-              this.$router.replace(
+              this.$router.push(
                 {
                   path:'/administrator/home',
                 }