Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
lxyl-vue
Commits
f19f3ae2
Commit
f19f3ae2
authored
Jun 03, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时刷新
parent
9f993c59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
index.vue
src/views/ccgl/wcsrwgl/wcsrw/index.vue
+24
-1
No files found.
src/views/ccgl/wcsrwgl/wcsrw/index.vue
View file @
f19f3ae2
<
template
>
<
template
>
<BasePage
:power=
"power"
class=
"min_full"
:config=
"config"
>
<BasePage
ref=
'basepage'
:power=
"power"
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</
template
>
...
@@ -9,6 +9,12 @@
...
@@ -9,6 +9,12 @@
<el-button
@
click=
"execute(ctx.basePage)"
size=
'mini'
type=
"primary"
>
手动执行
</el-button>
<el-button
@
click=
"execute(ctx.basePage)"
size=
'mini'
type=
"primary"
>
手动执行
</el-button>
<el-button
@
click=
"complete(ctx.basePage)"
size=
'mini'
type=
"primary"
>
完成
</el-button>
<el-button
@
click=
"complete(ctx.basePage)"
size=
'mini'
type=
"primary"
>
完成
</el-button>
<el-button
@
click=
"close(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
<el-button
@
click=
"close(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
<div
style=
"float:right;line-height: 28px;font-size: 12px;"
>
定时刷新:
<el-switch
v-model=
"doQuery"
active-color=
"#13ce66"
inactive-color=
"#eee"
>
</el-switch></div>
</
template
>
</
template
>
</BasePage>
</BasePage>
...
@@ -17,8 +23,25 @@
...
@@ -17,8 +23,25 @@
<
script
>
<
script
>
// import Edit from './edit.vue'
// import Edit from './edit.vue'
export
default
{
export
default
{
watch
:{
doQuery
(
val
){
// console.log(this.timer,this)
if
(
val
){
this
.
timer
=
setInterval
(()
=>
{
this
.
$refs
.
basepage
.
refresh
()
},
20000
)
}
else
{
clearInterval
(
this
.
timer
)
}
}
},
beforeDestroy
(){
clearInterval
(
this
.
timer
)
},
data
()
{
data
()
{
return
{
return
{
timer
:
null
,
doQuery
:
false
,
power
:
{
power
:
{
add
:
false
,
add
:
false
,
copy
:
false
,
copy
:
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