แก้ API
This commit is contained in:
parent
88016802b4
commit
c2ae110e49
3 changed files with 15 additions and 3 deletions
|
|
@ -142,6 +142,7 @@ const emType = computed(() => {
|
|||
});
|
||||
const formData = reactive<{
|
||||
year: number | null;
|
||||
point: number | null;
|
||||
name: string;
|
||||
group: any[];
|
||||
target: string;
|
||||
|
|
@ -155,6 +156,7 @@ const formData = reactive<{
|
|||
year: null,
|
||||
name: "",
|
||||
group: [],
|
||||
point: 0,
|
||||
target: "",
|
||||
isDevelopment70: false,
|
||||
isDevelopment20: false,
|
||||
|
|
@ -168,6 +170,7 @@ function close() {
|
|||
id.value = "";
|
||||
|
||||
formData.name = "";
|
||||
formData.point = 0;
|
||||
formData.group = [];
|
||||
formData.target = "";
|
||||
formData.isDevelopment70 = false;
|
||||
|
|
@ -197,7 +200,10 @@ watch(
|
|||
if (i) {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.kpiAchievementDevelop + `/registry/${emType.value}/${id.value}`)
|
||||
.get(
|
||||
config.API.kpiAchievementDevelop +
|
||||
`/registry/${emType.value}/${id.value}`
|
||||
)
|
||||
.then(async (res) => {
|
||||
const data = res.data.result;
|
||||
formData.year = data.selectTypeYear;
|
||||
|
|
@ -607,6 +613,12 @@ function filterOptionFn(val: string, update: Function) {
|
|||
</q-card>
|
||||
</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">
|
||||
{{ formData.point }}
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue