อัตราค่าจ้าง => ประการเพิ่ม แก้ไข อัตราค่าจ้าง
This commit is contained in:
parent
9efa8b890d
commit
07cf0727db
1 changed files with 17 additions and 4 deletions
|
|
@ -81,7 +81,7 @@ const itemMenu = ref<ItemsMenu[]>([
|
||||||
|
|
||||||
const formFilter = reactive<FormFilter>({
|
const formFilter = reactive<FormFilter>({
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10,
|
pageSize: 100,
|
||||||
keyword: "",
|
keyword: "",
|
||||||
});
|
});
|
||||||
const maxPage = ref<number>(1);
|
const maxPage = ref<number>(1);
|
||||||
|
|
@ -90,6 +90,17 @@ const pagination = ref({
|
||||||
page: formFilter.page,
|
page: formFilter.page,
|
||||||
rowsPerPage: formFilter.pageSize,
|
rowsPerPage: formFilter.pageSize,
|
||||||
});
|
});
|
||||||
|
const isActive = ref<boolean>(false);
|
||||||
|
|
||||||
|
function fetchDataDetail() {
|
||||||
|
http
|
||||||
|
.get(config.API.salaryEmployeeChartByid(salaryEmployeeId.value))
|
||||||
|
.then((res) => {
|
||||||
|
isActive.value = res.data.result.isActive;
|
||||||
|
})
|
||||||
|
.catch((e) => {})
|
||||||
|
.finally(() => {});
|
||||||
|
}
|
||||||
|
|
||||||
function fetchSalalyEmployeeRate() {
|
function fetchSalalyEmployeeRate() {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
@ -179,6 +190,7 @@ watch(
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetchSalalyEmployeeRate();
|
fetchSalalyEmployeeRate();
|
||||||
|
fetchDataDetail();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|
@ -199,7 +211,7 @@ onMounted(() => {
|
||||||
</div>
|
</div>
|
||||||
<q-card flat bordered class="q-pa-md">
|
<q-card flat bordered class="q-pa-md">
|
||||||
<q-toolbar class="text-primary" style="padding: 0px">
|
<q-toolbar class="text-primary" style="padding: 0px">
|
||||||
<q-btn flat round dense icon="add" @click="onClickAdd">
|
<q-btn v-if="!isActive" flat round dense icon="add" @click="onClickAdd">
|
||||||
<q-tooltip>เพิ่ม </q-tooltip>
|
<q-tooltip>เพิ่ม </q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-space />
|
<q-space />
|
||||||
|
|
@ -243,13 +255,14 @@ onMounted(() => {
|
||||||
:rows-per-page-options="[10, 20, 50, 100]"
|
:rows-per-page-options="[10, 20, 50, 100]"
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
@update:pagination="updatePageSize"
|
@update:pagination="updatePageSize"
|
||||||
|
v-model:pagination="pagination"
|
||||||
>
|
>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
<span class="text-weight-medium">{{ col.label }}</span>
|
<span class="text-weight-medium">{{ col.label }}</span>
|
||||||
</q-th>
|
</q-th>
|
||||||
<q-th auto-width />
|
<q-th auto-width v-if="!isActive" />
|
||||||
</q-tr>
|
</q-tr>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -264,7 +277,7 @@ onMounted(() => {
|
||||||
</div>
|
</div>
|
||||||
<div v-else>{{ col.value ? col.value : "-" }}</div>
|
<div v-else>{{ col.value ? col.value : "-" }}</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td>
|
<q-td v-if="!isActive">
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue