Added router priority to webui's list and detail page
This commit is contained in:
parent
cd90b9761a
commit
8cd4923e72
43 changed files with 2913 additions and 131 deletions
|
|
@ -15,6 +15,8 @@
|
|||
:onLoadMore="handleLoadMore"
|
||||
:endReached="allMiddlewares.endReached"
|
||||
:loading="allMiddlewares.loading"
|
||||
:currentSort.sync="sortBy"
|
||||
:currentSortDir.sync="sortDir"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -50,7 +52,9 @@ export default {
|
|||
data () {
|
||||
return {
|
||||
filter: '',
|
||||
status: ''
|
||||
status: '',
|
||||
sortBy: 'name',
|
||||
sortDir: 'asc'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -62,6 +66,8 @@ export default {
|
|||
return this.getAllMiddlewares({
|
||||
query: this.filter,
|
||||
status: this.status,
|
||||
sortBy: this.sortBy,
|
||||
direction: this.sortDir,
|
||||
...params
|
||||
})
|
||||
},
|
||||
|
|
@ -82,6 +88,12 @@ export default {
|
|||
},
|
||||
'filter' () {
|
||||
this.refreshAll()
|
||||
},
|
||||
'sortBy' () {
|
||||
this.refreshAll()
|
||||
},
|
||||
'sortDir' () {
|
||||
this.refreshAll()
|
||||
}
|
||||
},
|
||||
beforeDestroy () {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
:onLoadMore="handleLoadMore"
|
||||
:endReached="allRouters.endReached"
|
||||
:loading="allRouters.loading"
|
||||
:currentSort.sync="sortBy"
|
||||
:currentSortDir.sync="sortDir"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -50,7 +52,9 @@ export default {
|
|||
data () {
|
||||
return {
|
||||
filter: '',
|
||||
status: ''
|
||||
status: '',
|
||||
sortBy: 'name',
|
||||
sortDir: 'asc'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -60,8 +64,12 @@ export default {
|
|||
...mapActions('tcp', { getAllRouters: 'getAllRouters' }),
|
||||
getAllRoutersWithParams (params) {
|
||||
return this.getAllRouters({
|
||||
serviceName: '',
|
||||
middlewareName: '',
|
||||
query: this.filter,
|
||||
status: this.status,
|
||||
sortBy: this.sortBy,
|
||||
direction: this.sortDir,
|
||||
...params
|
||||
})
|
||||
},
|
||||
|
|
@ -82,6 +90,12 @@ export default {
|
|||
},
|
||||
'filter' () {
|
||||
this.refreshAll()
|
||||
},
|
||||
'sortBy' () {
|
||||
this.refreshAll()
|
||||
},
|
||||
'sortDir' () {
|
||||
this.refreshAll()
|
||||
}
|
||||
},
|
||||
beforeDestroy () {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
:onLoadMore="handleLoadMore"
|
||||
:endReached="allServices.endReached"
|
||||
:loading="allServices.loading"
|
||||
:currentSort.sync="sortBy"
|
||||
:currentSortDir.sync="sortDir"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -50,7 +52,9 @@ export default {
|
|||
data () {
|
||||
return {
|
||||
filter: '',
|
||||
status: ''
|
||||
status: '',
|
||||
sortBy: 'name',
|
||||
sortDir: 'asc'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -62,6 +66,8 @@ export default {
|
|||
return this.getAllServices({
|
||||
query: this.filter,
|
||||
status: this.status,
|
||||
sortBy: this.sortBy,
|
||||
direction: this.sortDir,
|
||||
...params
|
||||
})
|
||||
},
|
||||
|
|
@ -82,6 +88,12 @@ export default {
|
|||
},
|
||||
'filter' () {
|
||||
this.refreshAll()
|
||||
},
|
||||
'sortBy' () {
|
||||
this.refreshAll()
|
||||
},
|
||||
'sortDir' () {
|
||||
this.refreshAll()
|
||||
}
|
||||
},
|
||||
beforeDestroy () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue