ปรับ ui ช่องทางการร้องเรียน

This commit is contained in:
AnandaTon 2023-10-18 11:06:48 +07:00
parent 3e313fd804
commit 015d3cfb5b
4 changed files with 230 additions and 27 deletions

View file

@ -93,20 +93,15 @@ const clickAdd = () => {
};
const clickDelete = (id: string) => {
$q.dialog({
title: "ยืนยันการลบช่องทาง",
message: "ต้องการลบช่องทางนี้ใช่หรือไม่?",
cancel: {
flat: true,
color: "negative",
dialogRemove(
$q,
async () => {
// await deleteData(id);
// await getData();
},
persistent: true,
})
.onOk(async () => {
console.log("delete");
})
.onCancel(() => {})
.onDismiss(() => {});
`ลบข้อมูล`
// ` ${name}`
);
};
onMounted(() => {});
@ -170,18 +165,11 @@ onMounted(() => {});
/>
</div>
<div class="col-12">
<q-table
ref="table"
<d-table
:columns="columns"
:rows="rows"
row-key="id"
:filter="filterKeyword"
row-key="interrogated"
flat
bordered
:paging="true"
dense
class="custom-header-table"
v-bind="attrs"
:visible-columns="visibleColumns"
:pagination-label="paginationLabel"
v-model:pagination="pagination"
@ -229,7 +217,7 @@ onMounted(() => {});
direction-links
></q-pagination>
</template>
</q-table>
</d-table>
</div>
</div>
</q-card>