แก้ API
This commit is contained in:
parent
d78b7db124
commit
459428979b
12 changed files with 37 additions and 33 deletions
|
|
@ -148,7 +148,7 @@ async function fetchAssigned() {
|
|||
|
||||
async function getCriteria() {
|
||||
await http
|
||||
.get(config.API.KpiEvaluationInfo)
|
||||
.get(config.API.KpiEvaluationInfo+`/edit`)
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result.data;
|
||||
dataListCriteria.value = data;
|
||||
|
|
|
|||
|
|
@ -257,10 +257,10 @@ function clickList(id: string, isData: boolean = false) {
|
|||
showLoader();
|
||||
const url =
|
||||
numpage.value === 1
|
||||
? config.API.kpiPlan
|
||||
? config.API.kpiPlan + `/edit`
|
||||
: numpage.value === 2
|
||||
? config.API.kpiRole
|
||||
: config.API.kpiSpecial;
|
||||
? config.API.kpiRole + `/edit`
|
||||
: config.API.kpiSpecial + `/edit`;
|
||||
http
|
||||
.get(`${url}/${id}`)
|
||||
.then((res) => {
|
||||
|
|
@ -341,7 +341,7 @@ function closeDialog() {
|
|||
formFilter.page = 1;
|
||||
formFilter.pageSize = 20;
|
||||
|
||||
isStatusEdit.value = false
|
||||
isStatusEdit.value = false;
|
||||
checkDetail.value = false;
|
||||
}
|
||||
|
||||
|
|
@ -427,7 +427,6 @@ watch(
|
|||
fetchListPlan();
|
||||
isStatusEdit.value && fetchListPlanByid(kpiUserPlannedId.value);
|
||||
checkDetail.value && fetchListPlanByid(kpiUserPlannedId.value);
|
||||
|
||||
} else if (numpage.value === 2) {
|
||||
fetchListRole();
|
||||
isStatusEdit.value && fetchRoleByid(kpiUserPlannedId.value);
|
||||
|
|
@ -992,9 +991,13 @@ const title = computed(() => {
|
|||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-separator v-if="!checkDetail"/>
|
||||
<q-separator v-if="!checkDetail" />
|
||||
|
||||
<q-card-actions v-if="!checkDetail" align="right" class="bg-white text-teal">
|
||||
<q-card-actions
|
||||
v-if="!checkDetail"
|
||||
align="right"
|
||||
class="bg-white text-teal"
|
||||
>
|
||||
<q-btn label="บันทึก" color="secondary" type="submit"
|
||||
><q-tooltip>บันทึกข้อมูล</q-tooltip></q-btn
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue