Commit 53ff2af7ba8668121d97ccdd1c8a79615c35a52a
1 parent
1b630ad7
Exists in
master
พยายามทำ 0 tricket อยู่
Showing
2 changed files
with
19 additions
and
18 deletions
Show diff stats
src/app/dashboard/dashboard.component.html
... | ... | @@ -692,7 +692,7 @@ |
692 | 692 | <br> |
693 | 693 | <button type="button" class="btn btn-circle button " *ngFor="let name of ButtonValue" (click)="getButton7(name.valueN);getButton7Onhold(name.valueN);" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> |
694 | 694 | <hr> |
695 | - | |
695 | + <p *ngIf="showSecret" style="text-align: center;">0 Tricket</p> | |
696 | 696 | <br> |
697 | 697 | </div> |
698 | 698 | <div class="panel-body"> | ... | ... |
src/app/dashboard/dashboard.component.ts
... | ... | @@ -655,10 +655,11 @@ export class DashboardComponent implements OnInit { |
655 | 655 | } |
656 | 656 | |
657 | 657 | // this.Show = Object.assign(this.resultData7); |
658 | - console.log('hi', this.Show7) | |
658 | + | |
659 | 659 | |
660 | 660 | } else { |
661 | 661 | this.resultData7 = []; |
662 | + console.log('hi', this.resultData7) | |
662 | 663 | } |
663 | 664 | } catch (error) { |
664 | 665 | console.log(error); |
... | ... | @@ -762,22 +763,19 @@ setInterval(async () => { |
762 | 763 | }, 600000); |
763 | 764 | |
764 | 765 | } |
766 | + // btnSelect(selVal) { | |
767 | + // // console.log(selVal); | |
768 | + // let arr = []; | |
769 | + // for (let i in selVal) { | |
770 | + // arr.push(selVal); | |
771 | + // } | |
765 | 772 | |
773 | + // // console.log('select1 : ', arr); | |
766 | 774 | |
775 | + // this.Namebtn = arr; | |
767 | 776 | |
768 | - btnSelect(selVal) { | |
769 | - // console.log(selVal); | |
770 | - let arr = []; | |
771 | - for (let i in selVal) { | |
772 | - arr.push(selVal); | |
773 | - } | |
774 | - | |
775 | - // console.log('select1 : ', arr); | |
776 | - | |
777 | - this.Namebtn = arr; | |
778 | - | |
779 | - console.log('select : ', this.Namebtn); | |
780 | - } | |
777 | + // console.log('select : ', this.Namebtn); | |
778 | + // } | |
781 | 779 | |
782 | 780 | getButton1(valueN) { |
783 | 781 | // console.log(valueN); |
... | ... | @@ -835,6 +833,7 @@ setInterval(async () => { |
835 | 833 | } |
836 | 834 | |
837 | 835 | this.resultDataOnHold = resultArray; |
836 | + | |
838 | 837 | } |
839 | 838 | |
840 | 839 | getButton2(valueN) { |
... | ... | @@ -1131,7 +1130,7 @@ setInterval(async () => { |
1131 | 1130 | |
1132 | 1131 | const resultArray = []; |
1133 | 1132 | for (const item of this.Show7) { |
1134 | - console.log('item: ', item); | |
1133 | + // console.log('item: ', item); | |
1135 | 1134 | |
1136 | 1135 | var st = ''; |
1137 | 1136 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1141,12 +1140,11 @@ setInterval(async () => { |
1141 | 1140 | |
1142 | 1141 | var string2 = valueN.toLowerCase(); |
1143 | 1142 | if (st.indexOf(string2) > -1) { |
1144 | - console.log(st); | |
1143 | + // console.log(st); | |
1145 | 1144 | resultArray.push(item); |
1146 | 1145 | } |
1147 | 1146 | |
1148 | 1147 | } |
1149 | - | |
1150 | 1148 | this.resultData7 = resultArray; |
1151 | 1149 | } |
1152 | 1150 | |
... | ... | @@ -1177,6 +1175,9 @@ setInterval(async () => { |
1177 | 1175 | } |
1178 | 1176 | |
1179 | 1177 | this.resultDataOnHold7 = resultArray; |
1178 | + // if(this.resultDataOnHold7 === []){ | |
1179 | + // this.showSecret = !this.showSecret; | |
1180 | + // } | |
1180 | 1181 | } |
1181 | 1182 | |
1182 | 1183 | /////////////Get data come to use////////////////////// | ... | ... |