fix:delete dialogconfirn disable btn submit
This commit is contained in:
parent
c55780914c
commit
aeaea7ca4a
2 changed files with 12 additions and 14 deletions
|
|
@ -171,20 +171,18 @@ async function fetchDataOperatorList() {
|
|||
* @param type ประเภท UP,DOWN
|
||||
* @param id ID เจ้าหน้าที่ดำเนินการที่ต้องการแก้ไขลำดับ
|
||||
*/
|
||||
function onSwapData(type: string, id: string) {
|
||||
dialogConfirm($q, async () => {
|
||||
showLoader();
|
||||
try {
|
||||
await http.get(config.API.commandOperator + `/swap/${type}/${id}`);
|
||||
async function onSwapData(type: string, id: string) {
|
||||
showLoader();
|
||||
try {
|
||||
await http.get(config.API.commandOperator + `/swap/${type}/${id}`);
|
||||
|
||||
await fetchDataOperatorList();
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
} catch (err) {
|
||||
messageError($q, err);
|
||||
} finally {
|
||||
hideLoader();
|
||||
}
|
||||
});
|
||||
await fetchDataOperatorList();
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
} catch (err) {
|
||||
messageError($q, err);
|
||||
} finally {
|
||||
hideLoader();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -315,7 +315,7 @@ watch(modal, (newVal) => {
|
|||
label="บันทึก"
|
||||
color="public"
|
||||
@click="onSubmit"
|
||||
:disable="!roleName"
|
||||
:disable="!roleName || selected.length === 0"
|
||||
/>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue