ตัวชี้วัด => รายการงานที่ได้รับมอบหมาย interface
This commit is contained in:
parent
a8773977bb
commit
e100ac0ec3
5 changed files with 62 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue