summaryrefslogtreecommitdiffstats
path: root/test-scheduler/ui/src/components/conductor_ui.vue
diff options
context:
space:
mode:
authorYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2019-05-14 11:00:35 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-05-14 11:00:35 +0000
commita8c9e870e8034c111e3e72f896eae23790d86367 (patch)
treea9995693f3fa6a61e9c24e802d85ea0766190a1a /test-scheduler/ui/src/components/conductor_ui.vue
parent12cf611e452eeed256468978351f8161d6ea81aa (diff)
parentde5d561dcf0791b120087ffb9f7506f41c2cb0e0 (diff)
Merge "Add conductor UI to the result page of test scheduler"
Diffstat (limited to 'test-scheduler/ui/src/components/conductor_ui.vue')
-rw-r--r--test-scheduler/ui/src/components/conductor_ui.vue36
1 files changed, 36 insertions, 0 deletions
diff --git a/test-scheduler/ui/src/components/conductor_ui.vue b/test-scheduler/ui/src/components/conductor_ui.vue
new file mode 100644
index 00000000..686596bd
--- /dev/null
+++ b/test-scheduler/ui/src/components/conductor_ui.vue
@@ -0,0 +1,36 @@
+<template>
+ <div>
+ <iframe src='http://0.0.0.0:5000/#/workflow?q=&h=&workflowTypes=&status=&start=0' id="conductor-ui"></iframe>
+ </div>
+</template>
+
+<script>
+ export default {
+ data () {
+ return {
+ }
+ },
+ mounted () {
+ /**
+ * iframe adaptive display
+ */
+ function changeConductorUIfIframe () {
+ const conductorUI = document.getElementById('conductor-ui')
+ const deviceWidth = document.body.clientWidth
+ const deviceHeight = document.body.clientHeight
+ conductorUI.style.width = Number(deviceWidth) + 'px'
+ conductorUI.style.height = Number(deviceHeight) + 'px'
+ }
+
+ changeConductorUIfIframe()
+
+ window.onresize = function () {
+ changeConductorUIfIframe()
+ }
+ }
+ }
+</script>
+
+<style scoped>
+
+</style> \ No newline at end of file