ปรับ code บรรจุ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-20 10:29:07 +07:00
parent 063db4e245
commit 35a5817db3
16 changed files with 559 additions and 700 deletions

View file

@ -33,9 +33,7 @@ const {
const modal = ref<boolean>(false);
/**
* Table
*/
/** Table*/
const rows = ref<listMain[]>([]); //
const rowsData = ref<listMain[]>([]); //
const rows2 = ref<listMain[]>([]); //
@ -131,9 +129,7 @@ const pagination = ref({
rowsPerPage: 10,
});
/**
* fetch รายการอนๆ
*/
/** fetch รายการอื่นๆ*/
async function fecthlistOthet() {
showLoader();
await http
@ -165,17 +161,13 @@ async function fecthlistOthet() {
});
}
/**
* เป popup งไปออกคำสงอนๆ
*/
/** เปิด popup ส่งไปออกคำสั่งอื่นๆ*/
function popup() {
modal.value = true;
filterKeyword2.value = "";
}
/**
* popup งไปออกคำสงอนๆ
*/
/** ปิด popup ส่งไปออกคำสั่งอื่นๆ*/
function clickClose() {
modal.value = false;
}
@ -185,9 +177,9 @@ function clickClose() {
* @param id รายการอนๆ
*/
function clickDelete(id: string) {
dialogRemove($q, () => {
dialogRemove($q, async () => {
showLoader();
http
await http
.delete(config.API.otherByid(id))
.then(async () => {
await fecthlistOthet();
@ -243,7 +235,6 @@ onMounted(() => {
</q-btn>
<q-space />
<q-input
class="col-xs-12 col-sm-3 col-md-2"
standout
dense
v-model="filterKeyword"
@ -268,7 +259,7 @@ onMounted(() => {
:options="columns"
option-value="name"
style="min-width: 140px"
class="col-xs-12 col-sm-3 col-md-2 q-ml-sm"
class="q-ml-sm"
/>
</div>