updated probation response
This commit is contained in:
parent
fd0a109cc4
commit
43dec2d05f
2 changed files with 6 additions and 5 deletions
|
|
@ -30,7 +30,8 @@ const idInboxActive = ref<string>(); // Id ข้อความที่เล
|
||||||
|
|
||||||
const filteredItems = computed(() =>
|
const filteredItems = computed(() =>
|
||||||
items.value.filter(
|
items.value.filter(
|
||||||
(item) => item.title !== "แบบสำรวจความคิดเห็น" || dataStore.isProbation
|
(item) =>
|
||||||
|
item.title !== "ทดลองปฏิบัติหน้าที่ราชการ" || dataStore.isProbation
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -125,8 +126,8 @@ const items = ref<MenuMainList[]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: "mdi-poll",
|
icon: "mdi-poll",
|
||||||
title: "แบบสำรวจความคิดเห็น",
|
title: "ทดลองปฏิบัติหน้าที่ราชการ",
|
||||||
sub: "แบบสำรวจความคิดเห็นการทดลองปฏิบัติหน้าที่ราชการ",
|
sub: "ผลการทดลองปฏิบัติหน้าที่ราชการและแบบสำรวจความคิดเห็น",
|
||||||
color: "yellow-3",
|
color: "yellow-3",
|
||||||
path: "/probation-report",
|
path: "/probation-report",
|
||||||
active: false,
|
active: false,
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ async function getSurveyData() {
|
||||||
await http
|
await http
|
||||||
.get(config.API.summaryDetail())
|
.get(config.API.summaryDetail())
|
||||||
.then(async (res: any) => {
|
.then(async (res: any) => {
|
||||||
const data = await res.data.data.data;
|
const data = await res.data.result.data;
|
||||||
assignId.value = res.data.data.assignId;
|
assignId.value = res.data.result.assignId;
|
||||||
if (data !== null) {
|
if (data !== null) {
|
||||||
answer1.value = data.answer1;
|
answer1.value = data.answer1;
|
||||||
answer2.value = data.answer2;
|
answer2.value = data.answer2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue