File tree Expand file tree Collapse file tree 3 files changed +269
-47
lines changed Expand file tree Collapse file tree 3 files changed +269
-47
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ export function generateRouterMap (section) {
4949 var route = {
5050 name : child . name ,
5151 path : '/' + child . name ,
52+ hidden : child . hidden ,
5253 meta : {
5354 title : child . title ,
5455 name : child . name ,
5556 keepAlive : true ,
5657 icon : child . icon ,
5758 docHelp : child . docHelp ,
58- hidden : child . hidden ,
5959 permission : child . permission ,
6060 resourceType : child . resourceType ,
6161 params : child . params ? child . params : { } ,
@@ -69,13 +69,13 @@ export function generateRouterMap (section) {
6969 children : [
7070 {
7171 path : '/' + child . name + '/:id' ,
72+ hidden : child . hidden ,
7273 meta : {
7374 title : child . title ,
7475 name : child . name ,
7576 keepAlive : true ,
7677 icon : child . icon ,
7778 docHelp : child . docHelp ,
78- hidden : child . hidden ,
7979 permission : child . permission ,
8080 resourceType : child . resourceType ,
8181 params : child . params ? child . params : { } ,
@@ -96,15 +96,15 @@ export function generateRouterMap (section) {
9696 map . children . push ( {
9797 name : action . api ,
9898 icon : child . icon ,
99+ hidden : true ,
99100 path : '/action/' + action . api ,
100101 meta : {
101102 title : child . title ,
102103 name : child . name ,
103104 keepAlive : true ,
104105 permission : [ action . api ]
105106 } ,
106- component : action . component ,
107- hidden : true
107+ component : action . component
108108 } )
109109 } )
110110 }
Original file line number Diff line number Diff line change 1717
1818<template >
1919 <div >
20- <a-card class =" mobile- breadcrumb" >
20+ <a-card class =" breadcrumb-card " >
2121 <a-row >
2222 <a-col :span =" 14" >
2323 <breadcrumb style =" padding-top : 6px " />
@@ -402,7 +402,8 @@ export default {
402402 // handle error
403403 this .$notification .error ({
404404 message: ' Request Failed' ,
405- description: error .response .headers [' x-description' ]
405+ description: error .response .headers [' x-description' ],
406+ duration: 0
406407 })
407408 if (error .response .status === 431 ) {
408409 this .$router .push ({ path: ' /exception/404' })
@@ -514,7 +515,7 @@ export default {
514515 this .fetchData ()
515516 } else if (result .jobstatus === 2 ) {
516517 this .fetchData ()
517- } else {
518+ } else if ( result . jobstatus === 0 ) {
518519 this .$message
519520 .loading (this .$t (action .label ) + ' in progress for ' + this .resource .name , 3 )
520521 .then (() => this .pollActionCompletion (jobId, action))
@@ -636,7 +637,7 @@ export default {
636637
637638<style scoped>
638639
639- .mobile- breadcrumb {
640+ .breadcrumb-card {
640641 margin-left : -24px ;
641642 margin-right : -24px ;
642643 margin-top : -16px ;
You can’t perform that action at this time.
0 commit comments