แก้ ไม่push link

This commit is contained in:
STW_TTTY\stwtt 2024-04-25 17:08:02 +07:00
parent 23be6c5fb8
commit 9213e7e33b
2 changed files with 1 additions and 46 deletions

View file

@ -121,7 +121,6 @@ function selectAgency() {
/** บันทึกข้อมูล */
function onSubmit() {
const url = id.value
? config.API.kpiRoleMainList + `/${id.value}`
: config.API.kpiRoleMainList;
@ -154,7 +153,7 @@ function onSubmit() {
http[id.value ? "put" : "post"](url, body)
.then((res) => {
success($q, "บันทึกสำเร็จ");
router.push(`/KPI-indicator-role`);
id.value ? getDetail() : router.push(`/KPI-indicator-role`);
})
.finally(() => {
hideLoader();

View file

@ -408,50 +408,6 @@ onMounted(() => {
<q-space />
<div class="row q-gutter-sm">
<!-- <q-btn
flat
round
color="blue"
icon="mdi-arrow-down-bold-circle-outline"
>
<q-menu>
<q-list style="min-width: 100px" dense>
<q-item clickable v-close-popup v-for="items in itemDownload">
<q-item-section avatar>
<q-icon :color="items.color" :name="items.icon" />
</q-item-section>
<q-item-section :class="`text-${items.color}`">{{
items.label
}}</q-item-section>
</q-item>
</q-list>
</q-menu>
<q-tooltip>ดาวนโหลด</q-tooltip>
</q-btn> -->
<!-- <q-input
standout
dense
v-model="formQuery.keyword"
ref="filterRef"
outlined
debounce="300"
placeholder="ค้นหา"
@keyup.enter="(formQuery.page = 1), fetchList()"
>
<template v-slot:append>
<q-icon v-if="formQuery.keyword == ''" name="search" />
<q-icon
v-if="formQuery.keyword !== ''"
name="clear"
class="cursor-pointer"
@click="
(formQuery.keyword = ''), (formQuery.page = 1), fetchList()
"
/>
</template>
</q-input> -->
<q-select
v-model="visibleColumns"
multiple