sonar medium
This commit is contained in:
@@ -388,15 +388,11 @@ export default {
|
|||||||
this.task = this.isSubmitShowDataWtEte.task;
|
this.task = this.isSubmitShowDataWtEte.task;
|
||||||
this.isStartSelected = this.isSubmitShowDataWtEte.isStartSelected;
|
this.isStartSelected = this.isSubmitShowDataWtEte.isStartSelected;
|
||||||
this.isEndSelected = this.isSubmitShowDataWtEte.isEndSelected;
|
this.isEndSelected = this.isSubmitShowDataWtEte.isEndSelected;
|
||||||
// this.taskStart = this.isSubmitShowDataWtEte.taskStart;
|
|
||||||
// this.taskEnd = this.isSubmitShowDataWtEte.taskEnd;
|
|
||||||
break;
|
break;
|
||||||
case 'Partial':
|
case 'Partial':
|
||||||
this.task = this.isSubmitShowDataWtP.task;
|
this.task = this.isSubmitShowDataWtP.task;
|
||||||
this.isStartSelected = this.isSubmitShowDataWtP.isStartSelected;
|
this.isStartSelected = this.isSubmitShowDataWtP.isStartSelected;
|
||||||
this.isEndSelected = this.isSubmitShowDataWtP.isEndSelected;
|
this.isEndSelected = this.isSubmitShowDataWtP.isEndSelected;
|
||||||
// this.taskStart = this.isSubmitShowDataWtP.taskStart;
|
|
||||||
// this.taskEnd = this.isSubmitShowDataWtP.taskEnd;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -406,8 +402,6 @@ export default {
|
|||||||
this.task = this.isSubmitShowDataCt.task;
|
this.task = this.isSubmitShowDataCt.task;
|
||||||
this.isStartSelected = this.isSubmitShowDataCt.isStartSelected;
|
this.isStartSelected = this.isSubmitShowDataCt.isStartSelected;
|
||||||
this.isEndSelected = this.isSubmitShowDataCt.isEndSelected;
|
this.isEndSelected = this.isSubmitShowDataCt.isEndSelected;
|
||||||
// this.taskStart = this.isSubmitShowDataCt.taskStart;
|
|
||||||
// this.taskEnd = this.isSubmitShowDataCt.taskEnd;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -286,7 +286,8 @@ export default {
|
|||||||
@apply sticky top-0 left-0 z-10 bg-neutral-10
|
@apply sticky top-0 left-0 z-10 bg-neutral-10
|
||||||
}
|
}
|
||||||
:deep(.p-datatable .p-datatable-thead > tr > th) {
|
:deep(.p-datatable .p-datatable-thead > tr > th) {
|
||||||
@apply !border-y-0 border-neutral-500 bg-neutral-100 after:absolute after:left-0 after:w-full after:h-full after:block after:top-0 after:border-b after:border-t after:border-neutral-500
|
@apply !border-y-0 border-neutral-500 bg-neutral-100 after:absolute after:left-0 after:w-full after:h-full after:block after:top-0 after:border-b after:border-t after:border-neutral-500;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
:deep(.p-datatable .p-datatable-tbody > tr > td) {
|
:deep(.p-datatable .p-datatable-tbody > tr > td) {
|
||||||
@apply border-neutral-500 !border-t-0 text-center
|
@apply border-neutral-500 !border-t-0 text-center
|
||||||
@@ -295,9 +296,6 @@ export default {
|
|||||||
:deep(.p-column-header-content) {
|
:deep(.p-column-header-content) {
|
||||||
@apply justify-center
|
@apply justify-center
|
||||||
}
|
}
|
||||||
:deep(.p-datatable .p-datatable-thead > tr > th) {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
:deep(.p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td) {
|
:deep(.p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td) {
|
||||||
min-width: 72px;
|
min-width: 72px;
|
||||||
max-width: 184px;
|
max-width: 184px;
|
||||||
|
|||||||
@@ -86,8 +86,8 @@ export default {
|
|||||||
data: function() {
|
data: function() {
|
||||||
// Activity List 要排序
|
// Activity List 要排序
|
||||||
this.filteredData = this.filteredData.sort((x, y) => {
|
this.filteredData = this.filteredData.sort((x, y) => {
|
||||||
y.occurrences - x.occurrences
|
const diff = y.occurrences - x.occurrences;
|
||||||
if(y.occurrences === x.occurrences) sortNumEngZhtwForFilter(x.label, y.label);
|
return diff !== 0 ? diff : sortNumEngZhtwForFilter(x.label, y.label);
|
||||||
});
|
});
|
||||||
return this.filteredData;
|
return this.filteredData;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user