Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
35dade82
authored
2023-03-31 10:49:12 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into dev
2 parents
7bfa8c8d
5e9dcd37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
82 deletions
src/views/system/timedTask/index.vue
src/views/system/timedTask/index.vue
View file @
35dade8
...
...
@@ -29,80 +29,24 @@
</div>
</
template
>
<
script
>
// 定时任务
import
data
from
"./data"
import
sjsbTask
from
'@/api/sjsbTask.js'
import
tableMixin
from
'@/mixins/tableMixin.js'
import
addTask
from
'../components/addTask.vue'
export
default
{
name
:
"timedTask"
,
mixins
:
[
tableMixin
],
components
:
{
addTask
},
data
()
{
return
{
taskData
:
null
,
isDialog
:
false
,
form
:
{
jobName
:
''
,
currentPage
:
1
},
selectionList
:
[],
tableData
:
{
columns
:
[{
label
:
'序号'
,
type
:
'index'
,
width
:
'50'
,
index
:
this
.
indexMethod
,
}].
concat
(
data
.
columns
()).
concat
([
{
label
:
"操作"
,
width
:
380
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
"text"
size
=
"mini"
v
-
show
=
{
scope
.
row
.
jobStatus
===
0
}
class
=
'btnColor'
onClick
=
{()
=>
{
this
.
handleActive
(
scope
.
row
)
}}
>
激活
<
/el-button
>
<
el
-
button
type
=
"text"
size
=
"mini"
v
-
show
=
{
scope
.
row
.
jobStatus
===
-
1
}
class
=
'btnColor'
onClick
=
{()
=>
{
this
.
recover
(
scope
.
row
)
}}
>
恢复
<
/el-button
>
<
el
-
button
type
=
"text"
size
=
"mini"
class
=
'successColor'
onClick
=
{()
=>
{
this
.
handleEdit
(
scope
.
row
)
}}
>
编辑
<
/el-button
>
<
el
-
button
type
=
"text"
size
=
"mini"
class
=
'successColor'
v
-
show
=
{
scope
.
row
.
jobStatus
!==
-
1
}
onClick
=
{()
=>
{
this
.
handleDel
(
scope
.
row
)
}}
>
删除
<
/el-button
>
<
/div
>
);
},
},
]),
data
:
[]
},
pageData
:
{
total
:
0
,
pageSize
:
15
,
current
:
1
,
},
}
},
methods
:
{
handleAdd
()
{
this
.
taskData
=
null
this
.
isDialog
=
true
// 定时任务
import
data
from
"./data"
import
sjsbTask
from
'@/api/sjsbTask.js'
import
tableMixin
from
'@/mixins/tableMixin.js'
import
addTask
from
'../components/addTask.vue'
export
default
{
name
:
"timedTask"
,
mixins
:
[
tableMixin
],
components
:
{
addTask
},
data
()
{
return
{
taskData
:
null
,
isDialog
:
false
,
form
:
{
jobName
:
''
,
currentPage
:
1
},
selectionList
:
[],
tableData
:
{
...
...
@@ -114,29 +58,29 @@
}].
concat
(
data
.
columns
()).
concat
([
{
label
:
"操作"
,
width
:
38
0
,
width
:
23
0
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
"text"
size
=
"mini"
v
-
show
=
{
scope
.
row
.
jobStatus
===
0
}
class
=
'btnColor'
icon
=
"el-icon-video-pause"
onClick
=
{()
=>
{
this
.
handleActive
(
scope
.
row
)
}}
>
激活
<
/el-button
>
<
el
-
button
type
=
"text"
size
=
"mini"
v
-
show
=
{
scope
.
row
.
jobStatus
===
-
1
}
class
=
'btnColor'
icon
=
"el-icon-video-pause"
onClick
=
{()
=>
{
this
.
recover
(
scope
.
row
)
}}
>
恢复
<
/el-button
>
<
el
-
button
type
=
"text"
icon
=
"el-icon-edit
"
class
=
'
btn
Color'
size
=
"mini
"
class
=
'
success
Color'
onClick
=
{()
=>
{
this
.
handleEdit
(
scope
.
row
)
}}
>
编辑
<
/el-button
>
<
el
-
button
type
=
"text"
icon
=
"el-icon-delete
"
size
=
"mini
"
class
=
'successColor'
v
-
show
=
{
scope
.
row
.
jobStatus
!==
-
1
}
onClick
=
{()
=>
{
this
.
handleDel
(
scope
.
row
)
}}
>
删除
...
...
@@ -152,8 +96,9 @@
total
:
0
,
pageSize
:
15
,
current
:
1
,
},
},
}
}
},
methods
:
{
handleAdd
()
{
this
.
taskData
=
null
...
...
Please
register
or
sign in
to post a comment