local dev
This commit is contained in:
parent
877f99f466
commit
a56dcbd4d2
|
@ -28,7 +28,9 @@ SECRET_KEY = "django-insecure-ruo!wst&sb8(f9)j5u4rda-w!673lj_-c0a%gx_t@)ff*q*2ze
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = [
|
||||||
|
'192.168.103.159'
|
||||||
|
]
|
||||||
CORS_ALLOWED_ORIGINS = [
|
CORS_ALLOWED_ORIGINS = [
|
||||||
'http://localhost:3000',
|
'http://localhost:3000',
|
||||||
'http://192.168.103.159:3000'
|
'http://192.168.103.159:3000'
|
||||||
|
|
|
@ -45,8 +45,10 @@
|
||||||
@apply col-span-full
|
@apply col-span-full
|
||||||
}
|
}
|
||||||
dd {
|
dd {
|
||||||
@apply mb-2 col-span-full col-start-2
|
@apply col-span-full col-start-2;
|
||||||
|
&:last-of-type {
|
||||||
|
@apply mb-2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,7 +188,7 @@ onMounted(async () => {
|
||||||
<Element :id="item.external_id" />
|
<Element :id="item.external_id" />
|
||||||
</dt>
|
</dt>
|
||||||
<dd>{{ item.element_id }}</dd>
|
<dd>{{ item.element_id }}</dd>
|
||||||
<dd>{{ item.additional_data }}</dd>
|
<dd>{{ item.additional_text }}</dd>
|
||||||
</template>
|
</template>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,7 +12,7 @@ const { data } = await useFetch<ApiTypeList>(`${apiBase}/partner/`, { headers })
|
||||||
<UButton icon="i-heroicons-plus" to="/organization/new">Новая инвентаризация</UButton>
|
<UButton icon="i-heroicons-plus" to="/organization/new">Новая инвентаризация</UButton>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<UTable :rows="data?.results":columns="makeColumns(['id', 'external_id', 'name', 'total_inventory'])">
|
<UTable :rows="data?.results" :columns="makeColumns(['id', 'name', 'external_id', 'total_inventory'])">
|
||||||
<template #name-data="{ row }">
|
<template #name-data="{ row }">
|
||||||
<NuxtLink :to="`/organization/p_${row.id}`">{{ row.name }}</NuxtLink>
|
<NuxtLink :to="`/organization/p_${row.id}`">{{ row.name }}</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -50,7 +50,7 @@ onMounted(async () => {
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
<template #created_at-data="{ row }">
|
<template #created_at-data="{ row }">
|
||||||
{{ new Date(row.created_at).toLocaleString() }}
|
{{ new Date(row.created_at).toLocaleString('ru-RU') }}
|
||||||
</template>
|
</template>
|
||||||
</UTable>
|
</UTable>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -27,4 +27,4 @@ build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.taskipy.tasks]
|
[tool.taskipy.tasks]
|
||||||
migrate = "cd back && python manage.py makemigrations && python manage.py migrate"
|
migrate = "cd back && python manage.py makemigrations && python manage.py migrate"
|
||||||
server = "cd back && python manage.py runserver"
|
server = "cd back && python manage.py runserver 0.0.0.0:8000"
|
Loading…
Reference in New Issue