fix loading add person of retire, fix bug display point of IDP
This commit is contained in:
parent
a6c90edfd3
commit
88f91dd74e
3 changed files with 14 additions and 0 deletions
|
|
@ -161,6 +161,7 @@ function getProjectDetail(val: any) {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
formData.name = val.projectName;
|
formData.name = val.projectName;
|
||||||
|
formData.point = data.point;
|
||||||
formData.group = data.group;
|
formData.group = data.group;
|
||||||
formData.isDevelopment70 = data.isDevelopment70;
|
formData.isDevelopment70 = data.isDevelopment70;
|
||||||
formData.isDevelopment20 = data.isDevelopment20;
|
formData.isDevelopment20 = data.isDevelopment20;
|
||||||
|
|
@ -226,6 +227,7 @@ watch(
|
||||||
(i: any) => i.id == data.selectTypeId
|
(i: any) => i.id == data.selectTypeId
|
||||||
);
|
);
|
||||||
formData.name = data.name;
|
formData.name = data.name;
|
||||||
|
formData.point = data.point;
|
||||||
formData.group = data.group;
|
formData.group = data.group;
|
||||||
formData.target = data.target;
|
formData.target = data.target;
|
||||||
formData.isDevelopment70 = data.isDevelopment70;
|
formData.isDevelopment70 = data.isDevelopment70;
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,7 @@ function clickAdd(props: any) {
|
||||||
dialogConfirm(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
async () => {
|
async () => {
|
||||||
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.put(config.API.profileRetire(retireld.value), { profileId: data })
|
.put(config.API.profileRetire(retireld.value), { profileId: data })
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
@ -167,6 +168,7 @@ function clickAdd(props: any) {
|
||||||
updateListData(retireld.value, data);
|
updateListData(retireld.value, data);
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
hideLoader();
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ const development = ref<any[]>([]);
|
||||||
const reasonDevelopment70 = ref<string>("");
|
const reasonDevelopment70 = ref<string>("");
|
||||||
const reasonDevelopment20 = ref<string>("");
|
const reasonDevelopment20 = ref<string>("");
|
||||||
const reasonDevelopment10 = ref<string>("");
|
const reasonDevelopment10 = ref<string>("");
|
||||||
|
const point = ref<number>(0);
|
||||||
|
|
||||||
const checkOtherBox11 = computed<boolean>(() => {
|
const checkOtherBox11 = computed<boolean>(() => {
|
||||||
return development.value.includes("other1");
|
return development.value.includes("other1");
|
||||||
|
|
@ -118,6 +119,8 @@ function fetchDetailIndividual() {
|
||||||
? data.reasonDevelopment10
|
? data.reasonDevelopment10
|
||||||
: "";
|
: "";
|
||||||
|
|
||||||
|
point.value = data.point;
|
||||||
|
|
||||||
const achievements = ["10", "5", "0"];
|
const achievements = ["10", "5", "0"];
|
||||||
rows.value = achievements.map((i) => ({
|
rows.value = achievements.map((i) => ({
|
||||||
achievement: i,
|
achievement: i,
|
||||||
|
|
@ -320,6 +323,13 @@ watch(
|
||||||
</q-table>
|
</q-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row q-pa-sm justify-center">
|
||||||
|
<span class="text-body2 text-weight-bold">ผลการพัฒนา </span>
|
||||||
|
<div class="text-primary q-pl-md">
|
||||||
|
{{ point }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue