This commit is contained in:
@@ -17,6 +17,19 @@
|
||||
<option value="donesenie">Донесение</option>
|
||||
<option value="bilutene">Билутень</option>
|
||||
</select>
|
||||
<select
|
||||
v-model="newSourceCategory"
|
||||
class="w-28 h-12 dark:bg-gray-900 border-slate-100 shadow rounded-xl p-3 min-w-30"
|
||||
>
|
||||
<option value="" disabled>Категория</option>
|
||||
<option
|
||||
v-for="category in categories"
|
||||
:key="category"
|
||||
:value="category"
|
||||
>
|
||||
{{ category }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button
|
||||
@@ -39,6 +52,23 @@ import DatePicker from "./DatePicker.vue";
|
||||
const dateStart = ref(getYesterdayDate());
|
||||
const dateFinish = ref(getTodayDate());
|
||||
const selectedFilter = ref("status");
|
||||
const sources = ref([{ name: "", promt: "" }]);
|
||||
|
||||
onMounted(() => {
|
||||
loadSettings();
|
||||
});
|
||||
|
||||
async function loadSettings() {
|
||||
try {
|
||||
const data = await fetchSettings();
|
||||
sources.value = data.sources;
|
||||
if (sources.value.length) {
|
||||
selectSource(0);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Ошибка при загрузке настроек:", error);
|
||||
}
|
||||
}
|
||||
|
||||
async function handleDownload() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user