Commit 347ce73a23cb440209a7e0f880fccee7f906d2e3
1 parent
6257c9d5
Exists in
master
test เรียก type
Showing
2 changed files
with
33 additions
and
47 deletions
Show diff stats
src/app/dashboard/dashboard.component.html
1 | 1 | <div class="portlet-body"> |
2 | 2 | <div class="tabbable-custom nav-justified"> |
3 | 3 | <ul class="nav nav-tabs"> |
4 | - <li class="active sbold font"> | |
5 | - <a href="#tab1" data-toggle="tab" aria-expanded="true">ติดตั้ง | |
4 | + <li class="sbold font"> | |
5 | + <a href="#tab1" data-toggle="tab" aria-expanded="false">ติดตั้ง | |
6 | 6 | <span class="badge"> {{resultNum}} </span> |
7 | 7 | </a> |
8 | 8 | </li> |
... | ... | @@ -41,8 +41,8 @@ |
41 | 41 | <span class="badge"> {{resultNum8}} </span> |
42 | 42 | </a> |
43 | 43 | </li> |
44 | - <li class="sbold"> | |
45 | - <a href="#tab9" data-toggle="tab" aria-expanded="false">Follow | |
44 | + <li class="active sbold"> | |
45 | + <a href="#tab9" data-toggle="tab" aria-expanded="true">Follow | |
46 | 46 | <span class="badge"> {{resultNum9}} </span> |
47 | 47 | </a> |
48 | 48 | </li> |
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | </li> --> |
54 | 54 | </ul> |
55 | 55 | <div class="tab-content"> |
56 | - <div class="panel tab-pane active" id="tab1"> | |
56 | + <div class="panel tab-pane " id="tab1"> | |
57 | 57 | <div class="caption"> |
58 | 58 | <h1 class="icon-bubble font-green-sharp"> |
59 | 59 | <span class="caption-subject font-green-sharp sbold font"> Active</span> |
... | ... | @@ -920,7 +920,7 @@ |
920 | 920 | </div> |
921 | 921 | </div> |
922 | 922 | </div> |
923 | - <div class="panel tab-pane" id="tab9"> | |
923 | + <div class="panel tab-pane active" id="tab9"> | |
924 | 924 | <div class="caption"> |
925 | 925 | <h1 class="icon-bubble font-green-sharp"> |
926 | 926 | <span class="caption-subject font-green-sharp sbold font"> Active</span> |
... | ... | @@ -935,9 +935,14 @@ |
935 | 935 | </div> |
936 | 936 | <br> |
937 | 937 | <br> |
938 | - <button type="button" class="btn btn-circle button " *ngFor="let name of ButtonValue" (click)="getButton9(name.valueN);getButton9Onhold(name.valueN);" | |
939 | - style="margin-left: 5px; margin-top: 2px;"><div>{{NumType9}}</div> {{ name.name }} | |
938 | + <button type="button" class="btn btn-circle button " *ngFor="let name of ButtonValue" (click)="getButton9(name.valueN);getButton9Onhold(name.valueN);" | |
939 | + style="margin-left: 5px; margin-top: 2px;"><div *ngIf = "ButtonValue">{{NumType9}}</div> {{ name.name }} | |
940 | 940 | </button> |
941 | + <!-- <button type="button" class="btn btn-circle button " *ngFor="let name of ButtonValue" (click)="getButton9(name.valueN);getButton9Onhold(name.valueN);" | |
942 | + style="margin-left: 5px; margin-top: 2px;"><div>{{NumType9}}</div> {{ name.name }} | |
943 | + </button> --> | |
944 | + <hr> | |
945 | + <p *ngFor="let tt of Type9; let i = index">{{i}} {{tt}}</p> | |
941 | 946 | <hr> |
942 | 947 | <div *ngIf="showSecret1"> |
943 | 948 | <p style="text-align: left; font-size: 30px;"> 0 Tricket</p> | ... | ... |
src/app/dashboard/dashboard.component.ts
... | ... | @@ -786,28 +786,8 @@ setInterval(async () => { |
786 | 786 | this.resultNum9 = this.resultData9.length; |
787 | 787 | this.Show9.push(this.resultData9[i]); |
788 | 788 | console.log('show',this.Show9); |
789 | - // this.Type9.push(this.resultData9[i].type); | |
790 | - } | |
791 | - | |
792 | - // for (const item of this.Show9) { | |
793 | - // // console.log('item: ', item); | |
794 | - | |
795 | - // var st = ''; | |
796 | - // if (item['type']) { | |
797 | - // st = item['type'].toLowerCase(); | |
798 | - // this.Type9.push(st); | |
799 | - // console.log('st: ', this.Type9); | |
800 | - // // this.NumType9 = this.Type9.lent; | |
801 | - // } | |
802 | - | |
803 | - // // var string2 = valueN.toLowerCase(); | |
804 | - // // if (st.startsWith(string2)) { | |
805 | - // // resultArray.push(item); | |
806 | - | |
807 | - // // } | |
808 | - // } | |
809 | - // console.log('type',this.Type9); | |
810 | - | |
789 | + this.Type9.push(this.resultData9[i].type); | |
790 | + } | |
811 | 791 | } else { |
812 | 792 | this.resultData9 = []; |
813 | 793 | } |
... | ... | @@ -860,7 +840,7 @@ setInterval(async () => { |
860 | 840 | |
861 | 841 | const resultArray = []; |
862 | 842 | for (const item of this.Show1) { |
863 | - console.log('item: ', item); | |
843 | + // console.log('item: ', item); | |
864 | 844 | |
865 | 845 | var st = ''; |
866 | 846 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -890,7 +870,7 @@ setInterval(async () => { |
890 | 870 | |
891 | 871 | const resultArray = []; |
892 | 872 | for (const item of this.Show1Onhold) { |
893 | - console.log('item: ', item); | |
873 | + // console.log('item: ', item); | |
894 | 874 | |
895 | 875 | var st = ''; |
896 | 876 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -919,7 +899,7 @@ setInterval(async () => { |
919 | 899 | |
920 | 900 | const resultArray = []; |
921 | 901 | for (const item of this.Show2) { |
922 | - console.log('item: ', item); | |
902 | + // console.log('item: ', item); | |
923 | 903 | |
924 | 904 | var st = ''; |
925 | 905 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -948,7 +928,7 @@ setInterval(async () => { |
948 | 928 | |
949 | 929 | const resultArray = []; |
950 | 930 | for (const item of this.Show2Onhold) { |
951 | - console.log('item: ', item); | |
931 | + // console.log('item: ', item); | |
952 | 932 | |
953 | 933 | var st = ''; |
954 | 934 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -976,7 +956,7 @@ setInterval(async () => { |
976 | 956 | |
977 | 957 | const resultArray = []; |
978 | 958 | for (const item of this.Show3) { |
979 | - console.log('item: ', item); | |
959 | + // console.log('item: ', item); | |
980 | 960 | |
981 | 961 | var st = ''; |
982 | 962 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1005,7 +985,7 @@ setInterval(async () => { |
1005 | 985 | |
1006 | 986 | const resultArray = []; |
1007 | 987 | for (const item of this.Show3Onhold) { |
1008 | - console.log('item: ', item); | |
988 | + // console.log('item: ', item); | |
1009 | 989 | |
1010 | 990 | var st = ''; |
1011 | 991 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1033,7 +1013,7 @@ setInterval(async () => { |
1033 | 1013 | |
1034 | 1014 | const resultArray = []; |
1035 | 1015 | for (const item of this.Show4) { |
1036 | - console.log('item: ', item); | |
1016 | + // console.log('item: ', item); | |
1037 | 1017 | |
1038 | 1018 | var st = ''; |
1039 | 1019 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1062,7 +1042,7 @@ setInterval(async () => { |
1062 | 1042 | |
1063 | 1043 | const resultArray = []; |
1064 | 1044 | for (const item of this.Show4Onhold) { |
1065 | - console.log('item: ', item); | |
1045 | + // console.log('item: ', item); | |
1066 | 1046 | |
1067 | 1047 | var st = ''; |
1068 | 1048 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1090,7 +1070,7 @@ setInterval(async () => { |
1090 | 1070 | |
1091 | 1071 | const resultArray = []; |
1092 | 1072 | for (const item of this.Show5) { |
1093 | - console.log('item: ', item); | |
1073 | + // console.log('item: ', item); | |
1094 | 1074 | |
1095 | 1075 | var st = ''; |
1096 | 1076 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1119,7 +1099,7 @@ setInterval(async () => { |
1119 | 1099 | |
1120 | 1100 | const resultArray = []; |
1121 | 1101 | for (const item of this.Show5Onhold) { |
1122 | - console.log('item: ', item); | |
1102 | + // console.log('item: ', item); | |
1123 | 1103 | |
1124 | 1104 | var st = ''; |
1125 | 1105 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1147,7 +1127,7 @@ setInterval(async () => { |
1147 | 1127 | |
1148 | 1128 | const resultArray = []; |
1149 | 1129 | for (const item of this.Show6) { |
1150 | - console.log('item: ', item); | |
1130 | + // console.log('item: ', item); | |
1151 | 1131 | |
1152 | 1132 | var st = ''; |
1153 | 1133 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1182,7 +1162,7 @@ setInterval(async () => { |
1182 | 1162 | |
1183 | 1163 | const resultArray = []; |
1184 | 1164 | for (const item of this.Show6Onhold) { |
1185 | - console.log('item: ', item); | |
1165 | + // console.log('item: ', item); | |
1186 | 1166 | |
1187 | 1167 | var st = ''; |
1188 | 1168 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1245,7 +1225,7 @@ setInterval(async () => { |
1245 | 1225 | |
1246 | 1226 | const resultArray = []; |
1247 | 1227 | for (const item of this.Show7Onhold) { |
1248 | - console.log('item: ', item); | |
1228 | + // console.log('item: ', item); | |
1249 | 1229 | |
1250 | 1230 | var st = ''; |
1251 | 1231 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1315,7 +1295,7 @@ setInterval(async () => { |
1315 | 1295 | |
1316 | 1296 | const resultArray = []; |
1317 | 1297 | for (const item of this.Show8Onhold) { |
1318 | - console.log('item: ', item); | |
1298 | + // console.log('item: ', item); | |
1319 | 1299 | |
1320 | 1300 | var st = ''; |
1321 | 1301 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; |
... | ... | @@ -1355,8 +1335,8 @@ setInterval(async () => { |
1355 | 1335 | var st = ''; |
1356 | 1336 | if (item['type']) { |
1357 | 1337 | st = item['type'].toLowerCase(); |
1358 | - this.Type9.push(st); | |
1359 | - console.log('st: ', this.Type9); | |
1338 | + // this.Type9.push(st); | |
1339 | + // console.log('st: ', this.Type9); | |
1360 | 1340 | // this.NumType9 = this.Type9.lent; |
1361 | 1341 | } |
1362 | 1342 | |
... | ... | @@ -1376,6 +1356,7 @@ setInterval(async () => { |
1376 | 1356 | |
1377 | 1357 | this.resultData9 = resultArray; |
1378 | 1358 | this.NumType9 = resultArray.length; |
1359 | + // this.Type9.push(this.NumType9); | |
1379 | 1360 | } |
1380 | 1361 | |
1381 | 1362 | /* buttondataOnhold9 */ |
... | ... | @@ -1388,7 +1369,7 @@ setInterval(async () => { |
1388 | 1369 | |
1389 | 1370 | const resultArray = []; |
1390 | 1371 | for (const item of this.Show9Onhold) { |
1391 | - console.log('item: ', item); | |
1372 | + // console.log('item: ', item); | |
1392 | 1373 | |
1393 | 1374 | var st = ''; |
1394 | 1375 | // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; | ... | ... |