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) {
49
49
var route = {
50
50
name : child . name ,
51
51
path : '/' + child . name ,
52
+ hidden : child . hidden ,
52
53
meta : {
53
54
title : child . title ,
54
55
name : child . name ,
55
56
keepAlive : true ,
56
57
icon : child . icon ,
57
58
docHelp : child . docHelp ,
58
- hidden : child . hidden ,
59
59
permission : child . permission ,
60
60
resourceType : child . resourceType ,
61
61
params : child . params ? child . params : { } ,
@@ -69,13 +69,13 @@ export function generateRouterMap (section) {
69
69
children : [
70
70
{
71
71
path : '/' + child . name + '/:id' ,
72
+ hidden : child . hidden ,
72
73
meta : {
73
74
title : child . title ,
74
75
name : child . name ,
75
76
keepAlive : true ,
76
77
icon : child . icon ,
77
78
docHelp : child . docHelp ,
78
- hidden : child . hidden ,
79
79
permission : child . permission ,
80
80
resourceType : child . resourceType ,
81
81
params : child . params ? child . params : { } ,
@@ -96,15 +96,15 @@ export function generateRouterMap (section) {
96
96
map . children . push ( {
97
97
name : action . api ,
98
98
icon : child . icon ,
99
+ hidden : true ,
99
100
path : '/action/' + action . api ,
100
101
meta : {
101
102
title : child . title ,
102
103
name : child . name ,
103
104
keepAlive : true ,
104
105
permission : [ action . api ]
105
106
} ,
106
- component : action . component ,
107
- hidden : true
107
+ component : action . component
108
108
} )
109
109
} )
110
110
}
Original file line number Diff line number Diff line change 17
17
18
18
<template >
19
19
<div >
20
- <a-card class =" mobile- breadcrumb" >
20
+ <a-card class =" breadcrumb-card " >
21
21
<a-row >
22
22
<a-col :span =" 14" >
23
23
<breadcrumb style =" padding-top : 6px " />
@@ -402,7 +402,8 @@ export default {
402
402
// handle error
403
403
this .$notification .error ({
404
404
message: ' Request Failed' ,
405
- description: error .response .headers [' x-description' ]
405
+ description: error .response .headers [' x-description' ],
406
+ duration: 0
406
407
})
407
408
if (error .response .status === 431 ) {
408
409
this .$router .push ({ path: ' /exception/404' })
@@ -514,7 +515,7 @@ export default {
514
515
this .fetchData ()
515
516
} else if (result .jobstatus === 2 ) {
516
517
this .fetchData ()
517
- } else {
518
+ } else if ( result . jobstatus === 0 ) {
518
519
this .$message
519
520
.loading (this .$t (action .label ) + ' in progress for ' + this .resource .name , 3 )
520
521
.then (() => this .pollActionCompletion (jobId, action))
@@ -636,7 +637,7 @@ export default {
636
637
637
638
<style scoped>
638
639
639
- .mobile- breadcrumb {
640
+ .breadcrumb-card {
640
641
margin-left : -24px ;
641
642
margin-right : -24px ;
642
643
margin-top : -16px ;
You can’t perform that action at this time.
0 commit comments