Manuel Tauber 2024-02-28 16:08:55 +01:00
parent e7db977a63
commit 8d086ab7b0
3 changed files with 20 additions and 4 deletions

View File

@ -207,7 +207,7 @@ export class FilterDialogComponent implements OnInit {
if(this.dataService.getStates().find((item)=> {return item.stateNameEN == state;})){ if(this.dataService.getStates().find((item)=> {return item.stateNameEN == state;})){
this.statesFilter.push(this.dataService.getStates().find((item)=> {return item.stateNameEN == state;}).stateNameEN); this.statesFilter.push(this.dataService.getStates().find((item)=> {return item.stateNameEN == state;}).stateNameEN);
} }
// //console.log(this.statesFilter); console.log(this.statesFilter);
} }
} }
this.statesFilter = [...new Set(this.statesFilter)]; this.statesFilter = [...new Set(this.statesFilter)];

View File

@ -810,17 +810,22 @@ export class NttGanttComponent implements OnInit {
*/ */
public queryTaskbarInfo(args: any) { public queryTaskbarInfo(args: any) {
if (args.taskbarType == 'Milestone' && args.data.taskData.TaskID.includes("D2") && args.data.taskData.isFixed == false) if (args.taskbarType == 'Milestone' && args.data.taskData.TaskID.includes("D2"))
{ {
// console.log(args.taskbarElement.children[1].style.add); if(args.data.taskData.isFixed == true){
args.taskbarElement.children[1].classList.add('e-gantt-milestone-border2');
}else{
args.taskbarElement.children[1].classList.add('e-gantt-milestone-border1'); args.taskbarElement.children[1].classList.add('e-gantt-milestone-border1');
}
// console.log(args.taskbarElement.children[1].style.add);
// console.log(args.taskbarElement.children[1]); // console.log(args.taskbarElement.children[1]);
// args.taskbarElement.children[1].children[0].classList.add('e-gantt-milestone-border'); // args.taskbarElement.children[1].children[0].classList.add('e-gantt-milestone-border');
// args.taskbarElement.children[1].children[1].classList.add('e-gantt-milestone-border'); // args.taskbarElement.children[1].children[1].classList.add('e-gantt-milestone-border');
} }
else{ else{
if(args.taskbarType == 'Milestone'){ if(args.taskbarType == 'Milestone'){
args.taskbarElement.children[1].classList.add('e-gantt-milestone-border') args.taskbarElement.children[1].classList.add('e-gantt-milestone-border');
} }
} }

View File

@ -45,6 +45,17 @@
cursor: grab; cursor: grab;
} }
.e-gantt-milestone-border2 {
/* border: 2px solid red !important; */
border-radius: 30%;
/* border-top-width: 1px; */
color: red;
background-color: #9e9e9b !important;
cursor: not-allowed;
}
</style> </style>
<style> <style>