ทะเบียนประวัติ ==> uploadFile
This commit is contained in:
parent
a8f0a486e3
commit
70373acacd
11 changed files with 656 additions and 42 deletions
|
|
@ -333,6 +333,8 @@ async function getInsigniaActive() {
|
|||
.get(config.API.orgInsigniaActive())
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
console.log(data);
|
||||
|
||||
mapInsigniaOption(data);
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
@ -365,7 +367,7 @@ async function addEditData(editStatus: boolean = false) {
|
|||
};
|
||||
try {
|
||||
await http[method](url, reqBody).then(async (res) => {
|
||||
if ((fileUpload.value && id.value) || res.data.result) {
|
||||
if (fileUpload.value) {
|
||||
await uploadProfile(editStatus ? id.value : res.data.result);
|
||||
}
|
||||
});
|
||||
|
|
@ -589,6 +591,8 @@ function filterSelector(val: string, update: Function, refData: string) {
|
|||
function insigniaTypeSelection(check: boolean, id: string) {
|
||||
if (check) {
|
||||
insigniaForm.insigniaId = "";
|
||||
console.log(store.insigniaTypeOpMain);
|
||||
|
||||
const data = store.insigniaTypeOpMain.find(
|
||||
(item: InsigniasType) => item.id == id
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue