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

Loading…
Cancel
Save