Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
fanxing_new
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5754a06c
authored
Jul 01, 2020
by
潘建波
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
不在时间段大任务不允许启动fix
🐛
1 parent
2e31fbc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
src/views/taskManage/index.vue
src/views/taskManage/index.vue
View file @
5754a06
...
...
@@ -94,7 +94,9 @@
:freeList=
"freeList"
>
</subTaskInfo>
<div
v-if=
"props.row.subTaskData.length
<
= 0" class="notaskinfo">暂无子任务
</div>
<div
v-if=
"props.row.subTaskData.length
<
= 0" class="notaskinfo">
暂无子任务
</div>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -186,7 +188,12 @@
:visible-arrow=
"false"
>
<span
class=
"icon-fanxing-qidong playIcon"
:class=
"
{
'icon-fanxing-qidong': true,
playIcon: true,
noplayicon:
scope.row.status == 'NotInTimeOfDay' ? true : false
}"
@click="setTaskStatus(scope.row, 'start')"
>
</span>
</el-tooltip>
...
...
@@ -314,7 +321,9 @@ export default {
data
[
i
].
vchan
.
running_status
=
data
[
i
].
running_status
?
data
[
i
].
running_status
:
""
;
data
[
i
].
vchan
.
enableStatus
=
data
[
i
].
enableStatus
?
data
[
i
].
enableStatus
:
""
;
data
[
i
].
vchan
.
enableStatus
=
data
[
i
].
enableStatus
?
data
[
i
].
enableStatus
:
""
;
data
[
i
].
vchan
.
info
=
data
[
i
].
info
?
data
[
i
].
info
:
""
;
}
ary
.
push
(
data
[
i
].
vchan
);
...
...
@@ -454,6 +463,9 @@ export default {
});
},
setTaskStatus
(
data
,
type
)
{
if
(
data
.
status
==
"NotInTimeOfDay"
)
{
return
;
}
this
.
$api
.
task
.
setTaskStatus
(
data
.
task_id
,
{
start_stop_status
:
type
})
.
then
(
res
=>
{
...
...
@@ -622,6 +634,9 @@ export default {
color
:
#34b3a2
;
font-size
:
16px
;
}
.noplayicon
{
color
:
#c4c4c4
;
}
.pauseIcon
{
cursor
:
pointer
;
color
:
#c4c4c4
;
...
...
@@ -635,7 +650,7 @@ export default {
.statusbox
{
background
:
red
;
}
.notaskinfo
{
.notaskinfo
{
text-align
:
center
;
color
:
#c4c4c4
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment