issue: add menu issue

This commit is contained in:
Warunee Tamkoo 2026-02-04 21:48:48 +07:00
parent 7daf29d974
commit af54914bbb
5 changed files with 391 additions and 186 deletions

View file

@ -5,7 +5,6 @@ import { storeToRefs } from "pinia";
import http from "@/plugins/http";
import config from "@/app.config";
import { checkPermission } from "@/utils/permissions";
import { useCounterMixin } from "@/stores/mixin";
import { useIssueStore } from "@/modules/22_issues/store";
@ -27,6 +26,9 @@ const visibleColumns = ref<string[]>([
"description",
"system",
"menu",
"org",
"email",
"phone",
"createdAt",
"createdFullName",
"status",
@ -69,6 +71,35 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "org",
align: "left",
label: "หน่วยงาน",
sortable: false,
field: "org",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "email",
align: "left",
label: "อีเมลติดต่อกลับ",
sortable: false,
field: "email",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "phone",
align: "left",
label: "เบอร์ติดต่อกลับ",
sortable: false,
field: "phone",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "createdAt",
align: "left",
@ -283,7 +314,6 @@ onMounted(async () => {
<q-tr :props="props">
<q-td auto-width>
<q-btn
v-if="checkPermission($route)?.attrIsGet"
round
color="info"
flat
@ -294,10 +324,6 @@ onMounted(async () => {
<q-tooltip>รายละเอยด</q-tooltip>
</q-btn>
<q-btn
v-if="
checkPermission($route)?.attrIsUpdate &&
checkPermission($route)?.attrIsGet
"
round
color="edit"
flat
@ -310,7 +336,11 @@ onMounted(async () => {
</q-td>
<q-td v-for="col in props.cols" :key="col.id">
<div
:class="col.name === 'description' ? 'table_ellipsis' : ''"
:class="
col.name === 'description' || col.name === 'org'
? 'table_ellipsis'
: ''
"
>
{{ col.value ? col.value : "-" }}
</div>