fix bug
This commit is contained in:
parent
c1b837e47e
commit
9abdd27b30
1 changed files with 7 additions and 10 deletions
|
|
@ -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<number>(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() : "-" }}
|
||||
</div>
|
||||
<div v-else-if="col.name == 'groupOld'">
|
||||
|
||||
<span v-for="item,index in col.value">
|
||||
|
||||
{{ item }}{{index+1 == col.value.length ?'':','}}
|
||||
</span>
|
||||
<!-- {{ col.value }} -->
|
||||
<span v-for="(item, index) in col.value">
|
||||
{{ item }}{{ index + 1 == col.value.length ? "" : "," }}
|
||||
</span>
|
||||
<!-- {{ col.value }} -->
|
||||
</div>
|
||||
<div v-else>{{ col.value != "" ? col.value : "-" }}</div>
|
||||
</q-td>
|
||||
|
||||
|
||||
<q-td>
|
||||
<q-btn
|
||||
flat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue