delete const $q = useQuasar(); .ts
This commit is contained in:
parent
1927870302
commit
60bda24d1d
5 changed files with 17 additions and 78 deletions
|
|
@ -1,17 +1,9 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref, reactive, watch } from "vue";
|
||||
import { ref, reactive } from "vue";
|
||||
import type { DataOptions } from "./interface/index/Main";
|
||||
import type { FormQuery } from "@/modules/08_KPI/interface/request/index";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
export const useKpiDataStore = defineStore("KPIDate", () => {
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, messageError } = mixin;
|
||||
|
||||
const mainRowData = ref<any>();
|
||||
const isUpdate = ref<boolean>(false);
|
||||
const tabMainevaluator = ref<string>("1");
|
||||
|
|
@ -432,47 +424,6 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
const devProbationScore = ref<number>(10); // สรุปผลการประเมินพฤติกรรมการปฏิบัติราชการ (สมรรถนะ+การพัฒนาตนเอง) (คะแนนเต็ม competencyDevScore คะแนน)
|
||||
const competencyDevProbationScore = ref<number>(50); // สรุปผลการประเมินพฤติกรรมการปฏิบัติราชการ (สมรรถนะ+การพัฒนาตนเอง) (คะแนนเต็ม competencyDevScore คะแนน)
|
||||
|
||||
// function getDataWork() {
|
||||
// showLoader();
|
||||
// http
|
||||
// .get(config.API.orgPosition + `/${dataProfile.value.profileId}`)
|
||||
// .then((res) => {
|
||||
// const data = res.data.result.isProbation;
|
||||
// work.value = data;
|
||||
// if (data) {
|
||||
// indicatorScore.value = 50;
|
||||
// competencyScore.value = 40;
|
||||
// excusiveCompetencyScore.value = 40;
|
||||
// competencyDevScore.value = 10;
|
||||
// } else {
|
||||
// indicatorScore.value = 70;
|
||||
// competencyScore.value = 20;
|
||||
// excusiveCompetencyScore.value = 20;
|
||||
// competencyDevScore.value = 30;
|
||||
// }
|
||||
// })
|
||||
// .catch((e) => {
|
||||
// messageError($q, e);
|
||||
// })
|
||||
// .finally(() => {
|
||||
// hideLoader();
|
||||
// });
|
||||
// }
|
||||
|
||||
// watch(
|
||||
// () => tabMain.value,
|
||||
// () => {
|
||||
// if (tabMain.value == "3" && tabOpen.value == 3) {
|
||||
// getDataWork();
|
||||
// } else {
|
||||
// indicatorScore.value = 70;
|
||||
// competencyScore.value = 20;
|
||||
// excusiveCompetencyScore.value = 20;
|
||||
// competencyDevScore.value = 30;
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
|
||||
return {
|
||||
tabMain,
|
||||
dataProfile,
|
||||
|
|
@ -526,6 +477,6 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
mainRowData,
|
||||
resultsOptions,
|
||||
statusOptions,
|
||||
roleText
|
||||
roleText,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue