ปรับ code บรรจุ
This commit is contained in:
parent
063db4e245
commit
35a5817db3
16 changed files with 559 additions and 700 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue