fix: 项目任务列表甘特图去掉'已完成'任务及样式优化

This commit is contained in:
韦荣超 2022-03-14 14:34:29 +08:00
parent 6368ee5c12
commit 2e7ff88be6
4 changed files with 20 additions and 9 deletions

View File

@ -135,7 +135,7 @@ export default {
// //
let color = '#058ce4'; let color = '#058ce4';
if (taskData.complete_at) { if (taskData.complete_at) {
color = '#c1c1c1'; return;
} else { } else {
// //
this.levelList.some(level => { this.levelList.some(level => {
@ -230,6 +230,7 @@ export default {
} else { } else {
this.lists.some((task) => { this.lists.some((task) => {
if (task.id == item.id) { if (task.id == item.id) {
this.$set(task, 'time', item.backTime);
return true; return true;
} }
}) })

View File

@ -88,8 +88,8 @@
<div class="project-gantt-item" <div class="project-gantt-item"
:class="{active:projectGanttShow}" :class="{active:projectGanttShow}"
@click="projectGanttShow=!projectGanttShow"> @click="projectGanttShow=!projectGanttShow">
<Icon type="ios-paper-outline" size="26" /> <Icon type="ios-paper-outline" size="26"/>
{{ $L('甘特图') }} <label class="gantt-name">{{ $L('甘特图') }}</label>
</div> </div>
</div> </div>
</div> </div>

View File

@ -78,7 +78,7 @@
.item-title { .item-title {
flex: 1; flex: 1;
padding-right: 12px; padding-right: 12px;
cursor: default; cursor: pointer;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@ -238,6 +238,7 @@
white-space: nowrap; white-space: nowrap;
margin-left: 4px; margin-left: 4px;
margin-right: 10px; margin-right: 10px;
cursor:pointer;
} }
.timeline-resizer { .timeline-resizer {
height: 22px; height: 22px;

View File

@ -240,16 +240,25 @@
} }
} }
} }
.project-gantt-item{
padding-left:5px; .project-gantt-item {
&.active{ padding-left: 5px;
display: flex;
&.active {
color: $primary-color; color: $primary-color;
} }
.force-right{
&.act{ .force-right {
&.act {
color: #2A53FF; color: #2A53FF;
} }
} }
.gantt-name {
font-size: 13px;
padding-top: 6%;
}
} }
} }
} }