Messin with manager view
This commit is contained in:
@@ -58,6 +58,11 @@ function buildButtonModel(id: number) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function createTable() {
|
||||||
|
axios.post("http://localhost/api/tables",
|
||||||
|
{table_name: "table name", table_link: "table link"})
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -102,7 +107,15 @@ function buildButtonModel(id: number) {
|
|||||||
<Column field="table_name" header="Table Name" />
|
<Column field="table_name" header="Table Name" />
|
||||||
<Column field="table_link" header="Table Link">
|
<Column field="table_link" header="Table Link">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<a :href="slotProps.data.table_link">{{ slotProps.data.table_link }}</a>
|
<RouterLink
|
||||||
|
:to="{path: 'https://localhost/' + slotProps.data.table_link}">
|
||||||
|
GO
|
||||||
|
</RouterLink>
|
||||||
|
<a href="http://localhost/test_table_1"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer">
|
||||||
|
{{ slotProps.data.table_link }}
|
||||||
|
</a>
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Close">
|
<Column header="Close">
|
||||||
@@ -132,7 +145,7 @@ function buildButtonModel(id: number) {
|
|||||||
</Column>
|
</Column>
|
||||||
</DataTable>
|
</DataTable>
|
||||||
<div class="button-box flex justify-content-end">
|
<div class="button-box flex justify-content-end">
|
||||||
<Button label="New Table" />
|
<Button label="New Table" @click="createTable()"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user