เพิ่ม button back

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-07-17 16:13:18 +07:00
parent 9d3e90e9b2
commit 1782765dba
2 changed files with 18 additions and 2 deletions

View file

@ -180,11 +180,24 @@ const clickDelete = () => {
.onCancel(() => {})
.onDismiss(() => {});
};
const backHistory = () => {
window.history.back();
};
</script>
<template>
<div class="toptitle text-dark col-12 row items-center">
รายชอผเกษยณอาย
<q-btn
icon="mdi-arrow-left"
unelevated
round
dense
flat
color="primary"
class="q-mr-sm"
@click="backHistory"
/>
รายชอผเกษยณอายราชการ
</div>
<div>
<q-card class="col-12 q-pa-md">

View file

@ -126,7 +126,7 @@
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-tr :props="props" class="cursor-pointer" @click="nextPage">
<q-td key="no" :props="props">
{{ props.rowIndex + 1 }}
</q-td>
@ -369,6 +369,9 @@ const paginationLabel = (start: string, end: string, total: string) => {
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
else return start + "-" + end + " ใน " + total;
};
const nextPage = () => {
router.push("/retirement/list");
};
</script>
<style lang="scss" scope>