Browse Source

add refresh

master
zeus 3 years ago
parent
commit
09257c331e
  1. 2
      dist/index.html
  2. 2
      dist/js/app.0e8526dd.js
  3. 1
      dist/js/app.0e8526dd.js.map
  4. 2
      dist/js/app.65a36eb0.js
  5. 1
      dist/js/app.65a36eb0.js.map
  6. 3
      src/components/mynetwork/availableservices.vue
  7. 9
      src/components/mynetwork/dockerservices.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.834ff37e.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.0e8526dd.js" rel="preload" as="script"><link href="/js/chunk-vendors.dd2c43c6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.834ff37e.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.dd2c43c6.js"></script><script src="/js/app.0e8526dd.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.834ff37e.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.65a36eb0.js" rel="preload" as="script"><link href="/js/chunk-vendors.dd2c43c6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.834ff37e.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.dd2c43c6.js"></script><script src="/js/app.65a36eb0.js"></script></body></html>

2
dist/js/app.0e8526dd.js

File diff suppressed because one or more lines are too long

1
dist/js/app.0e8526dd.js.map

File diff suppressed because one or more lines are too long

2
dist/js/app.65a36eb0.js

File diff suppressed because one or more lines are too long

1
dist/js/app.65a36eb0.js.map

File diff suppressed because one or more lines are too long

3
src/components/mynetwork/availableservices.vue

@ -698,7 +698,8 @@ export default {
value.port = this.hybridoptions.port value.port = this.hybridoptions.port
this.$root.$emit('hybrid_start_instance', value) this.$root.$emit('hybrid_start_instance', value)
Vue.set(this.testactionrowindex, value.swarmlabname, value.index) Vue.set(this.testactionrowindex, value.swarmlabname, value.index)
Vue.nextTick( () => this.$refs.vuetable.refresh()) //Vue.nextTick( () => this.$refs.vuetable.refresh())
await this.refreshVuetable()
}, },
refreshVuetable() { refreshVuetable() {

9
src/components/mynetwork/dockerservices.vue

@ -180,6 +180,10 @@ export default {
const field_microservice = /^microservice-/g; const field_microservice = /^microservice-/g;
const field_hybrid = /^hybrid-/g; const field_hybrid = /^hybrid-/g;
const field_storage = /^storage-/g; const field_storage = /^storage-/g;
const field_swarmlab1 = /^swarmlab-filemanager-agent/g;
const field_swarmlab2 = /^swarmlab-sidecar-agent/g;
const field_swarmlab3 = /^swarmlab-volumemanager-agent/g;
const field_swarmlab4 = /^swarmlabadmin/g;
if (value.match(field_microservice)) { if (value.match(field_microservice)) {
var v = `<button type="button" class="btn btn-link text-info" var v = `<button type="button" class="btn btn-link text-info"
>${value}</button>` >${value}</button>`
@ -189,6 +193,9 @@ export default {
}else if (value.match(field_storage)) { }else if (value.match(field_storage)) {
var v = `<button type="button" class="btn btn-link text-success" var v = `<button type="button" class="btn btn-link text-success"
>${value}</button>` >${value}</button>`
}else if (value.match(field_swarmlab1) || value.match(field_swarmlab2) || value.match(field_swarmlab3) || value.match(field_swarmlab4)) {
var v = `<button type="button" class="btn btn-link text-warning"
>${value}</button>`
}else{ }else{
var v = `<button type="button" class="btn btn-link text-muted" var v = `<button type="button" class="btn btn-link text-muted"
@ -247,7 +254,7 @@ export default {
apiurl:ApiConfig.url_80+"/dockerservices", apiurl:ApiConfig.url_80+"/dockerservices",
//apiurl:ApiConfig.swarmlab_url_80+"/swarmlabhybridservices", //apiurl:ApiConfig.swarmlab_url_80+"/swarmlabhybridservices",
css: CssConfig, css: CssConfig,
perpage: 10, perpage: 15,
searchFor: '', searchFor: '',
sortOrder: [{ sortOrder: [{
field: 'Names', field: 'Names',

Loading…
Cancel
Save