remove console logs
This commit is contained in:
parent
e85a300703
commit
d1e1d2fe7d
|
@ -13,7 +13,7 @@ class UiGeneralController extends AbstractController
|
||||||
#[Route('/', name: 'general_home')]
|
#[Route('/', name: 'general_home')]
|
||||||
public function general_home(): Response
|
public function general_home(): Response
|
||||||
{
|
{
|
||||||
return $this->redirect('/u');
|
return $this->redirect('/u/');
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Route('/system/getname', name: 'general_get_name')]
|
#[Route('/system/getname', name: 'general_get_name')]
|
||||||
|
|
|
@ -153,7 +153,6 @@
|
||||||
async fetchHesabdariTables() {
|
async fetchHesabdariTables() {
|
||||||
try {
|
try {
|
||||||
const response = await axios.get('/api/hesabdari/tables');
|
const response = await axios.get('/api/hesabdari/tables');
|
||||||
console.log('دیتای دریافتشده از API:', response.data);
|
|
||||||
this.hesabdariTables = response.data.data;
|
this.hesabdariTables = response.data.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('خطا در دریافت حسابها:', error.response?.data || error.message);
|
console.error('خطا در دریافت حسابها:', error.response?.data || error.message);
|
||||||
|
|
|
@ -160,8 +160,8 @@ export default defineComponent({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<v-btn v-if="$props.btn == true" @click="loadData(); dialog = true"
|
<v-btn v-if="$props.btn == true" @click="loadData(); dialog = true" icon="mdi-plus" class="text-primary"
|
||||||
icon="mdi-plus" class="text-primary" variant="plain" density="compact" :title="$t('dialog.new')">
|
variant="plain" density="compact" :title="$t('dialog.new')">
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
|
||||||
<v-dialog v-model="dialog" transition="dialog-bottom-transition" fullscreen>
|
<v-dialog v-model="dialog" transition="dialog-bottom-transition" fullscreen>
|
||||||
|
@ -223,8 +223,7 @@ export default defineComponent({
|
||||||
<p class="py-0 my-0 text-primary">نوع مشتری</p>
|
<p class="py-0 my-0 text-primary">نوع مشتری</p>
|
||||||
<div v-for="(item, index) in person.types"
|
<div v-for="(item, index) in person.types"
|
||||||
class="form-check form-check-inline">
|
class="form-check form-check-inline">
|
||||||
<input @change="console.log(this.person.types)"
|
<input v-model="person.types[index].checked" checked=""
|
||||||
v-model="person.types[index].checked" checked=""
|
|
||||||
class="form-check-input" type="checkbox">
|
class="form-check-input" type="checkbox">
|
||||||
<label class="form-check-label">{{ item.label }}</label>
|
<label class="form-check-label">{{ item.label }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -295,11 +295,9 @@ const loadData = async (options = null) => {
|
||||||
dateFilter: dateFilter.value,
|
dateFilter: dateFilter.value,
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('Request Params:', params);
|
|
||||||
|
|
||||||
const response = await axios.post('/api/person/receive/list/search', params);
|
const response = await axios.post('/api/person/receive/list/search', params);
|
||||||
|
|
||||||
console.log('Server Response:', response.data);
|
|
||||||
|
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
if (Array.isArray(response.data)) {
|
if (Array.isArray(response.data)) {
|
||||||
|
@ -316,8 +314,7 @@ const loadData = async (options = null) => {
|
||||||
amount: parseFloat(item.amount)
|
amount: parseFloat(item.amount)
|
||||||
}));
|
}));
|
||||||
|
|
||||||
console.log('Processed Items:', items.value);
|
|
||||||
console.log('Total Items:', totalItems.value);
|
|
||||||
|
|
||||||
sumTotal.value = items.value.reduce((acc, item) => acc + parseFloat(item.amount), 0);
|
sumTotal.value = items.value.reduce((acc, item) => acc + parseFloat(item.amount), 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,9 +85,7 @@ const callInstallbtn = () => {
|
||||||
|
|
||||||
event.userChoice.then((choiceResult: { outcome: string }) => {
|
event.userChoice.then((choiceResult: { outcome: string }) => {
|
||||||
if (choiceResult.outcome === "accepted") {
|
if (choiceResult.outcome === "accepted") {
|
||||||
console.log("User Accepted");
|
|
||||||
} else {
|
} else {
|
||||||
console.log("User dismissed");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
installPromptEvent.value = null;
|
installPromptEvent.value = null;
|
||||||
|
@ -146,7 +144,6 @@ onMounted(() => {
|
||||||
window.addEventListener("beforeinstallprompt", (e: Event) => {
|
window.addEventListener("beforeinstallprompt", (e: Event) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
installPromptEvent.value = e;
|
installPromptEvent.value = e;
|
||||||
console.log(installPromptEvent.value);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
|
|
Loading…
Reference in a new issue