Commit 5754a06c by 潘建波

不在时间段大任务不允许启动fix🐛

1 parent 2e31fbc3
......@@ -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;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!