feat: новая функция
This commit is contained in:
@@ -261,9 +261,10 @@ onMounted(() => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.app-container {
|
.app-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 100vh;
|
height: 100vh;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: var(--color-light);
|
background-color: var(--color-light);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-content {
|
.main-content {
|
||||||
@@ -274,6 +275,8 @@ onMounted(() => {
|
|||||||
max-width: calc(100% - 350px);
|
max-width: calc(100% - 350px);
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
background-color: var(--color-white);
|
background-color: var(--color-white);
|
||||||
|
height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-content.no-right-sidebar {
|
.main-content.no-right-sidebar {
|
||||||
|
|||||||
@@ -550,11 +550,13 @@ async function handleAiReply() {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: var(--spacing-lg) 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
min-height: 500px;
|
min-height: 500px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background: transparent;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-messages {
|
.chat-messages {
|
||||||
@@ -562,15 +564,11 @@ async function handleAiReply() {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: var(--spacing-lg);
|
padding: var(--spacing-lg);
|
||||||
background: var(--color-white);
|
background: transparent;
|
||||||
border-radius: var(--radius-lg);
|
border-radius: 0;
|
||||||
border: 1px solid var(--color-grey-light);
|
border: none;
|
||||||
position: absolute;
|
flex: 1;
|
||||||
top: 0;
|
min-height: 0;
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: calc(var(--chat-input-height, 80px) + 15px);
|
|
||||||
transition: bottom var(--transition-normal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-input {
|
.chat-input {
|
||||||
@@ -578,12 +576,10 @@ async function handleAiReply() {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: var(--spacing-sm) var(--spacing-md);
|
padding: var(--spacing-sm) var(--spacing-md);
|
||||||
background: var(--color-white);
|
background: var(--color-white);
|
||||||
border-radius: var(--radius-lg);
|
border-radius: 0;
|
||||||
border: 1px solid var(--color-grey-light);
|
border: none;
|
||||||
position: absolute;
|
border-top: 1px solid #e9ecef;
|
||||||
left: 0;
|
flex-shrink: 0;
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
transition: all var(--transition-normal);
|
transition: all var(--transition-normal);
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
|
||||||
@@ -773,50 +769,32 @@ async function handleAiReply() {
|
|||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.chat-input {
|
.chat-input {
|
||||||
position: fixed !important;
|
position: static !important;
|
||||||
left: 0 !important;
|
border-radius: 0 !important;
|
||||||
right: 0 !important;
|
padding: 8px 12px !important;
|
||||||
bottom: 0 !important;
|
background: #f8f8f8 !important;
|
||||||
width: 100vw !important;
|
border-top: 1px solid #eee !important;
|
||||||
z-index: 1000 !important;
|
|
||||||
margin: 0 !important;
|
|
||||||
border-radius: 12px 12px 0 0 !important;
|
|
||||||
}
|
}
|
||||||
.chat-messages {
|
.chat-messages {
|
||||||
padding-bottom: 70px !important; /* чтобы сообщения не перекрывались input */
|
padding: var(--spacing-md) !important;
|
||||||
max-height: calc(100vh - 70px) !important;
|
|
||||||
overflow-y: auto !important;
|
overflow-y: auto !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.chat-input {
|
.chat-input {
|
||||||
position: fixed !important;
|
position: static !important;
|
||||||
left: 0 !important;
|
border-radius: 0 !important;
|
||||||
right: 0 !important;
|
|
||||||
bottom: 0 !important;
|
|
||||||
width: 100vw !important;
|
|
||||||
z-index: 1000 !important;
|
|
||||||
margin: 0 !important;
|
|
||||||
border-radius: 12px 12px 0 0 !important;
|
|
||||||
padding: 8px 12px !important;
|
padding: 8px 12px !important;
|
||||||
background: #f8f8f8 !important;
|
background: #f8f8f8 !important;
|
||||||
border-top: 1px solid #eee !important;
|
border-top: 1px solid #eee !important;
|
||||||
box-sizing: border-box !important;
|
|
||||||
}
|
}
|
||||||
.chat-messages {
|
.chat-messages {
|
||||||
padding-bottom: 70px !important; /* чтобы сообщения не перекрывались input */
|
padding: var(--spacing-md) !important;
|
||||||
max-height: calc(100vh - 70px) !important;
|
|
||||||
overflow-y: auto !important;
|
overflow-y: auto !important;
|
||||||
box-sizing: border-box !important;
|
|
||||||
}
|
}
|
||||||
.chat-container {
|
.chat-container {
|
||||||
padding: 0 !important;
|
height: 100% !important;
|
||||||
margin: 0 !important;
|
|
||||||
height: 100vh !important;
|
|
||||||
max-height: 100vh !important;
|
|
||||||
min-height: 0 !important;
|
|
||||||
box-sizing: border-box !important;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -434,27 +434,21 @@ async function openChatForSelected() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Новая функция для отправки публичного сообщения
|
// Новая функция для отправки публичного сообщения
|
||||||
async function sendPublicMessage() {
|
function sendPublicMessage() {
|
||||||
if (selectedIds.value.length === 0) return;
|
if (selectedIds.value.length === 0) {
|
||||||
|
ElMessage.warning('Выберите контакт для отправки публичного сообщения');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const contactId = selectedIds.value[0];
|
const contactId = selectedIds.value[0];
|
||||||
const contact = filteredContacts.value.find(c => c.id === contactId);
|
const contact = filteredContacts.value.find(c => c.id === contactId);
|
||||||
if (!contact) return;
|
if (!contact) {
|
||||||
|
ElMessage.error('Контакт не найден');
|
||||||
try {
|
return;
|
||||||
const content = prompt('Введите текст публичного сообщения:');
|
|
||||||
if (!content) return;
|
|
||||||
|
|
||||||
await sendMessage({
|
|
||||||
recipientId: contactId,
|
|
||||||
content,
|
|
||||||
messageType: 'public'
|
|
||||||
});
|
|
||||||
|
|
||||||
ElMessage.success('Публичное сообщение отправлено');
|
|
||||||
} catch (error) {
|
|
||||||
ElMessage.error('Ошибка отправки сообщения: ' + (error.message || error));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Открываем страницу детали контакта с чатом для публичных сообщений
|
||||||
|
showDetails(contact);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Функция для открытия приватного чата
|
// Функция для открытия приватного чата
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
<div class="header-text">
|
<div class="header-text">
|
||||||
<h1 class="title">✌️HB3 - Accelerator DLE</h1>
|
|
||||||
<p class="subtitle">Венчурный фонд и поставщик программного обеспечения</p>
|
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="header-wallet-btn"
|
class="header-wallet-btn"
|
||||||
@@ -89,7 +87,7 @@ onBeforeUnmount(() => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.header {
|
.header {
|
||||||
background-color: var(--color-white);
|
background-color: var(--color-white);
|
||||||
padding: 15px 20px; /* Возвращаем горизонтальный padding */
|
padding: 30px 20px 25px 20px; /* Увеличиваем высоту шапки еще на 10px */
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 100; /* Ensure header stays on top */
|
z-index: 100; /* Ensure header stays on top */
|
||||||
@@ -124,7 +122,7 @@ onBeforeUnmount(() => {
|
|||||||
background-color: var(--color-white);
|
background-color: var(--color-white);
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
border: none;
|
border: none;
|
||||||
padding: 10px 15px;
|
padding: 8px;
|
||||||
border-radius: var(--radius-lg);
|
border-radius: var(--radius-lg);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all var(--transition-normal);
|
transition: all var(--transition-normal);
|
||||||
@@ -198,7 +196,7 @@ onBeforeUnmount(() => {
|
|||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
.header-wallet-btn {
|
.header-wallet-btn {
|
||||||
padding: 8px 12px;
|
padding: 6px;
|
||||||
}
|
}
|
||||||
.nav-btn-text {
|
.nav-btn-text {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
|||||||
@@ -18,47 +18,62 @@
|
|||||||
:is-loading-tokens="isLoadingTokens"
|
:is-loading-tokens="isLoadingTokens"
|
||||||
@auth-action-completed="$emit('auth-action-completed')"
|
@auth-action-completed="$emit('auth-action-completed')"
|
||||||
>
|
>
|
||||||
<div class="crm-view-container">
|
<div class="crm-management">
|
||||||
|
<!-- Заголовок -->
|
||||||
|
<div class="management-header">
|
||||||
|
<div class="header-content">
|
||||||
|
<h1>CRM Система</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="crm-contacts-block">
|
<!-- Блоки CRM -->
|
||||||
<h2>Контакты</h2>
|
<div class="management-blocks">
|
||||||
|
<!-- Столбец 1 -->
|
||||||
|
<div class="blocks-column">
|
||||||
|
<div class="management-block">
|
||||||
|
<h3>Контакты</h3>
|
||||||
|
<p>Управление контактной базой, клиентами и партнерами</p>
|
||||||
<button class="details-btn" @click="goToContactsList">
|
<button class="details-btn" @click="goToContactsList">
|
||||||
Подробнее
|
Подробнее
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="crm-tables-block">
|
|
||||||
<h2>Таблицы</h2>
|
<div class="management-block">
|
||||||
<button class="details-btn" @click="goToTables">
|
<h3>Таблицы</h3>
|
||||||
Подробнее
|
<p>Создание и управление таблицами данных</p>
|
||||||
</button>
|
<button class="details-btn" @click="goToTables">Подробнее</button>
|
||||||
</div>
|
</div>
|
||||||
<!-- Новый блок Контент -->
|
|
||||||
<div class="crm-content-block">
|
|
||||||
<h2>Контент</h2>
|
|
||||||
<button class="details-btn" @click="goToContent">
|
|
||||||
Подробнее
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Новый блок Управление -->
|
|
||||||
<div class="crm-management-block">
|
<!-- Столбец 2 -->
|
||||||
<h2>Управление</h2>
|
<div class="blocks-column">
|
||||||
<button class="details-btn" @click="goToManagement">
|
<div class="management-block">
|
||||||
Подробнее
|
<h3>Контент</h3>
|
||||||
</button>
|
<p>Управление контентом, страницами и публикациями</p>
|
||||||
|
<button class="details-btn" @click="goToContent">Подробнее</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="management-block">
|
||||||
|
<h3>Управление</h3>
|
||||||
|
<p>Администрирование системы и настройки</p>
|
||||||
|
<button class="details-btn" @click="goToManagement">Подробнее</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Столбец 3 -->
|
||||||
|
<div class="blocks-column">
|
||||||
|
<div class="management-block">
|
||||||
|
<h3>VDS Сервер</h3>
|
||||||
|
<p>Настройки и управление</p>
|
||||||
|
<button class="details-btn" @click="goToWeb3App">Подробнее</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="management-block">
|
||||||
|
<h3>Акселератор</h3>
|
||||||
|
<p>Регистрация и управление проектами</p>
|
||||||
|
<button class="details-btn" @click="goToAcceleratorRegistration">Подробнее</button>
|
||||||
</div>
|
</div>
|
||||||
<!-- Блок Веб3 приложение -->
|
|
||||||
<div class="crm-web3-block">
|
|
||||||
<h2>Веб3 приложение</h2>
|
|
||||||
<button class="details-btn" @click="goToWeb3App">
|
|
||||||
Подробнее
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Блок Акселератор -->
|
|
||||||
<div class="crm-accelerator-block">
|
|
||||||
<h2>Акселератор</h2>
|
|
||||||
<button class="details-btn" @click="goToAcceleratorRegistration">
|
|
||||||
Подробнее
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
@@ -256,180 +271,124 @@ function goToAcceleratorRegistration() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.crm-view-container {
|
.crm-management {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-color: var(--color-white);
|
background-color: var(--color-white);
|
||||||
border-radius: var(--radius-lg);
|
border-radius: var(--radius-lg);
|
||||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
min-height: 100vh;
|
||||||
margin-top: 20px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4 {
|
.management-header {
|
||||||
color: var(--color-dark);
|
display: flex;
|
||||||
margin-bottom: 16px;
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 2px solid #e9ecef;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
.header-content h1 {
|
||||||
line-height: 1.6;
|
margin: 0;
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
strong {
|
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading-spinner {
|
.crm-description {
|
||||||
width: 40px;
|
margin: 0.5rem 0 0 0;
|
||||||
height: 40px;
|
color: #666;
|
||||||
border: 4px solid rgba(0, 0, 0, 0.1);
|
font-size: 1.1rem;
|
||||||
border-left-color: var(--color-primary);
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 1s linear infinite;
|
|
||||||
margin: 20px auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spin {
|
.management-blocks {
|
||||||
to { transform: rotate(360deg); }
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blocks-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1.5rem;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-block {
|
||||||
|
background: white;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 2rem;
|
||||||
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||||
|
border: 1px solid #e9ecef;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-block:hover {
|
||||||
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
border-color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-block h3 {
|
||||||
|
margin: 0 0 1rem 0;
|
||||||
|
color: var(--color-primary);
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 600;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-block p {
|
||||||
|
margin: 0 0 1.5rem 0;
|
||||||
|
color: #666;
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-btn {
|
.details-btn {
|
||||||
background: var(--color-primary);
|
background: var(--color-primary);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
padding: 0.5rem 1.5rem;
|
padding: 0.75rem 1.5rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
transition: background 0.2s;
|
font-weight: 600;
|
||||||
margin: 0;
|
transition: all 0.2s;
|
||||||
|
min-width: 120px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-btn:hover {
|
.details-btn:hover {
|
||||||
background: var(--color-primary-dark);
|
background: var(--color-primary-dark);
|
||||||
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-btn-secondary {
|
/* Адаптивность */
|
||||||
background: #6c757d;
|
@media (max-width: 1024px) {
|
||||||
|
.management-blocks {
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-btn-secondary:hover {
|
@media (max-width: 768px) {
|
||||||
background: #5a6268;
|
.management-blocks {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.management-header {
|
||||||
|
flex-direction: column;
|
||||||
.crm-contacts-block {
|
align-items: flex-start;
|
||||||
margin: 32px 0 24px 0;
|
gap: 1rem;
|
||||||
padding: 24px;
|
|
||||||
background: #f8fafc;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
.crm-contacts-block h2 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
.crm-contacts-block .details-btn {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.crm-tables-block {
|
.header-content h1 {
|
||||||
margin: 32px 0 24px 0;
|
font-size: 1.5rem;
|
||||||
padding: 24px;
|
|
||||||
background: #f8fafc;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
}
|
||||||
.crm-tables-block h2 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
.crm-tables-block .details-btn {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.crm-content-block {
|
|
||||||
margin: 32px 0 24px 0;
|
|
||||||
padding: 24px;
|
|
||||||
background: #f8fafc;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
.crm-content-block h2 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
.crm-content-block .details-btn {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.crm-management-block {
|
|
||||||
margin: 32px 0 24px 0;
|
|
||||||
padding: 24px;
|
|
||||||
background: #f8fafc;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
.crm-management-block h2 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
.crm-management-block .details-btn {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.crm-web3-block {
|
|
||||||
margin: 32px 0 24px 0;
|
|
||||||
padding: 24px;
|
|
||||||
background: #f8fafc;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
.crm-web3-block h2 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
.crm-web3-block .details-btn {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.crm-accelerator-block {
|
|
||||||
margin: 32px 0 24px 0;
|
|
||||||
padding: 24px;
|
|
||||||
background: #f8fafc;
|
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
.crm-accelerator-block h2 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
.crm-accelerator-block .details-btn {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -18,6 +18,16 @@
|
|||||||
:is-loading-tokens="isLoadingTokens"
|
:is-loading-tokens="isLoadingTokens"
|
||||||
@auth-action-completed="$emit('auth-action-completed')"
|
@auth-action-completed="$emit('auth-action-completed')"
|
||||||
>
|
>
|
||||||
|
<div class="home-management">
|
||||||
|
<!-- Заголовок -->
|
||||||
|
<div class="management-header">
|
||||||
|
<div class="header-content">
|
||||||
|
<h1>ИИ Ассистент</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Чат интерфейс -->
|
||||||
|
<div class="chat-wrapper">
|
||||||
<template v-if="auth.userAccessLevel.value && auth.userAccessLevel.value.hasAccess">
|
<template v-if="auth.userAccessLevel.value && auth.userAccessLevel.value.hasAccess">
|
||||||
<ChatInterface
|
<ChatInterface
|
||||||
:messages="messages"
|
:messages="messages"
|
||||||
@@ -40,6 +50,8 @@
|
|||||||
@load-more="loadMessages"
|
@load-more="loadMessages"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -142,3 +154,83 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.home-management {
|
||||||
|
padding: 20px;
|
||||||
|
background-color: var(--color-white);
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
height: calc(100vh - 40px);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 2px solid #e9ecef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-content h1 {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--color-primary);
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-wrapper {
|
||||||
|
background: white;
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||||
|
border: 1px solid #e9ecef;
|
||||||
|
overflow: hidden;
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Адаптивность */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.management-header {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-content h1 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-management {
|
||||||
|
padding: 16px;
|
||||||
|
height: calc(100vh - 32px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-wrapper {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.home-management {
|
||||||
|
padding: 12px;
|
||||||
|
height: calc(100vh - 24px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-header {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-content h1 {
|
||||||
|
font-size: 1.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-wrapper {
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
@auth-action-completed="$emit('auth-action-completed')"
|
@auth-action-completed="$emit('auth-action-completed')"
|
||||||
>
|
>
|
||||||
<div class="settings-view-container">
|
<div class="settings-view-container">
|
||||||
<div class="page-header">
|
<div v-if="route.name !== 'settings-index'" class="page-header">
|
||||||
<h1>{{ pageTitle }}</h1>
|
<h1>{{ pageTitle }}</h1>
|
||||||
<button
|
<button
|
||||||
v-if="route.name === 'settings-blockchain-dle-deploy' || route.name === 'settings-dle-v2-deploy'"
|
v-if="route.name === 'settings-blockchain-dle-deploy' || route.name === 'settings-dle-v2-deploy'"
|
||||||
|
|||||||
@@ -11,31 +11,49 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="main-blocks">
|
<div class="settings-management">
|
||||||
<div class="main-block">
|
<!-- Заголовок -->
|
||||||
<h3>ИИ</h3>
|
<div class="management-header">
|
||||||
<p>Настройки интеграций, моделей, ассистента и RAG.</p>
|
<div class="header-content">
|
||||||
<button class="details-btn" @click="$router.push('/settings/ai')">Подробнее</button>
|
<h1>Настройки системы</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="main-block">
|
</div>
|
||||||
|
|
||||||
|
<!-- Блоки настроек -->
|
||||||
|
<div class="management-blocks">
|
||||||
|
<!-- Столбец 1 -->
|
||||||
|
<div class="blocks-column">
|
||||||
|
<div class="management-block">
|
||||||
|
<h3>ИИ</h3>
|
||||||
|
<p>Настройки интеграций, моделей, ассистента и RAG</p>
|
||||||
|
<button class="details-btn" @click="$router.push('/settings/ai')">
|
||||||
|
Подробнее
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="management-block">
|
||||||
<h3>Блокчейн</h3>
|
<h3>Блокчейн</h3>
|
||||||
<p>Интеграция с блокчейн-сетями, RPC, токены и смарт-контракты.</p>
|
<p>Интеграция с блокчейн-сетями, RPC, токены и смарт-контракты</p>
|
||||||
<button class="details-btn" @click="$router.push('/settings/dle-v2-deploy')">Подробнее</button>
|
<button class="details-btn" @click="$router.push('/settings/dle-v2-deploy')">Подробнее</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="main-block">
|
</div>
|
||||||
|
|
||||||
|
<!-- Столбец 2 -->
|
||||||
|
<div class="blocks-column">
|
||||||
|
<div class="management-block">
|
||||||
<h3>Безопасность</h3>
|
<h3>Безопасность</h3>
|
||||||
<p>Управление доступом, токенами, аутентификацией и правами.</p>
|
<p>Управление доступом, токенами, аутентификацией и правами</p>
|
||||||
<button class="details-btn" @click="$router.push('/settings/security')">Подробнее</button>
|
<button class="details-btn" @click="$router.push('/settings/security')">Подробнее</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="main-block">
|
|
||||||
|
<div class="management-block">
|
||||||
<h3>Сервер</h3>
|
<h3>Сервер</h3>
|
||||||
<p>Настройки серверов, хостинга и публикации приложения.</p>
|
<p>Настройки серверов, хостинга и публикации приложения</p>
|
||||||
<button class="details-btn" @click="$router.push('/settings/interface')">Подробнее</button>
|
<button class="details-btn" @click="$router.push('/settings/interface')">Подробнее</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@@ -43,57 +61,114 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.main-blocks {
|
.settings-management {
|
||||||
display: flex;
|
padding: 20px;
|
||||||
gap: 2rem;
|
background-color: var(--color-white);
|
||||||
flex-wrap: wrap;
|
border-radius: var(--radius-lg);
|
||||||
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
.main-block {
|
|
||||||
background: #fff;
|
.management-header {
|
||||||
border-radius: 12px;
|
display: flex;
|
||||||
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
justify-content: space-between;
|
||||||
padding: 2rem;
|
align-items: center;
|
||||||
min-width: 260px;
|
margin-bottom: 2rem;
|
||||||
flex: 1 1 300px;
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 2px solid #e9ecef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-content h1 {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--color-primary);
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-blocks {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blocks-column {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
gap: 1.5rem;
|
||||||
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
.button-group {
|
|
||||||
margin-top: 1.5rem;
|
.management-block {
|
||||||
|
background: white;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 2rem;
|
||||||
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||||
|
border: 1px solid #e9ecef;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.75rem;
|
flex-direction: column;
|
||||||
flex-wrap: wrap;
|
justify-content: space-between;
|
||||||
|
height: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-block:hover {
|
||||||
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
border-color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-block h3 {
|
||||||
|
margin: 0 0 1rem 0;
|
||||||
|
color: var(--color-primary);
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 600;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.management-block p {
|
||||||
|
margin: 0 0 1.5rem 0;
|
||||||
|
color: #666;
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-btn {
|
.details-btn {
|
||||||
background: var(--color-primary);
|
background: var(--color-primary);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
padding: 0.5rem 1.5rem;
|
padding: 0.75rem 1.5rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
transition: background 0.2s;
|
font-weight: 600;
|
||||||
margin: 0;
|
transition: all 0.2s;
|
||||||
|
min-width: 120px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-btn:hover {
|
.details-btn:hover {
|
||||||
background: var(--color-primary-dark);
|
background: var(--color-primary-dark);
|
||||||
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-btn-secondary {
|
/* Адаптивность */
|
||||||
background: #6c757d;
|
@media (max-width: 1024px) {
|
||||||
|
.management-blocks {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-btn-secondary:hover {
|
@media (max-width: 768px) {
|
||||||
background: #5a6268;
|
.management-header {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Для блоков без группы кнопок */
|
.header-content h1 {
|
||||||
.main-block .details-btn:not(.button-group .details-btn) {
|
font-size: 1.5rem;
|
||||||
margin-top: 1.5rem;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user