ตัวชี้วัด => รายการงานที่ได้รับมอบหมาย interface

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-09 14:44:51 +07:00
parent a8773977bb
commit e100ac0ec3
5 changed files with 62 additions and 13 deletions

View file

@ -5,11 +5,14 @@ import { useRouter, useRoute } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
/** importType*/
import type { FormDataRole } from "@/modules/01_metadataNew/interface/request/Main";
import type { DataOption } from "@/modules/01_metadataNew/interface/index/Main";
/** importStore*/
import { useCounterMixin } from "@/stores/mixin";
/** use*/
const $q = useQuasar();
const route = useRoute();
const router = useRouter();
@ -27,11 +30,10 @@ const form = reactive<FormDataRole>({
includingName: "", //
target: "", //
unit: "", //
weight: "", //
weight: null, //
meaning: "", //
formula: "", //
documentInfoEvidence: "", //
node: null,
nodeId: null,
orgRevisionId: null,
@ -65,6 +67,7 @@ function fetchspecialByid(id: string) {
http
.get(config.API.kpiSpecial + `/${id}`)
.then((res) => {
console.log(res);
const data = res.data.result;
form.year = data.year;
form.round = data.period;