Commit 5754a06c by 潘建波

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

1 parent 2e31fbc3
...@@ -94,7 +94,9 @@ ...@@ -94,7 +94,9 @@
:freeList="freeList" :freeList="freeList"
> >
</subTaskInfo> </subTaskInfo>
<div v-if="props.row.subTaskData.length <= 0" class="notaskinfo">暂无子任务</div> <div v-if="props.row.subTaskData.length <= 0" class="notaskinfo">
暂无子任务
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -186,7 +188,12 @@ ...@@ -186,7 +188,12 @@
:visible-arrow="false" :visible-arrow="false"
> >
<span <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')" @click="setTaskStatus(scope.row, 'start')"
></span> ></span>
</el-tooltip> </el-tooltip>
...@@ -314,7 +321,9 @@ export default { ...@@ -314,7 +321,9 @@ export default {
data[i].vchan.running_status = data[i].running_status data[i].vchan.running_status = data[i].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 : ""; data[i].vchan.info = data[i].info ? data[i].info : "";
} }
ary.push(data[i].vchan); ary.push(data[i].vchan);
...@@ -454,6 +463,9 @@ export default { ...@@ -454,6 +463,9 @@ export default {
}); });
}, },
setTaskStatus(data, type) { setTaskStatus(data, type) {
if (data.status == "NotInTimeOfDay") {
return;
}
this.$api.task this.$api.task
.setTaskStatus(data.task_id, { start_stop_status: type }) .setTaskStatus(data.task_id, { start_stop_status: type })
.then(res => { .then(res => {
...@@ -622,6 +634,9 @@ export default { ...@@ -622,6 +634,9 @@ export default {
color: #34b3a2; color: #34b3a2;
font-size: 16px; font-size: 16px;
} }
.noplayicon {
color: #c4c4c4;
}
.pauseIcon { .pauseIcon {
cursor: pointer; cursor: pointer;
color: #c4c4c4; color: #c4c4c4;
...@@ -635,7 +650,7 @@ export default { ...@@ -635,7 +650,7 @@ export default {
.statusbox { .statusbox {
background: red; background: red;
} }
.notaskinfo{ .notaskinfo {
text-align: center; text-align: center;
color: #c4c4c4; color: #c4c4c4;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!