เพิ่ม btn download file ข้อมูลสำรอง
This commit is contained in:
parent
cc6e815f1d
commit
1382aaa268
1 changed files with 17 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue