updated portfolio
This commit is contained in:
parent
cad424140e
commit
080ef0b4e8
5 changed files with 63 additions and 50 deletions
|
|
@ -24,7 +24,7 @@ const pagination = ref({
|
|||
*/
|
||||
const filter = ref<string>("");
|
||||
const rows = ref<any>([]);
|
||||
const visibleColumns = ref<String[]>(["no", "name", "description"]);
|
||||
const visibleColumns = ref<String[]>(["no", "name", "detail"]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "no",
|
||||
|
|
@ -45,11 +45,11 @@ const columns = ref<QTableProps["columns"]>([
|
|||
style: "font-size: 14px; width:5px;",
|
||||
},
|
||||
{
|
||||
name: "description",
|
||||
name: "detail",
|
||||
align: "left",
|
||||
label: "รายละเอียดเอกสาร/ผลงาน",
|
||||
sortable: true,
|
||||
field: "description",
|
||||
field: "detail",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px; width:5px;",
|
||||
},
|
||||
|
|
@ -64,17 +64,18 @@ onMounted(async () => {
|
|||
|
||||
//นำข้อมูลมาแสดง
|
||||
const fecthList = async () => {
|
||||
// showLoader();
|
||||
// await http
|
||||
// .get(config.API.listUserTransfer())
|
||||
// .then((res: any) => {
|
||||
// })
|
||||
// .catch((e: any) => {
|
||||
// messageError($q, e);
|
||||
// })
|
||||
// .finally(() => {
|
||||
// hideLoader();
|
||||
// });
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.portfolio)
|
||||
.then((res: any) => {
|
||||
rows.value = res.data.result;
|
||||
})
|
||||
.catch((e: any) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -211,7 +212,7 @@ const clickBack = () => {
|
|||
v-for="col in props.cols"
|
||||
:key="col.name"
|
||||
:props="props"
|
||||
@click="router.push(`/transfer/` + props.row.id)"
|
||||
@click="router.push(`/portfolio/` + props.row.id)"
|
||||
>
|
||||
<div v-if="col.name == 'no'">
|
||||
{{ props.rowIndex + 1 }}
|
||||
|
|
@ -227,7 +228,7 @@ const clickBack = () => {
|
|||
<q-card
|
||||
bordered
|
||||
flat
|
||||
@click="router.push(`/transfer/` + props.row.id)"
|
||||
@click="router.push(`/portfolio/` + props.row.id)"
|
||||
>
|
||||
<q-list>
|
||||
<q-item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue