no message
This commit is contained in:
parent
a58016fb9d
commit
681850078b
4 changed files with 21 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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) : "-" }}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue