updated format code
This commit is contained in:
parent
b75d69ea08
commit
b14bad2249
241 changed files with 14012 additions and 13811 deletions
|
|
@ -13,17 +13,22 @@ const close = async () => {
|
|||
<template>
|
||||
<q-toolbar class="q-py-md">
|
||||
<q-toolbar-title class="header-text">{{ title }}</q-toolbar-title>
|
||||
<q-btn icon="close" unelevated round dense @click="close" style="color: #ff8080; background-color: #ffdede" />
|
||||
<q-btn
|
||||
icon="close"
|
||||
unelevated
|
||||
round
|
||||
dense
|
||||
@click="close"
|
||||
style="color: #ff8080; background-color: #ffdede"
|
||||
/>
|
||||
</q-toolbar>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
|
||||
.header-text {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
line-height: 26px;
|
||||
color: #35373C;
|
||||
color: #35373c;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ function close() {
|
|||
function onSubmit() {
|
||||
dialogConfirm($q, () => {
|
||||
const url = editCheck.value
|
||||
? config.API.changePosition+`/${idRound.value}`
|
||||
? config.API.changePosition + `/${idRound.value}`
|
||||
: config.API.changePosition;
|
||||
|
||||
http[editCheck.value ? "put" : "post"](url, {
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ const resetFilter = () => {
|
|||
filterKeyword.value = "";
|
||||
filterKeyword2.value = "";
|
||||
filterRef.value.focus();
|
||||
fecthLists()
|
||||
fecthLists();
|
||||
};
|
||||
|
||||
//ปิด modal
|
||||
|
|
@ -374,7 +374,6 @@ onMounted(() => {
|
|||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
</q-td>
|
||||
|
||||
</q-tr>
|
||||
</template>
|
||||
</d-table>
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ const resetFilter = () => {
|
|||
filterKeyword.value = "";
|
||||
filterKeyword2.value = "";
|
||||
filterRef.value.focus();
|
||||
fecthLists()
|
||||
fecthLists();
|
||||
};
|
||||
|
||||
//ปิด modal
|
||||
|
|
@ -156,8 +156,8 @@ const fecthLists = async () => {
|
|||
config.API.changePositionById +
|
||||
`/${id.value}?page=${pagination.value.page}&pageSize=${pagination.value.rowsPerPage}&searchKeyword=${filterKeyword.value}`
|
||||
)
|
||||
.then(async(res) => {
|
||||
let response = await res.data.result;
|
||||
.then(async (res) => {
|
||||
let response = await res.data.result;
|
||||
totalList.value = Math.ceil(
|
||||
res.data.result.total / pagination.value.rowsPerPage
|
||||
);
|
||||
|
|
@ -245,13 +245,12 @@ function onSave(data: any) {
|
|||
function updatePagination(newPagination: any) {
|
||||
pagination.value.page = 1;
|
||||
pagination.value.rowsPerPage = newPagination.rowsPerPage;
|
||||
|
||||
}
|
||||
|
||||
watch(
|
||||
() => pagination.value.rowsPerPage,
|
||||
async() => {
|
||||
await fecthLists();
|
||||
async () => {
|
||||
await fecthLists();
|
||||
}
|
||||
);
|
||||
|
||||
|
|
@ -417,7 +416,9 @@ onMounted(() => {
|
|||
</div>
|
||||
<div v-else-if="col.name == 'lastUpdatedAt'">
|
||||
{{
|
||||
props.row.lastUpdatedAt ? date2Thai(props.row.lastUpdatedAt) : "-"
|
||||
props.row.lastUpdatedAt
|
||||
? date2Thai(props.row.lastUpdatedAt)
|
||||
: "-"
|
||||
}}
|
||||
</div>
|
||||
<div v-else>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue