fix load ผลการพิจารณาทางวินัย
This commit is contained in:
parent
d45a2f8412
commit
eecd875753
4 changed files with 32 additions and 29 deletions
|
|
@ -161,17 +161,20 @@ async function selectComplainant(val: string) {
|
|||
*/
|
||||
function onSubmit() {
|
||||
dialogConfirm($q, async () => {
|
||||
showLoader();
|
||||
await http
|
||||
.put(config.API.listResultById(id.value), formData)
|
||||
.then(() => {
|
||||
.then(async () => {
|
||||
await props.fetchData();
|
||||
isSave.value = false;
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
props.fetchData();
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(async () => {});
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -194,7 +197,6 @@ function changeFormData() {
|
|||
/**เมื่อเริ่มโหลดหน้า
|
||||
* ส่งข้อมูลจำลองไปยัง store
|
||||
*/
|
||||
|
||||
function uploadFile() {
|
||||
/** uploadFile */
|
||||
const Data = new FormData();
|
||||
|
|
@ -202,7 +204,7 @@ function uploadFile() {
|
|||
showLoader();
|
||||
http
|
||||
.put(config.API.upLoadFileResult(id.value), Data)
|
||||
.then(async (res) => {
|
||||
.then(async () => {
|
||||
await props.fetchData();
|
||||
countNum.value = 2;
|
||||
success($q, "อัปโหลดไฟล์สำเร็จ");
|
||||
|
|
@ -229,7 +231,7 @@ function confirmDelete(docid: string) {
|
|||
showLoader();
|
||||
http
|
||||
.delete(config.API.deleteFileResult(id.value, docid))
|
||||
.then(async (res) => {
|
||||
.then(async () => {
|
||||
await props.fetchData();
|
||||
success($q, `ลบไฟล์สำเร็จ`);
|
||||
})
|
||||
|
|
@ -294,15 +296,17 @@ function onFaultSubmit() {
|
|||
offense: JSON.stringify(checkValue.value),
|
||||
remark: remark.value,
|
||||
})
|
||||
.then((res) => {
|
||||
.then(async () => {
|
||||
await props.fetchData();
|
||||
success($q, "ระบุฐานความผิด สำเร็จ");
|
||||
close();
|
||||
props.fetchData();
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {});
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
});
|
||||
} else {
|
||||
dialogMessageNotify($q, "กรุณาเลือกอย่างน้อย 1 มาตรา");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue