no message

This commit is contained in:
setthawutttty 2024-03-19 17:34:19 +07:00
parent 4479e4e06b
commit b0d55c1eef

View file

@ -26,27 +26,40 @@ const props = defineProps({
* @param event file
*/
async function uploadFile(event: any) {
const fileName = event.name
dialogConfirm(
$q,
async () => {
const selectedFile = event;
const formdata = new FormData();
formdata.append("Document", selectedFile);
// await http
// .put(config.API.uploadfileOnlyInsignia(requestId.value), formdata)
// .then(async () => {
// await fecthInsigniaByOc(
// round.value,
// DataStore.agency,
// "officer",
// tab.value
// );
// success($q, "");
// fileUpload.value = null;
// })
// .catch((err) => {
// messageError($q, err);
// }),
http
.post(
config.API.subFile(
"ระบบเงินเดือน",
"เลื่อนเงินเดือน",
props.periodId ? props.periodId : "",
props.rootId ? props.rootId : ""
),
{
replace: false, //
fileList: fileName,
}
)
.then(async () => {
// await fecthInsigniaByOc(
// round.value,
// DataStore.agency,
// "officer",
// tab.value
// );
// success($q, "");
// fileUpload.value = null;
})
.catch((err) => {
messageError($q, err);
});
},
"ยืนยันการอัปโหลดไฟล์",
"ต้องการยืนยันการอัปโหลดไฟล์นี้หรือไม่ ?"
@ -110,7 +123,7 @@ function sendAndRecommend(title: string,typeOrder:string) {
<div class="row col-12 q-pa-md">
<q-toolbar>
<q-file
v-if="sendStep == 1"
v-if="store.statusQuota == 'PENDING'"
bg-color="white"
clearable
outlined