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

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

View file

@ -127,6 +127,7 @@ function getData(type: string) {
.then(async (res) => {
const data = res.data.result.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.push({ type: type, data });
})
@ -256,6 +257,10 @@ watch(
}
);
function onInfo(){
}
onMounted(() => {
for (let index = 0; index < store.competencyType.length; index++) {
const element = store.competencyType[index];
@ -317,6 +322,7 @@ onMounted(() => {
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width />
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
@ -325,6 +331,18 @@ onMounted(() => {
</template>
<template v-slot:body="props">
<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">
<div v-if="col.name == 'createDate'">
{{ col.value ? date2Thai(col.value) : "-" }}