|
@ -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){ |
|
|
this.dataselect=data |
|
|
if(data._id == index) { |
|
|
this.indexselect=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){ |
|
|
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) { |
|
|