Browse Source

fix pagination

master
zeus 3 years ago
parent
commit
0c5986bc06
  1. 2
      dist/index.html
  2. 4
      dist/js/app.2cf43818.js
  3. 1
      dist/js/app.2cf43818.js.map
  4. 1
      dist/js/app.c80f8890.js.map
  5. 40
      src/components/mynetwork/availablemicroservices.vue

2
dist/index.html

@ -1 +1 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.291cc1d1.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.c80f8890.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.291cc1d1.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.c80f8890.js"></script></body></html>
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.291cc1d1.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.2cf43818.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.291cc1d1.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.2cf43818.js"></script></body></html>

4
dist/js/app.c80f8890.js → dist/js/app.2cf43818.js

File diff suppressed because one or more lines are too long

1
dist/js/app.2cf43818.js.map

File diff suppressed because one or more lines are too long

1
dist/js/app.c80f8890.js.map

File diff suppressed because one or more lines are too long

40
src/components/mynetwork/availablemicroservices.vue

@ -74,8 +74,10 @@
class="form-control"
aria-label="Small" aria-describedby="inputGroup-sizing-sm"
placeholder="Number of Instances"
disabled
v-model="hybridoptions.size"
>
<!--
<button class="btn btn-outline-secondary"
round
type="button"
@ -85,8 +87,11 @@
class="form-control"
aria-label="Small" aria-describedby="inputGroup-sizing-sm"
placeholder="Expose Port"
disabled
v-model="hybridoptions.port"
>
-->
<div class="text-info">{{ up_name }}</div>
<button class="btn btn-outline-success"
round
type="button"
@ -146,7 +151,8 @@ allagi tou vuetablerefresh
</button>
</div>
</div>
<div slot="actionslocal" slot-scope="props">
<div slot="actionslocal" slot-scope="props" actionslocal
:key="vuetablekeygslot">
<div class="d-flex justify-content-center">
<button
v-if="testactionrowindex[props.rowData._id] == props.rowData._id && testactionrowindex[props.rowData.swarmlabname] != props.rowData._id"
@ -225,6 +231,7 @@ export default {
'port':''
},
viewhybridoptions: false,
up_name:'',
swarmlab:{},
playbookInfo: {},
token: '',
@ -248,6 +255,7 @@ export default {
visibility: [],
active:false,
vuetablekeyg:0,
vuetablekeygslot:0,
fielddata:{},
fields: [
{
@ -380,15 +388,18 @@ export default {
})
},
async checkactionrowindex(data,index){
if(data._id == index) {
this.dataselect=data
this.indexselect=index
//console.log('res8--- all---- '+JSON.stringify(data._id))
//console.log('res8--- all---- '+JSON.stringify(index))
}
if(this.testactionrowindex[index] == index){
var obj = {}
obj.token = this.token
obj.instance = data.swarmlabname
var res1 = await store.dispatch('pipelineLLO/getservicesstatus', obj)
//console.log('res8 all '+JSON.stringify(res1))
//console.log('res8--- all '+JSON.stringify(data))
if(res1.data.data == 'yes'){
//EDO
Vue.set(this.testactionrowindex, data.swarmlabname, index)
@ -563,6 +574,7 @@ export default {
}else if(action == 'run-item' ){
this.up_name = data.swarmlabname
var filterju = `microservice-jupyter`
var grepju = new RegExp(filterju);
if(grepju.test(data.swarmlabname)){
@ -595,6 +607,7 @@ export default {
//EDO
this.refreshVuetable()
}else if(action == 'down-item' ){
this.up_name = ''
this.hybridoptions.swarmlabname = data.swarmlabname
this.hybridoptions.index = index
var info = "Stop and remove containers, networks, images, and volumes"
@ -616,7 +629,7 @@ export default {
//console.log('RUN 1 '+ JSON.stringify(data.swarmlabname))
//Vue.nextTick( () => this.$refs.vuetable.refresh())
this.refreshVuetable()
//this.refreshVuetable()
}
},
async rmAndClose(result){
@ -626,13 +639,13 @@ export default {
//console.log('yes')
// run on mytable.vue
var value = this.hybridoptions.swarmlabname
this.$root.$emit('hybrid_stop_instance', value)
await this.$root.$emit('hybrid_stop_instance', value)
Vue.delete(this.testactionrowindex, this.hybridoptions.index)
//Vue.nextTick( () => this.$refs.vuetable.refresh())
this.refreshVuetable()
}else {
console.log('no')
}
this.refreshVuetable()
},
async setHybridoptions(){
//console.log(JSON.stringify(this.hybridoptions))
@ -651,12 +664,12 @@ export default {
this.refreshVuetable()
},
refreshVuetableall() {
async refreshVuetableall() {
this.$nextTick(()=>{
this.vuetablekeyg += 1
})
},
refreshVuetable() {
async refreshVuetable() {
//this.vuetablekeyg += 1
// EDO
// echo ta data pou exei epilexei o user
@ -664,16 +677,13 @@ export default {
// afero ta $nextTick
// kai allazo apo refresh edo se afto to action
// refresh only status
// ********* refresh slot einai i lissi ***
//this.dataselect=data
//this.indexselect=index
this.checkactionrowindex(this.dataselect, this.indexselect)
this.$refs.pagination.loadPage(this.currentpage)
//this.$nextTick(()=>{
//this.vuetablekeyg += 1
//this.onPaginationData(this.currentpagepaginationData)
//this.onChangePage(this.currentpage)
//this.$refs.pagination.loadPage()
// console.log("----------------------------------------------", this.currentpage)
//console.log('error2a '+JSON.stringify(this.dataselect))
//console.log('error2b '+JSON.stringify(this.indexselect))
await this.checkactionrowindex(this.dataselect, this.indexselect)
this.vuetablekeygslot += 1
//})
},
playbookinfoShow(value) {

Loading…
Cancel
Save