เพิ่ม btn download file ข้อมูลสำรอง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-26 16:13:37 +07:00
parent cc6e815f1d
commit 1382aaa268

View file

@ -19,6 +19,7 @@ const {
dialogRemove,
dialogConfirm,
onSearchDataTable,
success,
} = useCounterMixin();
const {
createBackUp,
@ -119,6 +120,10 @@ function onRestore(name: string) {
const dataMain = ref<DataBackup[]>([]);
function onDownloadFile(id: string) {
success($q, "รอ API");
}
function serchDataTable() {
dataBackUp.value = onSearchDataTable(
filter.value,
@ -232,6 +237,18 @@ onMounted(async () => {
<q-tooltip>ลบขอมลสำรอง</q-tooltip>
</q-btn>
<q-btn
v-if="props.row.status !== 'running'"
dense
flat
round
icon="mdi-download"
color="primary"
@click.petvent="onDownloadFile(props.row.id)"
>
<q-tooltip>ดาวนโหลดขอมลสำรอง</q-tooltip>
</q-btn>
<q-btn
v-if="props.row.status !== 'running'"
dense