Commit d923d4d2 by Natthaphat Pankiang

ลบ log

parent 0f4d97e1
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
</label> </label>
</td> </td>
<td style="font-size: 12px; width: 60%;"> <td style="font-size: 12px; width: 60%;">
{{item.data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.competencyTopic.tdesc}} {{item.data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.tdesc}}
</td> </td>
<td style="font-size: 12px;text-align: center;"> <td style="font-size: 12px;text-align: center;">
{{item.data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.expectation}} {{item.data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.expectation}}
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
<td style="font-size: 12px; width: 60%;"> <td style="font-size: 12px; width: 60%;">
{{item.data.competencyIndicatorsCourses0.tdesc}} {{item.data.competencyIndicatorsCourses0.tdesc}}
</td> </td>
<td style="font-size: 12px;text-align: center;"> <td style="font-size: 12px;text-align: center; width: 20%;">
{{item.data.competencyIndicatorsCourses0.expectation}}</td> {{item.data.competencyIndicatorsCourses0.expectation}}</td>
<td class="flex justify-center"> <td class="flex justify-center">
<div class="px-1"> <div class="px-1">
......
...@@ -78,15 +78,22 @@ export class EditGroupCompetenciesComponent { ...@@ -78,15 +78,22 @@ export class EditGroupCompetenciesComponent {
this.page = Array.from({ length: Math.ceil(filteredData.length / 10) }, (_, i) => i + 1); this.page = Array.from({ length: Math.ceil(filteredData.length / 10) }, (_, i) => i + 1);
} }
dataListFilter() { dataListFilter() {
return this.dataList.filter(x => { return this.dataList
const data = x.data .filter(x => {
const match = data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.competencyTopic.competencyTopicId.toLowerCase().includes(this.search.toLowerCase()) || const data = x.data;
data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.competencyTopic.tdesc.toLowerCase().includes(this.search.toLowerCase()) || const match =
data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.expectation.toLocaleLowerCase().includes(this.search.toLocaleLowerCase()) data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.competencyTopic.competencyTopicId.toLowerCase().includes(this.search.toLowerCase()) ||
data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.tdesc.toLowerCase().includes(this.search.toLowerCase()) ||
data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.expectation.toLowerCase().includes(this.search.toLowerCase());
return match; return match;
})
.sort((a, b) => {
return a.data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.competencyTopic.competencyTopicId
.localeCompare(b.data.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.competencyTopic.competencyTopicId);
}); });
} }
getIndicatorsCoursesList() { getIndicatorsCoursesList() {
this.dataModalLoading = true this.dataModalLoading = true
this.indicatorsCoursesService.getList().subscribe({ this.indicatorsCoursesService.getList().subscribe({
...@@ -131,7 +138,6 @@ export class EditGroupCompetenciesComponent { ...@@ -131,7 +138,6 @@ export class EditGroupCompetenciesComponent {
this.groupCompetencies.groupAssessment1List = this.dataList.map(x => x.data); this.groupCompetencies.groupAssessment1List = this.dataList.map(x => x.data);
this.groupAssessmentService.post(this.groupCompetencies).subscribe({ this.groupAssessmentService.post(this.groupCompetencies).subscribe({
next: (response) => { next: (response) => {
console.log(response)
if (response.success) { if (response.success) {
this.showAlert(response.message, 'success'); this.showAlert(response.message, 'success');
} else { } else {
......
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