เพิ่มเส้น report /แก้เปลี่ยนรูป
This commit is contained in:
parent
895843d60d
commit
5c14d6f631
6 changed files with 42 additions and 61 deletions
|
|
@ -274,7 +274,10 @@ function onClickHistory() {
|
|||
.get(config.API.informationHistoryEmployee(profileId.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
rows.value = data;
|
||||
rows.value = data.sort(
|
||||
(a: any, b: any) =>
|
||||
new Date(b.lastUpdatedAt).getTime() - new Date(a.lastUpdatedAt).getTime()
|
||||
);
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
|
|||
|
|
@ -142,8 +142,9 @@ function imageActive(n: any) {
|
|||
|
||||
function uploadImg() {
|
||||
http
|
||||
.post(config.API.orgProfileAvatar, {
|
||||
profileId: profileId.value,
|
||||
.post(config.API.orgProfileAvatarbyType(empType.value), {
|
||||
profileId: empType.value == "" ? profileId.value : undefined,
|
||||
profileEmployeeId: empType.value !== "" ? profileId.value : undefined,
|
||||
})
|
||||
.then((res) => {
|
||||
fileName.value = res.data.result.avatarName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue