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) => {
|
||||
const data = res.data.result;
|
||||
formData.name = val.projectName;
|
||||
formData.point = data.point;
|
||||
formData.group = data.group;
|
||||
formData.isDevelopment70 = data.isDevelopment70;
|
||||
formData.isDevelopment20 = data.isDevelopment20;
|
||||
|
|
@ -226,6 +227,7 @@ watch(
|
|||
(i: any) => i.id == data.selectTypeId
|
||||
);
|
||||
formData.name = data.name;
|
||||
formData.point = data.point;
|
||||
formData.group = data.group;
|
||||
formData.target = data.target;
|
||||
formData.isDevelopment70 = data.isDevelopment70;
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ function clickAdd(props: any) {
|
|||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
showLoader();
|
||||
await http
|
||||
.put(config.API.profileRetire(retireld.value), { profileId: data })
|
||||
.then(() => {
|
||||
|
|
@ -167,6 +168,7 @@ function clickAdd(props: any) {
|
|||
updateListData(retireld.value, data);
|
||||
})
|
||||
.catch((e) => {
|
||||
hideLoader();
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ const development = ref<any[]>([]);
|
|||
const reasonDevelopment70 = ref<string>("");
|
||||
const reasonDevelopment20 = ref<string>("");
|
||||
const reasonDevelopment10 = ref<string>("");
|
||||
const point = ref<number>(0);
|
||||
|
||||
const checkOtherBox11 = computed<boolean>(() => {
|
||||
return development.value.includes("other1");
|
||||
|
|
@ -118,6 +119,8 @@ function fetchDetailIndividual() {
|
|||
? data.reasonDevelopment10
|
||||
: "";
|
||||
|
||||
point.value = data.point;
|
||||
|
||||
const achievements = ["10", "5", "0"];
|
||||
rows.value = achievements.map((i) => ({
|
||||
achievement: i,
|
||||
|
|
@ -320,6 +323,13 @@ watch(
|
|||
</q-table>
|
||||
</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>
|
||||
</q-dialog>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue