fix bug
This commit is contained in:
parent
d0e7154d35
commit
1e892b89f4
1 changed files with 1 additions and 2 deletions
|
|
@ -100,10 +100,10 @@ const yearOptions = ref<any>([{ id: "", year: "ทั้งหมด" }]);
|
||||||
// ประกาศเกษียณอายุราชการ
|
// ประกาศเกษียณอายุราชการ
|
||||||
async function fetchRetirement(type: string, year: any) {
|
async function fetchRetirement(type: string, year: any) {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
rows.value = [];
|
||||||
await http
|
await http
|
||||||
.get(config.API.retirement(type, year))
|
.get(config.API.retirement(type, year))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
rows.value = [];
|
|
||||||
let data = res.data.result;
|
let data = res.data.result;
|
||||||
rows.value = data.map((items: any) => ({
|
rows.value = data.map((items: any) => ({
|
||||||
id: items.id,
|
id: items.id,
|
||||||
|
|
@ -335,7 +335,6 @@ onMounted(async () => {
|
||||||
map-options
|
map-options
|
||||||
:options="columns"
|
:options="columns"
|
||||||
option-value="name"
|
option-value="name"
|
||||||
|
|
||||||
style="min-width: 140px"
|
style="min-width: 140px"
|
||||||
class="col-xs-12 col-sm-3 col-md-2"
|
class="col-xs-12 col-sm-3 col-md-2"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue