From 9abdd27b307b81bedba850f807c3464beda08261 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 18 Mar 2024 12:50:43 +0700 Subject: [PATCH] fix bug --- .../salaryEmployeeChart/TabCriteria.vue | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/modules/13_salary/components/salaryEmployeeChart/TabCriteria.vue b/src/modules/13_salary/components/salaryEmployeeChart/TabCriteria.vue index f89409cc2..6842696a5 100644 --- a/src/modules/13_salary/components/salaryEmployeeChart/TabCriteria.vue +++ b/src/modules/13_salary/components/salaryEmployeeChart/TabCriteria.vue @@ -16,7 +16,6 @@ import { useQuasar } from "quasar"; import { useCounterMixin } from "@/stores/mixin"; import http from "@/plugins/http"; import config from "@/app.config"; -import { br } from "@fullcalendar/core/internal-common"; const maxPage = ref(1); const $q = useQuasar(); @@ -176,7 +175,7 @@ function getData() { posName: item.position, posLevel: item.posLevel, rateOldMin: item.salaryMin, - groupOld: item.salaryEmployeeMin.sort((a,b)=>a -b), + groupOld: item.salaryEmployeeMin.sort((a, b) => a - b), rateMaxOld: item.salary, groupRateHigh: item.group, rateHighMax: item.salaryMax, @@ -212,7 +211,7 @@ function updatePageSize(newPagination: NewPagination) { function onClickDelete(id: string) { dialogRemove($q, () => { http - .delete(config.API.salaryFormula()+`/${id}`) + .delete(config.API.salaryFormula() + `/${id}`) .then(() => { getData(); success($q, "ลบข้อมูลสำเร็จ"); @@ -317,16 +316,14 @@ onMounted(() => { {{ col.value ? col.value.toLocaleString() : "-" }}
- - - - {{ item }}{{index+1 == col.value.length ?'':','}} - - + + {{ item }}{{ index + 1 == col.value.length ? "" : "," }} + +
{{ col.value != "" ? col.value : "-" }}
- +