รายการเลื่อนเงินเดือนข้าราชการฯ => new
This commit is contained in:
parent
91504f66ec
commit
3e39d421f3
12 changed files with 301 additions and 228 deletions
|
|
@ -146,7 +146,7 @@ function onClickAddPerson(data: DataPerson) {
|
|||
$q,
|
||||
() => {
|
||||
http
|
||||
.post(config.API.salaryPeriodProfile, body)
|
||||
.post(config.API.salaryPeriodProfileEmp, body)
|
||||
.then(() => {
|
||||
props.fetchData?.();
|
||||
success($q, "เพื่มรายชื่อสำเร็จ");
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ const maxPage = ref<number>(1);
|
|||
function fetchDataQuota(id: string) {
|
||||
// showLoader();
|
||||
http
|
||||
.get(config.API.salaryListPeriodQuota(id))
|
||||
.get(config.API.salaryListPeriodQuotaEmp(id))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
store.remaining = data.remaining;
|
||||
|
|
@ -242,7 +242,7 @@ function fetchDataPeriod(id: string) {
|
|||
};
|
||||
|
||||
http
|
||||
.put(config.API.salaryListPeriodORG(id), formData)
|
||||
.put(config.API.salaryListPeriodORGEmp(id), formData)
|
||||
.then((res) => {
|
||||
rows.value = res.data.result.data;
|
||||
total.value = res.data.result.total;
|
||||
|
|
@ -298,9 +298,9 @@ function onClickDownload(data: DataOption) {
|
|||
}
|
||||
|
||||
const modalDialogInfoCriteria = ref<boolean>(false);
|
||||
onMounted(async () => {
|
||||
await fetchDataQuota(store.groupId);
|
||||
await fetchDataPeriod(store.groupId);
|
||||
onMounted(() => {
|
||||
fetchDataQuota(store.groupId);
|
||||
fetchDataPeriod(store.groupId);
|
||||
splitterModel.value = store.roundMainCode === "APR" ? 13 : 16;
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -289,7 +289,13 @@ watch(
|
|||
:display-value="$q.lang.table.columns"
|
||||
emit-value
|
||||
map-options
|
||||
:options="store.roundMainCode === 'OCT' ? columns : columns.slice(0, 10)"
|
||||
:options="
|
||||
store.roundMainCode === 'OCT'
|
||||
? columns
|
||||
: columns
|
||||
? columns.slice(0, 10)
|
||||
: []
|
||||
"
|
||||
option-value="name"
|
||||
options-cover
|
||||
style="min-width: 150px"
|
||||
|
|
@ -299,7 +305,13 @@ watch(
|
|||
|
||||
<d-table
|
||||
ref="table"
|
||||
:columns="store.roundMainCode === 'OCT' ? columns : columns.slice(0, 10)"
|
||||
:columns="
|
||||
store.roundMainCode === 'OCT'
|
||||
? columns
|
||||
: columns
|
||||
? columns.slice(0, 10)
|
||||
: []
|
||||
"
|
||||
:rows="props.rows"
|
||||
row-key="id"
|
||||
flat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue