[WIP] Добавил квазаровскую пагинацию
This commit is contained in:
@@ -43,6 +43,11 @@
|
||||
@next-page="switchNextPage",
|
||||
@set-current-page="changeCurrentTablePage"
|
||||
)
|
||||
//- base-pagination(
|
||||
//- :max="paginationInfo.length",
|
||||
//- :value="currentTablePage",
|
||||
//- directionLinks
|
||||
//- )
|
||||
base-modal(
|
||||
v-model="showModal",
|
||||
:title="titleModal",
|
||||
@@ -69,6 +74,7 @@ import BaseModal from "@/components/base/BaseModal.vue";
|
||||
import ClientTableModal from "./ClientTableModal.vue";
|
||||
import FormCreateMedicalCard from "@/pages/clients/components/FormCreateMedicalCard";
|
||||
import BaseLoader from "@/components/Loader/BaseLoader.vue";
|
||||
import BasePagination from "@/components/base/BasePagination.vue";
|
||||
export default {
|
||||
name: "ClientsTable",
|
||||
components: {
|
||||
@@ -82,6 +88,7 @@ export default {
|
||||
ClientTableModal,
|
||||
FormCreateMedicalCard,
|
||||
BaseLoader,
|
||||
BasePagination,
|
||||
},
|
||||
props: {
|
||||
openForm: Function,
|
||||
|
||||
@@ -330,8 +330,10 @@ export default {
|
||||
(e) =>
|
||||
e.date === moment(this.replacementSheet.date).format("YYYY-MM-DD")
|
||||
);
|
||||
this.replacementSheet.start_time = dateSchedule?.start_time;
|
||||
this.replacementSheet.end_time = dateSchedule?.end_time;
|
||||
if (dateSchedule?.start_time) {
|
||||
this.replacementSheet.start_time = dateSchedule?.start_time;
|
||||
this.replacementSheet.end_time = dateSchedule?.end_time;
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -81,10 +81,9 @@ export default {
|
||||
this.setActiveButton();
|
||||
return {
|
||||
"--bg-color-status": this.activeButton?.color,
|
||||
"--text-status":
|
||||
!this.template.item?.symbol && this.activeCell
|
||||
? this.activeButton?.text
|
||||
: this.template.item?.symbol,
|
||||
"--text-status": !this.template.item?.symbol
|
||||
? this.activeButton?.text
|
||||
: this.template.item?.symbol,
|
||||
};
|
||||
},
|
||||
},
|
||||
@@ -173,7 +172,7 @@ export default {
|
||||
return {
|
||||
"set-template":
|
||||
!!this.template.item?.label && this.setActiveTemplate(),
|
||||
status: !!this.activeButton && this.activeCell,
|
||||
status: !!this.activeButton,
|
||||
"set-date": !this.activeButton && this.activeCell,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user