no message

This commit is contained in:
setthawutttty 2024-11-07 12:06:13 +07:00
parent 8c989e84b2
commit aa65b8165d
5 changed files with 58 additions and 24 deletions

View file

@ -1,9 +1,11 @@
<script setup lang="ts">
import { ref, onMounted, watch } from "vue";
import { useQuasar } from "quasar";
import { useRouter } from "vue-router";
import config from "@/app.config";
import http from "@/plugins/http";
import { useDataStore } from "@/stores/data";
import { useQuasar } from "quasar";
import { useRouter } from "vue-router";
/**
* importType
@ -32,6 +34,7 @@ import { useCounterMixin } from "@/stores/mixin";
const $q = useQuasar();
const store = useRequestEditStore();
const router = useRouter();
const dataStore = useDataStore()
const { showLoader, hideLoader, messageError, dialogRemove, success } =
useCounterMixin();
@ -146,7 +149,7 @@ function fetchListRequset() {
};
showLoader();
http
.get(config.API.requestEdit + `user`, { params: queryParams })
.get(config.API.requestEditByType(dataStore.officerLink) + `user`, { params: queryParams })
.then((res) => {
const data = res.data.result;
maxPage.value = Math.ceil(data.total / pageSize.value);
@ -369,7 +372,6 @@ onMounted(() => {
map-options
:options="columns"
option-value="name"
class="col-xs-12 col-sm-3 col-md-2"
style="min-width: 140px"
/>