Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
WidgetUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WuFeiyang
WidgetUI
Commits
c6dd3f22
Commit
c6dd3f22
authored
Sep 22, 2019
by
WuFeiyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基本完成还差widgetparams字号
parent
ca847332
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
19 deletions
+21
-19
src/App.vue
src/App.vue
+0
-1
src/components/Common/Navigation.vue
src/components/Common/Navigation.vue
+7
-6
src/components/State/State.vue
src/components/State/State.vue
+5
-3
src/components/Status/Status.vue
src/components/Status/Status.vue
+9
-9
No files found.
src/App.vue
View file @
c6dd3f22
...
...
@@ -72,7 +72,6 @@ import Thing from "./components/Thing/Thing.vue";
import
State
from
"
./components/State/State.vue
"
;
// import Gauge from "./components/Gauge/Gauge.vue";
Vue
.
use
(
VueRouter
)
//this is the view selecotr class
@
Component
({
components
:
{
...
...
src/components/Common/Navigation.vue
View file @
c6dd3f22
<
template
id=
"
setBasicParams
"
>
<
template
id=
"
Navigation
"
>
<div>
<br>
<b-button
variant=
"primary"
class=
"smallFont"
@
click=
"showNavigation"
style=
"float:right"
>
Navigation
</b-button>
<br>
<div
v-show=
"isShowNavigation&&isShowParentPath"
>
<a
class=
"smallFont"
:href=
"parentPath"
style=
"float:left"
>
parentPath:
{{
parentPath
}}
</a>
<div
v-show=
"isShowNavigation&&isShowParentPath"
style=
"width:100%;height:25px"
>
<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
v-show=
"isShowNavigation"
v-for=
"(path, index) in childrenPath"
:key=
"index"
>
<a
class=
"smallFont"
:href=
"path"
style=
"float:left"
>
childrenPath:
{{
path
}}
</a><br>
<div
v-show=
"isShowNavigation"
v-for=
"(path, index) in childrenPath"
:key=
"index"
style=
"width:100%;height:25px"
>
<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>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Watch
}
from
"
vue-property-decorator
"
;
import
axios
from
"
axios
"
;
...
...
src/components/State/State.vue
View file @
c6dd3f22
...
...
@@ -7,10 +7,11 @@
<b-col>
<b-button
@
click=
"showPathConfig"
variant=
"primary"
style=
"float:right"
><span
class=
"glyphicon glyphicon-cog"
></span></b-button>
</b-col>
<div
v-show=
"isShowPath"
></div>
<div
v-show=
"isShowPath"
><
hr
/><
/div>
</b-row>
<div
style=
"width:100%;border-style: solid; border-width: 1px;"
>
<p
style=
"float:left;"
class=
"largeFont"
>
{{
StatusValue
}}
</p>
<div
style=
"width:100%"
>
<span
style=
"float:left;"
class=
"largeFont"
>
{{
StatusValue
}}
</span>
<div
v-show=
"isShowPath"
><hr
/></div>
</div>
<b-input-group
size=
"lg"
prepend=
"path"
v-show=
"isShowPath"
>
<b-form-input
v-model=
"config.data.url"
></b-form-input>
...
...
@@ -25,6 +26,7 @@
</b-container>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
"
vue
"
;
import
{
VueSvgGauge
}
from
'
vue-svg-gauge
'
...
...
src/components/Status/Status.vue
View file @
c6dd3f22
...
...
@@ -74,15 +74,15 @@ export default class Status extends Widget {
this
.
config
.
data
.
userInputData
=
this
.
strMapObjChange
.
strMapToObj
(
this
.
userInputData
);
}
//
mounted()
//
{
//
this.timer = setInterval(this.refresh,1000);
//
}
//
destroyed()
//
{
//
clearInterval(this.timer);
//
}
mounted
()
{
this
.
timer
=
setInterval
(
this
.
refresh
,
1000
);
}
destroyed
()
{
clearInterval
(
this
.
timer
);
}
updateUI
()
{
this
.
isShowPath
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment