This commit is contained in:
2026-05-07 01:28:08 +03:00
parent b203d6b7d8
commit a851df0494

View File

@@ -120,7 +120,7 @@
<!-- Таблица --> <!-- Таблица -->
<div class="flex flex-col col-span-2 md:col-span-1"> <div class="flex flex-col col-span-2 md:col-span-1">
<label class="text-xs text-gray-500">Таблица</label> <label class="text-xs text-gray-500">Таблица SQL</label>
<input <input
type="text" type="text"
v-model="tableName" v-model="tableName"
@@ -205,7 +205,7 @@
</div> </div>
<!-- Вкладки --> <!-- Вкладки -->
<div class="card overflow-hidden"> <div class="card overflow-hidden p-2">
<div class="flex border-b border-gray-200"> <div class="flex border-b border-gray-200">
<button @click="activeTab='table'" <button @click="activeTab='table'"
class="px-3 py-1.5 text-sm font-medium transition-colors" class="px-3 py-1.5 text-sm font-medium transition-colors"
@@ -218,7 +218,7 @@
SQL скрипт SQL скрипт
</button> </button>
</div> </div>
<div class="p-3"> <div class="p-2">
<div v-if="activeTab==='table'"> <div v-if="activeTab==='table'">
<!-- Фильтры --> <!-- Фильтры -->
<div class="mb-3" <div class="mb-3"
@@ -350,10 +350,10 @@
<div v-if="activeTab==='sql'"> <div v-if="activeTab==='sql'">
<div class="flex justify-between items-center mb-2"> <div class="flex justify-between items-center mb-2">
<h3 class="font-bold text-gray-800 text-sm">Скрипт для ClickHouse</h3> <h3 class="font-bold text-gray-800 text-sm">Скрипт SQL</h3>
<button @click="copySQL" class="btn-secondary text-xs py-1 px-2">Копировать SQL</button> <button @click="copySQL" class="btn-secondary text-xs py-1 px-2">Копировать SQL</button>
</div> </div>
<div class="bg-gray-900 text-gray-200 p-3 rounded-lg overflow-x-auto font-mono text-xs whitespace-pre-wrap"> <div class="bg-gray-900 text-gray-200 p-2 rounded-lg overflow-x-auto font-mono text-xs whitespace-pre-wrap">
<pre>{{ sqlScript }}</pre> <pre>{{ sqlScript }}</pre>
</div> </div>
</div> </div>