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

View File

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

View File

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

View File

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