no message
This commit is contained in:
parent
4479e4e06b
commit
b0d55c1eef
1 changed files with 29 additions and 16 deletions
|
|
@ -26,27 +26,40 @@ const props = defineProps({
|
||||||
* @param event file
|
* @param event file
|
||||||
*/
|
*/
|
||||||
async function uploadFile(event: any) {
|
async function uploadFile(event: any) {
|
||||||
|
const fileName = event.name
|
||||||
|
|
||||||
dialogConfirm(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
async () => {
|
async () => {
|
||||||
const selectedFile = event;
|
const selectedFile = event;
|
||||||
const formdata = new FormData();
|
const formdata = new FormData();
|
||||||
formdata.append("Document", selectedFile);
|
formdata.append("Document", selectedFile);
|
||||||
// await http
|
http
|
||||||
// .put(config.API.uploadfileOnlyInsignia(requestId.value), formdata)
|
.post(
|
||||||
// .then(async () => {
|
config.API.subFile(
|
||||||
// await fecthInsigniaByOc(
|
"ระบบเงินเดือน",
|
||||||
// round.value,
|
"เลื่อนเงินเดือน",
|
||||||
// DataStore.agency,
|
props.periodId ? props.periodId : "",
|
||||||
// "officer",
|
props.rootId ? props.rootId : ""
|
||||||
// tab.value
|
),
|
||||||
// );
|
{
|
||||||
// success($q, "อัปโหลดไฟล์สำเร็จ");
|
replace: false, //อัพทับที่เดิมไหม
|
||||||
// fileUpload.value = null;
|
fileList: fileName,
|
||||||
// })
|
}
|
||||||
// .catch((err) => {
|
)
|
||||||
// messageError($q, err);
|
.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">
|
<div class="row col-12 q-pa-md">
|
||||||
<q-toolbar>
|
<q-toolbar>
|
||||||
<q-file
|
<q-file
|
||||||
v-if="sendStep == 1"
|
v-if="store.statusQuota == 'PENDING'"
|
||||||
bg-color="white"
|
bg-color="white"
|
||||||
clearable
|
clearable
|
||||||
outlined
|
outlined
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue