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
171046b8
Commit
171046b8
authored
Sep 18, 2019
by
WuFeiyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了定时刷新
parent
69b90c61
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
+23
-3
src/App.vue
src/App.vue
+2
-3
src/components/Method/Method.vue
src/components/Method/Method.vue
+10
-0
src/components/Status/Status.vue
src/components/Status/Status.vue
+11
-0
No files found.
src/App.vue
View file @
171046b8
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
</b-dropdown-item>
</b-dropdown-item>
</b-dropdown>
</b-dropdown>
<b-button
@
click=
"saveWidgetList"
style=
"margin-left:2%"
variant=
"primary"
>
Save
</b-button>
<b-button
@
click=
"saveWidgetList"
style=
"margin-left:2%"
variant=
"primary"
>
Save
</b-button>
<b-button
@
click=
"UIGenerateAutomatic"
style=
"margin-left:2%"
variant=
"primary"
>
test
</b-button>
<b-form-file
<b-form-file
id=
"file"
id=
"file"
type=
"file"
type=
"file"
...
@@ -105,7 +104,7 @@ export default class App extends Vue {
...
@@ -105,7 +104,7 @@ export default class App extends Vue {
})
})
}
}
UIGenerateAutomatic
()
{
mounted
()
{
// var fragment = window.location.hash;
// var fragment = window.location.hash;
var
fragment
=
"
#/dataserver/DataByTimeFuzzy
"
;
var
fragment
=
"
#/dataserver/DataByTimeFuzzy
"
;
if
(
fragment
!=
"
#
"
)
{
if
(
fragment
!=
"
#
"
)
{
...
@@ -184,7 +183,7 @@ export default class App extends Vue {
...
@@ -184,7 +183,7 @@ export default class App extends Vue {
}
}
})
})
}
}
}
}
exportActiveWidgetList
():
AllWidgetConfig
{
exportActiveWidgetList
():
AllWidgetConfig
{
for
(
var
widget
of
this
.
widgetList
)
{
for
(
var
widget
of
this
.
widgetList
)
{
...
...
src/components/Method/Method.vue
View file @
171046b8
...
@@ -53,6 +53,7 @@ export default class Method extends Widget {
...
@@ -53,6 +53,7 @@ export default class Method extends Widget {
pathId
:
string
=
""
;
pathId
:
string
=
""
;
userInputData
=
new
Map
<
string
,
string
>
();
userInputData
=
new
Map
<
string
,
string
>
();
pathwithVar
:
string
=
""
;
pathwithVar
:
string
=
""
;
timer
?:
number
;
isShowPath
:
boolean
=
false
;
isShowPath
:
boolean
=
false
;
isShowParams
:
boolean
=
false
;
isShowParams
:
boolean
=
false
;
...
@@ -68,6 +69,15 @@ export default class Method extends Widget {
...
@@ -68,6 +69,15 @@ export default class Method extends Widget {
// this.config.data.userInputData = this.userInputData;
// this.config.data.userInputData = this.userInputData;
this
.
config
.
data
.
userInputData
=
this
.
strMapObjChange
.
strMapToObj
(
this
.
userInputData
);
this
.
config
.
data
.
userInputData
=
this
.
strMapObjChange
.
strMapToObj
(
this
.
userInputData
);
}
}
mounted
()
{
this
.
timer
=
setInterval
(
this
.
refresh
,
1000
);
}
destroyed
()
{
clearInterval
(
this
.
timer
);
}
updateUI
()
{
updateUI
()
{
this
.
isShowParams
=
true
;
this
.
isShowParams
=
true
;
...
...
src/components/Status/Status.vue
View file @
171046b8
...
@@ -53,6 +53,7 @@ export default class Status extends Widget {
...
@@ -53,6 +53,7 @@ export default class Status extends Widget {
pathId
:
string
=
""
;
pathId
:
string
=
""
;
userInputData
=
new
Map
<
string
,
string
>
();
userInputData
=
new
Map
<
string
,
string
>
();
pathwithVar
:
string
=
""
;
pathwithVar
:
string
=
""
;
timer
?:
number
;
isShowPath
:
boolean
=
false
;
isShowPath
:
boolean
=
false
;
isShowParams
:
boolean
=
false
;
isShowParams
:
boolean
=
false
;
...
@@ -69,6 +70,16 @@ export default class Status extends Widget {
...
@@ -69,6 +70,16 @@ 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
()
{
this
.
timer
=
setInterval
(
this
.
refresh
,
1000
);
}
destroyed
()
{
clearInterval
(
this
.
timer
);
}
updateUI
()
{
updateUI
()
{
this
.
isShowParams
=
true
;
this
.
isShowParams
=
true
;
var
url
=
this
.
config
.
data
.
url
;
var
url
=
this
.
config
.
data
.
url
;
...
...
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