Commit 34d9916c authored by “lixuyan”'s avatar “lixuyan”

修改甘特图修改时间不生效的问题

parent 60f1f627
<template>
<div>
<div :id="onlyUuid" :ref="onlyUuid" class="gantt" />
<div :id="onlyUuid" :ref="onlyUuid" class="gantt-station-plan" />
</div>
</template>
......@@ -345,6 +345,8 @@ export default {
]
ganttStm.config.date_format = '%Y-%m-%d %H:%i:%s'
ganttStm.config.duration_unit = 'minute'
ganttStm.config.time_step = 15
ganttStm.config.round_dnd_dates = false
ganttStm.config.scale_height = 70
ganttStm.config.min_column_width = 60
ganttStm.config.drag_progress = false
......@@ -638,8 +640,148 @@ export default {
}
</script>
<style lang="scss" scoped>
<style lang="scss">
.seepdf{
cursor: pointer;
}
.gantt-station-plan{
margin-top: 15px;
flex-grow: 1;
height: calc(100vh - 100px);
position: relative;
> div {
position: relative;
height: 100%;
&.load {
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 99;
background-color: #ffffffc7;
> i {
font-size: 40px;
color: #589ce3;
}
> span {
display: block;
}
}
}
.gantt_link_control {
z-index: 10;
}
.gantt_task_link.critical_path {
.gantt_line_wrapper {
z-index: 8;
div {
background-color: red;
}
}
.gantt_link_arrow_right {
border-left-color: red;
}
}
.gantt_tooltip {
font-size: 14px;
}
.gantt_bars_area .gantt_task_line {
z-index: 15;
}
.gantt_task_link.critical_path {
> .gantt_line_wrapper > div {
background-color: #ff1111;
}
> .gantt_link_arrow_right {
border-left-color: #ff1111;
}
}
.gantt_task_cell.week_end {
background-color: #eff5fd;
}
.gantt_task
.gantt_task_scale
.gantt_scale_line
> div:first-child.gantt_scale_cell {
color: #f3f6f7;
}
.gantt_grid_scale,
.gantt_task_scale,
.gantt_task_vscroll {
background-color: #f3f6f7;
}
.gantt_grid_scale .gantt_grid_head_cell,
.gantt_task .gantt_task_scale .gantt_scale_cell {
color: #2e2e2e;
font-weight: 700;
font-size: 14px;
border-right: 1px solid rgb(206, 206, 206);
}
.gantt_task_line {
&.Not{
background-color: #cccccc;
}
&.levelNot{
background-color: #cccccc;
}
&.Yes{
background-color: #59c4e6;
}
&.levelYes{
background-color: #59c4e6;
}
&.Delivery{
background-color: #e87c25;
}
&.levelDelivery{
background-color: #e87c25;
}
&.Run{
background-color: #fcce10;
}
&.levelRun{
background-color: #fcce10;
}
&.Finish{
background-color: #97b552;
}
&.levelFinish {
background-color: #97b552;
}
&.Paused{
background-color: #8a7ca8;
}
&.levelPaused{
background-color: #8a7ca8;
}
&.Reserved{
background-color: #c1232b;
}
&.levelReserved{
background-color: #c1232b;
}
&.Issued{
background-color: #bd0b9f;
}
&.levelIssued{
background-color: #bd0b9f;
}
&.TF_ZF{
background-color: #666;
}
&.levelTF_ZF{
background-color: #666;
}
&.New{
background-color: #97b552;
}
&.levelNew{
background-color: #97b552;
}
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment