Merge branch 'develop' into devTee
This commit is contained in:
commit
d20ef87c5e
3 changed files with 28 additions and 26 deletions
|
|
@ -255,7 +255,7 @@ watch(
|
|||
selected-color="primary"
|
||||
:nodes="nodeTree"
|
||||
node-key="orgTreeId"
|
||||
label-key="orgTreeName"
|
||||
label-key="labelName"
|
||||
:filter="filterTree"
|
||||
no-results-label="ไม่พบข้อมูลที่ค้นหา"
|
||||
no-nodes-label="ไม่มีข้อมูล"
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ const reqMaster = reactive<FilterMaster>({
|
|||
page: 1,
|
||||
pageSize: 10,
|
||||
keyword: "",
|
||||
revisionId: store.activeId
|
||||
revisionId: store.activeId,
|
||||
});
|
||||
const totalRow = ref<number>(0);
|
||||
const selectedPos = ref<PosMaster[]>([]);
|
||||
|
|
@ -264,7 +264,7 @@ function clearForm() {
|
|||
selected-color="primary"
|
||||
:nodes="nodeTree"
|
||||
node-key="orgTreeId"
|
||||
label-key="orgTreeName"
|
||||
label-key="labelName"
|
||||
:filter="filterTree"
|
||||
no-results-label="ไม่พบข้อมูลที่ค้นหา"
|
||||
no-nodes-label="ไม่มีข้อมูล"
|
||||
|
|
|
|||
|
|
@ -38,34 +38,13 @@ const periodLatest = ref<DataPeriodLatest>();
|
|||
|
||||
const isLoad = ref<boolean>(false);
|
||||
|
||||
/** ตัวแปร select*/
|
||||
const page = ref<number>(1);
|
||||
const pageSize = ref<number>(50);
|
||||
const lastPage = ref<number>(0);
|
||||
const loading = ref(false);
|
||||
const nextPage = ref<number>(1);
|
||||
|
||||
function onScroll({ to, ref }: { to: number; ref: any }) {
|
||||
const lastIndex = roundOptions.value.length - 1;
|
||||
|
||||
if (
|
||||
loading.value !== true &&
|
||||
nextPage.value < lastPage.value &&
|
||||
to === lastIndex
|
||||
) {
|
||||
loading.value = true;
|
||||
|
||||
setTimeout(() => {
|
||||
nextPage.value++;
|
||||
page.value = nextPage.value;
|
||||
getRound();
|
||||
nextTick(() => {
|
||||
ref.refresh();
|
||||
loading.value = false;
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
/**function เรียกข้อมูลรอบการขึ้นเงินเดือน*/
|
||||
async function getRound() {
|
||||
showLoader();
|
||||
|
|
@ -278,6 +257,29 @@ async function onChangeAgency() {
|
|||
}
|
||||
}
|
||||
|
||||
/** function onScrollSelect รอบการขึ้นเงินเดือน*/
|
||||
function onScroll({ to, ref }: { to: number; ref: any }) {
|
||||
const lastIndex = roundOptions.value.length - 1;
|
||||
|
||||
if (
|
||||
loading.value !== true &&
|
||||
nextPage.value < lastPage.value &&
|
||||
to === lastIndex
|
||||
) {
|
||||
loading.value = true;
|
||||
|
||||
setTimeout(() => {
|
||||
nextPage.value++;
|
||||
page.value = nextPage.value;
|
||||
getRound();
|
||||
nextTick(() => {
|
||||
ref.refresh();
|
||||
loading.value = false;
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await getRound();
|
||||
});
|
||||
|
|
@ -289,7 +291,7 @@ onMounted(async () => {
|
|||
รายการเงินเดือน
|
||||
</div>
|
||||
<q-space />
|
||||
<!-- @virtual-scroll="onScroll" -->
|
||||
|
||||
<q-select
|
||||
v-model="roundFilter"
|
||||
label="รอบการขึ้นเงินเดือน"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue