จัดโค้ดวินัย
This commit is contained in:
parent
71d3b54ef0
commit
7262000680
37 changed files with 492 additions and 697 deletions
|
|
@ -175,30 +175,6 @@ watch(
|
|||
}
|
||||
);
|
||||
|
||||
// async function getList() {
|
||||
// showLoader();
|
||||
// await http
|
||||
// .get(
|
||||
// config.API.complaintList(
|
||||
// page.value,
|
||||
// rowsPerPage.value,
|
||||
// filterKeyword.value
|
||||
// )
|
||||
// )
|
||||
// //
|
||||
// .then((res) => {
|
||||
// maxPage.value = Math.ceil(res.data.result.total / rowsPerPage.value);
|
||||
// const data = res.data.result.data;
|
||||
// fetchAppealComplain(data);
|
||||
// })
|
||||
// .catch((e) => {
|
||||
// messageError($q, e);
|
||||
// })
|
||||
// .finally(() => {
|
||||
// hideLoader();
|
||||
// });
|
||||
// }
|
||||
|
||||
/** ไปยังหน้าเพิ่มข้อมูล */
|
||||
function redirectToPageadd() {
|
||||
dataStore.rowsAdd = [];
|
||||
|
|
@ -213,11 +189,6 @@ function filterFn() {
|
|||
console.log("enter", filterKeyword.value);
|
||||
}
|
||||
|
||||
function openEditStatus(data: RowList[]) {
|
||||
modalStatusEdit.value = true;
|
||||
dataRow.value = data;
|
||||
}
|
||||
|
||||
function close() {
|
||||
modalStatusEdit.value = false;
|
||||
}
|
||||
|
|
@ -229,6 +200,7 @@ function editStatusReturn(data: any) {
|
|||
});
|
||||
}
|
||||
|
||||
/** ดึงข้อมูลเริ่มต้น */
|
||||
function getData() {
|
||||
showLoader();
|
||||
http
|
||||
|
|
@ -254,10 +226,12 @@ function getData() {
|
|||
});
|
||||
}
|
||||
|
||||
/** update status */
|
||||
function dataUpdate() {
|
||||
getData();
|
||||
}
|
||||
|
||||
/** set ปี ทั้งหมด */
|
||||
function yearAll() {
|
||||
formData.year = 0;
|
||||
getData();
|
||||
|
|
@ -265,7 +239,6 @@ function yearAll() {
|
|||
/** เรียกใช้งาน ฟังชั่น ตอนเริ่มโหลดหน้า */
|
||||
onMounted(async () => {
|
||||
getData();
|
||||
// await getList();
|
||||
dataStore.visibleColumns = visibleColumns.value;
|
||||
dataStore.columns = columns.value;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue