บรรจุ => fix bug
This commit is contained in:
parent
caaabc808d
commit
b707a44734
1 changed files with 28 additions and 27 deletions
|
|
@ -287,12 +287,13 @@ async function getTable() {
|
|||
.get(config.API.personalList(examIdString))
|
||||
.then(async (res: any) => {
|
||||
dataRes.value = res.data.result;
|
||||
|
||||
rowsAll.value = [];
|
||||
(rowsFilter.value = []),
|
||||
res.data.result.map((data: any) => {
|
||||
const rowData = {
|
||||
personalId: data.personalId,
|
||||
avatar: data.avatar,
|
||||
avatar: avatar,
|
||||
name: data.fullName,
|
||||
fullName: data.fullName + " " + data.idCard,
|
||||
idCard: data.idCard,
|
||||
|
|
@ -372,7 +373,7 @@ async function getTable() {
|
|||
e.reportingDate !== null
|
||||
);
|
||||
|
||||
insertAvatar(rows.value);
|
||||
// insertAvatar(rows.value);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -382,31 +383,31 @@ async function getTable() {
|
|||
});
|
||||
}
|
||||
|
||||
function insertAvatar(items: any) {
|
||||
items.map((x: any, index: number) => {
|
||||
http
|
||||
.get(
|
||||
config.API.fileByFile(
|
||||
"ทะเบียนประวัติ",
|
||||
"โปรไฟล์",
|
||||
x.personalId,
|
||||
"profile-" + x.personalId
|
||||
)
|
||||
)
|
||||
.then((img) => {
|
||||
rows.value[index] = {
|
||||
...x,
|
||||
avatar: img.data.downloadUrl,
|
||||
};
|
||||
})
|
||||
.catch(() => {
|
||||
rows.value[index] = {
|
||||
...x,
|
||||
avatar: avatar,
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
// function insertAvatar(items: any) {
|
||||
// items.map((x: any, index: number) => {
|
||||
// http
|
||||
// .get(
|
||||
// config.API.fileByFile(
|
||||
// "ทะเบียนประวัติ",
|
||||
// "โปรไฟล์",
|
||||
// x.personalId,
|
||||
// "profile-" + x.personalId
|
||||
// )
|
||||
// )
|
||||
// .then((img) => {
|
||||
// rows.value[index] = {
|
||||
// ...x,
|
||||
// avatar: img.data.downloadUrl,
|
||||
// };
|
||||
// })
|
||||
// .catch(() => {
|
||||
// rows.value[index] = {
|
||||
// ...x,
|
||||
// avatar: avatar,
|
||||
// };
|
||||
// });
|
||||
// });
|
||||
// }
|
||||
|
||||
/**ยืนยันการผ่อนผัน */
|
||||
async function saveDeferment() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue