ปรับโค้ดวินัย
This commit is contained in:
parent
1483bbcac7
commit
c81b5db558
17 changed files with 93 additions and 196 deletions
|
|
@ -45,14 +45,14 @@ const myForm = ref<QForm | null>(null);
|
|||
/**
|
||||
* ฟังก์ชั่น Save
|
||||
*/
|
||||
async function submit(){
|
||||
async function submit() {
|
||||
if (myForm.value !== null) {
|
||||
myForm.value.validate().then((success) => {
|
||||
if (success) {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
await props.save(props.id, duty.value,resolution.value);
|
||||
await props.save(props.id, duty.value, resolution.value);
|
||||
duty.value = "";
|
||||
resolution.value = "";
|
||||
},
|
||||
|
|
@ -62,10 +62,10 @@ async function submit(){
|
|||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
watch(props, () => {
|
||||
console.log(props.command)
|
||||
console.log(props.command);
|
||||
duty.value = props?.duty;
|
||||
resolution.value = props?.command;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue