Merge branch 'NiceDev' into develop
This commit is contained in:
commit
a020cd2d56
2 changed files with 4 additions and 10 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch } from "vue";
|
import { ref } from "vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
|
|
@ -13,14 +13,8 @@ import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const store = useKpiDataStore();
|
const store = useKpiDataStore();
|
||||||
const {
|
const { showLoader, hideLoader, messageError, dialogConfirm, success } =
|
||||||
showLoader,
|
useCounterMixin();
|
||||||
hideLoader,
|
|
||||||
messageError,
|
|
||||||
dialogConfirm,
|
|
||||||
dialogMessageNotify,
|
|
||||||
success,
|
|
||||||
} = useCounterMixin();
|
|
||||||
|
|
||||||
const modal = defineModel<boolean>("modal", { required: true });
|
const modal = defineModel<boolean>("modal", { required: true });
|
||||||
const rows = defineModel<any>("data", { required: true });
|
const rows = defineModel<any>("data", { required: true });
|
||||||
|
|
|
||||||
|
|
@ -146,8 +146,8 @@ function onDelete(id: string) {
|
||||||
? config.API.kpiAchievement("special") + `/${id}`
|
? config.API.kpiAchievement("special") + `/${id}`
|
||||||
: "";
|
: "";
|
||||||
await http.delete(url);
|
await http.delete(url);
|
||||||
props.fetchList?.();
|
|
||||||
success($q, "ลบข้อมูลสำเร็จ");
|
success($q, "ลบข้อมูลสำเร็จ");
|
||||||
|
props.fetchList?.();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue