updated format code & eslint rule
This commit is contained in:
parent
67c6810def
commit
8a31554f38
102 changed files with 6271 additions and 6164 deletions
|
|
@ -479,7 +479,7 @@ const title = computed(() => {
|
|||
<div class="col-12 fit">
|
||||
<div class="row col-12" v-if="numpage !== 3">
|
||||
<q-checkbox
|
||||
:disable="checkDetail"
|
||||
:disable="checkDetail"
|
||||
v-model="formFilter.isAll"
|
||||
label="แสดงตัวชี้วัดภายใต้หน่วยงาน/ส่วนราชการทุกระดับ"
|
||||
@update:model-value="fetchNewList()"
|
||||
|
|
@ -488,7 +488,7 @@ const title = computed(() => {
|
|||
<div class="row q-col-gutter-sm col-12">
|
||||
<div class="col-5">
|
||||
<datepicker
|
||||
:readonly="checkDetail"
|
||||
:readonly="checkDetail"
|
||||
menu-class-name="modalfix"
|
||||
v-model="formFilter.year"
|
||||
:locale="'th'"
|
||||
|
|
@ -593,7 +593,7 @@ const title = computed(() => {
|
|||
:active="listCheckID === item.id"
|
||||
active-class="my-menu-link"
|
||||
@click="clickList(item.id)"
|
||||
:style="checkDetail ? 'pointer-events: none;' : ''"
|
||||
:style="checkDetail ? 'pointer-events: none;' : ''"
|
||||
>
|
||||
<q-item-section class="q-pa-none">
|
||||
<div
|
||||
|
|
@ -993,9 +993,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
|
||||
>
|
||||
|
|
|
|||
|
|
@ -574,9 +574,15 @@ watch(
|
|||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-separator v-if="competencyType !== 'HEAD' && competencyType !== 'GROUP'"/>
|
||||
<q-separator
|
||||
v-if="competencyType !== 'HEAD' && competencyType !== 'GROUP'"
|
||||
/>
|
||||
|
||||
<q-card-actions v-if="competencyType !== 'HEAD' && competencyType !== 'GROUP'" align="right" class="bg-white text-teal">
|
||||
<q-card-actions
|
||||
v-if="competencyType !== 'HEAD' && competencyType !== 'GROUP'"
|
||||
align="right"
|
||||
class="bg-white text-teal"
|
||||
>
|
||||
<q-btn label="บันทึก" color="secondary" type="submit"
|
||||
><q-tooltip>บันทึกข้อมูล</q-tooltip></q-btn
|
||||
>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,10 @@ watch(
|
|||
<template>
|
||||
<q-dialog v-model="modal" persistent>
|
||||
<q-card class="col-12" style="width: 85%">
|
||||
<DialogHeader :tittle="`พฤติกรรมที่คาดหวัง/พฤติกรรมย่อย`" :close="closeDialog" />
|
||||
<DialogHeader
|
||||
:tittle="`พฤติกรรมที่คาดหวัง/พฤติกรรมย่อย`"
|
||||
:close="closeDialog"
|
||||
/>
|
||||
<q-separator />
|
||||
|
||||
<q-card-section class="q-pa-sm scroll" style="max-height: 80vh">
|
||||
|
|
|
|||
|
|
@ -10,9 +10,8 @@ const modal = defineModel<boolean>("modal", { required: true });
|
|||
const rows = defineModel<any>("rows", { required: true });
|
||||
const dataRows = ref<any[]>([]);
|
||||
|
||||
const visibleColumns = ref<String[]>([ "description"]);
|
||||
const visibleColumns = ref<String[]>(["description"]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
|
||||
{
|
||||
name: "description",
|
||||
align: "left",
|
||||
|
|
@ -30,13 +29,15 @@ function closeDialog() {
|
|||
rows.value = [];
|
||||
dataRows.value = [];
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<q-dialog v-model="modal" persistent>
|
||||
<q-card class="col-12" style="width: 85%">
|
||||
<DialogHeader :tittle="`ข้อมูลพฤติกรรมที่คาดหวัง/พฤติกรรมย่อย`" :close="closeDialog" />
|
||||
<DialogHeader
|
||||
:tittle="`ข้อมูลพฤติกรรมที่คาดหวัง/พฤติกรรมย่อย`"
|
||||
:close="closeDialog"
|
||||
/>
|
||||
<q-separator />
|
||||
|
||||
<q-card-section class="q-pa-sm scroll" style="max-height: 80vh">
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@ const $q = useQuasar();
|
|||
const dataList = ref<ListCriteria[]>([]);
|
||||
const { showLoader, hideLoader, messageError } = useCounterMixin();
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
const dataListCriteria = defineModel<ListCriteria[]>("dataListCriteria", { required: true });
|
||||
const dataListCriteria = defineModel<ListCriteria[]>("dataListCriteria", {
|
||||
required: true,
|
||||
});
|
||||
|
||||
function close() {
|
||||
modal.value = false;
|
||||
|
|
@ -38,9 +40,11 @@ function close() {
|
|||
</div>
|
||||
<q-separator />
|
||||
<div v-for="(item, index) in dataListCriteria" :key="item.id">
|
||||
<div :class="`row q-pa-sm ${index %2 !== 0 && 'bg-grey-2'}`">
|
||||
<div :class="`row q-pa-sm ${index % 2 !== 0 && 'bg-grey-2'}`">
|
||||
<div class="col-8"><span v-html="item.description"></span></div>
|
||||
<div class="col-4 text-center self-center text-body1 text-weight-bold">
|
||||
<div
|
||||
class="col-4 text-center self-center text-body1 text-weight-bold"
|
||||
>
|
||||
<span>{{ item.level }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ function close() {
|
|||
function getData() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.orgPosition+`/${store.dataProfile.profileId}`)
|
||||
.get(config.API.orgPosition + `/${store.dataProfile.profileId}`)
|
||||
.then((res) => {
|
||||
const data = res.data.result.isProbation;
|
||||
work.value = data;
|
||||
|
|
|
|||
|
|
@ -111,8 +111,8 @@ const columns = ref<QTableProps["columns"]>([
|
|||
|
||||
const visibleColumns = ref<string[]>(
|
||||
store.tabOpen === 3 && store.tabMain === "3"
|
||||
? ['no',"name", "develop", "target", "achievement", "summary"]
|
||||
: ['no',"name", "develop", "target"]
|
||||
? ["no", "name", "develop", "target", "achievement", "summary"]
|
||||
: ["no", "name", "develop", "target"]
|
||||
);
|
||||
|
||||
function onAdd() {
|
||||
|
|
|
|||
|
|
@ -20,4 +20,4 @@ interface ProjectYearOp {
|
|||
projectName: string;
|
||||
}
|
||||
|
||||
export type { DataOptions, Pagination, DataOptionTechnique,ProjectYearOp };
|
||||
export type { DataOptions, Pagination, DataOptionTechnique, ProjectYearOp };
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ interface FormCommentByRole {
|
|||
topic: string;
|
||||
reason: string;
|
||||
createdFullName: string;
|
||||
score:string
|
||||
score: string;
|
||||
reasonEvaluator: string;
|
||||
reasonCommander: string;
|
||||
reasonCommanderHigh: string;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
|
||||
const KPIPage = () => import("@/modules/08_KPI/views/main.vue");
|
||||
const FormPage = () => import("@/modules/08_KPI/views/form.vue");
|
||||
const KPIMainEvaluator = () => import("@/modules/08_KPI/views/mainEvaluator.vue");
|
||||
const KPIMainEvaluator = () =>
|
||||
import("@/modules/08_KPI/views/mainEvaluator.vue");
|
||||
|
||||
export default [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue