Commit c6dd3f22 authored by WuFeiyang's avatar WuFeiyang

基本完成还差widgetparams字号

parent ca847332
...@@ -72,7 +72,6 @@ import Thing from "./components/Thing/Thing.vue"; ...@@ -72,7 +72,6 @@ import Thing from "./components/Thing/Thing.vue";
import State from "./components/State/State.vue"; import State from "./components/State/State.vue";
// import Gauge from "./components/Gauge/Gauge.vue"; // import Gauge from "./components/Gauge/Gauge.vue";
Vue.use(VueRouter)
//this is the view selecotr class //this is the view selecotr class
@Component({ @Component({
components: { components: {
......
<template id="setBasicParams"> <template id="Navigation">
<div> <div>
<br> <br>
<b-button variant="primary" class="smallFont" @click="showNavigation" style="float:right">Navigation</b-button> <b-button variant="primary" class="smallFont" @click="showNavigation" style="float:right">Navigation</b-button>
<br> <br>
<div v-show="isShowNavigation&&isShowParentPath"> <div v-show="isShowNavigation&&isShowParentPath" style="width:100%;height:25px">
<a class="smallFont" :href="parentPath" style="float:left">parentPath:{{ parentPath }}</a> <b-link :href="parentPath" class="smallFont" style="float:left">parentPath:{{ parentPath }}</b-link>
<!-- <a class="smallFont" :href="parentPath" style="float:left">parentPath:{{ parentPath }}</a> -->
</div> </div>
<div v-show="isShowNavigation" v-for="(path, index) in childrenPath" :key="index"> <div v-show="isShowNavigation" v-for="(path, index) in childrenPath" :key="index" style="width:100%;height:25px">
<a class="smallFont" :href= "path" style="float:left">childrenPath:{{path}}</a><br> <b-link :href="path" class="smallFont" style="float:left">childrenPath:{{path}}</b-link>
<!-- <a class="smallFont" :href= "path" style="float:left">childrenPath:{{path}}</a> -->
</div> </div>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { Component, Prop, Vue, Watch } from "vue-property-decorator"; import { Component, Prop, Vue, Watch } from "vue-property-decorator";
import axios from "axios"; import axios from "axios";
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
<b-col> <b-col>
<b-button @click="showPathConfig" variant="primary" style="float:right"><span class="glyphicon glyphicon-cog"></span></b-button> <b-button @click="showPathConfig" variant="primary" style="float:right"><span class="glyphicon glyphicon-cog"></span></b-button>
</b-col> </b-col>
<div v-show="isShowPath"></div> <div v-show="isShowPath"><hr /></div>
</b-row> </b-row>
<div style="width:100%;border-style: solid; border-width: 1px;"> <div style="width:100%">
<p style="float:left;" class="largeFont">{{ StatusValue }}</p> <span style="float:left;" class="largeFont">{{ StatusValue }}</span>
<div v-show="isShowPath"><hr /></div>
</div> </div>
<b-input-group size="lg" prepend="path" v-show="isShowPath"> <b-input-group size="lg" prepend="path" v-show="isShowPath">
<b-form-input v-model="config.data.url"></b-form-input> <b-form-input v-model="config.data.url"></b-form-input>
...@@ -25,6 +26,7 @@ ...@@ -25,6 +26,7 @@
</b-container> </b-container>
</template> </template>
<script lang="ts"> <script lang="ts">
import Vue from "vue"; import Vue from "vue";
import { VueSvgGauge } from 'vue-svg-gauge' import { VueSvgGauge } from 'vue-svg-gauge'
......
...@@ -74,15 +74,15 @@ export default class Status extends Widget { ...@@ -74,15 +74,15 @@ export default class Status extends Widget {
this.config.data.userInputData = this.strMapObjChange.strMapToObj(this.userInputData); this.config.data.userInputData = this.strMapObjChange.strMapToObj(this.userInputData);
} }
// mounted() mounted()
// { {
// this.timer = setInterval(this.refresh,1000); this.timer = setInterval(this.refresh,1000);
// } }
// destroyed() destroyed()
// { {
// clearInterval(this.timer); clearInterval(this.timer);
// } }
updateUI() { updateUI() {
this.isShowPath = false; this.isShowPath = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment