no message

This commit is contained in:
STW_TTTY\stwtt 2024-06-19 10:48:23 +07:00
parent a58016fb9d
commit 681850078b
4 changed files with 21 additions and 3 deletions

View file

@ -259,7 +259,7 @@ import type { QTableProps } from "quasar";
import { ref, onMounted } from "vue"; import { ref, onMounted } from "vue";
import { useQuasar } from "quasar"; import { useQuasar } from "quasar";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import moment, { Moment } from "moment"; import moment from "moment";
import { useCounterMixin } from "@/stores/mixin"; import { useCounterMixin } from "@/stores/mixin";
const mixin = useCounterMixin(); const mixin = useCounterMixin();
const { dateThai } = mixin; const { dateThai } = mixin;

View file

@ -409,7 +409,7 @@ onMounted(() => {
<span class="q-ml-sm"> พฤตกรรมการปฎราชการ (สมรรถนะ)</span> <span class="q-ml-sm"> พฤตกรรมการปฎราชการ (สมรรถนะ)</span>
<q-btn <q-btn
flat flat
icon="info" icon="mdi-eye"
color="info" color="info"
round round
class="q-ml-xs" class="q-ml-xs"

View file

@ -127,6 +127,7 @@ function getData(type: string) {
.then(async (res) => { .then(async (res) => {
const data = res.data.result.data; const data = res.data.result.data;
rows.value[type] = data; rows.value[type] = data;
console.log("🚀 ~ .then ~ rows.value[type]:", rows.value[type])
lists.value = await lists.value.filter((x: any) => x.type != type); lists.value = await lists.value.filter((x: any) => x.type != type);
lists.value.push({ type: type, data }); lists.value.push({ type: type, data });
}) })
@ -256,6 +257,10 @@ watch(
} }
); );
function onInfo(){
}
onMounted(() => { onMounted(() => {
for (let index = 0; index < store.competencyType.length; index++) { for (let index = 0; index < store.competencyType.length; index++) {
const element = store.competencyType[index]; const element = store.competencyType[index];
@ -317,6 +322,7 @@ onMounted(() => {
> >
<template v-slot:header="props"> <template v-slot:header="props">
<q-tr :props="props"> <q-tr :props="props">
<q-th auto-width />
<q-th v-for="col in props.cols" :key="col.name" :props="props"> <q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span> <span class="text-weight-medium">{{ col.label }}</span>
</q-th> </q-th>
@ -325,6 +331,18 @@ onMounted(() => {
</template> </template>
<template v-slot:body="props"> <template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer"> <q-tr :props="props" class="cursor-pointer">
<q-td auto-width>
<q-btn
flat
icon="mdi-eye"
color="info"
round
class="q-ml-xs"
@click="onInfo"
>
<q-tooltip>พฤตกรรมทคาดหว/พฤตกรรมยอย</q-tooltip>
</q-btn>
</q-td>
<q-td v-for="col in props.cols" :key="col.id"> <q-td v-for="col in props.cols" :key="col.id">
<div v-if="col.name == 'createDate'"> <div v-if="col.name == 'createDate'">
{{ col.value ? date2Thai(col.value) : "-" }} {{ col.value ? date2Thai(col.value) : "-" }}

View file

@ -534,7 +534,7 @@ onMounted(async () => {
size="md" size="md"
@click="openStatus" @click="openStatus"
> >
<q-tooltip>อมลการทดลองงาน</q-tooltip> <q-tooltip>อมลการทดลองปฏหนาทราชการ</q-tooltip>
</q-btn> </q-btn>
</div> </div>
</div> </div>